Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/linux Add *xattr functions (they all return EOPNO...



details:   https://anonhg.NetBSD.org/src/rev/74ea1e919699
branches:  trunk
changeset: 580939:74ea1e919699
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Mon May 16 16:02:19 2005 +0000

description:
Add *xattr functions (they all return EOPNOTSUPP).

diffstat:

 sys/compat/linux/arch/alpha/syscalls.master   |   35 +++++---
 sys/compat/linux/arch/amd64/syscalls.master   |   35 +++++---
 sys/compat/linux/arch/arm/syscalls.master     |   35 +++++---
 sys/compat/linux/arch/i386/syscalls.master    |   36 +++++---
 sys/compat/linux/arch/m68k/syscalls.master    |   35 +++++---
 sys/compat/linux/arch/mips/syscalls.master    |   35 +++++---
 sys/compat/linux/arch/powerpc/syscalls.master |   35 +++++---
 sys/compat/linux/common/linux_file.c          |  112 +++++++++++++++++++++++++-
 8 files changed, 265 insertions(+), 93 deletions(-)

diffs (truncated from 472 to 300 lines):

diff -r f67b12f249f3 -r 74ea1e919699 sys/compat/linux/arch/alpha/syscalls.master
--- a/sys/compat/linux/arch/alpha/syscalls.master       Mon May 16 16:00:31 2005 +0000
+++ b/sys/compat/linux/arch/alpha/syscalls.master       Mon May 16 16:02:19 2005 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.49 2005/02/26 23:10:19 perry Exp $
+       $NetBSD: syscalls.master,v 1.50 2005/05/16 16:02:19 fvdl Exp $
 ;
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -608,18 +608,27 @@
 379    UNIMPL          readahead
 380    UNIMPL          /* unused */
 381    UNIMPL          tkill
-382    UNIMPL          setxattr
-383    UNIMPL          lsetxattr
-384    UNIMPL          fsetxattr
-385    UNIMPL          getxattr
-386    UNIMPL          lgetxattr
-387    UNIMPL          fgetxattr
-388    UNIMPL          listxattr
-389    UNIMPL          llistxattr
-390    UNIMPL          flistxattr
-391    UNIMPL          removexattr
-392    UNIMPL          lremovexattr
-393    UNIMPL          fremovexattr
+382    STD             { int linux_sys_setxattr(char *path, char *name, \
+                           void *value, size_t size, int flags); }
+383    STD             { int linux_sys_lsetxattr(char *path, char *name, \
+                           void *value, size_t size, int flags); }
+384    STD             { int linux_sys_fsetxattr(int fd, char *name, \
+                           void *value, size_t size, int flags); }
+385    STD             { ssize_t linux_sys_getxattr(char *path, char *name, \
+                           void *value, size_t size); }
+386    STD             { ssize_t linux_sys_lgetxattr(char *path, char *name, \
+                           void *value, size_t size); }
+387    STD             { ssize_t linux_sys_fgetxattr(int fd, char *name, \
+                           void *value, size_t size); }
+388    STD             { ssize_t linux_sys_listxattr(char *path, char *list, \
+                           size_t size); }
+389    STD             { ssize_t linux_sys_llistxattr(char *path, char *list, \
+                           size_t size); }
+390    STD             { ssize_t linux_sys_flistxattr(int fd, char *list, \
+                           size_t size); }
+391    STD             { int linux_sys_removexattr(char *path, char *name); }
+392    STD             { int linux_sys_lremovexattr(char *path, char *name); }
+393    STD             { int linux_sys_fremovexattr(int fd, char *name); }
 394    UNIMPL          futex
 395    UNIMPL          sched_setaffinity
 396    UNIMPL          sched_getaffinity
diff -r f67b12f249f3 -r 74ea1e919699 sys/compat/linux/arch/amd64/syscalls.master
--- a/sys/compat/linux/arch/amd64/syscalls.master       Mon May 16 16:00:31 2005 +0000
+++ b/sys/compat/linux/arch/amd64/syscalls.master       Mon May 16 16:02:19 2005 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.1 2005/05/03 16:26:30 manu Exp $
+       $NetBSD: syscalls.master,v 1.2 2005/05/16 16:02:20 fvdl Exp $
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -326,18 +326,27 @@
 185    UNIMPL          security
 186    UNIMPL          gettid
 187    UNIMPL          readahead
-188    UNIMPL          setxattr
-189    UNIMPL          lsetxattr
-190    UNIMPL          fsetxattr
-191    UNIMPL          getxattr
-192    UNIMPL          lgetxattr
-193    UNIMPL          fgetxattr
-194    UNIMPL          listxattr
-195    UNIMPL          llistxattr
-196    UNIMPL          flistxattr
-197    UNIMPL          removexattr
-198    UNIMPL          lremovexattr
-199    UNIMPL          fremovexattr
+188    STD             { int linux_sys_setxattr(char *path, char *name, \
+                           void *value, size_t size, int flags); }
+189    STD             { int linux_sys_lsetxattr(char *path, char *name, \
+                           void *value, size_t size, int flags); }
+190    STD             { int linux_sys_fsetxattr(int fd, char *name, \
+                           void *value, size_t size, int flags); }
+191    STD             { ssize_t linux_sys_getxattr(char *path, char *name, \
+                           void *value, size_t size); }
+192    STD             { ssize_t linux_sys_lgetxattr(char *path, char *name, \
+                           void *value, size_t size); }
+193    STD             { ssize_t linux_sys_fgetxattr(int fd, char *name, \
+                           void *value, size_t size); }
+194    STD             { ssize_t linux_sys_listxattr(char *path, char *list, \
+                           size_t size); }
+195    STD             { ssize_t linux_sys_llistxattr(char *path, char *list, \
+                           size_t size); }
+196    STD             { ssize_t linux_sys_flistxattr(int fd, char *list, \
+                           size_t size); }
+197    STD             { int linux_sys_removexattr(char *path, char *name); }
+198    STD             { int linux_sys_lremovexattr(char *path, char *name); }
+199    STD             { int linux_sys_fremovexattr(int fd, char *name); }
 200    UNIMPL          tkill
 201    STD             { int linux_sys_time(linux_time_t *t); }
 202    UNIMPL          futex
diff -r f67b12f249f3 -r 74ea1e919699 sys/compat/linux/arch/arm/syscalls.master
--- a/sys/compat/linux/arch/arm/syscalls.master Mon May 16 16:00:31 2005 +0000
+++ b/sys/compat/linux/arch/arm/syscalls.master Mon May 16 16:02:19 2005 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.20 2005/02/26 23:10:19 perry Exp $
+       $NetBSD: syscalls.master,v 1.21 2005/05/16 16:02:20 fvdl Exp $
 
 ; Derived from sys/compat/linux/arch/*/syscalls.master
 ; and from Linux 2.4.12 arch/arm/kernel/calls.S
@@ -380,18 +380,27 @@
 223    UNIMPL          /* unused */
 224    UNIMPL          gettid
 225    UNIMPL          readahead
-226    UNIMPL          setxattr
-227    UNIMPL          lsetxattr
-228    UNIMPL          fsetxattr
-229    UNIMPL          getxattr
-230    UNIMPL          lgetxattr
-231    UNIMPL          fgetxattr
-232    UNIMPL          listxattr
-233    UNIMPL          llistxattr
-234    UNIMPL          flistxattr
-235    UNIMPL          removexattr
-236    UNIMPL          lremovexattr
-237    UNIMPL          fremovexattr
+226    STD             { int linux_sys_setxattr(char *path, char *name, \
+                           void *value, size_t size, int flags); }
+227    STD             { int linux_sys_lsetxattr(char *path, char *name, \
+                           void *value, size_t size, int flags); }
+228    STD             { int linux_sys_fsetxattr(int fd, char *name, \
+                           void *value, size_t size, int flags); }
+229    STD             { ssize_t linux_sys_getxattr(char *path, char *name, \
+                           void *value, size_t size); }
+230    STD             { ssize_t linux_sys_lgetxattr(char *path, char *name, \
+                           void *value, size_t size); }
+231    STD             { ssize_t linux_sys_fgetxattr(int fd, char *name, \
+                           void *value, size_t size); }
+232    STD             { ssize_t linux_sys_listxattr(char *path, char *list, \
+                           size_t size); }
+233    STD             { ssize_t linux_sys_llistxattr(char *path, char *list, \
+                           size_t size); }
+234    STD             { ssize_t linux_sys_flistxattr(int fd, char *list, \
+                           size_t size); }
+235    STD             { int linux_sys_removexattr(char *path, char *name); }
+236    STD             { int linux_sys_lremovexattr(char *path, char *name); }
+237    STD             { int linux_sys_fremovexattr(int fd, char *name); }
 238    UNIMPL          tkill
 239    UNIMPL          sendfile64
 240    UNIMPL          futex
diff -r f67b12f249f3 -r 74ea1e919699 sys/compat/linux/arch/i386/syscalls.master
--- a/sys/compat/linux/arch/i386/syscalls.master        Mon May 16 16:00:31 2005 +0000
+++ b/sys/compat/linux/arch/i386/syscalls.master        Mon May 16 16:02:19 2005 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.71 2004/09/20 18:41:07 jdolecek Exp $
+       $NetBSD: syscalls.master,v 1.72 2005/05/16 16:02:20 fvdl Exp $
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -374,18 +374,28 @@
 223    UNIMPL          /* unused */
 224    UNIMPL          gettid
 225    UNIMPL          readahead
-226    UNIMPL          setxattr
-227    UNIMPL          lsetxattr
-228    UNIMPL          fsetxattr
-229    UNIMPL          getxattr
-230    UNIMPL          lgetxattr
-231    UNIMPL          fgetxattr
-232    UNIMPL          listxattr
-233    UNIMPL          llistxattr
-234    UNIMPL          flistxattr
-235    UNIMPL          removexattr
-236    UNIMPL          lremovexattr
-237    UNIMPL          fremovexattr
+
+226    STD             { int linux_sys_setxattr(char *path, char *name, \
+                           void *value, size_t size, int flags); }
+227    STD             { int linux_sys_lsetxattr(char *path, char *name, \
+                           void *value, size_t size, int flags); }
+228    STD             { int linux_sys_fsetxattr(int fd, char *name, \
+                           void *value, size_t size, int flags); }
+229    STD             { ssize_t linux_sys_getxattr(char *path, char *name, \
+                           void *value, size_t size); }
+230    STD             { ssize_t linux_sys_lgetxattr(char *path, char *name, \
+                           void *value, size_t size); }
+231    STD             { ssize_t linux_sys_fgetxattr(int fd, char *name, \
+                           void *value, size_t size); }
+232    STD             { ssize_t linux_sys_listxattr(char *path, char *list, \
+                           size_t size); }
+233    STD             { ssize_t linux_sys_llistxattr(char *path, char *list, \
+                           size_t size); }
+234    STD             { ssize_t linux_sys_flistxattr(int fd, char *list, \
+                           size_t size); }
+235    STD             { int linux_sys_removexattr(char *path, char *name); }
+236    STD             { int linux_sys_lremovexattr(char *path, char *name); }
+237    STD             { int linux_sys_fremovexattr(int fd, char *name); }
 238    UNIMPL          tkill
 239    UNIMPL          sendfile64
 240    UNIMPL          futex
diff -r f67b12f249f3 -r 74ea1e919699 sys/compat/linux/arch/m68k/syscalls.master
--- a/sys/compat/linux/arch/m68k/syscalls.master        Mon May 16 16:00:31 2005 +0000
+++ b/sys/compat/linux/arch/m68k/syscalls.master        Mon May 16 16:02:19 2005 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.44 2004/08/01 15:34:22 jdolecek Exp $
+       $NetBSD: syscalls.master,v 1.45 2005/05/16 16:02:20 fvdl Exp $
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -384,16 +384,25 @@
                            struct linux_dirent64 *dent, unsigned int count); }
 221    UNIMPL          gettid
 222    UNIMPL          tkill
