Searched refs:lock_path (Results 1 – 3 of 3) sorted by relevance
/third_party/libwebsockets/lib/misc/ |
D | daemonize.c | 33 static char *lock_path; variable 54 if (!lock_path) in child_handler() 59 fd = lws_open(lock_path, O_TRUNC | O_RDWR | O_CREAT, 0640); in child_handler() 63 lock_path, errno, strerror(errno)); in child_handler() 71 lock_path, errno, strerror(errno)); in child_handler() 87 if (lock_path) { in lws_daemon_closing() 88 unlink(lock_path); in lws_daemon_closing() 89 lws_free_set_NULL(lock_path); in lws_daemon_closing() 135 unlink(lock_path); in lws_daemonize() 140 lock_path = lws_malloc((unsigned int)n, "daemonize lock"); in lws_daemonize() [all …]
|
/third_party/weston/tests/ |
D | weston-test-fixture-compositor.c | 100 char *lock_path; in get_lock_path() local 110 if (asprintf(&lock_path, "%s/%s", env_path, suffix) == -1) in get_lock_path() 113 return lock_path; in get_lock_path() 128 char *lock_path; in wait_for_lock() local 131 lock_path = get_lock_path(); in wait_for_lock() 132 if (!lock_path) in wait_for_lock() 135 fd = open(lock_path, O_RDWR | O_CLOEXEC | O_CREAT, 00700); in wait_for_lock() 137 fprintf(stderr, "Could not open lock file %s: %s\n", lock_path, strerror(errno)); in wait_for_lock() 140 fprintf(stderr, "Waiting for lock on %s...\n", lock_path); in wait_for_lock() 145 fprintf(stderr, "Could not lock %s: %s\n", lock_path, strerror(errno)); in wait_for_lock() [all …]
|
/third_party/glib/gio/ |
D | gdbusauthmechanismsha1.c | 510 create_lock_exclusive (const gchar *lock_path, in create_lock_exclusive() argument 516 ret = g_open (lock_path, O_CREAT | O_EXCL, 0600); in create_lock_exclusive() 524 lock_path, in create_lock_exclusive()
|