HomeSort by: relevance | last modified time | path
    Searched refs:lock_file (Results 1 - 9 of 9) sorted by relevancy

  /src/external/ibm-public/postfix/dist/src/global/
dot_lockfile.c 84 char *lock_file; local
90 lock_file = concatenate(path, ".lock", (char *) 0);
99 if ((fd = open(lock_file, O_WRONLY | O_EXCL | O_CREAT, 0)) >= 0) {
118 if (stat(lock_file, &st) == 0)
120 if (unlink(lock_file) < 0)
127 vstring_sprintf(why, "unable to create lock file %s: %m", lock_file);
129 myfree(lock_file);
137 char *lock_file; local
140 lock_file = concatenate(path, ".lock", (char *) 0);
141 (void) unlink(lock_file);
    [all...]
  /src/external/ibm-public/postfix/dist/src/util/
mkmap_db.c 67 char *lock_file; /* path name */ member in struct:MKMAP_DB
78 msg_warn("close %s: %m", mkmap->lock_file);
79 myfree(mkmap->lock_file);
89 if ((mkmap->lock_fd = open(mkmap->lock_file, O_RDWR, 0644)) < 0)
90 msg_fatal("open lockfile %s: %m", mkmap->lock_file);
92 msg_fatal("lock %s: %m", mkmap->lock_file);
112 mkmap->lock_file = concatenate(path, ".db", (char *) 0);
124 if ((mkmap->lock_fd = open(mkmap->lock_file, O_RDWR, 0644)) < 0) {
126 msg_fatal("open %s: %m", mkmap->lock_file);
141 msg_fatal("lock %s: %m", mkmap->lock_file);
    [all...]
mkmap_dbm.c 62 char *lock_file; /* path name */ member in struct:MKMAP_DBM
73 msg_warn("close %s: %m", mkmap->lock_file);
74 myfree(mkmap->lock_file);
88 mkmap->lock_file = concatenate(path, ".dir", (char *) 0);
98 if ((mkmap->lock_fd = open(mkmap->lock_file, O_CREAT | O_RDWR, 0644)) < 0)
99 msg_fatal("open %s: %m", mkmap->lock_file);
113 msg_fatal("lock %s: %m", mkmap->lock_file);
mkmap_sdbm.c 59 char *lock_file; /* path name */ member in struct:MKMAP_SDBM
70 msg_warn("close %s: %m", mkmap->lock_file);
71 myfree(mkmap->lock_file);
85 mkmap->lock_file = concatenate(path, ".dir", (char *) 0);
95 if ((mkmap->lock_fd = open(mkmap->lock_file, O_CREAT | O_RDWR, 0644)) < 0)
96 msg_fatal("open %s: %m", mkmap->lock_file);
110 msg_fatal("lock %s: %m", mkmap->lock_file);
  /src/external/bsd/ppp/dist/pppd/
utils.c 863 static char lock_file[MAXPATHLEN]; variable
876 strlcpy(lock_file, dev, sizeof(lock_file));
883 error("Can't create lock file %s", lock_file);
902 slprintf(lock_file, sizeof(lock_file), "%s/LK.%03d.%03d.%03d",
921 slprintf(lock_file, sizeof(lock_file), "%s/LCK..%s", PPP_PATH_LOCKDIR, dev);
924 while ((fd = open(lock_file, O_EXCL | O_CREAT | O_RDWR, 0644)) < 0) {
926 error("Can't create lock file %s: %m", lock_file);
    [all...]
  /src/external/gpl3/gdb.old/dist/gdb/testsuite/lib/
gdb-utils.exp 218 # Run body under lock LOCK_FILE.
220 proc with_lock { lock_file body } {
222 set lock_file [file join [lock_dir] $lock_file]
223 set lock_rc [lock_file_acquire $lock_file]
  /src/external/gpl3/gdb/dist/gdb/testsuite/lib/
gdb-utils.exp 227 # Run body under lock LOCK_FILE.
229 proc with_lock { lock_file body } {
231 set lock_file [file join [lock_dir] $lock_file]
232 set lock_rc [lock_file_acquire $lock_file]
  /src/crypto/external/bsd/heimdal/dist/lib/hdb/
ndbm.c 140 char *lock_file; local
143 asprintf(&lock_file, "%s.lock", db_name);
144 if(lock_file == NULL) {
149 *fd = open(lock_file, O_RDWR | O_CREAT, 0600);
150 free(lock_file);
153 krb5_set_error_message(context, ret, "open(%s): %s", lock_file,
  /src/external/bsd/ppp/usr.sbin/pppd/
sys-bsd.c 2123 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...]

Completed in 21 milliseconds