Skip to content

Commit

Permalink
Define syscall() in syscall.h
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Moskalchuk <dm@crystax.net>
  • Loading branch information
dmsck committed Jul 15, 2015
1 parent cfdc802 commit a643ff4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libc/include/sys/syscall.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,14 @@
#ifndef _SYS_SYSCALL_H_
#define _SYS_SYSCALL_H_

#include <sys/cdefs.h>
#include <asm/unistd.h> /* Linux kernel __NR_* names. */
#include <sys/glibc-syscalls.h> /* glibc-compatible SYS_* aliases. */

/* The syscall function itself is declared in <unistd.h>, not here. */
__BEGIN_DECLS

long syscall(long number, ...);

__END_DECLS

#endif /* _SYS_SYSCALL_H_ */

0 comments on commit a643ff4

Please sign in to comment.