Home
last modified time | relevance | path

Searched refs:shmid (Results 1 – 11 of 11) sorted by relevance

/titanic_41/usr/src/cmd/sendmail/libsm/
H A Dshm.c42 sm_shmstart(key, size, shmflg, shmid, owner)
46 int *shmid; variable
57 *shmid = shmget(key, size, shmflg);
58 if (*shmid < 0)
61 shm = shmat(*shmid, (void *) 0, 0);
69 if (shm != SM_SHM_NULL || *shmid >= 0)
70 sm_shmstop(shm, *shmid, owner);
71 *shmid = SM_SHM_NO_ID;
95 sm_shmstop(shm, shmid, owner) in sm_shmstop() argument
97 int shmid;
[all …]
H A Dt-shm.c49 int *shm, shmid; local
52 shm = (int *) sm_shmstart(T_SHMKEY, SHMSIZE, 0, &shmid, owner);
89 i = sm_shmsetowner(shmid, getuid(), getgid(), 0644);
94 return sm_shmstop((void *) shm, shmid, owner);
117 int *shm, shmid; local
120 shm = (int *) sm_shmstart(T_SHMKEY, size, 0, &shmid, owner);
137 return sm_shmstop((void *) shm, shmid, owner);
160 int *shm, shmid; local
163 shm = (int *) sm_shmstart(T_SHMKEY, SHMSIZE, 0, &shmid, owner);
174 r = sm_shmsetowner(shmid, getuid(), getgid(), 0660);
[all …]
/titanic_41/usr/src/lib/libbc/libc/sys/common/
H A Dshmsys.c63 shmat(int shmid, char *shmaddr, int shmflg) in shmat() argument
65 return ((char *)_syscall(SYS_shmsys, SHMAT, shmid, shmaddr, shmflg)); in shmat()
69 shmctl(int shmid, int cmd, struct shmid_ds *buf) in shmctl() argument
80 ret = _syscall(SYS_shmsys, SHMCTL, shmid, cmd, 0); in shmctl()
94 ret = _syscall(SYS_shmsys, SHMCTL, shmid, cmd, &n_buf); in shmctl()
126 int shmid, shmflg, cmd, size; in shmsys() local
134 shmid = va_arg(ap, int); in shmsys()
138 return ((int)shmat(shmid, shmaddr, shmflg)); in shmsys()
140 shmid = va_arg(ap, int); in shmsys()
144 return (shmctl(shmid, cmd, buf)); in shmsys()
/titanic_41/usr/src/lib/libc/port/sys/
H A Dshmsys.c47 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()
/titanic_41/usr/src/cmd/mdb/common/modules/ipc/
H A Dipc.c214 shm_print(kshmid_t *shmid, uintptr_t addr) in shm_print() argument
218 nattch = shmid->shm_perm.ipc_ref - (IPC_FREE(&shmid->shm_perm) ? 0 : 1); in shm_print()
223 shmid->shm_segsz, shmid->shm_amp, shmid->shm_lkcnt, in shm_print()
224 (int)shmid->shm_lpid, (int)shmid->shm_cpid, nattch, in shm_print()
225 shmid->shm_ismattch); in shm_print()
227 printtime_nice("atime: ", shmid->shm_atime); in shm_print()
228 printtime_nice("dtime: ", shmid->shm_dtime); in shm_print()
229 printtime_nice("ctime: ", shmid->shm_ctime); in shm_print()
231 shmid->shm_sptinfo, shmid->shm_sptseg); in shm_print()
232 mdb_printf("sptprot: <%lb>\n", shmid->shm_sptprot, prot_flag_bits); in shm_print()
/titanic_41/usr/src/cmd/ptools/pmap/
H A Dpmap_common.c118 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()
/titanic_41/usr/src/lib/madv/common/
H A Dmadv.c671 shmat(int shmid, const void *shmaddr, int shmflag) in shmat() argument
689 result = shmatfunc(shmid, shmaddr, shmflag); in shmat()
707 rc = shmctl(shmid, IPC_STAT, &mds); in shmat()
/titanic_41/usr/src/uts/common/os/
H A Dshm.c254 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()
/titanic_41/usr/src/cmd/avs/sdbc/
H A Dsd_diag.c553 int shmid; variable
719 if ((shmid = shmget(IPC_PRIVATE, sizeof (struct shm_struct), in do_sdtest7()
726 shm = (struct shm_struct *)shmat(shmid, NULL, 0); in do_sdtest7()
763 (void) shmctl(shmid, IPC_RMID, 0); in do_sdtest7()
/titanic_41/usr/src/lib/libc/port/
H A Dllib-lc1406 void *shmat(int shmid, const void *shmaddr, int shmflg);
1407 int shmctl(int shmid, int cmd, struct shmid_ds *buf);
/titanic_41/usr/src/uts/common/c2/
H A Daudit_event.c1276 long shmid; in aui_shmsys() member