/external/autotest/server/cros/ |
D | lockfile.py | 142 self.lock_file = os.path.abspath(path) + ".lock" 147 dirname = os.path.dirname(self.lock_file) 236 os.link(self.unique_name, self.lock_file) 266 os.unlink(self.lock_file) 275 return os.path.exists(self.lock_file) 285 if os.path.exists(self.lock_file): 286 os.unlink(self.lock_file) 292 age = time.time() - os.stat(self.lock_file).st_ctime
|
/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/toolchain-utils/binary_search_tool/ |
D | bisect_driver.py | 48 def lock_file(path, mode): function 93 with lock_file(path, 'a') as log: 211 with lock_file(list_filename, 'r') as list_file: 264 with lock_file(os.path.join(population_dir, '_DUPS'), 342 with lock_file(os.path.join(population_dir, '_LIST'), 'a') as object_list:
|
/external/iptables/iptables/ |
D | xshared.c | 252 const char *lock_file; in xtables_lock() local 258 lock_file = getenv("XTABLES_LOCKFILE"); in xtables_lock() 259 if (lock_file == NULL || lock_file[0] == '\0') in xtables_lock() 260 lock_file = XT_LOCK_NAME; in xtables_lock() 262 fd = open(lock_file, O_CREAT, 0600); in xtables_lock() 265 lock_file, strerror(errno)); in xtables_lock() 273 fprintf(stderr, "Can't lock %s: %s\n", lock_file, in xtables_lock()
|
/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/crosvm/bin/ |
D | sync_ebuild_files | 63 with open("Cargo.lock", "r") as lock_file: 64 lock_str = lock_file.read()
|
/external/ltp/pan/ |
D | zoolib.h | 49 int lock_file( FILE *fp, short ltype, char **errmsg );
|
/external/toolchain-utils/ |
D | file_lock_machine.py | 207 def __init__(self, lock_file, auto=True): argument 208 self._to_lock = os.path.basename(lock_file) 209 self._lock_file = lock_file
|
D | image_chromeos.py | 35 lock_file = '/tmp/image_chromeos_lock/image_chromeos_lock' variable
|
/external/selinux/libsemanage/src/ |
D | semanage_store.c | 1845 const char *lock_name, const char *lock_file) in semanage_get_lock() argument 1851 if ((fd = open(lock_file, O_RDONLY)) == -1) { in semanage_get_lock() 1853 open(lock_file, O_RDWR | O_CREAT | O_TRUNC, in semanage_get_lock() 1856 lock_file); in semanage_get_lock() 1862 lock_file); in semanage_get_lock() 1882 lock_file); in semanage_get_lock() 1893 lock_name, lock_file); in semanage_get_lock() 1901 ERR(sh, "Could not get direct %s at %s.", lock_name, lock_file); in semanage_get_lock() 1916 const char *lock_file = semanage_files[SEMANAGE_TRANS_LOCK]; in semanage_get_trans_lock() local 1922 semanage_get_lock(sh, "transaction lock", lock_file); in semanage_get_trans_lock() [all …]
|
/external/google-breakpad/src/tools/windows/dump_syms/testdata/ |
D | dump_syms_regtest64.sym | 1845 FUNC 4e3c 65 0 lock_file
|