Home
last modified time | relevance | path

Searched refs:shm_fd (Results 1 – 8 of 8) sorted by relevance

/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/
D7-4.c43 int shm_fd; in main() local
54 shm_fd = in main()
56 if (shm_fd == -1) { in main()
63 if (ftruncate(shm_fd, size) == -1) { in main()
68 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, shm_fd, 0); in main()
82 shm_fd, 0); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_init/
D2-1.c53 int shm_fd; in main() local
58 shm_fd = in main()
60 if (shm_fd == -1) { in main()
65 if (ftruncate(shm_fd, sizeof(struct shmstruct)) != 0) { in main()
74 MAP_SHARED, shm_fd, 0); in main()
133 MAP_SHARED, shm_fd, 0); in main()
D2-2.c60 int shm_fd; in main() local
66 shm_fd = in main()
68 if (shm_fd == -1) { in main()
73 if (ftruncate(shm_fd, sizeof(struct shmstruct)) != 0) { in main()
82 MAP_SHARED, shm_fd, 0); in main()
139 MAP_SHARED, shm_fd, 0); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlockattr_getpshared/
D2-1.c55 int shm_fd; in main() local
83 shm_fd = in main()
85 if (shm_fd == -1) { in main()
90 if (ftruncate(shm_fd, sizeof(struct shmstruct)) != 0) { in main()
99 MAP_SHARED, shm_fd, 0); in main()
164 MAP_SHARED, shm_fd, 0); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrierattr_getpshared/
D2-1.c65 int shm_fd; in main() local
104 shm_fd = in main()
106 if (shm_fd == -1) { in main()
111 if (ftruncate(shm_fd, sizeof(pthread_barrier_t)) != 0) { in main()
119 MAP_SHARED, shm_fd, 0); in main()
149 PROT_READ | PROT_WRITE, MAP_SHARED, shm_fd, 0); in main()
/third_party/flutter/skia/third_party/externals/sdl/src/video/wayland/
DSDL_waylandmouse.c112 int shm_fd; in create_buffer_from_shm() local
114 shm_fd = wayland_create_tmp_file(size); in create_buffer_from_shm()
115 if (shm_fd < 0) in create_buffer_from_shm()
124 shm_fd, in create_buffer_from_shm()
128 close (shm_fd); in create_buffer_from_shm()
132 shm_pool = wl_shm_create_pool(data->shm, shm_fd, size); in create_buffer_from_shm()
144 close (shm_fd); in create_buffer_from_shm()
/third_party/gstreamer/gstplugins_bad/sys/shm/
Dshmpipe.c95 int shm_fd; member
301 area->shm_fd = -1; in sp_open_shm()
304 area->shm_fd = shm_open (path, flags, perms); in sp_open_shm()
308 area->shm_fd = shm_open (tmppath, flags, perms); in sp_open_shm()
309 } while (area->shm_fd < 0 && errno == EEXIST); in sp_open_shm()
312 if (area->shm_fd < 0) in sp_open_shm()
319 if (ftruncate (area->shm_fd, size)) in sp_open_shm()
329 area->shm_area_buf = mmap (NULL, size, prot, MAP_SHARED, area->shm_fd, 0); in sp_open_shm()
355 if (area->shm_fd >= 0) in sp_close_shm()
356 close (area->shm_fd); in sp_close_shm()
[all …]
/third_party/mesa3d/src/vulkan/wsi/
Dwsi_common_wayland.c912 int shm_fd; member
1127 image->shm_fd = fd; in wsi_wl_alloc_image_shm()
1159 image->shm_fd, in wsi_wl_image_init()
1223 close(chain->images[i].shm_fd); in wsi_wl_swapchain_images_free()