diff options
author | Nathan Scott <nathans@sgi.com> | 2002-03-20 00:47:15 +0000 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2002-03-20 00:47:15 +0000 |
commit | 528d56ba1450e615f60d38b264024d2de9f93e3f (patch) | |
tree | 3346d5cdbe4e55e1caeb90270b8c950c1664064d /libattr/syscalls.c | |
parent | 84233d472fbea2750199c9785a3b28a079551905 (diff) | |
download | attr-528d56ba1450e615f60d38b264024d2de9f93e3f.tar.gz |
add mips/mips64 syscall entries.
Diffstat (limited to 'libattr/syscalls.c')
-rw-r--r-- | libattr/syscalls.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/libattr/syscalls.c b/libattr/syscalls.c index a151198..6580617 100644 --- a/libattr/syscalls.c +++ b/libattr/syscalls.c @@ -138,6 +138,36 @@ # define __NR_removexattr (__NR_SYSCALL_BASE+235) # define __NR_lremovexattr (__NR_SYSCALL_BASE+236) # define __NR_fremovexattr (__NR_SYSCALL_BASE+237) +#elif defined (__mips64__) +# define HAVE_XATTR_SYSCALLS 1 +# define __NR_Linux 5000 +# define __NR_setxattr (__NR_Linux + 217) +# define __NR_lsetxattr (__NR_Linux + 218) +# define __NR_fsetxattr (__NR_Linux + 219) +# define __NR_getxattr (__NR_Linux + 220) +# define __NR_lgetxattr (__NR_Linux + 221) +# define __NR_fgetxattr (__NR_Linux + 222) +# define __NR_listxattr (__NR_Linux + 223) +# define __NR_llistxattr (__NR_Linux + 224) +# define __NR_flistxattr (__NR_Linux + 225) +# define __NR_removexattr (__NR_Linux + 226) +# define __NR_lremovexattr (__NR_Linux + 227) +# define __NR_fremovexattr (__NR_Linux + 228) +#elif defined (__mips__) +# define HAVE_XATTR_SYSCALLS 1 +# define __NR_Linux 4000 +# define __NR_setxattr (__NR_Linux + 224) +# define __NR_lsetxattr (__NR_Linux + 225) +# define __NR_fsetxattr (__NR_Linux + 226) +# define __NR_getxattr (__NR_Linux + 227) +# define __NR_lgetxattr (__NR_Linux + 228) +# define __NR_fgetxattr (__NR_Linux + 229) +# define __NR_listxattr (__NR_Linux + 230) +# define __NR_llistxattr (__NR_Linux + 231) +# define __NR_flistxattr (__NR_Linux + 232) +# define __NR_removexattr (__NR_Linux + 233) +# define __NR_lremovexattr (__NR_Linux + 234) +# define __NR_fremovexattr (__NR_Linux + 235) #else # warning "Extended attribute syscalls undefined for this architecture" # define HAVE_XATTR_SYSCALLS 0 |