Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/freebsd Add names for many syscalls not yet imple...



details:   https://anonhg.NetBSD.org/src/rev/b5081d2f051d
branches:  trunk
changeset: 486503:b5081d2f051d
user:      tv <tv%NetBSD.org@localhost>
date:      Tue May 23 16:05:51 2000 +0000

description:
Add names for many syscalls not yet implemented, including those in
FreeBSD 4.0-RELEASE.  Also implement the following using existing NetBSD
syscalls:  pread, pwrite, getsid, mlockall, munlockall, __getcwd.

diffstat:

 sys/compat/freebsd/freebsd_syscall.h     |   24 ++++++-
 sys/compat/freebsd/freebsd_syscallargs.h |   10 ++-
 sys/compat/freebsd/freebsd_syscalls.c    |   64 +++++++++++++-----
 sys/compat/freebsd/freebsd_sysent.c      |  100 +++++++++++++++++++++++-------
 sys/compat/freebsd/syscalls.master       |   64 ++++++++++++++-----
 5 files changed, 196 insertions(+), 66 deletions(-)

diffs (truncated from 512 to 300 lines):

diff -r b01516b185c9 -r b5081d2f051d sys/compat/freebsd/freebsd_syscall.h
--- a/sys/compat/freebsd/freebsd_syscall.h      Tue May 23 13:27:16 2000 +0000
+++ b/sys/compat/freebsd/freebsd_syscall.h      Tue May 23 16:05:51 2000 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: freebsd_syscall.h,v 1.32 2000/04/21 16:18:54 minoura Exp $     */
+/*     $NetBSD: freebsd_syscall.h,v 1.33 2000/05/23 16:05:51 tv Exp $  */
 
 /*
  * System call numbers.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.25 1999/08/25 04:48:21 thorpej Exp 
+ * created from        NetBSD: syscalls.master,v 1.26 2000/04/21 16:18:16 minoura Exp 
  */
 
 /* syscall: "syscall" ret: "int" args: */
@@ -478,6 +478,12 @@
 /* syscall: "shmsys" ret: "int" args: "int" "int" "int" "int" */
 #define        FREEBSD_SYS_shmsys      171
 
+/* syscall: "pread" ret: "ssize_t" args: "int" "void *" "size_t" "int" "off_t" */
+#define        FREEBSD_SYS_pread       173
+
+/* syscall: "pwrite" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "off_t" */
+#define        FREEBSD_SYS_pwrite      174
+
 /* syscall: "freebsd_ntp_adjtime" ret: "int" args: "struct freebsd_timex *" */
 #define        FREEBSD_SYS_freebsd_ntp_adjtime 176
 
@@ -643,4 +649,16 @@
 /* syscall: "__lstat13" ret: "int" args: "const char *" "struct stat *" */
 #define        FREEBSD_SYS___lstat13   280
 
-#define        FREEBSD_SYS_MAXSYSCALL  338
+/* syscall: "getsid" ret: "pid_t" args: "pid_t" */
+#define        FREEBSD_SYS_getsid      310
+
+/* syscall: "mlockall" ret: "int" args: "int" */
+#define        FREEBSD_SYS_mlockall    324
+
+/* syscall: "munlockall" ret: "int" args: */
+#define        FREEBSD_SYS_munlockall  325
+
+/* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */
+#define        FREEBSD_SYS___getcwd    326
+
+#define        FREEBSD_SYS_MAXSYSCALL  364
diff -r b01516b185c9 -r b5081d2f051d sys/compat/freebsd/freebsd_syscallargs.h
--- a/sys/compat/freebsd/freebsd_syscallargs.h  Tue May 23 13:27:16 2000 +0000
+++ b/sys/compat/freebsd/freebsd_syscallargs.h  Tue May 23 16:05:51 2000 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: freebsd_syscallargs.h,v 1.32 2000/04/21 16:18:54 minoura Exp $ */
+/*     $NetBSD: freebsd_syscallargs.h,v 1.33 2000/05/23 16:05:51 tv Exp $      */
 
 /*
  * System call argument lists.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.25 1999/08/25 04:48:21 thorpej Exp 
+ * created from        NetBSD: syscalls.master,v 1.26 2000/04/21 16:18:16 minoura Exp 
  */
 
 #ifndef _FREEBSD_SYS__SYSCALLARGS_H_
