/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/autotest/server/cros/ |
D | lockfile.py | 138 self.lock_file = os.path.abspath(path) + ".lock" 143 dirname = os.path.dirname(self.lock_file) 232 os.link(self.unique_name, self.lock_file) 262 os.unlink(self.lock_file) 271 return os.path.exists(self.lock_file) 281 if os.path.exists(self.lock_file): 282 os.unlink(self.lock_file) 288 age = time.time() - os.stat(self.lock_file).st_ctime
|
/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/toolchain-utils/binary_search_tool/ |
D | bisect_driver.py | 42 def lock_file(path, mode): function 83 with lock_file(path, 'a') as log: 190 with lock_file(list_filename, 'r') as list_file: 274 with lock_file(os.path.join(population_dir, '_LIST'), 'a') as object_list:
|
/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/ltp/testcases/kernel/sched/sched_stress/ |
D | sched_tc6.c | 99 int lock_file(int, short, char *); 181 if (!lock_file(fd, F_WRLCK, filename)) /* set exclusive lock */ in main() 357 int lock_file(int fd, short lock_type, char *file) in lock_file() function
|
/external/selinux/libsemanage/src/ |
D | semanage_store.c | 1799 const char *lock_name, const char *lock_file) in semanage_get_lock() argument 1805 if ((fd = open(lock_file, O_RDONLY)) == -1) { in semanage_get_lock() 1807 open(lock_file, O_RDWR | O_CREAT | O_TRUNC, in semanage_get_lock() 1810 lock_file); in semanage_get_lock() 1816 lock_file); in semanage_get_lock() 1836 lock_file); in semanage_get_lock() 1847 lock_name, lock_file); in semanage_get_lock() 1855 ERR(sh, "Could not get direct %s at %s.", lock_name, lock_file); in semanage_get_lock() 1870 const char *lock_file = semanage_files[SEMANAGE_TRANS_LOCK]; in semanage_get_trans_lock() local 1876 semanage_get_lock(sh, "transaction lock", lock_file); in semanage_get_trans_lock() [all …]
|
/external/ltp/pan/ |
D | zoolib.h | 49 int lock_file( FILE *fp, short ltype, char **errmsg );
|
/external/toolchain-utils/ |
D | file_lock_machine.py | 193 def __init__(self, lock_file, auto=True): argument 194 self._to_lock = os.path.basename(lock_file) 195 self._lock_file = lock_file
|
D | image_chromeos.py | 30 lock_file = '/tmp/image_chromeos_lock/image_chromeos_lock' variable
|
/external/fio/ |
D | file.h | 201 extern void lock_file(struct thread_data *, struct fio_file *, enum fio_ddir);
|
D | ioengines.c | 196 lock_file(td, io_u->file, io_u->ddir); in td_io_prep()
|
D | filesetup.c | 1590 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
|