Home
last modified time | relevance | path

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

/external/e2fsprogs/lib/uuid/
Dgen_uuid.c315 THREAD_LOCAL int state_fd = -2; in get_clock() local
326 if (state_fd == -2) { in get_clock()
328 state_fd = open("/var/lib/libuuid/clock.txt", in get_clock()
331 if (state_fd >= 0) { in get_clock()
332 state_f = fdopen(state_fd, "r+"); in get_clock()
334 close(state_fd); in get_clock()
335 state_fd = -1; in get_clock()
345 if (state_fd >= 0) { in get_clock()
347 while (fcntl(state_fd, F_SETLKW, &fl) < 0) { in get_clock()
351 state_fd = -1; in get_clock()
[all …]
/external/adhd/cras/src/server/
Dcras_rclient_util.c255 int state_fd; in rclient_generic_create() local
267 state_fd = cras_sys_state_shm_fd(); in rclient_generic_create()
268 client->ops->send_message_to_client(client, &msg.header, &state_fd, 1); in rclient_generic_create()
/external/adhd/cras/client/libcras/src/
Dcras_shm.rs568 pub fn try_new(state_fd: CrasServerStateShmFd) -> io::Result<Self> { in try_new()
572 unsafe { cras_mmap(state_fd.fd.size, libc::PROT_READ, state_fd.fd.as_raw_fd())? }; in try_new()
1227 let state_fd = unsafe { CrasServerStateShmFd::new(shm.into_raw_fd()) }; in cras_server_state() localVariable
1229 CrasServerState::try_new(state_fd).expect("try_new failed for valid server_state fd"); in cras_server_state()
1249 let state_fd = unsafe { CrasServerStateShmFd::new(shm.into_raw_fd()) }; in cras_server_state_old_version() localVariable
1250 CrasServerState::try_new(state_fd) in cras_server_state_old_version()
1264 let state_fd = unsafe { CrasServerStateShmFd::new(shm.into_raw_fd()) }; in cras_server_sync_state_read() localVariable
1265 let state_struct = CrasServerState::try_new(state_fd).unwrap(); in cras_server_sync_state_read()