Skip to contentSkip to conversation

Extended attributes syscalls for powerpc

PATCH New Ethan Benson 1 participant 1 message Feb 1, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Extended attributes syscalls for powerpc

Hi Paul,

Linus has merged the Extended attributes API from Andreas Gruenbacher and Nathan Scott (SGI) into 2.5.3, and added the i386 syscalls.

By request of Nathan I have created the attached patch to add the syscalls to the powerpc arch.

This patch allocates syscalls 208-219, if you have no problems with this allocation could you merge this patch with the powerpc 2.5 kernel tree? The sooner this can happen the better as Nathan is working on getting the userspace utilities fixed to use the official API and official syscall numbers, therefore we need the powerpc syscall numbers reserved ASAP so the userspace utilities can support the powerpc architecture.

TIA

This patch, and a version against the Linus 2.5.3 tree is also available at:

http://penguinppc.org/~eb/files/ppc-xattr-syscalls-linus.diff (Linus tree)
http://penguinppc.org/~eb/files/ppc-xattr-syscalls.diff (linuxppc_2_5 tree)

arch/ppc/kernel/misc.S +12 -0
diff -urN linux-2.5.3-ppc.orig/arch/ppc/kernel/misc.S linux-2.5.3-ppc/arch/ppc/kernel/misc.S
@@ -1230,6 +1230,18 @@
 	.long sys_madvise	/* 205 */
 	.long sys_mincore
 	.long sys_gettid
+	.long sys_setxattr
+	.long sys_lsetxattr
+	.long sys_fsetxattr	/* 210 */
+	.long sys_getxattr
+	.long sys_lgetxattr
+	.long sys_fgetxattr
+	.long sys_listxattr
+	.long sys_llistxattr	/* 215 */
+	.long sys_flistxattr
+	.long sys_removexattr
+	.long sys_lremovexattr
+	.long sys_fremovexattr
 	.rept NR_syscalls-(.-sys_call_table)/4
 		.long sys_ni_syscall
 	.endr
include/asm-ppc/unistd.h +12 -0
diff -urN linux-2.5.3-ppc.orig/include/asm-ppc/unistd.h linux-2.5.3-ppc/include/asm-ppc/unistd.h
@@ -215,6 +215,18 @@
 #define __NR_madvise		205
 #define __NR_mincore		206
 #define __NR_gettid		207
+#define __NR_setxattr		208
+#define __NR_lsetxattr		209
+#define __NR_fsetxattr		210
+#define __NR_getxattr		211
+#define __NR_lgetxattr		212
+#define __NR_fgetxattr		213
+#define __NR_listxattr		214
+#define __NR_llistxattr		215
+#define __NR_flistxattr		216
+#define __NR_removexattr	217
+#define __NR_lremovexattr	218
+#define __NR_fremovexattr	219
 
 #define __NR(n)	#n
 

--
Ethan Benson
http://www.alaska.net/~erbenson/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/