Home
last modified time | relevance | path

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

/third_party/pulseaudio/src/pulsecore/
Dlock-autospawn.c57 static int lock_fd = -1; variable
86 pa_assert(lock_fd < 0); in ref()
133 pa_assert(lock_fd >= 0); in unref()
136 pa_close(lock_fd); in unref()
143 pa_unlock_lockfile(lf, lock_fd); in unref()
148 lock_fd = -1; in unref()
236 lock_fd = fd; in thread_func()
/third_party/alsa-utils/alsactl/
Dutils.c200 int err, stdio_flag, lock_fd = -EINVAL; in load_configuration() local
214 lock_fd = state_lock(file, 10); in load_configuration()
215 err = lock_fd >= 0 ? snd_input_stdio_open(&in, file, "r") : lock_fd; in load_configuration()
227 if (lock_fd >= 0) in load_configuration()
228 state_unlock(lock_fd, file); in load_configuration()
233 if (lock_fd >= 0) in load_configuration()
234 state_unlock(lock_fd, file); in load_configuration()
Dstate.c1599 int lock_fd = -EINVAL; in save_state() local
1617 lock_fd = state_lock(file, 10); in save_state()
1618 if (lock_fd < 0) { in save_state()
1619 err = lock_fd; in save_state()
1666 if (!stdio && lock_fd >= 0) in save_state()
1667 state_unlock(lock_fd, file); in save_state()
/third_party/libinput/test/
Dlitest.c1188 int lock_fd = -1; in inhibit() local
1221 rc = sd_bus_message_read(m, "h", &lock_fd); in inhibit()
1227 lock_fd = dup(lock_fd); in inhibit()
1234 return lock_fd; in inhibit()