Home
last modified time | relevance | path

Searched refs:lock_file (Results 1 – 12 of 12) sorted by relevance

/external/autotest/server/cros/
Dlockfile.py142 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/
Dutils.c869 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 …]
Dsys-solaris.c2527 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/
Dbisect_driver.py48 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/
Dxshared.c252 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/
Dsched_tc6.c99 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/
Dsync_ebuild_files63 with open("Cargo.lock", "r") as lock_file:
64 lock_str = lock_file.read()
/external/ltp/pan/
Dzoolib.h49 int lock_file( FILE *fp, short ltype, char **errmsg );
/external/toolchain-utils/
Dfile_lock_machine.py207 def __init__(self, lock_file, auto=True): argument
208 self._to_lock = os.path.basename(lock_file)
209 self._lock_file = lock_file
Dimage_chromeos.py35 lock_file = '/tmp/image_chromeos_lock/image_chromeos_lock' variable
/external/selinux/libsemanage/src/
Dsemanage_store.c1845 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/
Ddump_syms_regtest64.sym1845 FUNC 4e3c 65 0 lock_file