Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/netbsd32 use option quota



details:   https://anonhg.NetBSD.org/src/rev/5fbbf2a44fd7
branches:  trunk
changeset: 842135:5fbbf2a44fd7
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Jun 18 01:36:50 2019 +0000

description:
use option quota

diffstat:

 sys/compat/netbsd32/files.netbsd32  |  4 ++--
 sys/compat/netbsd32/syscalls.master |  8 +++++++-
 2 files changed, 9 insertions(+), 3 deletions(-)

diffs (52 lines):

diff -r a00d3bc1f0a8 -r 5fbbf2a44fd7 sys/compat/netbsd32/files.netbsd32
--- a/sys/compat/netbsd32/files.netbsd32        Mon Jun 17 22:03:50 2019 +0000
+++ b/sys/compat/netbsd32/files.netbsd32        Tue Jun 18 01:36:50 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: files.netbsd32,v 1.44 2019/01/27 02:55:02 christos Exp $
+#      $NetBSD: files.netbsd32,v 1.45 2019/06/18 01:36:50 christos Exp $
 #
 # config file description for machine-independent netbsd32 compat code.
 # included by ports that need it.
@@ -25,7 +25,7 @@
 file   compat/netbsd32/netbsd32_nfssvc.c       compat_netbsd32 & nfsserver
 file   compat/netbsd32/netbsd32_ptrace.c       compat_netbsd32 & ptrace
 file   compat/netbsd32/netbsd32_rlimit.c       compat_netbsd32
-file   compat/netbsd32/netbsd32_quota.c        compat_netbsd32
+file   compat/netbsd32/netbsd32_quota.c        compat_netbsd32 & quota
 file   compat/netbsd32/netbsd32_select.c       compat_netbsd32
 file   compat/netbsd32/netbsd32_sem.c          compat_netbsd32
 file   compat/netbsd32/netbsd32_signal.c       compat_netbsd32
diff -r a00d3bc1f0a8 -r 5fbbf2a44fd7 sys/compat/netbsd32/syscalls.master
--- a/sys/compat/netbsd32/syscalls.master       Mon Jun 17 22:03:50 2019 +0000
+++ b/sys/compat/netbsd32/syscalls.master       Tue Jun 18 01:36:50 2019 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.125 2019/01/27 02:08:40 pgoyette Exp $
+       $NetBSD: syscalls.master,v 1.126 2019/06/18 01:36:50 christos Exp $
 
 ;      from: NetBSD: syscalls.master,v 1.81 1998/07/05 08:49:50 jonathan Exp
 ;      @(#)syscalls.master     8.2 (Berkeley) 1/13/94
@@ -40,6 +40,7 @@
 #include "opt_compat_netbsd.h"
 #include "opt_ntp.h"
 #include "opt_compat_43.h"
+#include "opt_quota.h"
 #endif
 
 #include <sys/param.h>
@@ -354,11 +355,16 @@
 146    COMPAT_43 MODULAR compat_netbsd32_43    \
                        { int|netbsd32||killpg(int pgid, int signum); }
 147    NOARGS          { int|sys||setsid(void); }
+#if defined(QUOTA) || !defined(_KERNEL_OPT)
 148    COMPAT_50 MODULAR compat_netbsd32_50    \
                        { int|netbsd32||quotactl(netbsd32_charp path, int cmd, \
                            int uid, netbsd32_voidp arg); }
 149    COMPAT_43 MODULAR compat_netbsd32_43    \
                        { int|sys||quota(void); } oquota
+#else
+148    EXCL            compat_netbsd32_quotactl
+149    EXCL            compat_netbsd32_quota
+#endif
 150    COMPAT_43 MODULAR compat_netbsd32_43    \
                        { int|netbsd32||ogetsockname(int fdec, \
                            netbsd32_voidp asa, netbsd32_intp alen); }



Home | Main Index | Thread Index | Old Index