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
commit 9b235e8374
12 changed files with 2 additions and 32 deletions

View file

@ -7,17 +7,7 @@
#define SYSCALL_SIGSET_SIZE 8
#if defined(SYSCALL_STANDALONE)
#include <errno.h>
static inline long __syscall_ret(unsigned long r)
{
if (r >= (unsigned long)-1 - 4096) {
errno = -(long)r;
return -1;
}
return (long)r;
}
#elif defined(SYSCALL_NORETURN)
#if defined(SYSCALL_NORETURN)
static inline long __syscall_ret(unsigned long r)
{
for(;;);

View file

@ -4,17 +4,7 @@
#define SYSCALL_LL(x) x, 0
#define SYSCALL_SIGSET_SIZE 8
#if defined(SYSCALL_STANDALONE)
#include <errno.h>
static inline long __syscall_ret(unsigned long r)
{
if (r >= (unsigned long)-1 - 4096) {
errno = -(long)r;
return -1;
}
return (long)r;
}
#elif defined(SYSCALL_NORETURN)
#if defined(SYSCALL_NORETURN)
static inline long __syscall_ret(unsigned long r)
{
for(;;);