4 /* This file is automatically generated with "make proto". DO NOT EDIT */
7 /* The following definitions come from child.c */
9 void child_run(struct child_struct *child, const char *loadfile);
11 /* The following definitions come from dbench.c */
14 /* The following definitions come from fileio.c */
16 void nb_setup(struct child_struct *child);
17 void nb_unlink(struct child_struct *child, char *fname, int attr, const char *status);
18 void nb_mkdir(struct child_struct *child, char *dname, const char *status);
19 void nb_rmdir(struct child_struct *child, char *fname, const char *status);
20 void nb_createx(struct child_struct *child, const char *fname,
21 uint32_t create_options, uint32_t create_disposition, int fnum,
23 void nb_writex(struct child_struct *child, int handle, int offset,
24 int size, int ret_size, const char *status);
25 void nb_readx(struct child_struct *child, int handle, int offset,
26 int size, int ret_size, const char *status);
27 void nb_close(struct child_struct *child, int handle, const char *status);
28 void nb_rename(struct child_struct *child, char *old, char *new, const char *status);
29 void nb_flush(struct child_struct *child, int handle, const char *status);
30 void nb_qpathinfo(struct child_struct *child, const char *fname, int level,
32 void nb_qfileinfo(struct child_struct *child, int handle, int level, const char *status);
33 void nb_qfsinfo(struct child_struct *child, int level, const char *status);
34 void nb_findfirst(struct child_struct *child, char *fname, int level, int maxcnt,
35 int count, const char *status);
36 void nb_cleanup(struct child_struct *child);
37 void nb_deltree(struct child_struct *child, char *dname);
38 void nb_sfileinfo(struct child_struct *child, int handle, int level, const char *status);
39 void nb_lockx(struct child_struct *child, int handle, uint32_t offset, int size,
41 void nb_unlockx(struct child_struct *child,
42 int handle, uint32_t offset, int size, const char *status);
43 void nb_sleep(struct child_struct *child, int usec, const char *status);
45 /* The following definitions come from io.c */
47 void do_unlink(char *fname);
48 void expand_file(int fd, int size);
49 void do_open(char *fname, int handle, int size);
50 void do_write(int handle, int size, int offset);
51 void do_read(int handle, int size, int offset);
52 void do_close(int handle);
53 void do_mkdir(char *fname);
54 void do_rmdir(char *fname);
55 void do_rename(char *old, char *new);
56 void do_stat(char *fname, int size);
57 void do_create(char *fname, int size);
59 /* The following definitions come from snprintf.c */
62 /* The following definitions come from sockio.c */
64 void nb_setup(struct child_struct *child);
65 void nb_unlink(struct child_struct *child, char *fname, int attr, const char *status);
66 void nb_mkdir(struct child_struct *child, char *dname, const char *status);
67 void nb_rmdir(struct child_struct *child, char *fname, const char *status);
68 void nb_createx(struct child_struct *child, const char *fname,
69 uint32_t create_options, uint32_t create_disposition, int fnum,
71 void nb_writex(struct child_struct *child, int handle, int offset,
72 int size, int ret_size, const char *status);
73 void nb_readx(struct child_struct *child, int handle, int offset,
74 int size, int ret_size, const char *status);
75 void nb_close(struct child_struct *child, int handle, const char *status);
76 void nb_rename(struct child_struct *child, char *old, char *new, const char *status);
77 void nb_flush(struct child_struct *child, int handle, const char *status);
78 void nb_qpathinfo(struct child_struct *child, const char *fname, int level,
80 void nb_qfileinfo(struct child_struct *child, int handle, int level, const char *status);
81 void nb_qfsinfo(struct child_struct *child, int level, const char *status);
82 void nb_findfirst(struct child_struct *child, char *fname, int level, int maxcnt,
83 int count, const char *status);
84 void nb_cleanup(struct child_struct *child);
85 void nb_deltree(struct child_struct *child, char *dname);
86 void nb_sfileinfo(struct child_struct *child, int handle, int level, const char *status);
87 void nb_lockx(struct child_struct *child, int handle, uint32_t offset, int size,
89 void nb_unlockx(struct child_struct *child,
90 int handle, uint32_t offset, int size, const char *status);
91 void nb_sleep(struct child_struct *child, int usec, const char *status);
93 /* The following definitions come from socklib.c */
95 int open_socket_in(int type, int port);
96 int open_socket_out(char *host, int port);
97 void set_socket_options(int fd, char *options);
98 int read_sock(int s, char *buf, int size);
99 int write_sock(int s, char *buf, int size);
101 /* The following definitions come from system.c */
103 ssize_t sys_getxattr (const char *path, const char *name, void *value, size_t size);
104 ssize_t sys_fgetxattr (int filedes, const char *name, void *value, size_t size);
105 int sys_fsetxattr (int filedes, const char *name, const void *value, size_t size, int flags);
107 /* The following definitions come from tbench_srv.c */
110 /* The following definitions come from util.c */
112 void *shm_setup(int size);
113 void all_string_sub(char *s,const char *pattern,const char *insert);
114 BOOL next_token(char **ptr,char *buff,char *sep);
115 struct timeval timeval_current(void);
116 double timeval_elapsed(struct timeval *tv);
117 double timeval_elapsed2(struct timeval *tv1, struct timeval *tv2);
118 void msleep(unsigned int t);
120 #endif /* _PROTO_H_ */