summaryrefslogtreecommitdiff
path: root/include/unistd.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-12-10 16:40:45 -0500
committerRich Felker <dalias@aerifal.cx>2012-12-10 16:40:45 -0500
commitbaf246e559e915a78a9703e10d15020c7edee423 (patch)
tree58aafc32093542e89e65eb73ebe3d73b6b321f07 /include/unistd.h
parent34aa169dcfa0a2945504fb696dee29bdf989c125 (diff)
downloadmusl-baf246e559e915a78a9703e10d15020c7edee423.tar.gz
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/unistd.h')
-rw-r--r--include/unistd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 64a6b461..89015ad6 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -175,6 +175,7 @@ void setusershell(void);
void endusershell(void);
char *getusershell(void);
int acct(const char *);
+long syscall(long, ...);
#endif
#ifdef _GNU_SOURCE