/freebsd-9.3-release/contrib/sendmail/libsm/ |
H A D | shm.c | 28 ** shmid -- pointer to return id. 40 sm_shmstart(key, size, shmflg, shmid, owner) 44 int *shmid; 55 *shmid = shmget(key, size, shmflg); 56 if (*shmid < 0) 59 shm = shmat(*shmid, (void *) 0, 0); 67 if (shm != SM_SHM_NULL || *shmid >= 0) 68 sm_shmstop(shm, *shmid, owner); 69 *shmid = SM_SHM_NO_ID; 80 ** shmid [all...] |
H A D | t-shm.c | 47 int *shm, shmid; local 50 shm = (int *) sm_shmstart(T_SHMKEY, SHMSIZE, 0, &shmid, owner); 87 i = sm_shmsetowner(shmid, getuid(), getgid(), 0644); 92 return sm_shmstop((void *) shm, shmid, owner); 115 int *shm, shmid; local 118 shm = (int *) sm_shmstart(T_SHMKEY, size, 0, &shmid, owner); 135 return sm_shmstop((void *) shm, shmid, owner); 158 int *shm, shmid; local 161 shm = (int *) sm_shmstart(T_SHMKEY, SHMSIZE, 0, &shmid, owner); 172 r = sm_shmsetowner(shmid, getui [all...] |
/freebsd-9.3-release/contrib/sendmail/src/ |
H A D | shmticklib.c | 39 static int shmid = -1; local 43 if (shmid < 0) 47 shmid = shmget(STATUSD_SHM_KEY, size, 0); 48 if (shmid < 0) 53 sp = (STATUSD_SHM *) shmat(shmid, NULL, 0);
|
/freebsd-9.3-release/contrib/ntp/util/ |
H A D | sht.c | 53 int shmid=shmget (0x4e545030+unit, sizeof (struct shmTime), IPC_CREAT|0777); local 54 if (shmid==-1) { 59 struct shmTime *p=(struct shmTime *)shmat (shmid, 0, 0); 73 HANDLE shmid; 80 shmid=CreateFileMapping ((HANDLE)0xffffffff, 0, PAGE_READWRITE, 82 if (!shmid) { 83 shmid=CreateFileMapping ((HANDLE)0xffffffff, 0, PAGE_READWRITE, 88 if (!shmid) { 97 struct shmTime *p=(struct shmTime *) MapViewOfFile (shmid,
|
/freebsd-9.3-release/sys/kern/ |
H A D | sysv_shm.c | 119 int shmid; member in struct:shmmap_state 201 shm_find_segment_by_shmid(int shmid) argument 206 segnum = IPCID_TO_IX(shmid); 213 shmseg->u.shm_perm.seq != IPCID_TO_SEQ(shmid)) 265 segnum = IPCID_TO_IX(shmmap_s->shmid); 271 shmmap_s->shmid = -1; 308 if (shmmap_s->shmid != -1 && 318 shmsegptr = &shmsegs[IPCID_TO_IX(shmmap_s->shmid)]; 331 int shmid; member in struct:shmat_args 337 kern_shmat(td, shmid, shmadd 514 struct shmid_ds *shmid; local 554 int shmid; member in struct:shmctl_args 645 int i, segnum, shmid; local 983 int shmid; member in struct:oshmctl_args 1301 int shmid; member in struct:freebsd7_shmctl_args [all...] |
H A D | systrace_args.c | 1245 iarg[0] = p->shmid; /* int */ 3094 iarg[0] = p->shmid; /* int */
|
/freebsd-9.3-release/sys/compat/linux/ |
H A D | linux_ipc.h | 99 l_int shmid; member in struct:linux_shmat_args 107 l_int shmid; member in struct:linux_shmctl_args
|
H A D | linux_ipc.c | 441 * shmid structure directly and convert it to either the 744 int shmid; 753 bsd_args.shmid = args->shmid; 808 error = kern_shmctl(td, args->shmid, IPC_INFO, 823 error = kern_shmctl(td, args->shmid, SHM_INFO, 836 error = kern_shmctl(td, args->shmid, IPC_STAT, 848 error = kern_shmctl(td, args->shmid, IPC_STAT, 867 return (kern_shmctl(td, args->shmid, IPC_SET, 883 return (kern_shmctl(td, args->shmid, IPC_RMI [all...] |
/freebsd-9.3-release/tools/regression/sysvshm/ |
H A D | shmtest.c | 276 int shmid; local 279 if ((shmid = shmget(shmkey, pgsize, 0)) == -1) 282 if ((shm_buf = shmat(shmid, NULL, 0)) == (void *) -1)
|
/freebsd-9.3-release/contrib/ntp/ntpd/ |
H A D | refclock_shm.c | 136 int shmid; local 142 shmid=shmget(0x4e545030 + unit, sizeof (struct shmTime), 144 if (shmid == -1) { /* error */ 148 p = (struct shmTime *)shmat (shmid, 0, 0); 160 HANDLE shmid = 0; 185 shmid = CreateFileMapping ((HANDLE)0xffffffff, psec, PAGE_READWRITE, 187 if (shmid == NULL) { /*error*/ 194 p = (struct shmTime *)MapViewOfFile(shmid, FILE_MAP_WRITE, 0, 0,
|
/freebsd-9.3-release/sys/i386/ibcs2/ |
H A D | ibcs2_ipc.c | 448 int shmid; member in struct:ibcs2_shmat_args 459 ap.shmid = uap->shmid; 467 int shmid; member in struct:ibcs2_shmctl_args 482 error = kern_shmctl(td, uap->shmid, IPC_STAT, &bs, NULL); 493 return (kern_shmctl(td, uap->shmid, IPC_SET, &bs, NULL)); 502 return (kern_shmctl(td, uap->shmid, uap->cmd, NULL, NULL));
|
/freebsd-9.3-release/sys/compat/svr4/ |
H A D | svr4_ipc.c | 548 int shmid; member in struct:svr4_sys_shmat_args 561 ap.shmid = uap->shmid; 610 int shmid; member in struct:svr4_sys_shmctl_args 661 error = kern_shmctl(td, uap->shmid, cmd, &bs, &bufsize);
|
/freebsd-9.3-release/sys/sys/ |
H A D | syscallsubr.h | 204 int kern_shmat(struct thread *td, int shmid, const void *shmaddr, 206 int kern_shmctl(struct thread *td, int shmid, int cmd, void *buf,
|
H A D | sysproto.h | 681 char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)]; member in struct:shmat_args 1658 char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)]; member in struct:shmctl_args 2396 char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)]; member in struct:freebsd7_shmctl_args
|
/freebsd-9.3-release/contrib/gcclibs/libmudflap/ |
H A D | mf-hooks2.c | 1799 WRAPPER2(int, shmctl, int shmid, int cmd, struct shmid_ds *buf) argument 1814 return shmctl (shmid, cmd, buf); 1818 WRAPPER2(void *, shmat, int shmid, const void *shmaddr, int shmflg) argument 1822 p = shmat (shmid, shmaddr, shmflg); 1826 __mf_register (p, shmctl (shmid, IPC_STAT, &buf) ? 0 : buf.shm_segsz,
|
/freebsd-9.3-release/sys/amd64/linux32/ |
H A D | linux32_machdep.c | 353 a.shmid = args->arg1; 376 a.shmid = args->arg1;
|
/freebsd-9.3-release/sys/i386/linux/ |
H A D | linux_machdep.c | 244 a.shmid = args->arg1; 267 a.shmid = args->arg1;
|
/freebsd-9.3-release/sys/compat/freebsd32/ |
H A D | freebsd32_proto.h | 590 char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)]; member in struct:freebsd32_shmctl_args 1047 char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)]; member in struct:freebsd7_freebsd32_shmctl_args
|
H A D | freebsd32_systrace_args.c | 1152 iarg[0] = p->shmid; /* int */ 2958 iarg[0] = p->shmid; /* int */
|