remove standalone syscall cruft

this was originally written for an early draft of the library where
non-standard functions would reside in a static library separate from
the shared libc.so, which would implement a pure standard. the idea
was not to depend on an implementation-dependent __syscall_ret
function in the main libc. but it turned out to be better to put
everything in a single library for both static and dynamic linking
uses, and thus the (incomplete) remnants of this feature were just
enlarging the source and binary.
This commit is contained in:
Rich Felker
2011-02-15 14:39:02 -05:00
parent 44460c6d1e
commit 9b235e8374
12 changed files with 2 additions and 32 deletions

View File

@ -1,5 +1,4 @@
#include <unistd.h>
#define SYSCALL_STANDALONE
#include "syscall.h"
int chroot(const char *path)

View File

@ -1,4 +1,3 @@
#define SYSCALL_STANDALONE
#include "syscall.h"
int klogctl (int type, char *buf, int len)

View File

@ -1,5 +1,4 @@
#include <sys/mount.h>
#define SYSCALL_STANDALONE
#include "syscall.h"
int mount(const char *special, const char *dir, const char *fstype, unsigned long flags, const void *data)

View File

@ -1,5 +1,4 @@
#include <unistd.h>
#define SYSCALL_STANDALONE
#include "syscall.h"
int sethostname(const char *name, size_t len)

View File

@ -1,5 +1,4 @@
#include <sys/swap.h>
#define SYSCALL_STANDALONE
#include "syscall.h"
int swapoff(const char *path)

View File

@ -1,5 +1,4 @@
#include <sys/swap.h>
#define SYSCALL_STANDALONE
#include "syscall.h"
int swapon(const char *path, int flags)

View File

@ -1,4 +1,3 @@
#define SYSCALL_STANDALONE
#include "syscall.h"
struct sysinfo;

View File

@ -1,5 +1,4 @@
#include <sys/time.h>
#define SYSCALL_STANDALONE
#include "syscall.h"
int utimes(const char *path, const struct timeval times[2])

View File

@ -1,6 +1,5 @@
#include <sys/wait.h>
#include <sys/resource.h>
#define SYSCALL_STANDALONE
#include "syscall.h"
pid_t wait4(pid_t, int *, int, struct rusage *);

View File

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