[1] | 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 | */
|
---|
[22] | 35 | int sh_aud_set_functions(const char * str_s);
|
---|
[1] | 36 |
|
---|
[295] | 37 | #ifdef SH_IPVX_H
|
---|
| 38 | long int retry_accept(const char * file, int line,
|
---|
| 39 | int fd, struct sh_sockaddr *serv_addr, int * addrlen);
|
---|
| 40 | #endif
|
---|
[1] | 41 |
|
---|
[170] | 42 | long int retry_stat (const char * file, int line,
|
---|
[1] | 43 | const char *file_name, struct stat *buf);
|
---|
[170] | 44 | long int retry_fstat(const char * file, int line,
|
---|
[1] | 45 | int filed, struct stat *buf);
|
---|
[170] | 46 | long int retry_lstat(const char * file, int line,
|
---|
[1] | 47 | const char *file_name, struct stat *buf);
|
---|
[170] | 48 | long int retry_fcntl(const char * file, int line,
|
---|
[1] | 49 | int fd, int cmd, long arg);
|
---|
| 50 |
|
---|
| 51 | long int retry_msleep (int sec, int millisec);
|
---|
| 52 |
|
---|
[170] | 53 | long int retry_sigaction(const char * file, int line,
|
---|
[1] | 54 | int signum, const struct sigaction *act,
|
---|
| 55 | struct sigaction *oldact);
|
---|
| 56 |
|
---|
[20] | 57 | int sh_calls_set_bind_addr (const char *);
|
---|
[170] | 58 | long int retry_connect(const char * file, int line,
|
---|
[1] | 59 | int fd, struct sockaddr *serv_addr, int addrlen);
|
---|
| 60 |
|
---|
[170] | 61 | long int retry_aud_dup2 (const char * file, int line, int fd, int fd2);
|
---|
| 62 | long int retry_aud_execve (const char * file, int line,
|
---|
[1] | 63 | const char *dateiname, char * argv[],
|
---|
| 64 | char *envp[]);
|
---|
[170] | 65 | long int retry_aud_dup (const char * file, int line,
|
---|
[1] | 66 | int fd);
|
---|
[170] | 67 | long int retry_aud_chdir (const char * file, int line,
|
---|
[1] | 68 | const char *path);
|
---|
[170] | 69 | long int retry_aud_unlink (const char * file, int line,
|
---|
[1] | 70 | char * path);
|
---|
[170] | 71 | long int retry_aud_utime (const char * file, int line,
|
---|
[1] | 72 | char * path, struct utimbuf *buf);
|
---|
| 73 |
|
---|
[170] | 74 | long int aud_open (const char * file, int line, int privs,
|
---|
[1] | 75 | const char *pathname, int flags, mode_t mode);
|
---|
[170] | 76 | long int aud_open_noatime (const char * file, int line, int privs,
|
---|
[1] | 77 | const char *pathname, int flags, mode_t mode,
|
---|
| 78 | int * o_noatime);
|
---|
| 79 | /*@noreturn@*/
|
---|
[170] | 80 | void aud_exit (const char * file, int line, int fd);
|
---|
[1] | 81 | /*@noreturn@*/
|
---|
[170] | 82 | void aud__exit (const char * file, int line, int fd);
|
---|
| 83 | pid_t aud_fork (const char * file, int line);
|
---|
| 84 | int aud_pipe (const char * file, int line, int modus[2]);
|
---|
| 85 | int aud_setuid (const char * file, int line, uid_t uid);
|
---|
| 86 | int aud_setgid (const char * file, int line, gid_t gid);
|
---|
| 87 | long int aud_kill (const char * file, int line, pid_t pid, int sig);
|
---|
[1] | 88 |
|
---|
| 89 | #endif
|
---|