Searched refs:shm_path (Results 1 – 1 of 1) sorted by relevance
/external/ltp/lib/ |
D | tst_test.c | 82 static char shm_path[1024]; variable 96 snprintf(shm_path, sizeof(shm_path), "/dev/shm/ltp_%s_%d", in setup_ipc() 105 snprintf(shm_path, sizeof(shm_path), "%s/ltp_%s_%d", in setup_ipc() 110 ipc_fd = open(shm_path, O_CREAT | O_EXCL | O_RDWR, 0600); in setup_ipc() 112 tst_brk(TBROK | TERRNO, "open(%s)", shm_path); in setup_ipc() 113 SAFE_CHMOD(shm_path, 0666); in setup_ipc() 121 sprintf(ipc_path, IPC_ENV_VAR "=%s", shm_path); in setup_ipc() 124 SAFE_UNLINK(shm_path); in setup_ipc() 142 if (shm_path[0] && !access(shm_path, F_OK) && unlink(shm_path)) in cleanup_ipc() 143 tst_res(TWARN | TERRNO, "unlink(%s) failed", shm_path); in cleanup_ipc()
|