Home
last modified time | relevance | path

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

12

/external/valgrind/memcheck/tests/solaris/
Dshmat.c10 int shmid = shmget(IPC_PRIVATE, SEGMENT_SIZE, IPC_CREAT | SHM_R | SHM_W); in main() local
11 if (shmid < 0) { in main()
16 void *addr = shmat(shmid, NULL, 0); in main()
23 int ret = shmctl(shmid, IPC_STAT, &stats); in main()
37 ret = shmctl(shmid, IPC_RMID, NULL); in main()
Dscalar_shm_new.stderr.exp7 Syscall param shmsys_shmctl_xstat64(shmid) contains uninitialised byte(s)
26 Syscall param shmsys_shmadv(shmid) contains uninitialised byte(s)
45 Syscall param shmsys_shmadv(shmid) contains uninitialised byte(s)
Dscalar.stderr.exp424 Syscall param shmsys_shmat(shmid) contains uninitialised byte(s)
442 Syscall param shmsys_shmctl_lock(shmid) contains uninitialised byte(s)
454 Syscall param shmsys_shmctl_unlock(shmid) contains uninitialised byte(s)
466 Syscall param shmsys_shmctl_rmid(shmid) contains uninitialised byte(s)
478 Syscall param shmsys_shmctl_set(shmid) contains uninitialised byte(s)
505 Syscall param shmsys_shmctl_set(shmid) contains uninitialised byte(s)
529 Syscall param shmsys_shmctl_stat(shmid) contains uninitialised byte(s)
548 Syscall param shmsys_shmctl_set64(shmid) contains uninitialised byte(s)
575 Syscall param shmsys_shmctl_set64(shmid) contains uninitialised byte(s)
599 Syscall param shmsys_shmctl_stat64(shmid) contains uninitialised byte(s)
/external/valgrind/none/tests/
Dmap_unmap.c128 int shmid; in main() local
132 shmid = shmget(IPC_PRIVATE, HUGESZ, in main()
134 if (shmid == -1) { in main()
138 expect4 = shmat(shmid, NULL, 0); in main()
147 if (shmctl(shmid, IPC_RMID, 0) != 0) { in main()
/external/webrtc/webrtc/modules/desktop_capture/x11/
Dx_server_pixel_buffer.cc88 if (shm_segment_info_->shmid != -1) in Release()
89 shmctl(shm_segment_info_->shmid, IPC_RMID, 0); in Release()
129 shm_segment_info_->shmid = -1; in InitShm()
136 shm_segment_info_->shmid = shmget( in InitShm()
139 if (shm_segment_info_->shmid != -1) { in InitShm()
141 reinterpret_cast<char*>(shmat(shm_segment_info_->shmid, 0, 0)); in InitShm()
150 << shm_segment_info_->shmid; in InitShm()
168 shmctl(shm_segment_info_->shmid, IPC_RMID, 0); in InitShm()
169 shm_segment_info_->shmid = -1; in InitShm()
/external/valgrind/none/tests/linux/
Dmremap4.c12 int shmid = shmget(IPC_PRIVATE, 100 * 4096, in main() local
14 assert(shmid != -1); in main()
16 void *addr = shmat(shmid, NULL, 0); in main()
Dmremap5.c12 int shmid = shmget(IPC_PRIVATE, 100 * 4096, in main() local
14 assert(shmid != -1); in main()
16 void *addr = shmat(shmid, NULL, 0); in main()
Dmremap6.c12 int shmid = shmget(IPC_PRIVATE, sz, in mkmap() local
14 assert(shmid != -1); in mkmap()
16 void *addr = shmat(shmid, NULL, 0); in mkmap()
/external/mesa3d/src/gallium/winsys/sw/xlib/
Dxlib_sw_winsys.c125 shminfo->shmid = -1; in alloc_shm()
128 shminfo->shmid = shmget(IPC_PRIVATE, size, IPC_CREAT|0777); in alloc_shm()
129 if (shminfo->shmid < 0) { in alloc_shm()
133 shminfo->shmaddr = (char *) shmat(shminfo->shmid, 0, 0); in alloc_shm()
135 shmctl(shminfo->shmid, IPC_RMID, 0); in alloc_shm()
252 if (xlib_dt->shminfo.shmid >= 0) { in xlib_displaytarget_destroy()
254 shmctl(xlib_dt->shminfo.shmid, IPC_RMID, 0); in xlib_displaytarget_destroy()
256 xlib_dt->shminfo.shmid = -1; in xlib_displaytarget_destroy()
/external/autotest/client/site_tests/security_SysVIPC/
Dsecurity_SysVIPC.py29 def find_attached(self, shmid): argument
39 cmd = 'grep "%s */SYSV" /proc/*/maps | sed "s/maps.*/exe/g"' % shmid
55 shmid = fields[1]
58 attached = self.find_attached(shmid)
/external/autotest/client/tests/dbench/
Ddbench_startup.patch24 + int shmid;
33 + shmid = shmget(IPC_PRIVATE, sizeof(*sema), IPC_CREAT | 0666);
34 + if (shmid < 0) {
38 + sema = shmat(shmid, NULL, 0);
/external/toybox/toys/pending/
Dipcs.c152 int max_nr, i, shmid; in shm_array() local
209 if ((shmid = shmctl(i, SHM_STAT, &buf)) < 0 ) continue; in shm_array()
212 printf("%-10d %-10.10s", shmid, pw->pw_name); in shm_array()
213 else printf("%-10d %-10.10d", shmid, buf.shm_perm.uid); in shm_array()
222 printf("%-10d %-10.10s", shmid, pw->pw_name); in shm_array()
223 else printf("%-10d %-10.10d", shmid, buf.shm_perm.uid); in shm_array()
226 printf("%-10d %-10o", shmid, buf.shm_perm.mode & 0777); in shm_array()
238 printf("%-10d %-10.10s", shmid, pw->pw_name); in shm_array()
239 else printf("%-10d %-10.10d", shmid, buf.shm_perm.uid); in shm_array()
/external/fio/os/windows/posix/include/sys/
Dshm.h36 int shmctl(int shmid, int cmd, struct shmid_ds *buf);
38 void *shmat(int shmid, const void *shmaddr, int shmflg);
/external/webrtc/webrtc/modules/video_render/linux/
Dvideo_x11_channel.cc253 _shminfo.shmid = shmget(IPC_PRIVATE, (_image->bytes_per_line in CreateLocalRenderer()
255 _shminfo.shmaddr = _image->data = (char*) shmat(_shminfo.shmid, 0, 0); in CreateLocalRenderer()
293 shmctl(_shminfo.shmid, IPC_RMID, 0); in RemoveRenderer()
294 _shminfo.shmid = 0; in RemoveRenderer()
/external/mesa3d/src/mesa/drivers/x11/
Dxm_buffer.c91 b->shminfo.shmid = shmget(IPC_PRIVATE, b->backxrb->ximage->bytes_per_line in alloc_back_shm_ximage()
93 if (b->shminfo.shmid < 0) { in alloc_back_shm_ximage()
103 = (char*)shmat(b->shminfo.shmid, 0, 0); in alloc_back_shm_ximage()
107 shmctl(b->shminfo.shmid, IPC_RMID, 0); in alloc_back_shm_ximage()
127 shmctl(b->shminfo.shmid, IPC_RMID, 0); in alloc_back_shm_ximage()
134 shmctl(b->shminfo.shmid, IPC_RMID, 0); /* nobody else needs it */ in alloc_back_shm_ximage()
148 shmctl(b->shminfo.shmid, IPC_RMID, 0); in alloc_back_shm_ximage()
/external/fio/os/windows/
Dposix.c562 void *shmat(int shmid, const void *shmaddr, int shmflg) in shmat() argument
566 mapAddr = MapViewOfFile(fileMappings[shmid], FILE_MAP_ALL_ACCESS, 0, 0, 0); in shmat()
596 int shmctl(int shmid, int cmd, struct shmid_ds *buf) in shmctl() argument
599 fileMappings[shmid] = INVALID_HANDLE_VALUE; in shmctl()
/external/compiler-rt/include/sanitizer/
Dlinux_syscall_hooks.h1329 #define __sanitizer_syscall_pre_shmat(shmid, shmaddr, shmflg) \ argument
1330 __sanitizer_syscall_pre_impl_shmat((long)(shmid), (long)(shmaddr), \
1332 #define __sanitizer_syscall_post_shmat(res, shmid, shmaddr, shmflg) \ argument
1333 __sanitizer_syscall_post_impl_shmat(res, (long)(shmid), (long)(shmaddr), \
1344 #define __sanitizer_syscall_pre_shmctl(shmid, cmd, buf) \ argument
1345 __sanitizer_syscall_pre_impl_shmctl((long)(shmid), (long)(cmd), (long)(buf))
1346 #define __sanitizer_syscall_post_shmctl(res, shmid, cmd, buf) \ argument
1347 __sanitizer_syscall_post_impl_shmctl(res, (long)(shmid), (long)(cmd), \
2750 void __sanitizer_syscall_pre_impl_shmat(long shmid, long shmaddr, long shmflg);
2751 void __sanitizer_syscall_post_impl_shmat(long res, long shmid, long shmaddr,
[all …]
/external/compiler-rt/lib/msan/
Dmsan_interceptors.cc1318 DECLARE_REAL(int, shmctl, int shmid, int cmd, void *buf) in DECLARE_REAL() argument
1320 INTERCEPTOR(void *, shmat, int shmid, const void *shmaddr, int shmflg) { in DECLARE_REAL()
1322 void *p = REAL(shmat)(shmid, shmaddr, shmflg); in DECLARE_REAL()
1325 int res = REAL(shmctl)(shmid, shmctl_ipc_stat, &ds); in DECLARE_REAL()
/external/valgrind/coregrind/m_syswrap/
Dsyswrap-generic.c1929 SizeT get_shm_size ( Int shmid ) in get_shm_size() argument
1936 SysRes __res = VG_(do_syscall3)(__NR_shmctl, shmid, in get_shm_size()
1939 SysRes __res = VG_(do_syscall3)(__NR_shmctl, shmid, in get_shm_size()
1944 SysRes __res = VG_(do_syscall3)(__NR_shmctl, shmid, VKI_IPC_STAT, (UWord)&buf); in get_shm_size()
1948 SysRes __res = VG_(do_syscall4)(__NR_shmsys, VKI_SHMCTL, shmid, VKI_IPC_STAT, in get_shm_size()
1952 SysRes __res = VG_(do_syscall5)(__NR_ipc, 24 /* IPCOP_shmctl */, shmid, in get_shm_size()
Dsyswrap-tilegx-linux.c1034 int, shmid, const void *, shmaddr, int, shmflg); in PRE()
1062 int, shmid, int, cmd, struct shmid_ds *, buf); in PRE()
Dsyswrap-solaris.c2597 int, shmid, const void *, shmaddr, int, shmflg); in PRE()
2612 int, opcode, int, shmid, int, cmd); in PRE()
2617 int, opcode, int, shmid, int, cmd); in PRE()
2622 int, opcode, int, shmid, int, cmd); in PRE()
2628 int, opcode, int, shmid, int, cmd, in PRE()
2643 int, opcode, int, shmid, int, cmd, in PRE()
2652 int, opcode, int, shmid, int, cmd, in PRE()
2670 int, opcode, int, shmid, int, cmd, in PRE()
2680 int, opcode, int, shmid, int, cmd, in PRE()
2729 int, shmid, vki_uint_t, cmd, vki_uint_t *, advice); in PRE()
/external/fio/
Dbackend.c1644 static int fork_main(int shmid, int offset) in fork_main() argument
1650 data = shmat(shmid, NULL, 0); in fork_main()
/external/valgrind/memcheck/tests/darwin/
Dscalar.stderr.exp625 Syscall param shmat(shmid) contains uninitialised byte(s)
640 Syscall param shmctl(shmid) contains uninitialised byte(s)
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_syscalls.inc2122 PRE_SYSCALL(shmat)(long shmid, void *shmaddr, long shmflg) {}
2124 POST_SYSCALL(shmat)(long res, long shmid, void *shmaddr, long shmflg) {
2153 PRE_SYSCALL(shmctl)(long shmid, long cmd, void *buf) {}
2155 POST_SYSCALL(shmctl)(long res, long shmid, long cmd, void *buf) {
Dsanitizer_common_interceptors.inc3614 INTERCEPTOR(int, shmctl, int shmid, int cmd, void *buf) {
3616 COMMON_INTERCEPTOR_ENTER(ctx, shmctl, shmid, cmd, buf);
3620 int res = REAL(shmctl)(shmid, cmd, buf);

12