@@ -425,6 +425,8 @@
 int    freebsd_sys_shmsys      __P((struct proc *, void *, register_t *));
 #else
 #endif
+int    sys_pread       __P((struct proc *, void *, register_t *));
+int    sys_pwrite      __P((struct proc *, void *, register_t *));
 int    freebsd_ntp_adjtime     __P((struct proc *, void *, register_t *));
 int    sys_setgid      __P((struct proc *, void *, register_t *));
 int    sys_setegid     __P((struct proc *, void *, register_t *));
@@ -498,4 +500,8 @@
 int    sys___stat13    __P((struct proc *, void *, register_t *));
 int    sys___fstat13   __P((struct proc *, void *, register_t *));
 int    sys___lstat13   __P((struct proc *, void *, register_t *));
+int    sys_getsid      __P((struct proc *, void *, register_t *));
+int    sys_mlockall    __P((struct proc *, void *, register_t *));
+int    sys_munlockall  __P((struct proc *, void *, register_t *));
+int    sys___getcwd    __P((struct proc *, void *, register_t *));
 #endif /* _FREEBSD_SYS__SYSCALLARGS_H_ */
diff -r b01516b185c9 -r b5081d2f051d sys/compat/freebsd/freebsd_syscalls.c
--- a/sys/compat/freebsd/freebsd_syscalls.c     Tue May 23 13:27:16 2000 +0000
+++ b/sys/compat/freebsd/freebsd_syscalls.c     Tue May 23 16:05:51 2000 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: freebsd_syscalls.c,v 1.31 2000/04/21 16:18:54 minoura Exp $    */
+/*     $NetBSD: freebsd_syscalls.c,v 1.32 2000/05/23 16:05:51 tv Exp $ */
 
 /*
  * System call names.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.25 1999/08/25 04:48:21 thorpej Exp 
+ * created from        NetBSD: syscalls.master,v 1.26 2000/04/21 16:18:16 minoura Exp 
  */
 
 #if defined(_KERNEL) && !defined(_LKM)
@@ -183,14 +183,14 @@
        "quotactl",                     /* 148 = quotactl */
        "oquota",                       /* 149 = oquota */
        "ogetsockname",                 /* 150 = ogetsockname */
-       "#151 (unimplemented)",         /* 151 = unimplemented */
-       "#152 (unimplemented)",         /* 152 = unimplemented */
-       "#153 (unimplemented)",         /* 153 = unimplemented */
+       "#151 (unimplemented sem_lock)",                /* 151 = unimplemented sem_lock */
+       "#152 (unimplemented sem_wakeup)",              /* 152 = unimplemented sem_wakeup */
+       "#153 (unimplemented asyncdaemon)",             /* 153 = unimplemented asyncdaemon */
        "#154 (unimplemented)",         /* 154 = unimplemented */
 #if defined(NFS) || defined(NFSSERVER)
        "nfssvc",                       /* 155 = nfssvc */
 #else
-       "#155 (unimplemented)",         /* 155 = unimplemented */
+       "#155 (unimplemented nfssvc)",          /* 155 = unimplemented nfssvc */
 #endif
        "ogetdirentries",                       /* 156 = ogetdirentries */
        "statfs",                       /* 157 = statfs */
@@ -225,13 +225,13 @@
        "#171 (unimplemented 1.0 shmsys)",              /* 171 = unimplemented 1.0 shmsys */
 #endif
        "#172 (unimplemented)",         /* 172 = unimplemented */
