Home
last modified time | relevance | path

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

/external/qemu/android/utils/
Dfilelock.c99 int pidfile_fd = -1; in filelock_lock() local
120 pidfile_fd = open( lock->temp, O_RDONLY ); in filelock_lock()
122 if (pidfile_fd >= 0) in filelock_lock()
130 if (pidfile_fd < 0) { in filelock_lock()
142 len = read( pidfile_fd, buf, sizeof(buf)-1 ); in filelock_lock()
145 close( pidfile_fd ); in filelock_lock()
155 close( pidfile_fd ); in filelock_lock()
190 pidfile_fd = open( lock->temp, O_WRONLY | O_CREAT | O_TRUNC ); in filelock_lock()
191 if (pidfile_fd < 0) { in filelock_lock()
197 pidfile_fd = open( lock->temp, O_WRONLY | O_CREAT | O_TRUNC ); in filelock_lock()
[all …]
/external/chromium_org/net/tools/flip_server/
Dflip_in_mem_edsm_server.cc157 int pidfile_fd; in main() local
207 pidfile_fd = OpenPidFile(cl.GetSwitchValueASCII("pidfile").c_str()); in main()
209 pidfile_fd = OpenPidFile(PIDFILE); in main()
420 close(pidfile_fd); in main()