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

/freebsd-10.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-10.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-10.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-10.3-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.3-release/sys/kern/
H A Dsysv_shm.c119 int shmid; member in struct:shmmap_state
204 * Finds segment either by shmid if is_shmid is true, or by segnum if
255 segnum = IPCID_TO_IX(shmmap_s->shmid);
264 shmmap_s->shmid = -1;
291 if (shmmap_s->shmid != -1 &&
299 shmsegptr = &shmsegs[IPCID_TO_IX(shmmap_s->shmid)];
325 kern_shmat_locked(struct thread *td, int shmid, const void *shmaddr, argument
344 shmmap_s[i].shmid = -1;
348 shmseg = shm_find_segment(shmid, true);
361 if (shmmap_s->shmid
408 kern_shmat(struct thread *td, int shmid, const void *shmaddr, int shmflg) argument
420 int shmid; member in struct:shmat_args
433 kern_shmctl_locked(struct thread *td, int shmid, int cmd, void *buf, size_t *bufsz) argument
534 kern_shmctl(struct thread *td, int shmid, int cmd, void *buf, size_t *bufsz) argument
547 int shmid; member in struct:shmctl_args
959 int shmid; member in struct:oshmctl_args
1273 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.3-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.c431 * shmid structure directly and convert it to either the
734 int shmid;
743 bsd_args.shmid = args->shmid;
798 error = kern_shmctl(td, args->shmid, IPC_INFO,
813 error = kern_shmctl(td, args->shmid, SHM_INFO,
826 error = kern_shmctl(td, args->shmid, IPC_STAT,
838 error = kern_shmctl(td, args->shmid, IPC_STAT,
857 return (kern_shmctl(td, args->shmid, IPC_SET,
873 return (kern_shmctl(td, args->shmid, IPC_RMI
[all...]
/freebsd-10.3-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.3-release/contrib/netbsd-tests/lib/libc/sys/
H A Dt_mincore.c287 int shmid; local
289 shmid = shmget(IPC_PRIVATE, npgs * page,
292 ATF_REQUIRE(shmid != -1);
294 addr = shmat(shmid, NULL, 0);
322 ATF_REQUIRE(shmctl(shmid, IPC_RMID, NULL) == 0);
/freebsd-10.3-release/tools/regression/sysvshm/
H A Dshmtest.c267 int shmid; local
270 if ((shmid = shmget(shmkey, pgsize, 0)) == -1)
273 if ((shm_buf = shmat(shmid, NULL, 0)) == (void *) -1)
/freebsd-10.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-10.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-10.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-10.3-release/contrib/netbsd-tests/kernel/
H A Dt_sysv.c828 int shmid; local
831 shmid = shmget(shmkey, pgsize, 0);
832 ATF_REQUIRE_MSG(shmid != -1, "receiver: shmget:%d", errno);
834 shm_buf = shmat(shmid, NULL, 0);
/freebsd-10.3-release/sys/sys/
H A Dsyscallsubr.h231 int kern_shmat(struct thread *td, int shmid, const void *shmaddr,
233 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
2488 char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)]; member in struct:freebsd7_shmctl_args
/freebsd-10.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-10.3-release/sys/i386/linux/
H A Dlinux_machdep.c213 a.shmid = args->arg1;
236 a.shmid = args->arg1;
/freebsd-10.3-release/sys/amd64/linux32/
H A Dlinux32_machdep.c334 a.shmid = args->arg1;
357 a.shmid = args->arg1;
/freebsd-10.3-release/sys/amd64/linux/
H A Dlinux_systrace_args.c282 iarg[0] = p->shmid; /* l_int */
291 iarg[0] = p->shmid; /* l_int */
H A Dlinux_proto.h145 char shmid_l_[PADL_(l_int)]; l_int shmid; char shmid_r_[PADR_(l_int)]; member in struct:linux_shmat_args
150 char shmid_l_[PADL_(l_int)]; l_int shmid; char shmid_r_[PADR_(l_int)]; member in struct:linux_shmctl_args
/freebsd-10.3-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
1093 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 331 milliseconds