Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Add EXCL keyword as described in tech_kern, and fix...



details:   https://anonhg.NetBSD.org/src/rev/c2c9ec59384b
branches:  trunk
changeset: 473600:c2c9ec59384b
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Jun 09 04:25:30 1999 +0000

description:
Add EXCL keyword as described in tech_kern, and fix comments. Make the
vtrace syscall UNIMPL because it is.

diffstat:

 sys/kern/makesyscalls.sh |    6 +-
 sys/kern/syscalls.master |  106 +++++++++++++++++++++++-----------------------
 2 files changed, 56 insertions(+), 56 deletions(-)

diffs (258 lines):

diff -r 01567baf892e -r c2c9ec59384b sys/kern/makesyscalls.sh
--- a/sys/kern/makesyscalls.sh  Wed Jun 09 03:41:34 1999 +0000
+++ b/sys/kern/makesyscalls.sh  Wed Jun 09 04:25:30 1999 +0000
@@ -1,5 +1,5 @@
 #! /bin/sh -
-#      $NetBSD: makesyscalls.sh,v 1.33 1999/02/17 18:17:10 christos Exp $
+#      $NetBSD: makesyscalls.sh,v 1.34 1999/06/09 04:25:30 christos Exp $
 #
 # Copyright (c) 1994,1996 Christopher G. Demetriou
 # All rights reserved.
@@ -456,9 +456,11 @@
        syscall++
        next
 }