-223    UNIMPL          setxattr
-224    UNIMPL          lsetxattr
-225    UNIMPL          fsetxattr
-226    UNIMPL          getxattr
-227    UNIMPL          lgetxattr
-228    UNIMPL          fgetxattr
-229    UNIMPL          listxattr
-230    UNIMPL          llistxattr
-231    UNIMPL          flistxattr
-232    UNIMPL          removexattr
-233    UNIMPL          lremovexattr
-234    UNIMPL          fremovexattr
+223    STD             { int linux_sys_setxattr(char *path, char *name, \
+                           void *value, size_t size, int flags); }
+224    STD             { int linux_sys_lsetxattr(char *path, char *name, \
+                           void *value, size_t size, int flags); }
+225    STD             { int linux_sys_fsetxattr(int fd, char *name, \
+                           void *value, size_t size, int flags); }
+226    STD             { ssize_t linux_sys_getxattr(char *path, char *name, \
+                           void *value, size_t size); }
+227    STD             { ssize_t linux_sys_lgetxattr(char *path, char *name, \
+                           void *value, size_t size); }
+228    STD             { ssize_t linux_sys_fgetxattr(int fd, char *name, \
+                           void *value, size_t size); }
+229    STD             { ssize_t linux_sys_listxattr(char *path, char *list, \
+                           size_t size); }
+230    STD             { ssize_t linux_sys_llistxattr(char *path, char *list, \
+                           size_t size); }
+231    STD             { ssize_t linux_sys_flistxattr(int fd, char *list, \
+                           size_t size); }
+232    STD             { int linux_sys_removexattr(char *path, char *name); }
+233    STD             { int linux_sys_lremovexattr(char *path, char *name); }
+234    STD             { int linux_sys_fremovexattr(int fd, char *name); }
 235    UNIMPL          futex
