-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproto.h
86 lines (51 loc) · 2.51 KB
/
proto.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#ifndef _PROTO_H_
#define _PROTO_H_
/* This file is automatically generated with "make proto". DO NOT EDIT */
/* 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_write(int handle, int size, int offset);
void do_read(int handle, int size, int offset);
void do_close(int handle);
void do_mkdir(char *fname);
void do_rmdir(char *fname);
void do_rename(char *old, char *new);
void do_stat(char *fname, int size);
void do_create(char *fname, int size);
/* 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, int initial_xid, int xid_stride);
/* 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(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);
/* 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 all_string_sub(char *s,const char *pattern,const char *insert);
void single_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_ */