-       "#173 (unimplemented)",         /* 173 = unimplemented */
-       "#174 (unimplemented)",         /* 174 = unimplemented */
+       "pread",                        /* 173 = pread */
+       "pwrite",                       /* 174 = pwrite */
        "#175 (unimplemented)",         /* 175 = unimplemented */
        "freebsd_ntp_adjtime",                  /* 176 = freebsd_ntp_adjtime */
-       "#177 (unimplemented)",         /* 177 = unimplemented */
-       "#178 (unimplemented)",         /* 178 = unimplemented */
-       "#179 (unimplemented)",         /* 179 = unimplemented */
+       "#177 (unimplemented sfork)",           /* 177 = unimplemented sfork */
+       "#178 (unimplemented getdescriptor)",           /* 178 = unimplemented getdescriptor */
+       "#179 (unimplemented setdescriptor)",           /* 179 = unimplemented setdescriptor */
        "#180 (unimplemented)",         /* 180 = unimplemented */
        "setgid",                       /* 181 = setgid */
        "setegid",                      /* 182 = setegid */
@@ -267,7 +267,7 @@
 #ifdef FREEBSD_BASED_ON_44LITE_R2
        "undelete",                     /* 205 = undelete */
 #else
-       "#205 (unimplemented)",         /* 205 = unimplemented */
+       "#205 (unimplemented undelete)",                /* 205 = unimplemented undelete */
 #endif
        "futimes",                      /* 206 = futimes */
        "getpgid",                      /* 207 = getpgid */
@@ -385,9 +385,9 @@
        "#294 (unimplemented)",         /* 294 = unimplemented */
        "#295 (unimplemented)",         /* 295 = unimplemented */
        "#296 (unimplemented)",         /* 296 = unimplemented */
-       "#297 (unimplemented)",         /* 297 = unimplemented */
-       "#298 (unimplemented)",         /* 298 = unimplemented */
-       "#299 (unimplemented)",         /* 299 = unimplemented */
+       "#297 (unimplemented fhstatfs)",                /* 297 = unimplemented fhstatfs */
+       "#298 (unimplemented fhopen)",          /* 298 = unimplemented fhopen */
+       "#299 (unimplemented fhstat)",          /* 299 = unimplemented fhstat */
        "#300 (unimplemented modnext)",         /* 300 = unimplemented modnext */
        "#301 (unimplemented modstat)",         /* 301 = unimplemented modstat */
        "#302 (unimplemented modfnext)",                /* 302 = unimplemented modfnext */
@@ -398,7 +398,7 @@
        "#307 (unimplemented kldnext)",         /* 307 = unimplemented kldnext */
        "#308 (unimplemented kldstat)",         /* 308 = unimplemented kldstat */
        "#309 (unimplemented kldfirstmod)",             /* 309 = unimplemented kldfirstmod */
-       "#310 (unimplemented getsid)",          /* 310 = unimplemented getsid */
+       "getsid",                       /* 310 = getsid */
        "#311 (unimplemented setresuid)",               /* 311 = unimplemented setresuid */
        "#312 (unimplemented setresgid)",               /* 312 = unimplemented setresgid */
        "#313 (unimplemented signanosleep)",            /* 313 = unimplemented signanosleep */
@@ -412,9 +412,9 @@
        "#321 (unimplemented yield)",           /* 321 = unimplemented yield */
        "#322 (unimplemented thr_sleep)",               /* 322 = unimplemented thr_sleep */
        "#323 (unimplemented thr_wakeup)",              /* 323 = unimplemented thr_wakeup */
-       "#324 (unimplemented mlockall)",                /* 324 = unimplemented mlockall */
-       "#325 (unimplemented munlockall)",              /* 325 = unimplemented munlockall */
-       "#326 (unimplemented __getcwd)",                /* 326 = unimplemented __getcwd */
+       "mlockall",                     /* 324 = mlockall */
+       "munlockall",                   /* 325 = munlockall */
+       "__getcwd",                     /* 326 = __getcwd */
        "#327 (unimplemented sched_setparam)",          /* 327 = unimplemented sched_setparam */
        "#328 (unimplemented sched_getparam)",          /* 328 = unimplemented sched_getparam */
        "#329 (unimplemented sched_setscheduler)",              /* 329 = unimplemented sched_setscheduler */
