Searched refs:lock_file (Results 1 – 6 of 6) sorted by relevance
/external/ppp/pppd/ |
D | utils.c | 903 static char lock_file[MAXPATHLEN]; variable 917 strlcpy(lock_file, dev, sizeof(lock_file)); 924 error("Can't create lock file %s", lock_file); 943 slprintf(lock_file, sizeof(lock_file), "%s/LK.%03d.%03d.%03d", 962 slprintf(lock_file, sizeof(lock_file), "%s/LCK..%s", LOCK_DIR, dev); 965 while ((fd = open(lock_file, O_EXCL | O_CREAT | O_RDWR, 0644)) < 0) { 967 error("Can't create lock file %s: %m", lock_file); 972 fd = open(lock_file, O_RDONLY, 0); 976 error("Can't open existing lock file %s: %m", lock_file); 987 error("Can't read pid from lock file %s", lock_file); [all …]
|
D | sys-solaris.c | 2519 static char lock_file[40]; /* name of lock file created */ 2537 slprintf(lock_file, sizeof(lock_file), "%s%03d.%03d.%03d", 2541 while ((fd = open(lock_file, O_EXCL | O_CREAT | O_RDWR, 0644)) < 0) { 2543 && (fd = open(lock_file, O_RDONLY, 0)) >= 0) { 2547 error("Can't read pid from lock file %s", lock_file); 2554 if (unlink(lock_file) == 0) { 2568 error("Can't create lock file %s: %m", lock_file); 2569 lock_file[0] = 0; 2586 if (lock_file[0]) { 2587 unlink(lock_file); [all …]
|
/external/webkit/Tools/Scripts/webkitpy/layout_tests/port/ |
D | http_lock_unittest.py | 59 lock_file = open(self.lock_file_name, 'r') 60 lock_file_pid = lock_file.readline() 61 lock_file.close() 87 for lock_file, expected in zip(lock_file_list, expected_number_list): 88 self.assertEqual(self.http_lock_obj._extract_lock_number(lock_file), expected)
|
D | http_lock.py | 118 lock_file = open(self._process_lock_file_name, 'w') 119 lock_file.write(str(os.getpid())) 120 lock_file.close()
|
/external/chromium/chrome/browser/importer/ |
D | firefox_profile_lock_unittest.cc | 81 FILE* lock_file = file_util::OpenFile(lock_file_path, "w"); in TEST_F() local 82 ASSERT_TRUE(lock_file); in TEST_F() 83 file_util::CloseFile(lock_file); in TEST_F()
|
/external/valgrind/main/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()
|