| /illumos-gate/usr/src/cmd/sendmail/libsm/ |
| H A D | shm.c | 40 sm_shmstart(key, size, shmflg, shmid, owner) 44 int *shmid; variable 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; 93 sm_shmstop(shm, shmid, owner) in sm_shmstop() argument 95 int 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, getuid(), getgid(), 0660); [all …]
|
| /illumos-gate/usr/src/lib/libc/port/sys/ |
| H A D | shmsys.c | 47 shmat(int shmid, const void *shmaddr, int shmflg) in shmat() argument 52 error = __systemcall(&rval, SYS_shmsys, SHMAT, shmid, shmaddr, shmflg); in shmat() 59 shmctl(int shmid, int cmd, struct shmid_ds *buf) in shmctl() argument 65 return (syscall(SYS_shmsys, SHMCTL, shmid, cmd, buf)); in shmctl() 69 shmctl64(int shmid, int cmd, struct shmid_ds64 *buf) in shmctl64() argument 75 return (syscall(SYS_shmsys, SHMCTL, shmid, cmd, buf)); in shmctl64()
|
| /illumos-gate/usr/src/cmd/mdb/common/modules/ipc/ |
| H A D | ipc.c | 213 shm_print(kshmid_t *shmid, uintptr_t addr) in shm_print() argument 217 nattch = shmid->shm_perm.ipc_ref - (IPC_FREE(&shmid->shm_perm) ? 0 : 1); in shm_print() 222 shmid->shm_segsz, shmid->shm_amp, shmid->shm_lkcnt, in shm_print() 223 (int)shmid->shm_lpid, (int)shmid->shm_cpid, nattch, in shm_print() 224 shmid->shm_ismattch); in shm_print() 226 printtime_nice("atime: ", shmid->shm_atime); in shm_print() 227 printtime_nice("dtime: ", shmid->shm_dtime); in shm_print() 228 printtime_nice("ctime: ", shmid->shm_ctime); in shm_print() 230 shmid->shm_sptinfo, shmid->shm_sptseg); in shm_print() 231 mdb_printf("sptprot: <%lb>\n", shmid->shm_sptprot, prot_flag_bits); in shm_print()
|
| /illumos-gate/usr/src/cmd/dtrace/test/tst/common/usdt/ |
| H A D | tst.deadstub.ksh | 58 int shmid; 65 shmid = shmget(IPC_PRIVATE, sizeof (int), IPC_CREAT | 0666); 67 if (shmid == -1) { 72 if ((addr = shmat(shmid, NULL, 0)) == (void *)-1) {
|
| /illumos-gate/usr/src/cmd/ptools/pmap/ |
| H A D | pmap_common.c | 118 uintptr_t vaddr, size_t size, int mflags, int shmid, int *mtypesp) in anon_name() argument 123 if (shmid == -1) in anon_name() 128 (mflags & MA_NORESERVE) ? "ism" : "dism", shmid); in anon_name() 131 if (shmid == -1) in anon_name() 134 (void) sprintf(name, " [ shmid=0x%x ]", shmid); in anon_name()
|
| /illumos-gate/usr/src/contrib/ast/src/lib/libast/vmalloc/ |
| H A D | vmmopen.c | 103 int shmid; /* ID of the shared mem */ member 121 sprintf(mesg, "Shmid: %10d\n", mmdc->shmid); write(fd, mesg, strlen(mesg)); in _vmmdump() 147 mmvm = (Mmvm_t*)shmat(mmdc->shmid, base, 0); in mmfix() 197 if((mmdc->shmid = shmget(key, size, IPC_CREAT|FILE_MODE)) < 0 ) in mminit() 201 mmvm = (Mmvm_t*)shmat(mmdc->shmid, NIL(Void_t*), 0); in mminit() 290 { if(mmdc->shmid >= 0 ) 291 (void)shmctl(mmdc->shmid, IPC_RMID, &shmds); 412 mmdc->shmid = -1;
|
| /illumos-gate/usr/src/lib/madv/common/ |
| H A D | madv.c | 669 shmat(int shmid, const void *shmaddr, int shmflag) in shmat() argument 684 result = shmatfunc(shmid, shmaddr, shmflag); in shmat() 703 rc = shmctl(shmid, IPC_STAT, &mds); in shmat() 712 (void) shmctl(shmid, IPC_STAT, &mds); in shmat()
|
| /illumos-gate/usr/src/uts/common/os/ |
| H A D | shm.c | 254 shmat(int shmid, caddr_t uaddr, int uflags, uintptr_t *rvp) in shmat() argument 270 if ((lock = ipc_lookup(shm_svc, shmid, (kipc_perm_t **)&sp)) == NULL) in shmat() 624 shmctl(int shmid, int cmd, void *arg) in shmctl() argument 652 return (ipc_rmid(shm_svc, shmid, cr)); in shmctl() 655 if ((lock = ipc_lookup(shm_svc, shmid, (kipc_perm_t **)&sp)) == NULL) in shmctl()
|
| /illumos-gate/usr/src/uts/common/c2/ |
| H A D | audit_event.c | 1283 long shmid; in aui_shmsys() member
|