diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-03-20 00:16:43 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-03-20 00:16:43 -0400 |
commit | aa398f56fa398f2202b04e82c67f822f3233786f (patch) | |
tree | 7833c046c55b3d2b67c66433bacfa429a650d310 /src/internal | |
parent | be82e122bf37fdcd1766d1ed220f0300b30ab6a3 (diff) | |
download | musl-aa398f56fa398f2202b04e82c67f822f3233786f.tar.gz musl-aa398f56fa398f2202b04e82c67f822f3233786f.tar.bz2 musl-aa398f56fa398f2202b04e82c67f822f3233786f.tar.xz musl-aa398f56fa398f2202b04e82c67f822f3233786f.zip |
global cleanup to use the new syscall interface
Diffstat (limited to 'src/internal')
-rw-r--r-- | src/internal/syscall.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/internal/syscall.h b/src/internal/syscall.h index 819aafe6..39efc42d 100644 --- a/src/internal/syscall.h +++ b/src/internal/syscall.h @@ -5,28 +5,6 @@ #include <sys/syscall.h> -#define syscall0 syscall -#define syscall1 syscall -#define syscall2 syscall -#define syscall3 syscall -#define syscall4 syscall -#define syscall5 syscall -#define syscall6 syscall - #define socketcall __socketcall -/* the following are needed for iso c functions to use */ -#define __syscall_open(filename, flags, mode) syscall(__NR_open, (filename), (flags)|0100000, (mode)) -#define __syscall_read(fd, buf, len) syscall(__NR_read, (fd), (buf), (len)) -#define __syscall_write(fd, buf, len) syscall(__NR_write, (fd), (buf), (len)) -#define __syscall_close(fd) syscall(__NR_close, (fd)) -#define __syscall_fcntl(fd, cmd, arg) syscall(__NR_fcntl, (fd), (cmd), (arg)) -#define __syscall_dup2(old, new) syscall(__NR_dup2, (old), (new)) -#define __syscall_unlink(path) syscall(__NR_unlink, (path)) -#define __syscall_getpid() syscall(__NR_getpid) -#define __syscall_kill(pid,sig) syscall(__NR_kill, (pid), (sig)) -#define __syscall_sigaction(sig,new,old) syscall(__NR_rt_sigaction, (sig), (new), (old), 8) -#define __syscall_ioctl(fd,ioc,arg) syscall(__NR_ioctl, (fd), (ioc), (arg)) -#define __syscall_exit(code) syscall(__NR_exit, code) - #endif |