nexmon – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /* source: sycls.h */ |
2 | /* Copyright Gerhard Rieger */ |
||
3 | /* Published under the GNU General Public License V.2, see file COPYING */ |
||
4 | |||
5 | #ifndef __sycls_h_included |
||
6 | #define __sycls_h_included 1 |
||
7 | |||
8 | #if WITH_SYCLS |
||
9 | struct termios; /* prevent gcc from spitting silly warning */ |
||
10 | struct utsname; |
||
11 | struct flock; |
||
12 | struct addrinfo; |
||
13 | |||
14 | mode_t Umask(mode_t mask); |
||
15 | int Open(const char *pathname, int flags, mode_t mode); |
||
16 | int Creat(const char *pathname, mode_t mode); |
||
17 | off_t Lseek(int fildes, off_t offset, int whence); |
||
18 | #if HAVE_LSEEK64 |
||
19 | off64_t Lseek64(int fildes, off64_t offset, int whence); |
||
20 | #endif |
||
21 | pid_t Getpid(void); |
||
22 | pid_t Getppid(void); |
||
23 | pid_t Getpgrp(void); |
||
24 | int Getpgid(pid_t pid); |
||
25 | int Setpgid(pid_t pid, pid_t pgid); |
||
26 | int Setpgrp(void); |
||
27 | pid_t Tcgetpgrp(int fd); |
||
28 | int Tcsetpgrp(int fd, pid_t pgrpid); |
||
29 | pid_t Getsid(pid_t pid); |
||
30 | pid_t Setsid(void); |
||
31 | uid_t Getuid(void); |
||
32 | uid_t Geteuid(void); |
||
33 | int Setuid(uid_t uid); |
||
34 | gid_t Getgid(void); |
||
35 | gid_t Getegid(void); |
||
36 | int Setgid(gid_t gid); |
||
37 | int Initgroups(const char *user, gid_t group); |
||
38 | int Getgroups(int size, gid_t list[]); |
||
39 | int Setgroups(size_t size, const gid_t *list); |
||
40 | int Getgrouplist(const char *user, gid_t group, gid_t *groups, int *ngroups); |
||
41 | int Chdir(const char *path); |
||
42 | int Chroot(const char *path); |
||
43 | int Gettimeofday(struct timeval *tv, struct timezone *tz); |
||
44 | int Mknod(const char *pathname, mode_t mode, dev_t dev); |
||
45 | int Mkfifo(const char *pathname, mode_t mode); |
||
46 | int Stat(const char *file_name, struct stat *buf); |
||
47 | int Fstat(int filedes, struct stat *buf); |
||
48 | int Lstat(const char *file_name, struct stat *buf); |
||
49 | #if HAVE_STAT64 |
||
50 | int Stat64(const char *file_name, struct stat64 *buf); |
||
51 | int Fstat64(int filedes, struct stat64 *buf); |
||
52 | int Lstat64(const char *file_name, struct stat64 *buf); |
||
53 | #endif /* HAVE_STAT64 */ |
||
54 | int Dup(int oldfd); |
||
55 | int Dup2(int oldfd, int newfd); |
||
56 | int Pipe(int filedes[2]); |
||
57 | ssize_t Read(int fd, void *buf, size_t count); |
||
58 | ssize_t Write(int fd, const void *buf, size_t count); |
||
59 | int Fcntl(int fd, int cmd); |
||
60 | int Fcntl_l(int fd, int cmd, long arg); |
||
61 | int Fcntl_lock(int fd, int cmd, struct flock *l); |
||
62 | int Ftruncate(int fd, off_t length); |
||
63 | #if HAVE_FTRUNCATE64 |
||
64 | int Ftruncate64(int fd, off64_t length); |
||
65 | #endif /* HAVE_FTRUNCATE64 */ |
||
66 | int Flock(int fd, int operation); |
||
67 | int Ioctl(int d, int request, void *argp); |
||
68 | int Ioctl_int(int d, int request, int arg); |
||
69 | int Close(int fd); |
||
70 | int Fchown(int fd, uid_t owner, gid_t group); |
||
71 | int Fchmod(int fd, mode_t mode); |
||
72 | int Unlink(const char *pathname); |
||
73 | int Symlink(const char *oldpath, const char *newpath); |
||
74 | int Readlink(const char *path, char *buf, size_t bufsiz); |
||
75 | int Chown(const char *path, uid_t owner, gid_t group); |
||
76 | int Chmod(const char *path, mode_t mode); |
||
77 | int Poll(struct pollfd *ufds, unsigned int nfds, int timeout); |
||
78 | int Select(int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, |
||
79 | struct timeval *timeout); |
||
80 | int Pselect(int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, |
||
81 | struct timespec *timeout, const sigset_t *sigmask); |
||
82 | pid_t Fork(void); |
||
83 | pid_t Waitpid(pid_t pid, int *status, int options); |
||
84 | #ifndef HAVE_TYPE_SIGHANDLER |
||
85 | typedef RETSIGTYPE (*sighandler_t)(int); |
||
86 | #endif |
||
87 | sighandler_t Signal(int signum, sighandler_t handler); |
||
88 | int Sigaction(int signum, const struct sigaction *act, |
||
89 | struct sigaction *oldact); |
||
90 | int Sigprocmask(int how, const sigset_t *set, sigset_t *oset); |
||
91 | unsigned int Alarm(unsigned int seconds); |
||
92 | int Kill(pid_t pid, int sig); |
||
93 | int Link(const char *oldpath, const char *newpath); |
||
94 | int Execvp(const char *file, char *const argv[]); |
||
95 | int System(const char *string); |
||
96 | int Socketpair(int d, int type, int protocol, int sv[2]); |
||
97 | #if _WITH_SOCKET |
||
98 | int Socket(int domain, int type, int protocol); |
||
99 | int Bind(int sockfd, struct sockaddr *my_addr, socklen_t addrlen); |
||
100 | int Connect(int sockfd, const struct sockaddr *serv_addr, socklen_t addrlen); |
||
101 | int Listen(int s, int backlog); |
||
102 | int Accept(int s, struct sockaddr *addr, socklen_t *addrlen); |
||
103 | int Getsockname(int s, struct sockaddr *name, socklen_t *namelen); |
||
104 | int Getpeername(int s, struct sockaddr *name, socklen_t *namelen); |
||
105 | int Getsockopt(int s, int level, int optname, void *optval, socklen_t *optlen); |
||
106 | int Setsockopt(int s, int level, int optname, const void *optval, int optlen); |
||
107 | int Recv(int s, void *buf, size_t len, int flags); |
||
108 | int Recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, |
||
109 | socklen_t *fromlen); |
||
110 | int Recvmsg(int s, struct msghdr *msg, int flags); |
||
111 | int Send(int s, const void *mesg, size_t len, int flags); |
||
112 | int Sendto(int s, const void *msg, size_t len, int flags, |
||
113 | const struct sockaddr *to, socklen_t tolen); |
||
114 | int Shutdown(int fd, int how); |
||
115 | #endif /* _WITH_SOCKET */ |
||
116 | unsigned int Sleep(unsigned int seconds); |
||
117 | void Usleep(unsigned long usec); |
||
118 | unsigned int Nanosleep(const struct timespec *req, struct timespec *rem); |
||
119 | int Pause(void); |
||
120 | struct hostent *Gethostbyname(const char *name); |
||
121 | int Getaddrinfo(const char *node, const char *service, |
||
122 | const struct addrinfo *hints, struct addrinfo **res); |
||
123 | struct hostent *Getipnodebyname(const char *name, int af, int flags, |
||
124 | int *error_num); |
||
125 | void *Malloc(size_t size); |
||
126 | void *Calloc(size_t nmemb, size_t size); |
||
127 | void *Realloc(void *ptr, size_t size); |
||
128 | int Tcgetattr(int fd, struct termios *termios_p); |
||
129 | int Tcsetattr(int fd, int optional_actions, struct termios *termios_p); |
||
130 | char *Ttyname(int fd); |
||
131 | int Isatty(int fd); |
||
132 | struct winsize; /* avoid warnings */ |
||
133 | int Openpty(int *ptyfd, int *ttyfd, char *ptyname, struct termios *termp, |
||
134 | struct winsize *winp); |
||
135 | char *Ptsname(int fd); |
||
136 | int Grantpt(int fd); |
||
137 | int Unlockpt(int fd); |
||
138 | int Gethostname(char *name, size_t len); |
||
139 | int Uname(struct utsname *buf); |
||
140 | int Sigprocmask(int how, const sigset_t *set, sigset_t *oldset); |
||
141 | int Atexit(void (*func)(void)); |
||
142 | void Exit(int status); |
||
143 | void Abort(void); |
||
144 | int Pthread_create(pthread_t *thread, const pthread_attr_t *attr, |
||
145 | void *(*start_routine)(void *), void *arg); |
||
146 | int Pthread_join(pthread_t thread, void **value_ptr); |
||
147 | int Mkstemp(char *template); |
||
148 | int Setenv(const char *name, const char *value, int overwrite); |
||
149 | void Unsetenv(const char *name); |
||
150 | |||
151 | char *Readline(const char *prompt); |
||
152 | void Using_history(void); |
||
153 | int Read_history(const char *filename); |
||
154 | int Write_history(const char *filename); |
||
155 | int Append_history(int nelements, const char *filename); |
||
156 | int Read_history(const char *filename); |
||
157 | void Add_history(const char *string); |
||
158 | #if WITH_GZIP |
||
159 | gzFile Gzdopen(int fd, const char *mode) { |
||
160 | int Gzread(gzFile file, voidp buf, unsigned len) { |
||
161 | int Gzwrite(gzFile file, const voidp buf, unsigned len) { |
||
162 | int Gzclose(gzFile file) { |
||
163 | #endif /* WITH_GZIP */ |
||
164 | |||
165 | #else /* !WITH_SYCLS */ |
||
166 | |||
167 | #define Umask(m) umask(m) |
||
168 | #define Open(p,f,m) open(p,f,m) |
||
169 | #define Creat(p,m) creat(p,m) |
||
170 | #define Lseek(f,o,w) lseek(f,o,w) |
||
171 | #define Lseek64(f,o,w) lseek64(f,o,w) |
||
172 | #define Getpid() getpid() |
||
173 | #define Getppid() getppid() |
||
174 | #define Getpgrp() getpgrp() |
||
175 | #define Getpgid(p) getpgid(p) |
||
176 | #define Setpgid(p,g) setpgid(p,g) |
||
177 | #define Setpgrp() setpgrp() |
||
178 | #define Tcgetpgrp(f) tcgetpgrp(f) |
||
179 | #define Tcsetpgrp(f,p) tcsetpgrp(f,p) |
||
180 | #define Getsid(p) getsid(p) |
||
181 | #define Setsid() setsid() |
||
182 | #define Getuid() getuid() |
||
183 | #define Geteuid() geteuid() |
||
184 | #define Setuid(u) setuid(u) |
||
185 | #define Getgid() getgid() |
||
186 | #define Getegid() getegid() |
||
187 | #define Setgid(g) setgid(g) |
||
188 | #define Initgroups(u,g) initgroups(u,g) |
||
189 | #define Getgroups(s,l) getgroups(s,l) |
||
190 | #define Setgroups(s,l) setgroups(s,l) |
||
191 | #define Getgrouplist(u,g,gs,n) getgrouplist(u,g,gs,n) |
||
192 | #define Chdir(p) chdir(p) |
||
193 | #define Chroot(p) chroot(p) |
||
194 | #define Gettimeofday(tv,tz) gettimeofday(tv,tz) |
||
195 | #define Mknod(p,m,d) mknod(p,m,d) |
||
196 | #define Mkfifo(p,m) mkfifo(p,m) |
||
197 | #define Stat(f,b) stat(f,b) |
||
198 | #define Stat64(f,b) stat64(f,b) |
||
199 | #define Fstat(f,b) fstat(f,b) |
||
200 | #define Fstat64(f,b) fstat64(f,b) |
||
201 | #define Lstat(f,b) lstat(f,b) |
||
202 | #define Lstat64(f,b) lstat64(f,b) |
||
203 | #define Dup(o) dup(o) |
||
204 | #define Dup2(o,n) dup2(o,n) |
||
205 | #define Pipe(f) pipe(f) |
||
206 | #define Read(f,b,c) read(f,b,c) |
||
207 | #define Write(f,b,c) write(f,b,c) |
||
208 | #define Fcntl(f,c) fcntl(f,c) |
||
209 | #define Fcntl_l(f,c,a) fcntl(f,c,a) |
||
210 | #define Fcntl_lock(f,c,l) fcntl(f,c,l) |
||
211 | #define Ftruncate(f,l) ftruncate(f,l) |
||
212 | #define Ftruncate64(f,l) ftruncate64(f,l) |
||
213 | #define Flock(f,o) flock(f,o) |
||
214 | #define Ioctl(d,r,a) ioctl(d,r,a) |
||
215 | #define Ioctl_int(d,r,a) ioctl(d,r,a) |
||
216 | #define Close(f) close(f) |
||
217 | #define Fchown(f,o,g) fchown(f,o,g) |
||
218 | #define Fchmod(f,m) fchmod(f,m) |
||
219 | #define Unlink(p) unlink(p) |
||
220 | #define Symlink(op,np) symlink(op,np) |
||
221 | #define Readlink(p,b,s) readlink(p,b,s) |
||
222 | #define Chown(p,o,g) chown(p,o,g) |
||
223 | #define Chmod(p,m) chmod(p,m) |
||
224 | #define Poll(u, n, t) poll(u, n, t) |
||
225 | #define Select(n,r,w,e,t) select(n,r,w,e,t) |
||
226 | #define Pselect(n,r,w,e,t,s) select(n,r,w,e,t,s) |
||
227 | #define Fork() fork() |
||
228 | #define Waitpid(p,s,o) waitpid(p,s,o) |
||
229 | #define Signal(s,h) signal(s,h) |
||
230 | #define Sigaction(s,a,o) sigaction(s,a,o) |
||
231 | #define Sigprocmask(h,s,o) sigprocmask(h,s,o) |
||
232 | #define Alarm(s) alarm(s) |
||
233 | #define Kill(p,s) kill(p,s) |
||
234 | #define Link(o,n) link(o,n) |
||
235 | #define Execvp(f,a) execvp(f,a) |
||
236 | #define System(s) system(s) |
||
237 | #define Socketpair(d,t,p,s) socketpair(d,t,p,s) |
||
238 | #define Socket(d,t,p) socket(d,t,p) |
||
239 | #define Bind(s,m,a) bind(s,m,a) |
||
240 | #define Connect(s,a,l) connect(s,a,l) |
||
241 | #define Listen(s,b) listen(s,b) |
||
242 | #define Accept(s,a,l) accept(s,a,l) |
||
243 | #define Getsockname(s,n,l) getsockname(s,n,l) |
||
244 | #define Getpeername(s,n,l) getpeername(s,n,l) |
||
245 | #define Getsockopt(s,d,n,v,l) getsockopt(s,d,n,v,l) |
||
246 | #define Setsockopt(s,d,n,v,l) setsockopt(s,d,n,v,l) |
||
247 | #define Recv(s,b,l,f) recv(s,b,l,f) |
||
248 | #define Recvfrom(s,b,bl,f,fr,fl) recvfrom(s,b,bl,f,fr,fl) |
||
249 | #define Recvmsg(s,m,f) recvmsg(s,m,f) |
||
250 | #define Send(s,m,l,f) send(s,m,l,f) |
||
251 | #define Sendto(s,b,bl,f,t,tl) sendto(s,b,bl,f,t,tl) |
||
252 | #define Shutdown(f,h) shutdown(f,h) |
||
253 | #define Sleep(s) sleep(s) |
||
254 | #define Usleep(u) usleep(u) |
||
255 | #define Nanosleep(req,rem) nanosleep(req,rem) |
||
256 | #define Pause() pause() |
||
257 | #define Gethostbyname(n) gethostbyname(n) |
||
258 | #define Getaddrinfo(n,s,h,r) getaddrinfo(n,s,h,r) |
||
259 | #define Getipnodebyname(n,a,f,e) getipnodebyname(n,a,f,e) |
||
260 | #define Malloc(s) malloc(s) |
||
261 | #define Calloc(n,s) calloc(n,s) |
||
262 | #define Realloc(p,s) realloc(p,s) |
||
263 | #define Tcgetattr(f,t) tcgetattr(f,t) |
||
264 | #define Tcsetattr(f,o,t) tcsetattr(f,o,t) |
||
265 | #define Ttyname(f) ttyname(f) |
||
266 | #define Isatty(f) isatty(f) |
||
267 | #define Openpty(p,t,n,i,f) openpty(p,t,n,i,f) |
||
268 | #define Ptsname(f) ptsname(f) |
||
269 | #define Grantpt(f) grantpt(f) |
||
270 | #define Unlockpt(f) unlockpt(f) |
||
271 | #define Getpgid(p) getpgid(p) |
||
272 | #define Gethostname(n,l) gethostname(n,l) |
||
273 | #define Uname(b) uname(b) |
||
274 | #define Sigprocmask(h,s,o) sigprocmask(h,s,o) |
||
275 | #define Atexit(f) atexit(f) |
||
276 | #define Exit(s) exit(s) |
||
277 | #define Abort() abort() |
||
278 | #define Pthread_create(t,attr,s,arg) pthread_create(t,attr,s,arg) |
||
279 | #define Pthread_join(t,ptr) pthread_join(t,ptr) |
||
280 | #define Mkstemp(t) mkstemp(t) |
||
281 | #define Setenv(n,v,o) setenv(n,v,o) |
||
282 | #define Unsetenv(n) unsetenv(n) |
||
283 | |||
284 | #define Readline(p) readline(p) |
||
285 | #define Using_history() using_history() |
||
286 | #define Read_history(f) read_history(f) |
||
287 | #define Write_history(f) write_history(f) |
||
288 | #define Append_history(n,f) append_history(n,f) |
||
289 | #define Read_history(f) read_history(f) |
||
290 | #define Add_history(s) add_history(s) |
||
291 | |||
292 | #define Gzdopen(f,m) gzdopen(f,m) |
||
293 | #define Gzread(f,b,l) gzread(f,b,l) |
||
294 | #define Gzwrite(f,b,l) gzwrite(f,b,l) |
||
295 | #define Gzclose(f) gzclose(f) |
||
296 | |||
297 | #endif /* !WITH_SYCLS */ |
||
298 | |||
299 | #endif /* !defined(__sycls_h_included) */ |