Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/linux/arch Cleanup posix chown family syscalls to...



details:   https://anonhg.NetBSD.org/src/rev/7c7aa080eeaf
branches:  trunk
changeset: 341194:7c7aa080eeaf
user:      njoly <njoly%NetBSD.org@localhost>
date:      Sun Oct 25 15:55:05 2015 +0000

description:
Cleanup posix chown family syscalls to match native (alpha, mips and
powerpc).

diffstat:

 sys/compat/linux/arch/alpha/syscalls.master   |  11 +++++++----
 sys/compat/linux/arch/mips/syscalls.master    |  13 +++++++------
 sys/compat/linux/arch/powerpc/syscalls.master |  13 +++++++------
 3 files changed, 21 insertions(+), 16 deletions(-)

diffs (121 lines):

diff -r fadc712897b5 -r 7c7aa080eeaf sys/compat/linux/arch/alpha/syscalls.master
--- a/sys/compat/linux/arch/alpha/syscalls.master       Sun Oct 25 09:27:14 2015 +0000
+++ b/sys/compat/linux/arch/alpha/syscalls.master       Sun Oct 25 15:55:05 2015 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.89 2014/11/22 13:18:45 njoly Exp $
+       $NetBSD: syscalls.master,v 1.90 2015/10/25 15:55:05 njoly Exp $
 ;
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -101,7 +101,8 @@
 14     STD             { int|linux_sys||mknod(const char *path, linux_umode_t mode, \
                            unsigned dev); }
 15     NOARGS          { int|sys||chmod(const char *path, int mode); }
-16     NOARGS          { int|sys||__posix_chown(const char *path, int uid, int gid); }
+16     NOARGS          { int|sys||__posix_chown(const char *path, uid_t uid, \
+                           gid_t gid); }
 ;17    ALIAS           osf1_sys_brk
 17     STD             { int|linux_sys||brk(char *nsize); }
 18     UNIMPL
@@ -254,7 +255,8 @@
                                int iovcnt); }
 122    NODEF           { int|osf1_sys||settimeofday(struct osf1_timeval *tv, \
                            struct osf1_timezone *tzp); }
-123    NOARGS          { int|sys||__posix_fchown(int fd, int uid, int gid); }
+123    NOARGS          { int|sys||__posix_fchown(int fd, uid_t uid, \
+                           gid_t gid); }
 124    NOARGS          { int|sys||fchmod(int fd, linux_umode_t mode); }
 125    STD             { int|linux_sys||recvfrom(int s, void *buf, int len, \
                                int flags, struct osockaddr *from, \
@@ -380,7 +382,8 @@
 #endif
 ;207   ALIAS           osf1_sys_utsname
 207    STD             { int|linux_sys||olduname(struct linux_old_utsname *up); }
-208    NOARGS          { int|sys||__posix_lchown(const char *path, int uid, int gid); }
+208    NOARGS          { int|sys||__posix_lchown(const char *path, uid_t uid, \
+                           gid_t gid); }
 #ifdef SYSVSHM
 209    NOARGS          { int|linux_sys||shmat(int shmid, void *shmaddr, \
                            int shmflg, u_long *raddr); }
diff -r fadc712897b5 -r 7c7aa080eeaf sys/compat/linux/arch/mips/syscalls.master
--- a/sys/compat/linux/arch/mips/syscalls.master        Sun Oct 25 09:27:14 2015 +0000
+++ b/sys/compat/linux/arch/mips/syscalls.master        Sun Oct 25 15:55:05 2015 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.57 2014/11/22 13:18:45 njoly Exp $  
+       $NetBSD: syscalls.master,v 1.58 2015/10/25 15:55:05 njoly Exp $  
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -77,8 +77,8 @@
 14     STD             { int|linux_sys||mknod(const char *path, linux_umode_t mode, \
                            unsigned dev); }
 15     NOARGS          { int|sys||chmod(const char *path, int mode); }
-16     NOARGS          { int|sys||__posix_lchown(const char *path, int uid, \
-                           int gid); }
+16     NOARGS          { int|sys||__posix_lchown(const char *path, uid_t uid, \
+                           gid_t gid); }
 17     UNIMPL
 18     OBSOL           ostat
 19     NOARGS          { long|compat_43_sys||lseek(int fd, long offset, \
@@ -180,7 +180,8 @@
                            long length); }
 93     NOARGS          { int|compat_43_sys||ftruncate(int fd, long length); }
 94     NOARGS          { int|sys||fchmod(int fd, linux_umode_t mode); }
-95     NOARGS          { int|sys||__posix_fchown(int fd, int uid, int gid); }
+95     NOARGS          { int|sys||__posix_fchown(int fd, uid_t uid, \
+                           uid_t gid); }
 96     STD             { int|linux_sys||getpriority(int which, int who); }
 97     NOARGS          { int|sys||setpriority(int which, int who, int prio); }
 98     UNIMPL
@@ -354,8 +355,8 @@
                            size_t nbyte, off_t offset); }
 201    STD             { int|linux_sys||pwrite(int fd, char *buf, \
                            size_t nbyte, off_t offset); }
