Source-Changes-HG archive

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

[src/trunk]: src/sys/compat Fix dup/dup2/dup3 argument types (u_int -> int).



details:   https://anonhg.NetBSD.org/src/rev/879c12f9fec4
branches:  trunk
changeset: 791184:879c12f9fec4
user:      njoly <njoly%NetBSD.org@localhost>
date:      Thu Nov 07 19:37:18 2013 +0000

description:
Fix dup/dup2/dup3 argument types (u_int -> int).

diffstat:

 sys/compat/freebsd/syscalls.master            |  6 +++---
 sys/compat/ibcs2/syscalls.master              |  4 ++--
 sys/compat/linux/arch/amd64/syscalls.master   |  6 +++---
 sys/compat/linux/arch/arm/syscalls.master     |  6 +++---
 sys/compat/linux/arch/i386/syscalls.master    |  9 ++++-----
 sys/compat/linux/arch/m68k/syscalls.master    |  6 +++---
 sys/compat/linux/arch/mips/syscalls.master    |  6 +++---
 sys/compat/linux/arch/powerpc/syscalls.master |  6 +++---
 sys/compat/linux32/arch/amd64/syscalls.master |  4 ++--
 sys/compat/osf1/syscalls.master               |  6 +++---
 sys/compat/sunos/syscalls.master              |  6 +++---
 sys/compat/sunos32/syscalls.master            |  6 +++---
 sys/compat/svr4/syscalls.master               |  4 ++--
 sys/compat/svr4_32/syscalls.master            |  4 ++--
 sys/compat/ultrix/syscalls.master             |  6 +++---
 15 files changed, 42 insertions(+), 43 deletions(-)

diffs (truncated from 372 to 300 lines):

