Home
last modified time | relevance | path

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

/external/ppp/pppd/
Dutils.c906 static char lock_file[MAXPATHLEN]; variable
920 strlcpy(lock_file, dev, sizeof(lock_file));
927 error("Can't create lock file %s", lock_file);
946 slprintf(lock_file, sizeof(lock_file), "%s/LK.%03d.%03d.%03d",
965 slprintf(lock_file, sizeof(lock_file), "%s/LCK..%s", LOCK_DIR, dev);
968 while ((fd = open(lock_file, O_EXCL | O_CREAT | O_RDWR, 0644)) < 0) {
970 error("Can't create lock file %s: %m", lock_file);
975 fd = open(lock_file, O_RDONLY, 0);
979 error("Can't open existing lock file %s: %m", lock_file);
990 error("Can't read pid from lock file %s", lock_file);
[all …]
Dsys-solaris.c2519 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/chromium_org/tools/coverity/
Dcoverity.py99 def _ReleaseLock(lock_file, lock_filename): argument
101 os.close(lock_file)
111 lock_file = os.open(lock_filename,
118 os.write(lock_file, str(os.getpid()))
136 _ReleaseLock(lock_file, lock_filename)
151 _ReleaseLock(lock_file, lock_filename)
232 _ReleaseLock(lock_file, lock_filename)
/external/chromium_org/chrome/browser/importer/
Dfirefox_profile_lock_unittest.cc73 FILE* lock_file = base::OpenFile(lock_file_path, "w"); in TEST_F() local
74 ASSERT_TRUE(lock_file); in TEST_F()
75 base::CloseFile(lock_file); in TEST_F()
/external/chromium/chrome/browser/importer/
Dfirefox_profile_lock_unittest.cc81 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/
Dfile_locking.c24 static int lock_file(const int fd) in lock_file() function
55 if (! lock_file(fd)) in open_lock_and_map()