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/i386 Update for 32 bit Linux uid/gid c...



details:   https://anonhg.NetBSD.org/src/rev/88364dbba4ba
branches:  trunk
changeset: 500764:88364dbba4ba
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Mon Dec 18 14:36:35 2000 +0000

description:
Update for 32 bit Linux uid/gid calls.

diffstat:

 sys/compat/linux/arch/i386/syscalls.master |  50 ++++++++++++++++-------------
 1 files changed, 27 insertions(+), 23 deletions(-)

diffs (121 lines):

diff -r 662668ffb35f -r 88364dbba4ba sys/compat/linux/arch/i386/syscalls.master
--- a/sys/compat/linux/arch/i386/syscalls.master        Mon Dec 18 11:37:08 2000 +0000
+++ b/sys/compat/linux/arch/i386/syscalls.master        Mon Dec 18 14:36:35 2000 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.50 2000/12/13 21:41:46 augustss Exp $
+       $NetBSD: syscalls.master,v 1.51 2000/12/18 14:36:35 fvdl Exp $
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -73,7 +73,7 @@
 14     STD             { int linux_sys_mknod(const char *path, int mode, \
                            int dev); }
 15     STD             { int linux_sys_chmod(const char *path, int mode); }
-16     STD             { int linux_sys_lchown(const char *path, \
+16     STD             { int linux_sys_lchown16(const char *path, \
                            int uid, int gid); }
 ;17 - no longer in linux source.
 17     STD             { int linux_sys_break(char *nsize); }
@@ -83,8 +83,8 @@
 20     NOARGS          { pid_t sys_getpid(void); }
 21     UNIMPL          mount
 22     UNIMPL          umount
-23     NOARGS          { int sys_setuid(uid_t uid); }
-24     NOARGS          { uid_t sys_getuid(void); }
+23     STD             { int linux_sys_setuid16(uid_t uid); }
+24     STD             { uid_t linux_sys_getuid16(void); }
 25     STD             { int linux_sys_stime(linux_time_t *t); }
 26     STD             { int linux_sys_ptrace(int request, int pid, \
                          int addr, int data); }
@@ -109,12 +109,12 @@
 43     STD             { int linux_sys_times(struct times *tms); }
 44     OBSOL           prof
 45     STD             { int linux_sys_brk(char *nsize); }
-46     NOARGS          { int sys_setgid(gid_t gid); }
-47     NOARGS          { gid_t sys_getgid(void); }
+46     STD             { int linux_sys_setgid16(gid_t gid); }
+47     STD             { gid_t linux_sys_getgid16(void); }
 48     STD             { int linux_sys_signal(int signum, \
                            linux_handler_t handler); }
-49     NOARGS          { uid_t sys_geteuid(void); }
-50     NOARGS          { gid_t sys_getegid(void); }
+49     NOARGS          { uid_t linux_sys_geteuid16(void); }
+50     NOARGS          { gid_t linux_sys_getegid16(void); }
 51     NOARGS          { int sys_acct(char *path); }
 52     OBSOL           phys
 53     OBSOL           lock
@@ -137,8 +137,8 @@
                            struct linux_old_sigaction *osa); }
 68     STD             { int linux_sys_siggetmask(void); }
 69     STD             { int linux_sys_sigsetmask(linux_old_sigset_t mask); }
-70     STD             { int linux_sys_setreuid(int ruid, int euid); }
-71     STD             { int linux_sys_setregid(int rgid, int egid); }
+70     STD             { int linux_sys_setreuid16(int ruid, int euid); }
+71     STD             { int linux_sys_setregid16(int rgid, int egid); }
 72     STD             { int linux_sys_sigsuspend(caddr_t restart, \
                            int oldmask, int mask); }
 73     STD             { int linux_sys_sigpending(linux_old_sigset_t *set); }
@@ -153,6 +153,7 @@
                            struct timezone *tzp); }
 79     NOARGS          { int sys_settimeofday(struct timeval *tp, \
                            struct timezone *tzp); }
+; XXX these work with 32 bit gids -- older Linux calls used 16.
 80     NOARGS          { int sys_getgroups(u_int gidsetsize, gid_t *gidset); }
 81     NOARGS          { int sys_setgroups(u_int gidsetsize, gid_t *gidset); }
 82     STD             { int linux_sys_oldselect(struct linux_oldselect *lsp); }
@@ -174,7 +175,7 @@
                            long length); }
 93     NOARGS          { int compat_43_sys_ftruncate(int fd, long length); }
 94     NOARGS          { int sys_fchmod(int fd, int mode); }
-95     STD             { int linux_sys_fchown(int fd, int uid, int gid); }
+95     STD             { int linux_sys_fchown16(int fd, int uid, int gid); }
 96     NOARGS          { int sys_getpriority(int which, int who); }
 97     NOARGS          { int sys_setpriority(int which, int who, int prio); }
 98     NOARGS          { int sys_profil(caddr_t samples, u_int size, \
@@ -305,7 +306,7 @@
                            size_t nbyte, linux_off_t offset); }
 181    STD             { int linux_sys_pwrite(int fd, char *buf, \
                            size_t nbyte, linux_off_t offset); }
-182    STD             { int linux_sys_chown(const char *path, int uid, \
+182    STD             { int linux_sys_chown16(const char *path, int uid, \
                            int gid); }
 183    NOARGS          { int sys___getcwd(char *bufp, size_t length); }
 184    UNIMPL          capget
@@ -328,23 +329,26 @@
                                struct linux_stat64 *sp); }
 197    STD             { int linux_sys_fstat64(int fd, \
                                struct linux_stat64 *sp); }
-198    UNIMPL          lchown
-199    UNIMPL          getuid
-200    UNIMPL          getgid
-201    UNIMPL          geteuid
-202    UNIMPL          getegid
-203    UNIMPL          getreuid
-204    UNIMPL          getregid
+198    NOARGS           { int sys___posix_lchown(const char *path, uid_t uid, \
+                               gid_t gid); }
+199    NOARGS          { uid_t sys_getuid(void); }
+200    NOARGS          { gid_t sys_getgid(void); }
+201    NOARGS          { uid_t sys_geteuid(void); }
+202    NOARGS          { gid_t sys_getegid(void); }
+203    NOARGS          { int sys_setreuid(uid_t ruid, uid_t euid); }
+204    NOARGS          { int sys_setregid(gid_t rgid, gid_t egid); }
 205    UNIMPL          getgroups
 206    UNIMPL          setgroups
-207    UNIMPL          fchown
+207    NOARGS          { int sys___posix_fchown(int fd, uid_t uid, \
+                               gid_t gid); }
 208    UNIMPL          setresuid
 209    UNIMPL          getresuid
 210    UNIMPL          setresgid
 211    UNIMPL          getresgid
-212    UNIMPL          chown
-213    UNIMPL          setuid
-214    UNIMPL          setgid
+212    NOARGS          { int sys___posix_chown(const char *path, uid_t uid, \
+                               gid_t gid); }
+213    NOARGS          { int sys_setuid(uid_t uid); }
+214    NOARGS          { int sys_setgid(gid_t gid); }
 215    UNIMPL          setfsuid
 216    UNIMPL          setfsgid
 217    UNIMPL          pivot_root



Home | Main Index | Thread Index | Old Index