summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
34aa169)
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.
#ifndef _SYS_SYSCALL_H
#define _SYS_SYSCALL_H
#ifndef _SYS_SYSCALL_H
#define _SYS_SYSCALL_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <features.h>
-
-long syscall(long, ...);
#include <bits/syscall.h>
#include <bits/syscall.h>
-#ifdef __cplusplus
-}
-#endif
void endusershell(void);
char *getusershell(void);
int acct(const char *);
void endusershell(void);
char *getusershell(void);
int acct(const char *);
+long syscall(long, ...);
#endif
#ifdef _GNU_SOURCE
#endif
#ifdef _GNU_SOURCE