diff -r f67b12f249f3 -r 74ea1e919699 sys/compat/linux/arch/mips/syscalls.master
--- a/sys/compat/linux/arch/mips/syscalls.master        Mon May 16 16:00:31 2005 +0000
+++ b/sys/compat/linux/arch/mips/syscalls.master        Mon May 16 16:02:19 2005 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.17 2005/02/26 23:10:19 perry Exp $
+       $NetBSD: syscalls.master,v 1.18 2005/05/16 16:02:20 fvdl Exp $
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -389,18 +389,27 @@
 221    UNIMPL          /* reserved */
 222    UNIMPL          gettid
 223    UNIMPL          readahead
-224    UNIMPL          setxattr
-225    UNIMPL          lsetxattr
-226    UNIMPL          fsetxattr
-227    UNIMPL          getxattr
-228    UNIMPL          lgetxattr
-229    UNIMPL          fgetxattr
-230    UNIMPL          listxattr
-231    UNIMPL          llistxattr
-232    UNIMPL          flistxattr
-233    UNIMPL          removexattr
-234    UNIMPL          lremovexattr
-235    UNIMPL          fremovexattr
+224    STD             { int linux_sys_setxattr(char *path, char *name, \
+                           void *value, size_t size, int flags); }
+225    STD             { int linux_sys_lsetxattr(char *path, char *name, \
+                           void *value, size_t size, int flags); }
+226    STD             { int linux_sys_fsetxattr(int fd, char *name, \
+                           void *value, size_t size, int flags); }
+227    STD             { ssize_t linux_sys_getxattr(char *path, char *name, \
+                           void *value, size_t size); }
+228    STD             { ssize_t linux_sys_lgetxattr(char *path, char *name, \
+                           void *value, size_t size); }
+229    STD             { ssize_t linux_sys_fgetxattr(int fd, char *name, \
+                           void *value, size_t size); }
+230    STD             { ssize_t linux_sys_listxattr(char *path, char *list, \
+                           size_t size); }
+231    STD             { ssize_t linux_sys_llistxattr(char *path, char *list, \
+                           size_t size); }
+232    STD             { ssize_t linux_sys_flistxattr(int fd, char *list, \
+                           size_t size); }
+233    STD             { int linux_sys_removexattr(char *path, char *name); }
+234    STD             { int linux_sys_lremovexattr(char *path, char *name); }
+235    STD             { int linux_sys_fremovexattr(int fd, char *name); }
 236    UNIMPL          tkill
 237    UNIMPL          sendfile64
 238    UNIMPL          futex
diff -r f67b12f249f3 -r 74ea1e919699 sys/compat/linux/arch/powerpc/syscalls.master
--- a/sys/compat/linux/arch/powerpc/syscalls.master     Mon May 16 16:00:31 2005 +0000
+++ b/sys/compat/linux/arch/powerpc/syscalls.master     Mon May 16 16:02:19 2005 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.21 2005/02/26 23:10:19 perry Exp $
+       $NetBSD: syscalls.master,v 1.22 2005/05/16 16:02:20 fvdl Exp $
 



Home | Main Index | Thread Index | Old Index