-202    NOARGS          { int|sys||__posix_chown(const char *path, \
-                           int uid, int gid); }
+202    NOARGS          { int|sys||__posix_chown(const char *path, uid_t uid, \
+                           gid_t gid); }
 203    NOARGS          { int|sys||__getcwd(char *bufp, size_t length); }
 204    UNIMPL          capget
 205    UNIMPL          capset
diff -r fadc712897b5 -r 7c7aa080eeaf sys/compat/linux/arch/powerpc/syscalls.master
--- a/sys/compat/linux/arch/powerpc/syscalls.master     Sun Oct 25 09:27:14 2015 +0000
+++ b/sys/compat/linux/arch/powerpc/syscalls.master     Sun Oct 25 15:55:05 2015 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.66 2014/11/22 13:18:45 njoly Exp $  
+       $NetBSD: syscalls.master,v 1.67 2015/10/25 15:55:05 njoly Exp $  
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -100,8 +100,8 @@
 14     STD             { int|linux_sys||mknod(const char *path, linux_umode_t mode, \
                            unsigned dev); }
 15     NOARGS          { int|sys||chmod(const char *path, int mode); }
-16     NOARGS          { int|sys||__posix_lchown(const char *path, int uid, \
-                           int gid); }
+16     NOARGS          { int|sys||__posix_lchown(const char *path, uid_t uid, \
+                           gid_t gid); }
 17     OBSOL           break
 18     OBSOL           ostat
 19     NOARGS          { long|compat_43_sys||lseek(int fd, long offset, \
@@ -208,7 +208,8 @@
                            long length); }
 93     NOARGS          { int|compat_43_sys||ftruncate(int fd, long length); }
 94     NOARGS          { int|sys||fchmod(int fd, linux_umode_t mode); }
-95     NOARGS          { int|sys||__posix_fchown(int fd, int uid, int gid); }
+95     NOARGS          { int|sys||__posix_fchown(int fd, uid_t uid, \
+                           uid_t gid); }
 96     STD             { int|linux_sys||getpriority(int which, int who); }
 97     NOARGS          { int|sys||setpriority(int which, int who, int prio); }
 98     NOARGS          { int|sys||profil(void *samples, u_int size, \
@@ -342,8 +343,8 @@
                            size_t nbyte, off_t offset); }
 180    STD             { int|linux_sys||pwrite(int fd, char *buf, \
                            size_t nbyte, off_t offset); }
-181    NOARGS          { int|sys||__posix_chown(const char *path, \
-                           int uid, int gid); }
+181    NOARGS          { int|sys||__posix_chown(const char *path, uid_t uid, \
+                           gid_t gid); }
 182    NOARGS          { int|sys||__getcwd(char *bufp, size_t length); }
 183    UNIMPL          capget
 184    UNIMPL          capset



Home | Main Index | Thread Index | Old Index