diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-12-10 16:40:45 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-12-10 16:40:45 -0500 |
commit | baf246e559e915a78a9703e10d15020c7edee423 (patch) | |
tree | 58aafc32093542e89e65eb73ebe3d73b6b321f07 /include/sys/syscall.h | |
parent | 34aa169dcfa0a2945504fb696dee29bdf989c125 (diff) | |
download | musl-baf246e559e915a78a9703e10d15020c7edee423.tar.gz musl-baf246e559e915a78a9703e10d15020c7edee423.tar.bz2 musl-baf246e559e915a78a9703e10d15020c7edee423.tar.xz musl-baf246e559e915a78a9703e10d15020c7edee423.zip |
syscall() declaration belongs in unistd.h, not sys/syscall.h
traditionally, both BSD and GNU systems have it this way.
sys/syscall.h is purely syscall number macros. presently glibc exposes
the syscall declaration in unistd.h only with _GNU_SOURCE, but that
does not reflect historical practice.
Diffstat (limited to 'include/sys/syscall.h')
-rw-r--r-- | include/sys/syscall.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/sys/syscall.h b/include/sys/syscall.h index af3ca466..24987ddf 100644 --- a/include/sys/syscall.h +++ b/include/sys/syscall.h @@ -1,16 +1,6 @@ #ifndef _SYS_SYSCALL_H #define _SYS_SYSCALL_H -#ifdef __cplusplus -extern "C" { -#endif - -#include <features.h> - -long syscall(long, ...); #include <bits/syscall.h> -#ifdef __cplusplus -} -#endif #endif |