/illumos-gate/usr/src/lib/libnsl/common/ |
H A D | daemon_utils.c | 90 char lock_file[MAXPATHLEN], buf[MAXPATHLEN]; local 122 (void) snprintf(lock_file, MAXPATHLEN, "/etc/svc/volatile/%s.lock", p); 124 if ((fd = open(lock_file, mode, 0644)) == -1)
|
/illumos-gate/usr/src/cmd/make/lib/vroot/ |
H A D | report.cc | 100 char lock_file[MAXPATHLEN]; local 113 sprintf(lock_file, "%s/%s", search_dir, NSE_DEPINFO_LOCK); 114 err = file_lock(nse_depinfo_file, lock_file, &file_locked, 0); 131 unlink(lock_file); 142 unlink(lock_file); 150 unlink(lock_file); 183 unlink(lock_file); 198 unlink(lock_file);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | utils.c | 827 static char lock_file[MAXPATHLEN]; variable 841 (void) strlcpy(lock_file, sizeof(lock_file), dev); 848 error("Can't create lock file %s", lock_file); 867 (void) slprintf(lock_file, sizeof(lock_file), "%s/LK.%03d.%03d.%03d", 875 (void) slprintf(lock_file, sizeof(lock_file), "%s/LCK..%s", LOCK_DIR, dev); 878 while ((fd = open(lock_file, O_EXCL | O_CREAT | O_RDWR, 0644)) < 0) { 880 error("Can't create lock file %s: %m", lock_file); [all...] |
/illumos-gate/usr/src/cmd/syseventadm/ |
H A D | syseventadm.c | 88 static char lock_file[PATH_MAX + 1]; variable 224 if (snprintf(lock_file, sizeof (lock_file), "%s%s", root_dir, 225 LOCK_FILENAME) >= sizeof (lock_file)) { 226 (void) fprintf(stderr, MSG_LOCK_PATH_ERR, whoami, lock_file); 229 lock_fd = open(lock_file, O_CREAT|O_RDWR, 0644); 232 whoami, lock_file, strerror(errno)); 247 whoami, lock_file, strerror(errno)); 265 whoami, lock_file, strerror(errno)); 270 whoami, lock_file, strerro [all...] |
/illumos-gate/usr/src/lib/libdladm/common/ |
H A D | libdladm.c | 578 i_dladm_lock_db(const char *lock_file, short type) argument 583 if ((lock_fd = open(lock_file, O_RDWR | O_CREAT | O_TRUNC, 596 (void) unlink(lock_file); 604 i_dladm_unlock_db(const char *lock_file, int fd) argument 618 (void) unlink(lock_file);
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softKeystoreUtil.c | 268 lock_file(int fd, boolean_t read_lock, boolean_t set_lock) function 370 if (lock_file(fd, B_FALSE, B_TRUE) != 0) { 380 (void) lock_file(fd, B_FALSE, B_FALSE); 390 (void) lock_file(fd, B_FALSE, B_FALSE); 470 (void) lock_file(fd, B_FALSE, B_FALSE); 478 (void) lock_file(fd, B_FALSE, B_FALSE); 531 if (lock_file(*fd, read_lock, B_TRUE) != 0) { 540 (void) lock_file(*fd, B_TRUE, B_FALSE); /* unlock file */ 551 if (lock_file(*fd, B_TRUE, B_FALSE) != 0) { 564 if (lock_file(*f [all...] |
/illumos-gate/usr/src/cmd/syseventd/modules/sysevent_conf_mod/ |
H A D | sysevent_conf_mod.c | 806 enter_lock(char *lock_file) argument 811 (void) strlcpy(lock_file, LOCK_FILENAME, PATH_MAX); 812 lock_fd = open(lock_file, O_CREAT|O_RDWR, 0644); 815 whoami, lock_file, strerror(errno)); 830 whoami, lock_file, strerror(errno)); 839 exit_lock(int lock_fd, char *lock_file) argument 850 whoami, lock_file, strerror(errno)); 855 whoami, lock_file, strerror(errno)); 2153 char lock_file[PATH_MAX+1]; local 2221 if ((lock_fd = enter_lock(lock_file)) [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ |
H A D | ipsecconf.c | 107 static const char lock_file[] = "/var/run/ipsecconf.lock"; variable 111 #define LOCK_FILE lock_file
|