From 005302485dff27fd362343fbb7c330acf3bee01c Mon Sep 17 00:00:00 2001 From: Andrew Gildfind Date: Thu, 29 Mar 2001 06:25:56 +0000 Subject: change over to ia64 friendly syscall() instead of _syscall* macros --- libattr/attr.c | 18 +++++++----------- 1 file 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 #include #include +#include #include #include -#include +#include #include @@ -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"); -- cgit v1.2.3