include cleanups: remove unused headers and add feature test macros

This commit is contained in:
Szabolcs Nagy 2013-12-12 05:09:18 +00:00
commit 571744447c
157 changed files with 68 additions and 207 deletions

View file

@ -1,3 +1,4 @@
#define _GNU_SOURCE
#include <unistd.h>
#include "syscall.h"

View file

@ -1,5 +1,3 @@
#define _GNU_SOURCE
#include <time.h>
#include <sys/timex.h>
#include "syscall.h"

View file

@ -1,3 +1,4 @@
#include <sys/klog.h>
#include "syscall.h"
int klogctl (int type, char *buf, int len)

View file

@ -1,3 +1,4 @@
#include <sys/personality.h>
#include "syscall.h"
#ifdef SYS_personality
int personality(unsigned long persona)

View file

@ -1,4 +1,4 @@
#include <unistd.h>
#define _GNU_SOURCE
#include <sys/resource.h>
#include "syscall.h"
#include "libc.h"
@ -8,4 +8,5 @@ int prlimit(pid_t pid, int resource, const struct rlimit *new_limit, struct rlim
return syscall(SYS_prlimit64, pid, resource, new_limit, old_limit);
}
#undef prlimit64
LFS64(prlimit);

View file

@ -1,4 +1,4 @@
#include <unistd.h>
#include <sys/sendfile.h>
#include "syscall.h"
#include "libc.h"

View file

@ -1,4 +1,4 @@
#include <unistd.h>
#include <sys/fsuid.h>
#include "syscall.h"
#include "libc.h"

View file

@ -1,4 +1,4 @@
#include <unistd.h>
#include <sys/fsuid.h>
#include "syscall.h"
#include "libc.h"

View file

@ -1,3 +1,4 @@
#define _GNU_SOURCE
#include <unistd.h>
#include "syscall.h"

View file

@ -1,3 +1,4 @@
#define _GNU_SOURCE
#include <unistd.h>
#include "syscall.h"

View file

@ -1,7 +1,6 @@
#define _GNU_SOURCE
#include <sched.h>
#include "syscall.h"
#include "libc.h"
int setns(int fd, int nstype)
{

View file

@ -1,4 +1,5 @@
#define _GNU_SOURCE
#include <time.h>
#include <sys/time.h>
int stime(time_t *t)

View file

@ -1,7 +1,6 @@
#include <sys/sysinfo.h>
#include "syscall.h"
struct sysinfo;
int sysinfo(struct sysinfo *info)
{
return syscall(SYS_sysinfo, info);

View file

@ -1,7 +1,6 @@
#define _GNU_SOURCE
#include <sys/wait.h>
#include <sys/resource.h>
#include <string.h>
#include "syscall.h"
pid_t wait4(pid_t pid, int *status, int options, struct rusage *usage)