Searched refs:shm_path (Results 1 – 1 of 1) sorted by relevance
/external/ltp/lib/ |
D | tst_test.c | 68 static char shm_path[1024]; variable 81 snprintf(shm_path, sizeof(shm_path), "/dev/shm/ltp_%s_%d", in setup_ipc() 90 snprintf(shm_path, sizeof(shm_path), "%s/ltp_%s_%d", in setup_ipc() 95 ipc_fd = open(shm_path, O_CREAT | O_EXCL | O_RDWR, 0600); in setup_ipc() 97 tst_brk(TBROK | TERRNO, "open(%s)", shm_path); in setup_ipc() 98 SAFE_CHMOD(shm_path, 0666); in setup_ipc() 106 sprintf(ipc_path, IPC_ENV_VAR "=%s", shm_path); in setup_ipc() 109 SAFE_UNLINK(shm_path); in setup_ipc() 127 if (shm_path[0] && !access(shm_path, F_OK) && unlink(shm_path)) in cleanup_ipc() 128 tst_res(TWARN | TERRNO, "unlink(%s) failed", shm_path); in cleanup_ipc()
|