Searched refs:lockfile (Results 1 – 6 of 6) sorted by relevance
| /tools/libs/light/ |
| A D | libxl_internal.c | 417 lockfile, errno); in libxl__lock_file() 443 if (stat(lockfile, &stab)) { in libxl__lock_file() 487 const char *lockfile; in libxl__lock_domain_userdata() local 491 if (!lockfile) return NULL; in libxl__lock_domain_userdata() 508 const char *lockfile; in libxl__lock_domid_history() local 511 if (!lockfile) return NULL; in libxl__lock_domid_history() 627 const char *lockfile; in libxl__ev_slowlock_lock() local 631 if (!lockfile) goto out; in libxl__ev_slowlock_lock() 648 const char *lockfile = lock->path; in ev_lock_prepare_fork() local 694 lockfile, fd); in ev_lock_prepare_fork() [all …]
|
| A D | libxl_dm.c | 3578 const char * lockfile; in get_reaper_lock_and_uid() local 3582 lockfile = GCSPRINTF("%s/dm-reaper-lock", libxl__run_dir_path()); in get_reaper_lock_and_uid() 3589 fd = open(lockfile, O_RDWR|O_CREAT, 0644); in get_reaper_lock_and_uid() 3593 lockfile, errno); in get_reaper_lock_and_uid() 3606 lockfile, fd, errno); in get_reaper_lock_and_uid()
|
| /tools/console/client/ |
| A D | main.c | 48 static char lockfile[sizeof (XEN_LOCK_DIR "/xenconsole.") + 8] = { 0 }; variable 286 snprintf(lockfile, sizeof lockfile, "%s%d", XEN_LOCK_DIR "/xenconsole.", domid); in console_lock() 289 fd = open(lockfile, O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); in console_lock() 291 err(errno, "Could not open %s", lockfile); in console_lock() 297 err(errno, "Could not lock %s", lockfile); in console_lock() 300 err(errno, "Could not fstat %s", lockfile); in console_lock() 301 if (stat(lockfile, &stab)) { in console_lock() 303 err(errno, "Could not stat %s", lockfile); in console_lock() 318 if (lockfile[0] && lockfd != -1) { in console_unlock() 319 unlink(lockfile); in console_unlock()
|
| /tools/xl/ |
| A D | xl.c | 42 char *lockfile; variable 140 lockfile = strdup(buf); in parse_global_config() 142 lockfile = strdup(XL_LOCK_FILE); in parse_global_config() 145 if (!lockfile) { in parse_global_config() 373 if (lockfile) { in xl_ctx_free() 374 free(lockfile); in xl_ctx_free() 375 lockfile = NULL; in xl_ctx_free()
|
| A D | xl_vmcontrol.c | 615 fd_lock = open(lockfile, O_WRONLY|O_CREAT, S_IWUSR); in acquire_lock() 617 fprintf(stderr, "cannot open the lockfile %s errno=%d\n", lockfile, errno); in acquire_lock() 622 fprintf(stderr, "cannot set cloexec to lockfile %s errno=%d\n", lockfile, errno); in acquire_lock() 630 fprintf(stderr, "cannot acquire lock %s errno=%d\n", lockfile, errno); in acquire_lock() 656 fprintf(stderr, "cannot release lock %s, errno=%d\n", lockfile, errno); in release_lock()
|
| A D | xl.h | 278 extern char *lockfile;
|
Completed in 27 milliseconds