75e681a02bb4c934dfd9101b8ab511fa4357b25e
[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_sfileinfo(struct child_struct *child, int handle, int level, const char *status);
27 void nb_lockx(struct child_struct *child, int handle, uint32_t offset, int size, 
28               const char *status);
29 void nb_unlockx(struct child_struct *child,
30                 int handle, uint32_t offset, int size, const char *status);
31 void nb_sleep(struct child_struct *child, int usec, const char *status);
32 void do_unlink(char *fname);
33 void expand_file(int fd, int size);
34 void do_open(char *fname, int handle, int size);
35 void do_write(int handle, int size, int offset);
36 void do_read(int handle, int size, int offset);
37 void do_close(int handle);
38 void do_mkdir(char *fname);
39 void do_rmdir(char *fname);
40 void do_rename(char *old, char *new);
41 void do_stat(char *fname, int size);
42 void do_create(char *fname, int size);
43 void nb_setup(struct child_struct *child);
44 void nb_unlink(struct child_struct *child, char *fname, int attr, const char *status);
45 void nb_mkdir(struct child_struct *child, char *dname, const char *status);
46 void nb_rmdir(struct child_struct *child, char *fname, const char *status);
47 void nb_createx(struct child_struct *child, const char *fname, 
48                 uint32_t create_options, uint32_t create_disposition, int fnum,
49                 const char *status);
50 void nb_writex(struct child_struct *child, int handle, int offset, 
51                int size, int ret_size, const char *status);
52 void nb_readx(struct child_struct *child, int handle, int offset, 
53               int size, int ret_size, const char *status);
54 void nb_close(struct child_struct *child, int handle, const char *status);
55 void nb_rename(struct child_struct *child, char *old, char *new, const char *status);
56 void nb_flush(struct child_struct *child, int handle, const char *status);
57 void nb_qpathinfo(struct child_struct *child, const char *fname, int level, 
58                   const char *status);
59 void nb_qfileinfo(struct child_struct *child, int handle, int level, const char *status);
60 void nb_qfsinfo(struct child_struct *child, int level, const char *status);
61 void nb_findfirst(struct child_struct *child, char *fname, int level, int maxcnt, 
62                   int count, const char *status);
63 void nb_cleanup(struct child_struct *child);
64 void nb_deltree(struct child_struct *child, char *dname);
65 void nb_warmup_done(struct child_struct *child);
66 void nb_sfileinfo(struct child_struct *child, int handle, int level, const char *status);
67 void nb_lockx(struct child_struct *child, int handle, uint32_t offset, int size, 
68               const char *status);
69 void nb_unlockx(struct child_struct *child,
70                 int handle, uint32_t offset, int size, const char *status);
71 void nb_sleep(struct child_struct *child, int usec, const char *status);
72 int open_socket_in(int type, int port);
73 int open_socket_out(char *host, int port);
74 void set_socket_options(int fd, char *options);
75 int read_sock(int s, char *buf, int size);
76 int write_sock(int s, char *buf, int size);
77 void *shm_setup(int size);
78 void strupper(char *s);
79 void all_string_sub(char *s,const char *pattern,const char *insert);
80 BOOL next_token(char **ptr,char *buff,char *sep);
81 struct timeval timeval_zero(void);
82 struct timeval timeval_current(void);
83 double timeval_elapsed(struct timeval *tv);
84 double timeval_elapsed2(struct timeval *tv1, struct timeval *tv2);
85 struct timeval timeval_diff(struct timeval *tv1, struct timeval *tv2);
86 int timeval_compare(struct timeval *tv1, struct timeval *tv2);
87 struct timeval timeval_min(struct timeval *tv1, struct timeval *tv2);