/netbsd-6-1-5-RELEASE/external/ibm-public/postfix/dist/src/global/ |
H A D | dot_lockfile.c | 83 char *lock_file; local 89 lock_file = concatenate(path, ".lock", (char *) 0); 98 if ((fd = open(lock_file, O_WRONLY | O_EXCL | O_CREAT, 0)) >= 0) { 117 if (stat(lock_file, &st) == 0) 119 if (unlink(lock_file) < 0) 126 vstring_sprintf(why, "unable to create lock file %s: %m", lock_file); 128 myfree(lock_file); 136 char *lock_file; local 139 lock_file = concatenate(path, ".lock", (char *) 0); 140 (void) unlink(lock_file); [all...] |
H A D | mkmap_db.c | 70 char *lock_file; /* path name */ member in struct:MKMAP_DB 81 msg_warn("close %s: %m", mkmap->lock_file); 82 myfree(mkmap->lock_file); 92 if ((mkmap->lock_fd = open(mkmap->lock_file, O_RDWR, 0644)) < 0) 93 msg_fatal("open lockfile %s: %m", mkmap->lock_file); 95 msg_fatal("lock %s: %m", mkmap->lock_file); 130 mkmap->lock_file = concatenate(path, ".db", (char *) 0); 142 if ((mkmap->lock_fd = open(mkmap->lock_file, O_RDWR, 0644)) < 0) { 144 msg_fatal("open %s: %m", mkmap->lock_file); 159 msg_fatal("lock %s: %m", mkmap->lock_file); [all...] |
H A D | 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);
|
H A D | 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);
|
/netbsd-6-1-5-RELEASE/external/gpl3/binutils/dist/gas/testsuite/gas/hppa/parse/ |
H A D | align1.s | 22 lock_file: label
|
/netbsd-6-1-5-RELEASE/dist/pppd/pppd/ |
H A D | utils.c | 844 static char lock_file[MAXPATHLEN]; variable 858 strlcpy(lock_file, dev, sizeof(lock_file)); 865 error("Can't create lock file %s", lock_file); 884 slprintf(lock_file, sizeof(lock_file), "%s/LK.%03d.%03d.%03d", 903 slprintf(lock_file, sizeof(lock_file), "%s/LCK..%s", LOCK_DIR, dev); 906 while ((fd = open(lock_file, O_EXCL | O_CREAT | O_RDWR, 0644)) < 0) { 908 error("Can't create lock file %s: %m", lock_file); [all...] |
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/hdb/ |
H A D | 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,
|
/netbsd-6-1-5-RELEASE/usr.sbin/pppd/pppd/ |
H A D | sys-bsd.c | 1981 static char *lock_file; /* name of lock file created */ 1994 lock_file = malloc(l); 1995 if (lock_file == NULL) 1997 slprintf(lock_file, l, "%s%s", LOCK_PREFIX, dev); 1999 while ((fd = open(lock_file, O_EXCL | O_CREAT | O_RDWR, 0644)) < 0) { 2001 && (fd = open(lock_file, O_RDONLY, 0)) >= 0) { 2006 lock_file); 2013 if (unlink(lock_file) == 0) { 2027 error("%s: Can't create lock file %s: %m", __func__, lock_file); 2028 free(lock_file); [all...] |