Searched refs:shmid (Results 1 - 19 of 19) sorted by relevance

/freebsd-9.3-release/contrib/sendmail/libsm/
H A Dshm.c28 ** 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 Dt-shm.c47 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 Dshmticklib.c39 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 Dsht.c53 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 Dsysv_shm.c119 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 Dsystrace_args.c1245 iarg[0] = p->shmid; /* int */
3094 iarg[0] = p->shmid; /* int */
/freebsd-9.3-release/sys/compat/linux/
H A Dlinux_ipc.h99 l_int shmid; member in struct:linux_shmat_args
107 l_int shmid; member in struct:linux_shmctl_args
H A Dlinux_ipc.c441 * 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 Dshmtest.c276 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 Drefclock_shm.c136 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 Dibcs2_ipc.c448 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 Dsvr4_ipc.c548 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 Dsyscallsubr.h204 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 Dsysproto.h681 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 Dmf-hooks2.c1799 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 Dlinux32_machdep.c353 a.shmid = args->arg1;
376 a.shmid = args->arg1;
/freebsd-9.3-release/sys/i386/linux/
H A Dlinux_machdep.c244 a.shmid = args->arg1;
267 a.shmid = args->arg1;
/freebsd-9.3-release/sys/compat/freebsd32/
H A Dfreebsd32_proto.h590 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 Dfreebsd32_systrace_args.c1152 iarg[0] = p->shmid; /* int */
2958 iarg[0] = p->shmid; /* int */

Completed in 371 milliseconds