diff -r b6bb00682570 -r 879c12f9fec4 sys/compat/freebsd/syscalls.master
--- a/sys/compat/freebsd/syscalls.master        Thu Nov 07 18:59:01 2013 +0000
+++ b/sys/compat/freebsd/syscalls.master        Thu Nov 07 19:37:18 2013 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.66 2012/03/10 21:51:57 joerg Exp $
+       $NetBSD: syscalls.master,v 1.67 2013/11/07 19:37:18 njoly Exp $
 
 ;      from: @(#)syscalls.master       8.2 (Berkeley) 1/13/94
 
@@ -112,7 +112,7 @@
 39     NOARGS          { pid_t|sys||getppid(void); }
 40     NOARGS          { int|compat_43_sys||lstat(const char *path, \
                            struct stat43 *ub); } lstat43
-41     NOARGS          { int|sys||dup(u_int fd); }
+41     NOARGS          { int|sys||dup(int fd); }
 42     NOARGS          { int|sys||pipe(void); }
 43     NOARGS          { gid_t|sys||getegid(void); }
 44     NOARGS          { int|sys||profil(void *samples, u_int size, \
@@ -186,7 +186,7 @@
                            u_int len); } osethostname
 89     NOARGS          { int|compat_43_sys||getdtablesize(void); } \
                            ogetdtablesize
-90     NOARGS          { int|sys||dup2(u_int from, u_int to); }
+90     NOARGS          { int|sys||dup2(int from, int to); }
 91     UNIMPL          getdopt
 92     NOARGS          { int|sys||fcntl(int fd, int cmd, void *arg); }
 93     NOARGS          { int|compat_50_sys||select(u_int nd, fd_set *in, \
diff -r b6bb00682570 -r 879c12f9fec4 sys/compat/ibcs2/syscalls.master
--- a/sys/compat/ibcs2/syscalls.master  Thu Nov 07 18:59:01 2013 +0000
+++ b/sys/compat/ibcs2/syscalls.master  Thu Nov 07 19:37:18 2013 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.40 2013/06/26 16:29:41 christos Exp $
+       $NetBSD: syscalls.master,v 1.41 2013/11/07 19:37:18 njoly Exp $
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -102,7 +102,7 @@
 39     STD             { int|ibcs2_sys||pgrpsys(int type, void *dummy, \
                            int pid, int pgid); }
 40     UNIMPL          ibcs2_xenix
-41     NOARGS          { int|sys||dup(u_int fd); }
+41     NOARGS          { int|sys||dup(int fd); }
 42     NOARGS          { int|sys||pipe(void); }
 43     STD             { int|ibcs2_sys||times(struct tms *tp); }
 44     UNIMPL          profil
diff -r b6bb00682570 -r 879c12f9fec4 sys/compat/linux/arch/amd64/syscalls.master
--- a/sys/compat/linux/arch/amd64/syscalls.master       Thu Nov 07 18:59:01 2013 +0000
+++ b/sys/compat/linux/arch/amd64/syscalls.master       Thu Nov 07 19:37:18 2013 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.43 2013/09/24 13:27:49 njoly Exp $
+       $NetBSD: syscalls.master,v 1.44 2013/11/07 19:37:18 njoly Exp $
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -127,8 +127,8 @@
 30     UNIMPL          shmat
 31     UNIMPL          shmctl
 #endif
-32     NOARGS          { int|sys||dup(u_int fd); }
-33     NOARGS          { int|sys||dup2(u_int from, u_int to); }
+32     NOARGS          { int|sys||dup(int fd); }
+33     NOARGS          { int|sys||dup2(int from, int to); }
 34     STD             { int|linux_sys||pause(void); }
 35     STD             { int|linux_sys||nanosleep( \
                            const struct linux_timespec *rqtp, \
diff -r b6bb00682570 -r 879c12f9fec4 sys/compat/linux/arch/arm/syscalls.master
--- a/sys/compat/linux/arch/arm/syscalls.master Thu Nov 07 18:59:01 2013 +0000
+++ b/sys/compat/linux/arch/arm/syscalls.master Thu Nov 07 19:37:18 2013 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.51 2013/09/24 13:27:49 njoly Exp $
+       $NetBSD: syscalls.master,v 1.52 2013/11/07 19:37:18 njoly Exp $
 
 ; Derived from sys/compat/linux/arch/*/syscalls.master
 ; and from Linux 2.4.12 arch/arm/kernel/calls.S
@@ -103,7 +103,7 @@
                            const char *to); }
 39     NOARGS          { int|sys||mkdir(const char *path, int mode); }
 40     NOARGS          { int|sys||rmdir(const char *path); }
-41     NOARGS          { int|sys||dup(u_int fd); }
+41     NOARGS          { int|sys||dup(int fd); }
 42     STD             { int|linux_sys||pipe(int *pfds); }
 43     STD             { int|linux_sys||times(struct times *tms); }
 44     OBSOL           prof
@@ -128,7 +128,7 @@
 60     NOARGS          { int|sys||umask(int newmask); }
 61     NOARGS          { int|sys||chroot(char *path); }
 62     UNIMPL          ustat
-63     NOARGS          { int|sys||dup2(u_int from, u_int to); }
+63     NOARGS          { int|sys||dup2(int from, int to); }
 64     NOARGS          { pid_t|sys||getppid(void); }
 65     NOARGS          { int|sys||getpgrp(void); }
 66     NOARGS          { int|sys||setsid(void); }
diff -r b6bb00682570 -r 879c12f9fec4 sys/compat/linux/arch/i386/syscalls.master
--- a/sys/compat/linux/arch/i386/syscalls.master        Thu Nov 07 18:59:01 2013 +0000
+++ b/sys/compat/linux/arch/i386/syscalls.master        Thu Nov 07 19:37:18 2013 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.110 2013/09/24 13:27:49 njoly Exp $
+       $NetBSD: syscalls.master,v 1.111 2013/11/07 19:37:18 njoly Exp $
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -103,7 +103,7 @@
                            const char *to); }
 39     NOARGS          { int|sys||mkdir(const char *path, int mode); }
 40     NOARGS          { int|sys||rmdir(const char *path); }
-41     NOARGS          { int|sys||dup(u_int fd); }
+41     NOARGS          { int|sys||dup(int fd); }
 42     STD             { int|linux_sys||pipe(int *pfds); }
 43     STD             { int|linux_sys||times(struct times *tms); }
 44     OBSOL           prof
@@ -128,7 +128,7 @@
 60     NOARGS          { int|sys||umask(int newmask); }
 61     NOARGS          { int|sys||chroot(char *path); }
 62     UNIMPL          ustat
-63     NOARGS          { int|sys||dup2(u_int from, u_int to); }
+63     NOARGS          { int|sys||dup2(int from, int to); }
 64     NOARGS          { pid_t|sys||getppid(void); }
 65     NOARGS          { int|sys||getpgrp(void); }
 66     NOARGS          { int|sys||setsid(void); }
@@ -517,8 +517,7 @@
 327    UNIMPL          signalfd4
 328    UNIMPL          eventfd2
 329    UNIMPL          epoll_create1
-330     STD             { int|linux_sys||dup3(u_int from, u_int to, \
-                            int flags); }
+330     STD             { int|linux_sys||dup3(int from, int to, int flags); }
 331     STD             { int|linux_sys||pipe2( int *pfds, int flags); }
 332    UNIMPL          inotify_init1
 333    UNIMPL          preadv
diff -r b6bb00682570 -r 879c12f9fec4 sys/compat/linux/arch/m68k/syscalls.master
--- a/sys/compat/linux/arch/m68k/syscalls.master        Thu Nov 07 18:59:01 2013 +0000
+++ b/sys/compat/linux/arch/m68k/syscalls.master        Thu Nov 07 19:37:18 2013 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.76 2013/09/24 13:27:49 njoly Exp $
+       $NetBSD: syscalls.master,v 1.77 2013/11/07 19:37:19 njoly Exp $
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -111,7 +111,7 @@
                            const char *to); }
 39     NOARGS          { int|sys||mkdir(const char *path, int mode); }
 40     NOARGS          { int|sys||rmdir(const char *path); }
-41     NOARGS          { int|sys||dup(u_int fd); }
+41     NOARGS          { int|sys||dup(int fd); }
 42     STD             { int|linux_sys||pipe(int *pfds); }
 43     STD             { int|linux_sys||times(struct times *tms); }
 44     OBSOL           prof
@@ -135,7 +135,7 @@
 60     NOARGS          { int|sys||umask(int newmask); }
 61     NOARGS          { int|sys||chroot(char *path); }
 62     UNIMPL          ustat
-63     NOARGS          { int|sys||dup2(u_int from, u_int to); }
+63     NOARGS          { int|sys||dup2(int from, int to); }
 64     NOARGS          { pid_t|sys||getppid(void); }
 65     NOARGS          { int|sys||getpgrp(void); }
 66     NOARGS          { int|sys||setsid(void); }
diff -r b6bb00682570 -r 879c12f9fec4 sys/compat/linux/arch/mips/syscalls.master
--- a/sys/compat/linux/arch/mips/syscalls.master        Thu Nov 07 18:59:01 2013 +0000
+++ b/sys/compat/linux/arch/mips/syscalls.master        Thu Nov 07 19:37:18 2013 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.46 2013/09/24 13:27:50 njoly Exp $  
+       $NetBSD: syscalls.master,v 1.47 2013/11/07 19:37:19 njoly Exp $  
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -106,7 +106,7 @@
                            const char *to); }
 39     NOARGS          { int|sys||mkdir(const char *path, int mode); }
 40     NOARGS          { int|sys||rmdir(const char *path); }
-41     NOARGS          { int|sys||dup(u_int fd); }
+41     NOARGS          { int|sys||dup(int fd); }
 42     STD             { int|linux_sys||pipe(int *pfds); }
 43     STD             { int|linux_sys||times(struct times *tms); }
 44     UNIMPL
@@ -131,7 +131,7 @@
 60     NOARGS          { int|sys||umask(int newmask); }
 61     NOARGS          { int|sys||chroot(char *path); }
 62     UNIMPL          ustat
-63     NOARGS          { int|sys||dup2(u_int from, u_int to); }
+63     NOARGS          { int|sys||dup2(int from, int to); }
 64     NOARGS          { pid_t|sys||getppid(void); }
 65     NOARGS          { int|sys||getpgrp(void); }
 66     NOARGS          { int|sys||setsid(void); }
diff -r b6bb00682570 -r 879c12f9fec4 sys/compat/linux/arch/powerpc/syscalls.master
--- a/sys/compat/linux/arch/powerpc/syscalls.master     Thu Nov 07 18:59:01 2013 +0000
+++ b/sys/compat/linux/arch/powerpc/syscalls.master     Thu Nov 07 19:37:18 2013 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.55 2013/09/24 13:27:50 njoly Exp $  
+       $NetBSD: syscalls.master,v 1.56 2013/11/07 19:37:19 njoly Exp $  
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -129,7 +129,7 @@
                            const char *to); }
 39     NOARGS          { int|sys||mkdir(const char *path, int mode); }
 40     NOARGS          { int|sys||rmdir(const char *path); }
-41     NOARGS          { int|sys||dup(u_int fd); }
+41     NOARGS          { int|sys||dup(int fd); }
 42     STD             { int|linux_sys||pipe(int *pfds); }
 43     STD             { int|linux_sys||times(struct times *tms); }
 44     OBSOL           prof
@@ -154,7 +154,7 @@
 60     NOARGS          { int|sys||umask(int newmask); }
 61     NOARGS          { int|sys||chroot(char *path); }
 62     UNIMPL          ustat
-63     NOARGS          { int|sys||dup2(u_int from, u_int to); }
+63     NOARGS          { int|sys||dup2(int from, int to); }
 64     NOARGS          { pid_t|sys||getppid(void); }
 65     NOARGS          { int|sys||getpgrp(void); }
 66     NOARGS          { int|sys||setsid(void); }
diff -r b6bb00682570 -r 879c12f9fec4 sys/compat/linux32/arch/amd64/syscalls.master
--- a/sys/compat/linux32/arch/amd64/syscalls.master     Thu Nov 07 18:59:01 2013 +0000
+++ b/sys/compat/linux32/arch/amd64/syscalls.master     Thu Nov 07 19:37:18 2013 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.62 2012/07/13 18:21:33 christos Exp $
+       $NetBSD: syscalls.master,v 1.63 2013/11/07 19:37:19 njoly Exp $
 
 ; NetBSD i386 COMPAT_LINUX32 system call name/number "master" file.
 ; (See syscalls.conf to see what it is processed into.)
@@ -113,7 +113,7 @@
                    netbsd32_charp to); }
 39     NOARGS  { int|netbsd32||mkdir(netbsd32_charp path, int mode); }
 40     NOARGS  { int|netbsd32||rmdir(netbsd32_charp path); }
-41     NOARGS  { int|netbsd32||dup(u_int fd); }
+41     NOARGS  { int|netbsd32||dup(int fd); }
 42     STD     { int|linux32_sys||pipe(netbsd32_intp fd); }
 43     STD     { int|linux32_sys||times(linux32_tmsp_t tms); }
 44     OBSOL   prof
diff -r b6bb00682570 -r 879c12f9fec4 sys/compat/osf1/syscalls.master
--- a/sys/compat/osf1/syscalls.master   Thu Nov 07 18:59:01 2013 +0000
+++ b/sys/compat/osf1/syscalls.master   Thu Nov 07 19:37:18 2013 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.48 2009/01/13 22:27:43 pooka Exp $
+       $NetBSD: syscalls.master,v 1.49 2013/11/07 19:37:19 njoly Exp $
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -97,7 +97,7 @@
 38     UNIMPL          old stat
 39     NOARGS          { int|sys||setpgid(int pid, int pgid); }
 40     UNIMPL          old lstat
-41     NOARGS          { int|sys||dup(u_int fd); }
+41     NOARGS          { int|sys||dup(int fd); }
 42     NOARGS          { int|sys||pipe(void); }
 43     STD             { int|osf1_sys||set_program_attributes( \
                           void *taddr, unsigned long tsize, \
@@ -165,7 +165,7 @@
 88     NOARGS          { int|compat_43_sys||sethostname(const char *hostname, \
                            u_int len); }
 89     NOARGS          { int|compat_43_sys||getdtablesize(void); }
-90     NOARGS          { int|sys||dup2(u_int from, u_int to); }
+90     NOARGS          { int|sys||dup2(int from, int to); }
 91     STD             { int|osf1_sys||fstat(int fd, void *sb); }
 92     STD             { int|osf1_sys||fcntl(int fd, int cmd, void *arg); }
 93     STD             { int|osf1_sys||select(u_int nd, fd_set *in, \
diff -r b6bb00682570 -r 879c12f9fec4 sys/compat/sunos/syscalls.master
--- a/sys/compat/sunos/syscalls.master  Thu Nov 07 18:59:01 2013 +0000
+++ b/sys/compat/sunos/syscalls.master  Thu Nov 07 19:37:18 2013 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.75 2010/03/03 11:07:17 pooka Exp $
+       $NetBSD: syscalls.master,v 1.76 2013/11/07 19:37:19 njoly Exp $
 
 ;      @(#)syscalls.master     8.1 (Berkeley) 7/19/93
 
@@ -95,7 +95,7 @@
 39     UNIMPL          sunos_setpgrp
 40     NOARGS          { int|compat_43_sys||lstat(const char *path, \
                            struct stat43 *ub); }
-41     NOARGS          { int|sys||dup(u_int fd); }
+41     NOARGS          { int|sys||dup(int fd); }
 42     NOARGS          { int|sys||pipe(void); }
 43     UNIMPL          sunos_times
 44     NOARGS          { int|sys||profil(void *samples, u_int size, \
@@ -158,7 +158,7 @@
 88     NOARGS          { int|compat_43_sys||sethostname(char *hostname, \
                            u_int len); }
 89     NOARGS          { int|compat_43_sys||getdtablesize(void); }
-90     NOARGS          { int|sys||dup2(u_int from, u_int to); }
+90     NOARGS          { int|sys||dup2(int from, int to); }
 91     UNIMPL          getdopt
 92     STD             { int|sunos_sys||fcntl(int fd, int cmd, void *arg); }
 93     NOARGS          { int|compat_50_sys||select(u_int nd, fd_set *in, \
diff -r b6bb00682570 -r 879c12f9fec4 sys/compat/sunos32/syscalls.master
--- a/sys/compat/sunos32/syscalls.master        Thu Nov 07 18:59:01 2013 +0000
+++ b/sys/compat/sunos32/syscalls.master        Thu Nov 07 19:37:18 2013 +0000
@@ -1,4 +1,4 @@
-;      $NetBSD: syscalls.master,v 1.21 2010/03/02 21:07:22 pooka Exp $
+;      $NetBSD: syscalls.master,v 1.22 2013/11/07 19:37:19 njoly Exp $
 
 ;      from :NetBSD: syscalls.master,v 1.57 2000/12/09 07:10:36 mycroft Exp
 
@@ -101,7 +101,7 @@
 39     UNIMPL          sunos_setpgrp
 40     STD             { int|sunos32_sys||lstat(const netbsd32_charp path, \
                            netbsd32_stat43p_t ub); }
-41     NOARGS          { int|netbsd32||dup(u_int fd); }
+41     NOARGS          { int|netbsd32||dup(int fd); }
 42     NOARGS          { int|sys||pipe(void); }
 43     UNIMPL          sunos_times
 44     NOARGS          { int|netbsd32||profil(netbsd32_caddr_t samples, u_int size, \



Home | Main Index | Thread Index | Old Index