|
@@ -4,15 +4,13 @@
|
|
# error "Never use <bits/syscalls.h> directly; include <sys/syscall.h> instead."
|
|
# error "Never use <bits/syscalls.h> directly; include <sys/syscall.h> instead."
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
+#include <errno.h>
|
|
|
|
+
|
|
/* This includes the `__NR_<name>' syscall numbers taken from the Linux kernel
|
|
/* This includes the `__NR_<name>' syscall numbers taken from the Linux kernel
|
|
* header files. It also defines the traditional `SYS_<name>' macros for older
|
|
* header files. It also defines the traditional `SYS_<name>' macros for older
|
|
* programs. */
|
|
* programs. */
|
|
#include <bits/sysnum.h>
|
|
#include <bits/sysnum.h>
|
|
|
|
|
|
-#ifndef __set_errno
|
|
|
|
-# define __set_errno(val) (*__errno_location ()) = (val)
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
/*
|
|
/*
|
|
Some of the sneaky macros in the code were taken from
|
|
Some of the sneaky macros in the code were taken from
|
|
glibc-2.2.5/sysdeps/unix/sysv/linux/i386/sysdep.h
|
|
glibc-2.2.5/sysdeps/unix/sysv/linux/i386/sysdep.h
|