+#ifndef _PROTO_H_
+#define _PROTO_H_
+
/* This file is automatically generated with "make proto". DO NOT EDIT */
-void child_run(struct child_struct *child);
-void sync_parent(char *fname);
-void nb_setup(struct child_struct *child);
-void nb_unlink(struct child_struct *child, char *fname);
-void nb_rmdir(struct child_struct *child, char *fname);
-void nb_createx(struct child_struct *child, char *fname,
- unsigned create_options, unsigned create_disposition, int fnum);
-void nb_writex(struct child_struct *child, int handle, int offset,
- int size, int ret_size);
-void nb_readx(struct child_struct *child, int handle, int offset,
- int size, int ret_size);
-void nb_close(struct child_struct *child, int handle);
-void nb_rename(struct child_struct *child, char *old, char *new);
-void nb_flush(struct child_struct *child, int handle);
-void nb_qpathinfo(struct child_struct *child, const char *fname);
-void nb_qfileinfo(struct child_struct *child, int handle);
-void nb_qfsinfo(struct child_struct *child, int level);
-void nb_findfirst(struct child_struct *child, char *fname);
-void nb_cleanup(struct child_struct *child);
+
+/* The following definitions come from child.c */
+
+void child_run(struct child_struct *child0, const char *loadfile);
+
+/* The following definitions come from dbench.c */
+
+
+/* The following definitions come from fileio.c */
+
+
+/* The following definitions come from io.c */
+
void do_unlink(char *fname);
void expand_file(int fd, int size);
void do_open(char *fname, int handle, int size);
void do_rename(char *old, char *new);
void do_stat(char *fname, int size);
void do_create(char *fname, int size);
-void nb_setup(struct child_struct *child);
-void nb_unlink(struct child_struct *child, char *fname);
-void nb_createx(struct child_struct *child, char *fname,
- unsigned create_options, unsigned create_disposition, int fnum);
-void nb_writex(struct child_struct *child, int handle, int offset,
- int size, int ret_size);
-void nb_readx(struct child_struct *child, int handle, int offset,
- int size, int ret_size);
-void nb_close(struct child_struct *child, int handle);
-void nb_rename(struct child_struct *child, char *old, char *new);
-void nb_qpathinfo(struct child_struct *child, const char *fname);
-void nb_qfileinfo(struct child_struct *child, int handle);
-void nb_qfsinfo(struct child_struct *child, int level);
-void nb_findfirst(struct child_struct *child, char *fname);
-void nb_flush(struct child_struct *child, int handle);
-void nb_cleanup(struct child_struct *child);
+
+/* The following definitions come from libnfs.c */
+
+const char *nfs_error(int error);
+void nfsio_disconnect(struct nfsio *nfsio);
+struct nfsio *nfsio_connect(const char *server, const char *export, const char *protocol);
+
+/* The following definitions come from mount_client.c */
+
+
+/* The following definitions come from mount_xdr.c */
+
+
+/* The following definitions come from nfs_client.c */
+
+
+/* The following definitions come from nfs_xdr.c */
+
+
+/* The following definitions come from nfsio.c */
+
+
+/* The following definitions come from snprintf.c */
+
+
+/* The following definitions come from sockio.c */
+
+
+/* The following definitions come from socklib.c */
+
int open_socket_in(int type, int port);
-int open_socket_out(char *host, int port);
+int open_socket_out(const char *host, int port);
void set_socket_options(int fd, char *options);
int read_sock(int s, char *buf, int size);
int write_sock(int s, char *buf, int size);
-void start_timer(void);
-double end_timer(void);
+
+/* The following definitions come from system.c */
+
+ssize_t sys_getxattr (const char *path, const char *name, void *value, size_t size);
+ssize_t sys_fgetxattr (int filedes, const char *name, void *value, size_t size);
+int sys_fsetxattr (int filedes, const char *name, const void *value, size_t size, int flags);
+
+/* The following definitions come from tbench_srv.c */
+
+
+/* The following definitions come from util.c */
+
void *shm_setup(int size);
-void strupper(char *s);
void all_string_sub(char *s,const char *pattern,const char *insert);
BOOL next_token(char **ptr,char *buff,char *sep);
+struct timeval timeval_current(void);
+double timeval_elapsed(struct timeval *tv);
+double timeval_elapsed2(struct timeval *tv1, struct timeval *tv2);
+void msleep(unsigned int t);
+
+#endif /* _PROTO_H_ */