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

/freebsd-10.1-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-10.1-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-10.1-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-10.1-release/contrib/apr/include/arch/unix/
H A Dapr_arch_shm.h69 int shmid; /* shmem ID returned from shmget() */ member in struct:apr_shm_t
/freebsd-10.1-release/sys/kern/
H A Dsysv_shm.c120 int shmid; member in struct:shmmap_state
202 shm_find_segment_by_shmid(int shmid) argument
207 segnum = IPCID_TO_IX(shmid);
214 shmseg->u.shm_perm.seq != IPCID_TO_SEQ(shmid))
266 segnum = IPCID_TO_IX(shmmap_s->shmid);
272 shmmap_s->shmid = -1;
309 if (shmmap_s->shmid != -1 &&
319 shmsegptr = &shmsegs[IPCID_TO_IX(shmmap_s->shmid)];
332 int shmid; member in struct:shmat_args
338 kern_shmat(td, shmid, shmadd
515 struct shmid_ds *shmid; local
555 int shmid; member in struct:shmctl_args
646 int i, segnum, shmid; local
984 int shmid; member in struct:oshmctl_args
1302 int shmid; member in struct:freebsd7_shmctl_args
[all...]
H A Dsystrace_args.c1245 iarg[0] = p->shmid; /* int */
3115 iarg[0] = p->shmid; /* int */
/freebsd-10.1-release/sys/compat/linux/
H A Dlinux_ipc.h141 l_int shmid; member in struct:linux_shmat_args
149 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-10.1-release/contrib/apr/shmem/unix/
H A Dshm.c125 if (shmctl(m->shmid, IPC_RMID, NULL) == -1 && errno != EINVAL) {
235 if ((new_m->shmid = shmget(IPC_PRIVATE, new_m->realsize,
240 if ((new_m->base = shmat(new_m->shmid, NULL, 0)) == (void *)-1) {
245 if (shmctl(new_m->shmid, IPC_STAT, &shmbuf) == -1) {
251 if (shmctl(new_m->shmid, IPC_SET, &shmbuf) == -1) {
259 if (shmctl(new_m->shmid, IPC_RMID, NULL) == -1) {
380 if ((new_m->shmid = shmget(shmkey, new_m->realsize,
386 if ((new_m->base = shmat(new_m->shmid, NULL, 0)) == (void *)-1) {
392 if (shmctl(new_m->shmid, IPC_STAT, &shmbuf) == -1) {
399 if (shmctl(new_m->shmid, IPC_SE
443 int shmid; local
[all...]
/freebsd-10.1-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-10.1-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-10.1-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-10.1-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-10.1-release/sys/sys/
H A Dsyscallsubr.h211 int kern_shmat(struct thread *td, int shmid, const void *shmaddr,
213 int kern_shmctl(struct thread *td, int shmid, int cmd, void *buf,
H A Dsysproto.h682 char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)]; member in struct:shmat_args
1668 char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)]; member in struct:shmctl_args
2469 char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)]; member in struct:freebsd7_shmctl_args
/freebsd-10.1-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-10.1-release/sys/amd64/linux32/
H A Dlinux32_machdep.c353 a.shmid = args->arg1;
376 a.shmid = args->arg1;
/freebsd-10.1-release/sys/i386/linux/
H A Dlinux_machdep.c244 a.shmid = args->arg1;
267 a.shmid = args->arg1;
/freebsd-10.1-release/sys/compat/freebsd32/
H A Dfreebsd32_proto.h596 char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)]; member in struct:freebsd32_shmctl_args
1074 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 */
2979 iarg[0] = p->shmid; /* int */

Completed in 206 milliseconds