/titanic_41/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); 885 fd = open(lock_file, O_RDONLY, 0); 889 error("Can't open existing lock file %s: %m", lock_file); 900 error("Can't read pid from lock file %s", lock_file); [all …]
|
/titanic_41/usr/src/cmd/make/lib/vroot/ |
H A D | report.cc | 100 char lock_file[MAXPATHLEN]; in close_file() local 113 sprintf(lock_file, "%s/%s", search_dir, NSE_DEPINFO_LOCK); in close_file() 114 err = file_lock(nse_depinfo_file, lock_file, &file_locked, 0); in close_file() 131 unlink(lock_file); in close_file() 142 unlink(lock_file); in close_file() 150 unlink(lock_file); in close_file() 183 unlink(lock_file); in close_file() 198 unlink(lock_file); in close_file()
|
/titanic_41/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) in lock_file() function 370 if (lock_file(fd, B_FALSE, B_TRUE) != 0) { in create_keystore() 380 (void) lock_file(fd, B_FALSE, B_FALSE); in create_keystore() 390 (void) lock_file(fd, B_FALSE, B_FALSE); in create_keystore() 470 (void) lock_file(fd, B_FALSE, B_FALSE); in create_keystore() 478 (void) lock_file(fd, B_FALSE, B_FALSE); in create_keystore() 531 if (lock_file(*fd, read_lock, B_TRUE) != 0) { in acquire_file_lock() 540 (void) lock_file(*fd, B_TRUE, B_FALSE); /* unlock file */ in acquire_file_lock() 551 if (lock_file(*fd, B_TRUE, B_FALSE) != 0) { in acquire_file_lock() 564 if (lock_file(*fd, read_lock, B_TRUE) != 0) { in acquire_file_lock() [all …]
|
/titanic_41/usr/src/lib/libnsl/common/ |
H A D | daemon_utils.c | 90 char lock_file[MAXPATHLEN], buf[MAXPATHLEN]; in open_daemon_lock() local 122 (void) snprintf(lock_file, MAXPATHLEN, "/etc/svc/volatile/%s.lock", p); in open_daemon_lock() 124 if ((fd = open(lock_file, mode, 0644)) == -1) in open_daemon_lock()
|
/titanic_41/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, in enter_lock() 225 LOCK_FILENAME) >= sizeof (lock_file)) { in enter_lock() 226 (void) fprintf(stderr, MSG_LOCK_PATH_ERR, whoami, lock_file); in enter_lock() 229 lock_fd = open(lock_file, O_CREAT|O_RDWR, 0644); in enter_lock() 232 whoami, lock_file, strerror(errno)); in enter_lock() 247 whoami, lock_file, strerror(errno)); in enter_lock() 265 whoami, lock_file, strerror(errno)); in exit_lock() 270 whoami, lock_file, strerror(errno)); in exit_lock()
|
/titanic_41/usr/src/cmd/syseventd/modules/sysevent_conf_mod/ |
H A D | sysevent_conf_mod.h | 145 static int enter_lock(char *lock_file); 146 static void exit_lock(int lock_fd, char *lock_file);
|
H A D | sysevent_conf_mod.c | 806 enter_lock(char *lock_file) in enter_lock() argument 811 (void) strlcpy(lock_file, LOCK_FILENAME, PATH_MAX); in enter_lock() 812 lock_fd = open(lock_file, O_CREAT|O_RDWR, 0644); in enter_lock() 815 whoami, lock_file, strerror(errno)); in enter_lock() 830 whoami, lock_file, strerror(errno)); in enter_lock() 839 exit_lock(int lock_fd, char *lock_file) in exit_lock() argument 850 whoami, lock_file, strerror(errno)); in exit_lock() 855 whoami, lock_file, strerror(errno)); in exit_lock() 2155 char lock_file[PATH_MAX+1]; in slm_init() local 2223 if ((lock_fd = enter_lock(lock_file)) == -1) { in slm_init() [all …]
|
/titanic_41/usr/src/lib/libdladm/common/ |
H A D | libdladm.c | 578 i_dladm_lock_db(const char *lock_file, short type) in i_dladm_lock_db() argument 583 if ((lock_fd = open(lock_file, O_RDWR | O_CREAT | O_TRUNC, in i_dladm_lock_db() 596 (void) unlink(lock_file); in i_dladm_lock_db() 604 i_dladm_unlock_db(const char *lock_file, int fd) in i_dladm_unlock_db() argument 618 (void) unlink(lock_file); in i_dladm_unlock_db()
|
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/ |
H A D | Makefile.com | 146 ktdefname.o kuserok.o mk_faddr.o localaddr.o locate_kdc.o lock_file.o \
|
/titanic_41/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
|
/titanic_41/exception_lists/ |
H A D | copyright | 219 usr/src/lib/gss_mechs/mech_krb5/krb5/os/lock_file.c
|
H A D | cstyle | 341 usr/src/lib/gss_mechs/mech_krb5/krb5/os/lock_file.c
|