summaryrefslogtreecommitdiff
path: root/libattr/syscalls.c
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2002-03-11 23:42:35 +0000
committerNathan Scott <nathans@sgi.com>2002-03-11 23:42:35 +0000
commit84233d472fbea2750199c9785a3b28a079551905 (patch)
tree57b9f873ecab86d2ea58d1f06a562d2ed5ae3b9e /libattr/syscalls.c
parent659175e0055fff18ebf5505ab1963dd00b8316a8 (diff)
downloadattr-84233d472fbea2750199c9785a3b28a079551905.tar.gz
man page and test script updates from Andreas. fix syscall numbering
a/ on sparc (fremovexattr was wrong) and b/ if arch doesn't have numbers defined yet, handle it cleanly (errno.h missing).
Diffstat (limited to 'libattr/syscalls.c')
-rw-r--r--libattr/syscalls.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libattr/syscalls.c b/libattr/syscalls.c
index 12af483..a151198 100644
--- a/libattr/syscalls.c
+++ b/libattr/syscalls.c
@@ -36,6 +36,7 @@
* indirection. This avoids the dependency on kernel sources.
*/
+#include <errno.h>
#include <unistd.h>
#if defined (__i386__)
@@ -65,7 +66,7 @@
# define __NR_flistxattr 180
# define __NR_removexattr 181
# define __NR_lremovexattr 182
-# define __NR_fremovexattr 183
+# define __NR_fremovexattr 186
#elif defined (__ia64__)
# define HAVE_XATTR_SYSCALLS 1
# define __NR_setxattr 1217