Home
last modified time | relevance | path

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

/netbsd/src/external/ibm-public/postfix/dist/src/util/
Dmkmap_db.c67 char *lock_file; /* path name */ member
78 msg_warn("close %s: %m", mkmap->lock_file); in mkmap_db_after_close()
79 myfree(mkmap->lock_file); in mkmap_db_after_close()
89 if ((mkmap->lock_fd = open(mkmap->lock_file, O_RDWR, 0644)) < 0) in mkmap_db_after_open()
90 msg_fatal("open lockfile %s: %m", mkmap->lock_file); in mkmap_db_after_open()
92 msg_fatal("lock %s: %m", mkmap->lock_file); in mkmap_db_after_open()
112 mkmap->lock_file = concatenate(path, ".db", (char *) 0); in mkmap_db_before_open()
124 if ((mkmap->lock_fd = open(mkmap->lock_file, O_RDWR, 0644)) < 0) { in mkmap_db_before_open()
126 msg_fatal("open %s: %m", mkmap->lock_file); in mkmap_db_before_open()
141 msg_fatal("lock %s: %m", mkmap->lock_file); in mkmap_db_before_open()
[all …]
Dmkmap_sdbm.c59 char *lock_file; /* path name */ member
70 msg_warn("close %s: %m", mkmap->lock_file); in mkmap_sdbm_after_close()
71 myfree(mkmap->lock_file); in mkmap_sdbm_after_close()
85 mkmap->lock_file = concatenate(path, ".dir", (char *) 0); in mkmap_sdbm_open()
95 if ((mkmap->lock_fd = open(mkmap->lock_file, O_CREAT | O_RDWR, 0644)) < 0) in mkmap_sdbm_open()
96 msg_fatal("open %s: %m", mkmap->lock_file); in mkmap_sdbm_open()
110 msg_fatal("lock %s: %m", mkmap->lock_file); in mkmap_sdbm_open()
Dmkmap_dbm.c62 char *lock_file; /* path name */ member
73 msg_warn("close %s: %m", mkmap->lock_file); in mkmap_dbm_after_close()
74 myfree(mkmap->lock_file); in mkmap_dbm_after_close()
88 mkmap->lock_file = concatenate(path, ".dir", (char *) 0); in mkmap_dbm_open()
98 if ((mkmap->lock_fd = open(mkmap->lock_file, O_CREAT | O_RDWR, 0644)) < 0) in mkmap_dbm_open()
99 msg_fatal("open %s: %m", mkmap->lock_file); in mkmap_dbm_open()
113 msg_fatal("lock %s: %m", mkmap->lock_file); in mkmap_dbm_open()
/netbsd/src/external/ibm-public/postfix/dist/src/global/
Ddot_lockfile.c84 char *lock_file; in dot_lockfile() local
90 lock_file = concatenate(path, ".lock", (char *) 0); in dot_lockfile()
99 if ((fd = open(lock_file, O_WRONLY | O_EXCL | O_CREAT, 0)) >= 0) { in dot_lockfile()
118 if (stat(lock_file, &st) == 0) in dot_lockfile()
120 if (unlink(lock_file) < 0) in dot_lockfile()
127 vstring_sprintf(why, "unable to create lock file %s: %m", lock_file); in dot_lockfile()
129 myfree(lock_file); in dot_lockfile()
137 char *lock_file; in dot_unlockfile() local
140 lock_file = concatenate(path, ".lock", (char *) 0); in dot_unlockfile()
141 (void) unlink(lock_file); in dot_unlockfile()
[all …]
/netbsd/src/external/bsd/ppp/dist/pppd/
Dutils.c863 static char lock_file[MAXPATHLEN]; variable
876 strlcpy(lock_file, dev, sizeof(lock_file)); in lock()
883 error("Can't create lock file %s", lock_file); in lock()
902 slprintf(lock_file, sizeof(lock_file), "%s/LK.%03d.%03d.%03d", in lock()
921 slprintf(lock_file, sizeof(lock_file), "%s/LCK..%s", PPP_PATH_LOCKDIR, dev); in lock()
924 while ((fd = open(lock_file, O_EXCL | O_CREAT | O_RDWR, 0644)) < 0) { in lock()
926 error("Can't create lock file %s: %m", lock_file); in lock()
931 fd = open(lock_file, O_RDONLY, 0); in lock()
935 error("Can't open existing lock file %s: %m", lock_file); in lock()
946 error("Can't read pid from lock file %s", lock_file); in lock()
[all …]
/netbsd/src/external/gpl3/gdb/dist/gdb/testsuite/lib/
Dgdb-utils.exp193 proc with_lock { lock_file body } {
195 set lock_file [file join [lock_dir] $lock_file]
196 set lock_rc [lock_file_acquire $lock_file]
/netbsd/src/crypto/external/bsd/heimdal/dist/lib/hdb/
Dndbm.c140 char *lock_file; in open_lock_file() local
143 asprintf(&lock_file, "%s.lock", db_name); in open_lock_file()
144 if(lock_file == NULL) { in open_lock_file()
149 *fd = open(lock_file, O_RDWR | O_CREAT, 0600); in open_lock_file()
150 free(lock_file); in open_lock_file()
153 krb5_set_error_message(context, ret, "open(%s): %s", lock_file, in open_lock_file()
/netbsd/src/external/bsd/ppp/usr.sbin/pppd/
Dsys-bsd.c2123 static char *lock_file; /* name of lock file created */
2136 lock_file = malloc(l);
2137 if (lock_file == NULL)
2139 slprintf(lock_file, l, "%s%s", LOCK_PREFIX, dev);
2141 while ((fd = open(lock_file, O_EXCL | O_CREAT | O_RDWR, 0644)) < 0) {
2143 && (fd = open(lock_file, O_RDONLY, 0)) >= 0) {
2148 lock_file);
2155 if (unlink(lock_file) == 0) {
2169 error("%s: Can't create lock file %s: %m", __func__, lock_file);
2170 free(lock_file);
[all …]