@@ -426,4 +426,30 @@
        "#335 (unimplemented utrace)",          /* 335 = unimplemented utrace */
        "#336 (unimplemented sendfile)",                /* 336 = unimplemented sendfile */
        "#337 (unimplemented kldsym)",          /* 337 = unimplemented kldsym */
+       "#338 (unimplemented jail)",            /* 338 = unimplemented jail */
+       "#339 (unimplemented pioctl)",          /* 339 = unimplemented pioctl */
+       "#340 (unimplemented 4.0 sigprocmask)",         /* 340 = unimplemented 4.0 sigprocmask */
+       "#341 (unimplemented 4.0 sigsuspend)",          /* 341 = unimplemented 4.0 sigsuspend */
+       "#342 (unimplemented 4.0 sigaction)",           /* 342 = unimplemented 4.0 sigaction */
+       "#343 (unimplemented 4.0 sigpending)",          /* 343 = unimplemented 4.0 sigpending */
+       "#344 (unimplemented 4.0 sigreturn)",           /* 344 = unimplemented 4.0 sigreturn */
+       "#345 (unimplemented sigtimedwait)",            /* 345 = unimplemented sigtimedwait */
+       "#346 (unimplemented sigwaitinfo)",             /* 346 = unimplemented sigwaitinfo */
+       "#347 (unimplemented __acl_get_file)",          /* 347 = unimplemented __acl_get_file */
+       "#348 (unimplemented __acl_set_file)",          /* 348 = unimplemented __acl_set_file */
+       "#349 (unimplemented __acl_get_fd)",            /* 349 = unimplemented __acl_get_fd */
+       "#350 (unimplemented __acl_set_fd)",            /* 350 = unimplemented __acl_set_fd */
+       "#351 (unimplemented __acl_delete_file)",               /* 351 = unimplemented __acl_delete_file */
+       "#352 (unimplemented __acl_delete_fd)",         /* 352 = unimplemented __acl_delete_fd */
+       "#353 (unimplemented __acl_aclcheck_file)",             /* 353 = unimplemented __acl_aclcheck_file */
+       "#354 (unimplemented __acl_aclcheck_fd)",               /* 354 = unimplemented __acl_aclcheck_fd */
+       "#355 (unimplemented extattrctl)",              /* 355 = unimplemented extattrctl */
+       "#356 (unimplemented extattr_set_file)",                /* 356 = unimplemented extattr_set_file */
+       "#357 (unimplemented extattr_get_file)",                /* 357 = unimplemented extattr_get_file */
+       "#358 (unimplemented extattr_delete_file)",             /* 358 = unimplemented extattr_delete_file */
+       "#359 (unimplemented aio_waitcomplete)",                /* 359 = unimplemented aio_waitcomplete */
+       "#360 (unimplemented getresuid)",               /* 360 = unimplemented getresuid */
+       "#361 (unimplemented getresgid)",               /* 361 = unimplemented getresgid */
+       "#362 (unimplemented kqueue)",          /* 362 = unimplemented kqueue */
+       "#363 (unimplemented kevent)",          /* 363 = unimplemented kevent */
 };
diff -r b01516b185c9 -r b5081d2f051d sys/compat/freebsd/freebsd_sysent.c
--- a/sys/compat/freebsd/freebsd_sysent.c       Tue May 23 13:27:16 2000 +0000
+++ b/sys/compat/freebsd/freebsd_sysent.c       Tue May 23 16:05:51 2000 +0000
@@ -1,10 +1,10 @@
-/*     $NetBSD: freebsd_sysent.c,v 1.33 2000/04/21 16:18:54 minoura Exp $      */
+/*     $NetBSD: freebsd_sysent.c,v 1.34 2000/05/23 16:05:51 tv Exp $   */
 
 /*
  * System call switch table.
  *
  * DO NOT EDIT-- this file is automatically generated.
- * created from        NetBSD: syscalls.master,v 1.25 1999/08/25 04:48:21 thorpej Exp 
+ * created from        NetBSD: syscalls.master,v 1.26 2000/04/21 16:18:16 minoura Exp 
  */
 
 #include "opt_ktrace.h"
