1 | #ifndef SH_CALLS_H
|
---|
2 | #define SH_CALLS_H
|
---|
3 |
|
---|
4 | #define AUD_CHDIR (1UL << 0)
|
---|
5 | #define AUD_CHMOD (1UL << 1)
|
---|
6 | #define AUD_CHOWN (1UL << 2)
|
---|
7 | #define AUD_CREAT (1UL << 3)
|
---|
8 | #define AUD_DUP (1UL << 4)
|
---|
9 | #define AUD_EXEC (1UL << 5)
|
---|
10 | #define AUD_EXIT (1UL << 6)
|
---|
11 | #define AUD_FORK (1UL << 7)
|
---|
12 | #define AUD_KILL (1UL << 8)
|
---|
13 | #define AUD_LINK (1UL << 9)
|
---|
14 | #define AUD_MKDIR (1UL << 10)
|
---|
15 | #define AUD_MKFIFO (1UL << 11)
|
---|
16 | #define AUD_OPEN (1UL << 12)
|
---|
17 | #define AUD_PIPE (1UL << 13)
|
---|
18 | #define AUD_RENAME (1UL << 14)
|
---|
19 | #define AUD_RMDIR (1UL << 15)
|
---|
20 | #define AUD_SETGID (1UL << 16)
|
---|
21 | #define AUD_SETUID (1UL << 17)
|
---|
22 | #define AUD_UNLINK (1UL << 18)
|
---|
23 | #define AUD_UTIME (1UL << 19)
|
---|
24 |
|
---|
25 | #include <sys/types.h>
|
---|
26 | #include <sys/stat.h>
|
---|
27 | #include <sys/socket.h>
|
---|
28 | #include <signal.h>
|
---|
29 | #include <utime.h>
|
---|
30 |
|
---|
31 | /*@-fixedformalarray@*/
|
---|
32 |
|
---|
33 | /* Set aud functions
|
---|
34 | */
|
---|
35 | int sh_aud_set_functions(const char * str_s);
|
---|
36 |
|
---|
37 |
|
---|
38 | long int retry_accept(char * file, int line,
|
---|
39 | int fd, struct sockaddr *serv_addr, int * addrlen);
|
---|
40 | long int retry_stat (char * file, int line,
|
---|
41 | const char *file_name, struct stat *buf);
|
---|
42 | long int retry_fstat(char * file, int line,
|
---|
43 | int filed, struct stat *buf);
|
---|
44 | long int retry_lstat(char * file, int line,
|
---|
45 | const char *file_name, struct stat *buf);
|
---|
46 | long int retry_fcntl(char * file, int line,
|
---|
47 | int fd, int cmd, long arg);
|
---|
48 |
|
---|
49 | long int retry_msleep (int sec, int millisec);
|
---|
50 |
|
---|
51 | long int retry_sigaction(char * file, int line,
|
---|
52 | int signum, const struct sigaction *act,
|
---|
53 | struct sigaction *oldact);
|
---|
54 |
|
---|
55 | int sh_calls_set_bind_addr (const char *);
|
---|
56 | long int retry_connect(char * file, int line,
|
---|
57 | int fd, struct sockaddr *serv_addr, int addrlen);
|
---|
58 |
|
---|
59 | long int retry_aud_dup2 (char * file, int line, int fd, int fd2);
|
---|
60 | long int retry_aud_execve (char * file, int line,
|
---|
61 | const char *dateiname, char * argv[],
|
---|
62 | char *envp[]);
|
---|
63 | long int retry_aud_dup (char * file, int line,
|
---|
64 | int fd);
|
---|
65 | long int retry_aud_chdir (char * file, int line,
|
---|
66 | const char *path);
|
---|
67 | long int retry_aud_unlink (char * file, int line,
|
---|
68 | char * path);
|
---|
69 | long int retry_aud_utime (char * file, int line,
|
---|
70 | char * path, struct utimbuf *buf);
|
---|
71 |
|
---|
72 | long int aud_open (char * file, int line, int privs,
|
---|
73 | const char *pathname, int flags, mode_t mode);
|
---|
74 | long int aud_open_noatime (char * file, int line, int privs,
|
---|
75 | const char *pathname, int flags, mode_t mode,
|
---|
76 | int * o_noatime);
|
---|
77 | /*@noreturn@*/
|
---|
78 | void aud_exit (char * file, int line, int fd);
|
---|
79 | /*@noreturn@*/
|
---|
80 | void aud__exit (char * file, int line, int fd);
|
---|
81 | pid_t aud_fork (char * file, int line);
|
---|
82 | int aud_pipe (char * file, int line, int modus[2]);
|
---|
83 | int aud_setuid (char * file, int line, uid_t uid);
|
---|
84 | int aud_setgid (char * file, int line, gid_t gid);
|
---|
85 | long int aud_kill (char * file, int line, pid_t pid, int sig);
|
---|
86 |
|
---|
87 | #endif
|
---|