Deleted Added
full compact
sysv_shm.c (9759) sysv_shm.c (10358)
1/* $Id: sysv_shm.c,v 1.5 1995/05/30 08:06:04 rgrimes Exp $ */
1/* $Id: sysv_shm.c,v 1.6 1995/07/29 11:40:15 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:

--- 46 unchanged lines hidden (view full) ---

56 * shmfork(struct proc *, struct proc *, int) fork handling
57 * shmsys(arg1, arg2, arg3, arg4); shm{at,ctl,dt,get}(arg2, arg3, arg4)
58 *
59 * Structures:
60 * shmsegs (an array of 'struct shmid_ds')
61 * per proc array of 'struct shmmap_state'
62 */
63
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:

--- 46 unchanged lines hidden (view full) ---

56 * shmfork(struct proc *, struct proc *, int) fork handling
57 * shmsys(arg1, arg2, arg3, arg4); shm{at,ctl,dt,get}(arg2, arg3, arg4)
58 *
59 * Structures:
60 * shmsegs (an array of 'struct shmid_ds')
61 * per proc array of 'struct shmmap_state'
62 */
63
64/*
65 * System initialization
66 */
67
68extern void shminit(); /* should be static*/
69SYSINIT(sysv_shm, SI_SUB_SYSV_SHM, SI_ORDER_FIRST, shminit, NULL)
70
64int oshmctl();
65int shmat(), shmctl(), shmdt(), shmget();
66int (*shmcalls[])() = { shmat, oshmctl, shmdt, shmget, shmctl };
67
68#define SHMSEG_FREE 0x0200
69#define SHMSEG_REMOVED 0x0400
70#define SHMSEG_ALLOCATED 0x0800
71#define SHMSEG_WANTED 0x1000

--- 513 unchanged lines hidden ---
71int oshmctl();
72int shmat(), shmctl(), shmdt(), shmget();
73int (*shmcalls[])() = { shmat, oshmctl, shmdt, shmget, shmctl };
74
75#define SHMSEG_FREE 0x0200
76#define SHMSEG_REMOVED 0x0400
77#define SHMSEG_ALLOCATED 0x0800
78#define SHMSEG_WANTED 0x1000

--- 513 unchanged lines hidden ---