Home
last modified time | relevance | path

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

/external/ltp/lib/
Dtst_test.c58 static int ipc_fd; variable
95 ipc_fd = open(shm_path, O_CREAT | O_EXCL | O_RDWR, 0600); in setup_ipc()
96 if (ipc_fd < 0) in setup_ipc()
100 SAFE_FTRUNCATE(ipc_fd, size); in setup_ipc()
102 results = SAFE_MMAP(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, ipc_fd, 0); in setup_ipc()
112 SAFE_CLOSE(ipc_fd); in setup_ipc()
124 if (ipc_fd > 0 && close(ipc_fd)) in cleanup_ipc()