diff options
author | Andrew Gildfind <ajag@sgi.com> | 2001-03-29 06:25:56 +0000 |
---|---|---|
committer | Andrew Gildfind <ajag@sgi.com> | 2001-03-29 06:25:56 +0000 |
commit | 005302485dff27fd362343fbb7c330acf3bee01c (patch) | |
tree | eee895b08c7c2c3c752df812ca84069e9d717b61 | |
parent | b7630fddf40028ed56537d9d607e91573ded04af (diff) | |
download | attr-005302485dff27fd362343fbb7c330acf3bee01c.tar.gz |
change over to ia64 friendly syscall() instead of _syscall* macros
-rw-r--r-- | libattr/attr.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/libattr/attr.c b/libattr/attr.c index f06e772..4d0a7cb 100644 --- a/libattr/attr.c +++ b/libattr/attr.c @@ -33,9 +33,10 @@ #include <stdio.h> #include <errno.h> #include <stdlib.h> +#include <string.h> #include <sys/types.h> #include <asm/types.h> -#include <asm/unistd.h> +#include <unistd.h> #include <attributes.h> @@ -287,32 +288,27 @@ _attr_multif(attr_obj_t obj, int type, attr_multiop_t *multiops, int count, /* * attrctl(2) system call function definition. - * _syscall4 -> __syscall_return -> sets errno */ #if __i386__ # define HAVE_ACL_SYSCALL 1 -# ifndef __NR__attrctl -# define __NR__attrctl 250 +# ifndef SYS__attrctl +# define SYS__attrctl 250 # endif #elif __ia64__ # define HAVE_ACL_SYSCALL 1 -# ifndef __NR__attrctl -# define __NR__attrctl 1215 +# ifndef SYS__attrctl +# define SYS__attrctl 1215 # endif #else # define HAVE_ACL_SYSCALL 0 #endif -#if HAVE_ACL_SYSCALL -static _syscall4(int, _attrctl, long, obj, int, type, attr_op_t *, ops, int, count); -#endif - int attrctl(attr_obj_t obj, int type, attr_op_t *ops, int count) { #if HAVE_ACL_SYSCALL - return _attrctl(* (long *) &obj, type, ops, count); + return syscall(SYS__attrctl, * (long *) &obj, type, ops, count); #else fprintf(stderr, "libattr: attrctl system call not defined " "for this architecture\n"); |