syscall() declaration belongs in unistd.h, not sys/syscall.h
authorRich Felker <dalias@aerifal.cx>
Mon, 10 Dec 2012 21:40:45 +0000 (16:40 -0500)
committerRich Felker <dalias@aerifal.cx>
Mon, 10 Dec 2012 21:40:45 +0000 (16:40 -0500)
commitbaf246e559e915a78a9703e10d15020c7edee423
tree58aafc32093542e89e65eb73ebe3d73b6b321f07
parent34aa169dcfa0a2945504fb696dee29bdf989c125
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.
include/sys/syscall.h
include/unistd.h