-$2 == "OBSOL" || $2 == "UNIMPL" {
+$2 == "OBSOL" || $2 == "UNIMPL" || $2 == "EXCL" {
        if ($2 == "OBSOL")
                comment="obsolete"
+       else if ($2 == "EXCL")
+               comment="excluded"
        else
                comment="unimplemented"
        for (i = 3; i <= NF; i++)
diff -r 01567baf892e -r c2c9ec59384b sys/kern/syscalls.master
--- a/sys/kern/syscalls.master  Wed Jun 09 03:41:34 1999 +0000
+++ b/sys/kern/syscalls.master  Wed Jun 09 04:25:30 1999 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.91 1999/06/08 03:07:39 thorpej Exp $
+       $NetBSD: syscalls.master,v 1.92 1999/06/09 04:25:30 christos Exp $
 
 ;      @(#)syscalls.master     8.2 (Berkeley) 1/13/94
 
@@ -14,6 +14,7 @@
 ;      STD     always included
 ;      OBSOL   obsolete, not included in system
 ;      UNIMPL  unimplemented, not included in system
+;      EXCL    implemented, but not included in system
 ;      NODEF   included, but don't define the syscall number
 ;      NOARGS  included, but don't define the syscall args structure
 ;      INDIR   included, but don't define the syscall args structure,
@@ -118,11 +119,11 @@
 43     STD             { gid_t sys_getegid(void); }
 44     STD             { int sys_profil(caddr_t samples, size_t size, \
                            u_long offset, u_int scale); }
-#ifdef KTRACE
+#if defined(KTRACE) || !defined(_KERNEL)
 45     STD             { int sys_ktrace(const char *fname, int ops, \
                            int facs, int pid); }
 #else
-45     UNIMPL          ktrace
+45     EXCL            ktrace
 #endif
 46     COMPAT_13       { int sys_sigaction(int signum, \
                            const struct sigaction13 *nsa, \
@@ -227,11 +228,7 @@
                            int flags); } orecvmsg
 114    COMPAT_43       { int sys_sendmsg(int s, caddr_t msg, int flags); } \
                            osendmsg
-#ifdef TRACE
-115    STD             { int sys_vtrace(int request, int value); }
-#else
 115    OBSOL           vtrace
-#endif
 116    STD             { int sys_gettimeofday(struct timeval *tp, \
                            struct timezone *tzp); }
 117    STD             { int sys_getrusage(int who, struct rusage *rusage); }
@@ -294,10 +291,10 @@
 152    UNIMPL
 153    UNIMPL
 154    UNIMPL
-#if defined(NFS) || defined(NFSSERVER)
+#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
 155    STD             { int sys_nfssvc(int flag, void *argp); }
 #else
-155    UNIMPL
+155    EXCL            nfssvc
 #endif
 156    COMPAT_43       { int sys_getdirentries(int fd, char *buf, \
                            u_int count, long *basep); } ogetdirentries
@@ -306,10 +303,10 @@
 158    STD             { int sys_fstatfs(int fd, struct statfs *buf); }
 159    UNIMPL
 160    UNIMPL
-#if defined(NFS) || defined(NFSSERVER)
+#if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
 161    STD             { int sys_getfh(const char *fname, fhandle_t *fhp); }
 #else
-161    UNIMPL          getfh
+161    EXCL            getfh
 #endif
 162    COMPAT_09       { int sys_getdomainname(char *domainname, int len); } \
                            ogetdomainname
@@ -321,25 +318,25 @@
 167    UNIMPL
 168    UNIMPL
 ; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
-#if defined(SYSVSEM) && !defined(alpha)
+#if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(alpha)
 169    COMPAT_10       { int sys_semsys(int which, int a2, int a3, int a4, \
                            int a5); } osemsys
 #else
-169    UNIMPL          1.0 semsys
+169    EXCL            1.0 semsys
 #endif
 ; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
-#if defined(SYSVMSG) && !defined(alpha)
+#if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(alpha)
 170    COMPAT_10       { int sys_msgsys(int which, int a2, int a3, int a4, \
                            int a5, int a6); } omsgsys
 #else
-170    UNIMPL          1.0 msgsys
+170    EXCL            1.0 msgsys
 #endif
 ; XXX more generally, never on machines where sizeof(void *) != sizeof(int)
-#if defined(SYSVSHM) && !defined(alpha)
+#if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(alpha)
 171    COMPAT_10       { int sys_shmsys(int which, int a2, int a3, int a4); } \
                            oshmsys
 #else
-171    UNIMPL          1.0 shmsys
+171    EXCL            1.0 shmsys
 #endif
 172    UNIMPL
 173    STD             { ssize_t sys_pread(int fd, void *buf, \
@@ -357,18 +354,19 @@
 181    STD             { int sys_setgid(gid_t gid); }
 182    STD             { int sys_setegid(gid_t egid); }
 183    STD             { int sys_seteuid(uid_t euid); }
-#ifdef LFS
-184    STD             { int lfs_bmapv(fsid_t *fsidp, \
+#if defined(LFS) || !defined(_KERNEL)
+184    STD             { int sys_lfs_bmapv(fsid_t *fsidp, \
                            struct block_info *blkiov, int blkcnt); }
-185    STD             { int lfs_markv(fsid_t *fsidp, \
+185    STD             { int sys_lfs_markv(fsid_t *fsidp, \
                            struct block_info *blkiov, int blkcnt); }
-186    STD             { int lfs_segclean(fsid_t *fsidp, u_long segment); }
-187    STD             { int lfs_segwait(fsid_t *fsidp, struct timeval *tv); }
+186    STD             { int sys_lfs_segclean(fsid_t *fsidp, u_long segment); }
+187    STD             { int sys_lfs_segwait(fsid_t *fsidp, \
+                           struct timeval *tv); }
 #else
-184    UNIMPL
-185    UNIMPL
-186    UNIMPL
-187    UNIMPL
+184    EXCL            lfs_bmapv
+185    EXCL            lfs_markv
+186    EXCL            lfs_segclean
+187    EXCL            lfs_segwait
 #endif
 188    COMPAT_12       { int sys_stat(const char *path, struct stat12 *ub); } \
                            stat12
@@ -407,7 +405,7 @@
 ;
 ; Syscalls 210-219 are reserved for dynamically loaded syscalls
 ;
-#ifdef LKM
+#if defined(LKM) || !defined(_KERNEL)
 210    NODEF           { int sys_lkmnosys(void); }
 211    NODEF           { int sys_lkmnosys(void); }
 212    NODEF           { int sys_lkmnosys(void); }
@@ -419,19 +417,19 @@
 218    NODEF           { int sys_lkmnosys(void); }
 219    NODEF           { int sys_lkmnosys(void); }
 #else  /* !LKM */
-210    UNIMPL
-211    UNIMPL
-212    UNIMPL
-213    UNIMPL
-214    UNIMPL
-215    UNIMPL
-216    UNIMPL
-217    UNIMPL
-218    UNIMPL
-219    UNIMPL
+210    EXCL            lkmnosys
+211    EXCL            lkmnosys
+212    EXCL            lkmnosys
+213    EXCL            lkmnosys
+214    EXCL            lkmnosys
+215    EXCL            lkmnosys
+216    EXCL            lkmnosys
+217    EXCL            lkmnosys
+218    EXCL            lkmnosys
+219    EXCL            lkmnosys
 #endif /* !LKM */
 ; System calls 220-300 are reserved for use by NetBSD
-#ifdef SYSVSEM
+#if defined(SYSVSEM) || !defined(_KERNEL)
 220    STD             { int sys___semctl(int semid, int semnum, int cmd, \
                            union semun *arg); }
 221    STD             { int sys_semget(key_t key, int nsems, int semflg); }
@@ -439,12 +437,12 @@
                            size_t nsops); }
 223    STD             { int sys_semconfig(int flag); }
 #else
-220    UNIMPL          semctl
-221    UNIMPL          semget
-222    UNIMPL          semop
-223    UNIMPL          semconfig
+220    EXCL            semctl
+221    EXCL            semget
+222    EXCL            semop
+223    EXCL            semconfig
 #endif
-#ifdef SYSVMSG
+#if defined(SYSVMSG) || !defined(_KERNEL)
 224    STD             { int sys_msgctl(int msqid, int cmd, \
                            struct msqid_ds *buf); }
 225    STD             { int sys_msgget(key_t key, int msgflg); }
@@ -453,12 +451,12 @@
 227    STD             { ssize_t sys_msgrcv(int msqid, void *msgp, \
                            size_t msgsz, long msgtyp, int msgflg); }
 #else
-224    UNIMPL          msgctl
-225    UNIMPL          msgget
-226    UNIMPL          msgsnd
-227    UNIMPL          msgrcv
+224    EXCL            msgctl
+225    EXCL            msgget
+226    EXCL            msgsnd
+227    EXCL            msgrcv
 #endif
-#ifdef SYSVSHM
+#if defined(SYSVSHM) || !defined(_KERNEL)
 228    STD             { void *sys_shmat(int shmid, const void *shmaddr, \
                            int shmflg); }
 229    STD             { int sys_shmctl(int shmid, int cmd, \
@@ -466,10 +464,10 @@
 230    STD             { int sys_shmdt(const void *shmaddr); }
 231    STD             { int sys_shmget(key_t key, size_t size, int shmflg); }
 #else
-228    UNIMPL          shmat
-229    UNIMPL          shmctl
-230    UNIMPL          shmdt
-231    UNIMPL          shmget
+228    EXCL            shmat
+229    EXCL            shmctl
+230    EXCL            shmdt
+231    EXCL            shmget
 #endif
 232    STD             { int sys_clock_gettime(clockid_t clock_id, \
                            struct timespec *tp); }
@@ -543,11 +541,11 @@
                            gid_t gid); }
 286    STD             { pid_t sys_getsid(pid_t pid); }
 287    UNIMPL
-#ifdef KTRACE
+#if defined(KTRACE) || !defined(_KERNEL)
 288    STD             { int sys_fktrace(const int fd, int ops, \
                            int facs, int pid); }
 #else
-288    UNIMPL
+288    EXCL            ktrace
 #endif
 289    STD             { ssize_t sys_preadv(int fd, \
                            const struct iovec *iovp, int iovcnt, \



Home | Main Index | Thread Index | Old Index