mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:17:35 +00:00
LibC+LibDl: Declare functions taking no arguments as taking void
In C++, a function declaration with an empty parameter list means that the function takes no arguments. In C, however, it means that the function takes an unspecified number of parameters. What we did previously was therefore non-conforming. This caused a config check to fail in the curl port, as it was able to redeclare `rand` as taking an int parameter.
This commit is contained in:
parent
a221596614
commit
b9c753f6f9
16 changed files with 56 additions and 56 deletions
|
@ -32,13 +32,13 @@ extern char** environ;
|
|||
|
||||
int get_process_name(char* buffer, int buffer_size);
|
||||
int set_process_name(const char* name, size_t name_length);
|
||||
void dump_backtrace();
|
||||
void dump_backtrace(void);
|
||||
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 execve(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 execle(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);
|
||||
pid_t getsid(pid_t);
|
||||
pid_t setsid();
|
||||
pid_t setsid(void);
|
||||
int setpgid(pid_t pid, pid_t pgid);
|
||||
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 getresgid(gid_t*, gid_t*, gid_t*);
|
||||
int getgroups(int size, gid_t list[]);
|
||||
|
@ -103,7 +103,7 @@ int isatty(int fd);
|
|||
int mknod(const char* pathname, mode_t, dev_t);
|
||||
long fpathconf(int fd, 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 chown(const char* pathname, 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 unveil(const char* path, const char* permissions);
|
||||
char* getpass(const char* prompt);
|
||||
int pause();
|
||||
int pause(void);
|
||||
int chroot(const char*);
|
||||
|
||||
enum {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue