5ed92a24398c1f1501f58ce29a82f6a8bf5ca95e
[tridge/dbench.git] / proto.h
1 /* This file is automatically generated with "make proto". DO NOT EDIT */
2
3 void child_run(struct child_struct *child, const char *loadfile);
4 void nb_setup(struct child_struct *child);
5 void nb_unlink(struct child_struct *child, char *fname, int attr, const char *status);
6 void nb_mkdir(struct child_struct *child, char *dname, const char *status);
7 void nb_rmdir(struct child_struct *child, char *fname, const char *status);
8 void nb_createx(struct child_struct *child, const char *fname, 
9                 uint32_t create_options, uint32_t create_disposition, int fnum,
10                 const char *status);
11 void nb_writex(struct child_struct *child, int handle, int offset, 
12                int size, int ret_size, const char *status);
13 void nb_readx(struct child_struct *child, int handle, int offset, 
14               int size, int ret_size, const char *status);
15 void nb_close(struct child_struct *child, int handle, const char *status);
16 void nb_rename(struct child_struct *child, char *old, char *new, const char *status);
17 void nb_flush(struct child_struct *child, int handle, const char *status);
18 void nb_qpathinfo(struct child_struct *child, const char *fname, int level, 
19                   const char *status);
20 void nb_qfileinfo(struct child_struct *child, int handle, int level, const char *status);
21 void nb_qfsinfo(struct child_struct *child, int level, const char *status);
22 void nb_findfirst(struct child_struct *child, char *fname, int level, int maxcnt, 
23                   int count, const char *status);
24 void nb_cleanup(struct child_struct *child);
25 void nb_deltree(struct child_struct *child, char *dname);
26 void nb_warmup_done(struct child_struct *child);
27 void nb_sfileinfo(struct child_struct *child, int handle, int level, const char *status);
28 void nb_lockx(struct child_struct *child, int handle, uint32_t offset, int size, 
29               const char *status);
30 void nb_unlockx(struct child_struct *child,
31                 int handle, uint32_t offset, int size, const char *status);
32 void nb_sleep(struct child_struct *child, int usec, const char *status);
33 void do_unlink(char *fname);
34 void expand_file(int fd, int size);
35 void do_open(char *fname, int handle, int size);
36 void do_write(int handle, int size, int offset);
37 void do_read(int handle, int size, int offset);
38 void do_close(int handle);
39 void do_mkdir(char *fname);
40 void do_rmdir(char *fname);
41 void do_rename(char *old, char *new);
42 void do_stat(char *fname, int size);
43 void do_create(char *fname, int size);
44 void nb_setup(struct child_struct *child);
45 void nb_unlink(struct child_struct *child, char *fname, int attr, const char *status);
46 void nb_mkdir(struct child_struct *child, char *dname, const char *status);
47 void nb_rmdir(struct child_struct *child, char *fname, const char *status);
48 void nb_createx(struct child_struct *child, const char *fname, 
49                 uint32_t create_options, uint32_t create_disposition, int fnum,
50                 const char *status);
51 void nb_writex(struct child_struct *child, int handle, int offset, 
52                int size, int ret_size, const char *status);
53 void nb_readx(struct child_struct *child, int handle, int offset, 
54               int size, int ret_size, const char *status);
55 void nb_close(struct child_struct *child, int handle, const char *status);
56 void nb_rename(struct child_struct *child, char *old, char *new, const char *status);
57 void nb_flush(struct child_struct *child, int handle, const char *status);
58 void nb_qpathinfo(struct child_struct *child, const char *fname, int level, 
59                   const char *status);
60 void nb_qfileinfo(struct child_struct *child, int handle, int level, const char *status);
61 void nb_qfsinfo(struct child_struct *child, int level, const char *status);
62 void nb_findfirst(struct child_struct *child, char *fname, int level, int maxcnt, 
63                   int count, const char *status);
64 void nb_cleanup(struct child_struct *child);
65 void nb_deltree(struct child_struct *child, char *dname);
66 void nb_warmup_done(struct child_struct *child);
67 void nb_sfileinfo(struct child_struct *child, int handle, int level, const char *status);
68 void nb_lockx(struct child_struct *child, int handle, uint32_t offset, int size, 
69               const char *status);
70 void nb_unlockx(struct child_struct *child,
71                 int handle, uint32_t offset, int size, const char *status);
72 void nb_sleep(struct child_struct *child, int usec, const char *status);
73 int open_socket_in(int type, int port);
74 int open_socket_out(char *host, int port);
75 void set_socket_options(int fd, char *options);
76 int read_sock(int s, char *buf, int size);
77 int write_sock(int s, char *buf, int size);
78 void *shm_setup(int size);
79 void strupper(char *s);
80 void all_string_sub(char *s,const char *pattern,const char *insert);
81 BOOL next_token(char **ptr,char *buff,char *sep);
82 struct timeval timeval_zero(void);
83 struct timeval timeval_current(void);
84 double timeval_elapsed(struct timeval *tv);
85 double timeval_elapsed2(struct timeval *tv1, struct timeval *tv2);
86 struct timeval timeval_diff(struct timeval *tv1, struct timeval *tv2);
87 int timeval_compare(struct timeval *tv1, struct timeval *tv2);
88 struct timeval timeval_min(struct timeval *tv1, struct timeval *tv2);