Home
last modified time | relevance | path

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

/third_party/ltp/lib/
Dtst_test.c78 static char shm_path[1024]; variable
92 snprintf(shm_path, sizeof(shm_path), "/dev/shm/ltp_%s_%d", in setup_ipc()
101 snprintf(shm_path, sizeof(shm_path), "%s/ltp_%s_%d", in setup_ipc()
106 ipc_fd = open(shm_path, O_CREAT | O_EXCL | O_RDWR, 0600); in setup_ipc()
108 tst_brk(TBROK | TERRNO, "open(%s)", shm_path); in setup_ipc()
109 SAFE_CHMOD(shm_path, 0666); in setup_ipc()
117 sprintf(ipc_path, IPC_ENV_VAR "=%s", shm_path); in setup_ipc()
120 SAFE_UNLINK(shm_path); in setup_ipc()
138 if (shm_path[0] && !access(shm_path, F_OK) && unlink(shm_path)) in cleanup_ipc()
139 tst_res(TWARN | TERRNO, "unlink(%s) failed", shm_path); in cleanup_ipc()