|
@@ -32,13 +32,13 @@ extern char** environ;
|
|
|
|
|
|
int get_process_name(char* buffer, int buffer_size);
|
|
int get_process_name(char* buffer, int buffer_size);
|
|
int set_process_name(const char* name, size_t name_length);
|
|
int set_process_name(const char* name, size_t name_length);
|
|
-void dump_backtrace();
|
|
|
|
|
|
+void dump_backtrace(void);
|
|
int fsync(int fd);
|
|
int fsync(int fd);
|
|
-int sysbeep();
|
|
|
|
-int gettid();
|
|
|
|
-int getpagesize();
|
|
|
|
-pid_t fork();
|
|
|
|
-pid_t vfork();
|
|
|
|
|
|
+int sysbeep(void);
|
|
|
|
+int gettid(void);
|
|
|
|
+int getpagesize(void);
|
|
|
|
+pid_t fork(void);
|
|
|
|
+pid_t vfork(void);
|
|
int execv(const char* path, char* const argv[]);
|
|
int execv(const char* path, char* const argv[]);
|
|
int execve(const char* filename, char* const argv[], char* const envp[]);
|
|
int execve(const char* filename, char* const argv[], char* const envp[]);
|
|
int execvpe(const char* filename, char* const argv[], char* const envp[]);
|
|
int execvpe(const char* filename, char* const argv[], char* const envp[]);
|
|
@@ -46,19 +46,19 @@ int execvp(const char* filename, char* const argv[]);
|
|
int execl(const char* filename, const char* arg, ...);
|
|
int execl(const char* filename, const char* arg, ...);
|
|
int execle(const char* filename, const char* arg, ...);
|
|
int execle(const char* filename, const char* arg, ...);
|
|
int execlp(const char* filename, const char* arg, ...);
|
|
int execlp(const char* filename, const char* arg, ...);
|
|
-void sync();
|
|
|
|
|
|
+void sync(void);
|
|
__attribute__((noreturn)) void _exit(int status);
|
|
__attribute__((noreturn)) void _exit(int status);
|
|
pid_t getsid(pid_t);
|
|
pid_t getsid(pid_t);
|
|
-pid_t setsid();
|
|
|
|
|
|
+pid_t setsid(void);
|
|
int setpgid(pid_t pid, pid_t pgid);
|
|
int setpgid(pid_t pid, pid_t pgid);
|
|
pid_t getpgid(pid_t);
|
|
pid_t getpgid(pid_t);
|
|
-pid_t getpgrp();
|
|
|
|
-uid_t geteuid();
|
|
|
|
-gid_t getegid();
|
|
|
|
-uid_t getuid();
|
|
|
|
-gid_t getgid();
|
|
|
|
-pid_t getpid();
|
|
|
|
-pid_t getppid();
|
|
|
|
|
|
+pid_t getpgrp(void);
|
|
|
|
+uid_t geteuid(void);
|
|
|
|
+gid_t getegid(void);
|
|
|
|
+uid_t getuid(void);
|
|
|
|
+gid_t getgid(void);
|
|
|
|
+pid_t getpid(void);
|
|
|
|
+pid_t getppid(void);
|
|
int getresuid(uid_t*, uid_t*, uid_t*);
|
|
int getresuid(uid_t*, uid_t*, uid_t*);
|
|
int getresgid(gid_t*, gid_t*, gid_t*);
|
|
int getresgid(gid_t*, gid_t*, gid_t*);
|
|
int getgroups(int size, gid_t list[]);
|
|
int getgroups(int size, gid_t list[]);
|
|
@@ -103,7 +103,7 @@ int isatty(int fd);
|
|
int mknod(const char* pathname, mode_t, dev_t);
|
|
int mknod(const char* pathname, mode_t, dev_t);
|
|
long fpathconf(int fd, int name);
|
|
long fpathconf(int fd, int name);
|
|
long pathconf(const char* path, int name);
|
|
long pathconf(const char* path, int name);
|
|
-char* getlogin();
|
|
|
|
|
|
+char* getlogin(void);
|
|
int lchown(const char* pathname, uid_t uid, gid_t gid);
|
|
int lchown(const char* pathname, uid_t uid, gid_t gid);
|
|
int chown(const char* pathname, uid_t, gid_t);
|
|
int chown(const char* pathname, uid_t, gid_t);
|
|
int fchown(int fd, uid_t, gid_t);
|
|
int fchown(int fd, uid_t, gid_t);
|
|
@@ -115,7 +115,7 @@ int umount(const char* mountpoint);
|
|
int pledge(const char* promises, const char* execpromises);
|
|
int pledge(const char* promises, const char* execpromises);
|
|
int unveil(const char* path, const char* permissions);
|
|
int unveil(const char* path, const char* permissions);
|
|
char* getpass(const char* prompt);
|
|
char* getpass(const char* prompt);
|
|
-int pause();
|
|
|
|
|
|
+int pause(void);
|
|
int chroot(const char*);
|
|
int chroot(const char*);
|
|
|
|
|
|
enum {
|
|
enum {
|