Searched refs:shm_path (Results 1 – 1 of 1) sorted by relevance
/external/ltp/lib/ |
D | tst_test.c | 73 static char shm_path[1024]; variable 86 snprintf(shm_path, sizeof(shm_path), "/dev/shm/ltp_%s_%d", in setup_ipc() 95 snprintf(shm_path, sizeof(shm_path), "%s/ltp_%s_%d", in setup_ipc() 100 ipc_fd = open(shm_path, O_CREAT | O_EXCL | O_RDWR, 0600); in setup_ipc() 102 tst_brk(TBROK | TERRNO, "open(%s)", shm_path); in setup_ipc() 103 SAFE_CHMOD(shm_path, 0666); in setup_ipc() 111 sprintf(ipc_path, IPC_ENV_VAR "=%s", shm_path); in setup_ipc() 114 SAFE_UNLINK(shm_path); in setup_ipc() 132 if (shm_path[0] && !access(shm_path, F_OK) && unlink(shm_path)) in cleanup_ipc() 133 tst_res(TWARN | TERRNO, "unlink(%s) failed", shm_path); in cleanup_ipc()
|