Home
last modified time | relevance | path

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

/third_party/wayland_standard/src/
Dwayland-server.c66 int fd_lock; member
1093 if (s->fd_lock >= 0) in wl_socket_destroy()
1094 close(s->fd_lock); in wl_socket_destroy()
1109 s->fd_lock = -1; in wl_socket_alloc()
1439 socket->fd_lock = open(socket->lock_addr, O_CREAT | O_CLOEXEC | O_RDWR, in wl_socket_lock()
1442 if (socket->fd_lock < 0) { in wl_socket_lock()
1448 if (flock(socket->fd_lock, LOCK_EX | LOCK_NB) < 0) { in wl_socket_lock()
1467 close(socket->fd_lock); in wl_socket_lock()
1468 socket->fd_lock = -1; in wl_socket_lock()
/third_party/eudev/src/udev/
Dudevd.c293 int fd_lock = -1; in worker_spawn() local
326fd_lock = open(udev_device_get_devnode(d), O_RDONLY|O_CLOEXEC|O_NOFOLLOW|O_NONBLOCK); in worker_spawn()
327 if (fd_lock >= 0 && flock(fd_lock, LOCK_SH|LOCK_NB) < 0) { in worker_spawn()
329 fd_lock = safe_close(fd_lock); in worker_spawn()
353 safe_close(fd_lock); in worker_spawn()