@@ -337,11 +337,11 @@
        { 3, s(struct compat_43_sys_getsockname_args),
            compat_43_sys_getsockname },        /* 150 = ogetsockname */
        { 0, 0,
-           sys_nosys },                        /* 151 = unimplemented */
+           sys_nosys },                        /* 151 = unimplemented sem_lock */
        { 0, 0,
-           sys_nosys },                        /* 152 = unimplemented */
+           sys_nosys },                        /* 152 = unimplemented sem_wakeup */
        { 0, 0,
-           sys_nosys },                        /* 153 = unimplemented */
+           sys_nosys },                        /* 153 = unimplemented asyncdaemon */
        { 0, 0,
            sys_nosys },                        /* 154 = unimplemented */
 #if defined(NFS) || defined(NFSSERVER)
@@ -349,7 +349,7 @@
            sys_nfssvc },                       /* 155 = nfssvc */
 #else
        { 0, 0,
-           sys_nosys },                        /* 155 = unimplemented */
+           sys_nosys },                        /* 155 = unimplemented nfssvc */
 #endif
        { 4, s(struct compat_43_sys_getdirentries_args),
            compat_43_sys_getdirentries },      /* 156 = ogetdirentries */
@@ -405,20 +405,20 @@
 #endif
        { 0, 0,
            sys_nosys },                        /* 172 = unimplemented */
-       { 0, 0,
-           sys_nosys },                        /* 173 = unimplemented */
-       { 0, 0,
-           sys_nosys },                        /* 174 = unimplemented */
+       { 5, s(struct sys_pread_args),
+           sys_pread },                        /* 173 = pread */
+       { 5, s(struct sys_pwrite_args),
+           sys_pwrite },                       /* 174 = pwrite */
        { 0, 0,
            sys_nosys },                        /* 175 = unimplemented */
        { 1, s(struct freebsd_ntp_adjtime_args),
            freebsd_ntp_adjtime },              /* 176 = freebsd_ntp_adjtime */
        { 0, 0,
-           sys_nosys },                        /* 177 = unimplemented */
+           sys_nosys },                        /* 177 = unimplemented sfork */
        { 0, 0,
-           sys_nosys },                        /* 178 = unimplemented */
+           sys_nosys },                        /* 178 = unimplemented getdescriptor */
        { 0, 0,
-           sys_nosys },                        /* 179 = unimplemented */
+           sys_nosys },                        /* 179 = unimplemented setdescriptor */
        { 0, 0,
            sys_nosys },                        /* 180 = unimplemented */
        { 1, s(struct sys_setgid_args),
@@ -485,7 +485,7 @@
            freebsd_sys_undelete },             /* 205 = undelete */
 #else
        { 0, 0,
-           sys_nosys },                        /* 205 = unimplemented */
+           sys_nosys },                        /* 205 = unimplemented undelete */
 #endif
        { 2, s(struct sys_futimes_args),
            sys_futimes },                      /* 206 = futimes */
@@ -708,11 +708,11 @@
        { 0, 0,
            sys_nosys },                        /* 296 = unimplemented */
        { 0, 0,
-           sys_nosys },                        /* 297 = unimplemented */
+           sys_nosys },                        /* 297 = unimplemented fhstatfs */
        { 0, 0,
-           sys_nosys },                        /* 298 = unimplemented */
+           sys_nosys },                        /* 298 = unimplemented fhopen */
        { 0, 0,
-           sys_nosys },                        /* 299 = unimplemented */
+           sys_nosys },                        /* 299 = unimplemented fhstat */
        { 0, 0,



Home | Main Index | Thread Index | Old Index