sysv_shm.c (27845) | sysv_shm.c (30309) |
---|---|
1/* $Id: sysv_shm.c,v 1.28 1997/02/22 09:39:23 peter Exp $ */ | 1/* $Id: sysv_shm.c,v 1.29 1997/08/02 14:31:39 bde Exp $ */ |
2/* $NetBSD: sysv_shm.c,v 1.23 1994/07/04 23:25:12 glass Exp $ */ 3 4/* 5 * Copyright (c) 1994 Adam Glass and Charles Hannum. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: --- 50 unchanged lines hidden (view full) --- 60struct shmctl_args; 61extern int shmctl __P((struct proc *p, struct shmctl_args *uap, int *retval)); 62struct shmdt_args; 63extern int shmdt __P((struct proc *p, struct shmdt_args *uap, int *retval)); 64struct shmget_args; 65extern int shmget __P((struct proc *p, struct shmget_args *uap, int *retval)); 66#endif 67 | 2/* $NetBSD: sysv_shm.c,v 1.23 1994/07/04 23:25:12 glass Exp $ */ 3 4/* 5 * Copyright (c) 1994 Adam Glass and Charles Hannum. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions 9 * are met: --- 50 unchanged lines hidden (view full) --- 60struct shmctl_args; 61extern int shmctl __P((struct proc *p, struct shmctl_args *uap, int *retval)); 62struct shmdt_args; 63extern int shmdt __P((struct proc *p, struct shmdt_args *uap, int *retval)); 64struct shmget_args; 65extern int shmget __P((struct proc *p, struct shmget_args *uap, int *retval)); 66#endif 67 |
68MALLOC_DEFINE(M_SHM, "shm", "SVID compatible shared memory segments"); 69 |
|
68static void shminit __P((void *)); 69SYSINIT(sysv_shm, SI_SUB_SYSV_SHM, SI_ORDER_FIRST, shminit, NULL) 70 71struct oshmctl_args; 72static int oshmctl __P((struct proc *p, struct oshmctl_args *uap, int *retval)); 73static int shmget_allocate_segment __P((struct proc *p, struct shmget_args *uap, int mode, int *retval)); 74static int shmget_existing __P((struct proc *p, struct shmget_args *uap, int mode, int segnum, int *retval)); 75 --- 544 unchanged lines hidden --- | 70static void shminit __P((void *)); 71SYSINIT(sysv_shm, SI_SUB_SYSV_SHM, SI_ORDER_FIRST, shminit, NULL) 72 73struct oshmctl_args; 74static int oshmctl __P((struct proc *p, struct oshmctl_args *uap, int *retval)); 75static int shmget_allocate_segment __P((struct proc *p, struct shmget_args *uap, int mode, int *retval)); 76static int shmget_existing __P((struct proc *p, struct shmget_args *uap, int mode, int segnum, int *retval)); 77 --- 544 unchanged lines hidden --- |