/freebsd-10.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-10.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-10.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-10.3-release/contrib/apr/include/arch/unix/ |
H A D | apr_arch_shm.h | 69 int shmid; /* shmem ID returned from shmget() */ member in struct:apr_shm_t
|
/freebsd-10.3-release/sys/kern/ |
H A D | sysv_shm.c | 119 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 D | systrace_args.c | 1245 iarg[0] = p->shmid; /* int */ 3115 iarg[0] = p->shmid; /* int */
|
/freebsd-10.3-release/sys/compat/linux/ |
H A D | linux_ipc.h | 141 l_int shmid; member in struct:linux_shmat_args 149 l_int shmid; member in struct:linux_shmctl_args
|
H A D | linux_ipc.c | 431 * 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 D | shm.c | 125 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 D | t_mincore.c | 287 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 D | shmtest.c | 267 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 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-10.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-10.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-10.3-release/contrib/netbsd-tests/kernel/ |
H A D | t_sysv.c | 828 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 D | syscallsubr.h | 231 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 D | sysproto.h | 682 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 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-10.3-release/sys/i386/linux/ |
H A D | linux_machdep.c | 213 a.shmid = args->arg1; 236 a.shmid = args->arg1;
|
/freebsd-10.3-release/sys/amd64/linux32/ |
H A D | linux32_machdep.c | 334 a.shmid = args->arg1; 357 a.shmid = args->arg1;
|
/freebsd-10.3-release/sys/amd64/linux/ |
H A D | linux_systrace_args.c | 282 iarg[0] = p->shmid; /* l_int */ 291 iarg[0] = p->shmid; /* l_int */
|
H A D | linux_proto.h | 145 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 D | freebsd32_proto.h | 596 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 D | freebsd32_systrace_args.c | 1152 iarg[0] = p->shmid; /* int */ 2979 iarg[0] = p->shmid; /* int */
|