Searched refs:lock_file (Results 1 – 10 of 10) sorted by relevance
/external/ppp/pppd/ |
D | utils.c | 869 static char lock_file[MAXPATHLEN]; variable 883 strlcpy(lock_file, dev, sizeof(lock_file)); 890 error("Can't create lock file %s", lock_file); 909 slprintf(lock_file, sizeof(lock_file), "%s/LK.%03d.%03d.%03d", 928 slprintf(lock_file, sizeof(lock_file), "%s/LCK..%s", LOCK_DIR, dev); 931 while ((fd = open(lock_file, O_EXCL | O_CREAT | O_RDWR, 0644)) < 0) { 933 error("Can't create lock file %s: %m", lock_file); 938 fd = open(lock_file, O_RDONLY, 0); 942 error("Can't open existing lock file %s: %m", lock_file); 953 error("Can't read pid from lock file %s", lock_file); [all …]
|
D | sys-solaris.c | 2527 static char lock_file[40]; /* name of lock file created */ 2545 slprintf(lock_file, sizeof(lock_file), "%s%03d.%03d.%03d", 2549 while ((fd = open(lock_file, O_EXCL | O_CREAT | O_RDWR, 0644)) < 0) { 2551 && (fd = open(lock_file, O_RDONLY, 0)) >= 0) { 2555 error("Can't read pid from lock file %s", lock_file); 2562 if (unlink(lock_file) == 0) { 2576 error("Can't create lock file %s: %m", lock_file); 2577 lock_file[0] = 0; 2594 if (lock_file[0]) { 2595 unlink(lock_file); [all …]
|
/external/libdaemon/libdaemon/ |
D | dpid.c | 74 static int lock_file(int fd, int enable) { in lock_file() function 122 if ((locked = lock_file(fd, 1)) < 0) in daemon_pid_file_is_running() 162 lock_file(fd, 0); in daemon_pid_file_is_running() 235 if ((locked = lock_file(fd, 1)) < 0) { in daemon_pid_file_create() 261 lock_file(fd, 0); in daemon_pid_file_create()
|
/external/valgrind/memcheck/tests/ |
D | file_locking.c | 24 static int lock_file(const int fd) in lock_file() function 55 if (! lock_file(fd)) in open_lock_and_map()
|
/external/selinux/libsemanage/src/ |
D | semanage_store.c | 1755 const char *lock_name, const char *lock_file) in semanage_get_lock() argument 1761 if ((fd = open(lock_file, O_RDONLY)) == -1) { in semanage_get_lock() 1763 open(lock_file, O_RDWR | O_CREAT | O_TRUNC, in semanage_get_lock() 1766 lock_file); in semanage_get_lock() 1772 lock_file); in semanage_get_lock() 1792 lock_file); in semanage_get_lock() 1803 lock_name, lock_file); in semanage_get_lock() 1811 ERR(sh, "Could not get direct %s at %s.", lock_name, lock_file); in semanage_get_lock() 1826 const char *lock_file = semanage_files[SEMANAGE_TRANS_LOCK]; in semanage_get_trans_lock() local 1832 semanage_get_lock(sh, "transaction lock", lock_file); in semanage_get_trans_lock() [all …]
|
/external/autotest/client/virt/ |
D | virt_utils.py | 279 lock_file = open("/tmp/mac_lock", "w+") 280 fcntl.lockf(lock_file, lock_mode) 282 return pool, lock_file 285 def _close_mac_pool(pool, lock_file): argument 287 fcntl.lockf(lock_file, fcntl.LOCK_UN) 288 lock_file.close() 325 mac_pool, lock_file = _open_mac_pool(fcntl.LOCK_EX) 338 _close_mac_pool(mac_pool, lock_file) 349 mac_pool, lock_file = _open_mac_pool(fcntl.LOCK_EX) 353 _close_mac_pool(mac_pool, lock_file) [all …]
|
/external/fio/ |
D | file.h | 183 extern void lock_file(struct thread_data *, struct fio_file *, enum fio_ddir);
|
D | ioengines.c | 208 lock_file(td, io_u->file, io_u->ddir); in td_io_prep()
|
D | filesetup.c | 1376 void lock_file(struct thread_data *td, struct fio_file *f, enum fio_ddir ddir) in lock_file() function
|
/external/google-breakpad/src/tools/windows/dump_syms/testdata/ |
D | dump_syms_regtest64.sym | 1845 FUNC 4e3c 65 0 lock_file
|