Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/freebsd Update for new msgctl()/semctl()/shmctl().



details:   https://anonhg.NetBSD.org/src/rev/f4dceb90e32e
branches:  trunk
changeset: 475761:f4dceb90e32e
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Aug 25 04:48:21 1999 +0000

description:
Update for new msgctl()/semctl()/shmctl().

diffstat:

 sys/compat/freebsd/freebsd_ipc.c   |  26 +++++++++++++-------------
 sys/compat/freebsd/syscalls.master |  14 +++++++-------
 2 files changed, 20 insertions(+), 20 deletions(-)

diffs (124 lines):

diff -r d51a13a36bd5 -r f4dceb90e32e sys/compat/freebsd/freebsd_ipc.c
--- a/sys/compat/freebsd/freebsd_ipc.c  Wed Aug 25 04:47:12 1999 +0000
+++ b/sys/compat/freebsd/freebsd_ipc.c  Wed Aug 25 04:48:21 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: freebsd_ipc.c,v 1.4 1998/10/19 22:27:38 tron Exp $     */
+/*     $NetBSD: freebsd_ipc.c,v 1.5 1999/08/25 04:48:21 thorpej Exp $  */
 
 /*
  * Copyright (c) 1994 Adam Glass and Charles M. Hannum.  All rights reserved.
@@ -63,11 +63,11 @@
                syscallarg(int) a4;
                syscallarg(int) a5;
        } */ *uap = v;
-       struct sys___semctl_args /* {
+       struct compat_14_sys___semctl_args /* {
                syscallarg(int) semid;
                syscallarg(int) semnum;
                syscallarg(int) cmd;
-               syscallarg(union semun *) arg;
+               syscallarg(union __semun *) arg;
        } */ __semctl_args;
        struct sys_semget_args /* {
                syscallarg(key_t) key;
@@ -88,8 +88,8 @@
                SCARG(&__semctl_args, semid) = SCARG(uap, a2);
                SCARG(&__semctl_args, semnum) = SCARG(uap, a3);
                SCARG(&__semctl_args, cmd) = SCARG(uap, a4);
-               SCARG(&__semctl_args, arg) = (union semun *)SCARG(uap, a5);
-               return (sys___semctl(p, &__semctl_args, retval));
+               SCARG(&__semctl_args, arg) = (union __semun *)SCARG(uap, a5);
+               return (compat_14_sys___semctl(p, &__semctl_args, retval));
 
        case 1:                                         /* semget() */
                SCARG(&semget_args, key) = SCARG(uap, a2);
@@ -131,10 +131,10 @@
                syscallarg(void *) shmaddr;
                syscallarg(int) shmflg;
        } */ shmat_args;
-       struct sys_shmctl_args /* {
+       struct compat_14_sys_shmctl_args /* {
                syscallarg(int) shmid;
                syscallarg(int) cmd;
-               syscallarg(struct shmid_ds *) buf;
+               syscallarg(struct shmid_ds14 *) buf;
        } */ shmctl_args;
        struct sys_shmdt_args /* {
                syscallarg(void *) shmaddr;
@@ -169,8 +169,8 @@
        case 4:                                         /* shmctl() */
                SCARG(&shmctl_args, shmid) = SCARG(uap, a2);
                SCARG(&shmctl_args, cmd) = SCARG(uap, a3);
-               SCARG(&shmctl_args, buf) = (struct shmid_ds *)SCARG(uap, a4);
-               return (sys_shmctl(p, &shmctl_args, retval));
+               SCARG(&shmctl_args, buf) = (struct shmid_ds14 *)SCARG(uap, a4);
+               return (compat_14_sys_shmctl(p, &shmctl_args, retval));
 
        default:
                return (EINVAL);
@@ -193,10 +193,10 @@
                syscallarg(int) a5;
                syscallarg(int) a6;
        } */ *uap = v;
-       struct sys_msgctl_args /* {
+       struct compat_14_sys_msgctl_args /* {
                syscallarg(int) msqid;
                syscallarg(int) cmd;
-               syscallarg(struct msqid_ds *) buf;
+               syscallarg(struct msqid_ds14 *) buf;
        } */ msgctl_args;
        struct sys_msgget_args /* {
                syscallarg(key_t) key;
@@ -221,8 +221,8 @@
                SCARG(&msgctl_args, msqid) = SCARG(uap, a2);
                SCARG(&msgctl_args, cmd) = SCARG(uap, a3);
                SCARG(&msgctl_args, buf) =
-                   (struct msqid_ds *)SCARG(uap, a4);
-               return (sys_msgctl(p, &msgctl_args, retval));
+                   (struct msqid_ds14 *)SCARG(uap, a4);
+               return (compat_14_sys_msgctl(p, &msgctl_args, retval));
 
        case 1:                                 /* msgget() */
                SCARG(&msgget_args, key) = SCARG(uap, a2);
diff -r d51a13a36bd5 -r f4dceb90e32e sys/compat/freebsd/syscalls.master
--- a/sys/compat/freebsd/syscalls.master        Wed Aug 25 04:47:12 1999 +0000
+++ b/sys/compat/freebsd/syscalls.master        Wed Aug 25 04:48:21 1999 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.24 1999/07/12 21:55:20 kleink Exp $
+       $NetBSD: syscalls.master,v 1.25 1999/08/25 04:48:21 thorpej Exp $
 
 ;      from: @(#)syscalls.master       8.2 (Berkeley) 1/13/94
 
@@ -427,8 +427,8 @@
 ; Syscalls 220-239 are reserved for syscalls imported from NetBSD
 ;
 #ifdef SYSVSEM
-220    NOARGS          { int sys___semctl(int semid, int semnum, int cmd, \
-                           union semun *arg); }
+220    NOARGS          { int compat_14_sys___semctl(int semid, int semnum, \
+                           int cmd, union __semun *arg); }
 221    NOARGS          { int sys_semget(key_t key, int nsems, int semflg); }
 222    NOARGS          { int sys_semop(int semid, struct sembuf *sops, \
                            u_int nsops); }
@@ -440,8 +440,8 @@
 223    UNIMPL          semconfig
 #endif
 #ifdef SYSVMSG
-224    NOARGS          { int sys_msgctl(int msqid, int cmd, \
-                           struct msqid_ds *buf); }
+224    NOARGS          { int compat_14_sys_msgctl(int msqid, int cmd, \
+                           struct msqid14_ds *buf); }
 225    NOARGS          { int sys_msgget(key_t key, int msgflg); }
 226    NOARGS          { int sys_msgsnd(int msqid, void *msgp, size_t msgsz, \
                            int msgflg); }
@@ -455,8 +455,8 @@
 #endif
 #ifdef SYSVSHM
 228    NOARGS          { int sys_shmat(int shmid, void *shmaddr, int shmflg); }
-229    NOARGS          { int sys_shmctl(int shmid, int cmd, \
-                           struct shmid_ds *buf); }
+229    NOARGS          { int compat_14_sys_shmctl(int shmid, int cmd, \
+                           struct shmid_ds14 *buf); }
 230    NOARGS          { int sys_shmdt(void *shmaddr); }
 231    NOARGS          { int sys_shmget(key_t key, int size, int shmflg); }
 #else



Home | Main Index | Thread Index | Old Index