| /onnv/onnv-gate/usr/src/cmd/lp/cmd/lpsched/ |
| lpsched.c | 46 int lock_fd = -1; variable 211 if ((lock_fd = open_locked(Lp_Schedlock, "a", 0664)) < 0) 216 close(lock_fd); 223 if ((lock_fd = open_locked(Lp_Schedlock, "w", 0664)) < 0) 282 (void) close(lock_fd);
|
| /onnv/onnv-gate/usr/src/lib/libzonecfg/common/ |
| getzoneent.c | 203 int lock_fd; local 215 lock_fd = open(path, O_CREAT|O_RDWR, 0644); 216 if (lock_fd == -1) 224 if (fcntl(lock_fd, F_SETLKW, &lock) == -1) { 225 (void) close(lock_fd); 229 return (lock_fd); 233 unlock_index_file(int lock_fd) 242 if (fcntl(lock_fd, F_SETLK, &lock) == -1) 245 if (close(lock_fd) == -1) 275 int tmp_file_desc, lock_fd, err local [all...] |
| /onnv/onnv-gate/usr/src/cmd/svr4pkg/libinst/ |
| lockinst.c | 76 static int lock_fd, lock_is_applied; variable 194 lock_fd = fd; 256 (void) wrlockdata(lock_fd, lock_pid, lock_name, lock_pkg, place, 268 (void) wrlockdata(lock_fd, lock_pid, lock_name, lock_pkg, 276 if (close(lock_fd) != -1)
|
| ocfile.c | 103 static int lock_fd; /* fd of LOCKFILE. */ variable 558 lock_fd = open(lockpath, O_RDWR|O_CREAT|O_TRUNC|O_EXCL, 0644); 559 if (lock_fd < 0) { 564 (void) fchmod(lock_fd, 0644); /* force perms. */ 567 if ((lock_fd = open(lockpath, O_RDWR)) == -1) { 578 if (lockf(lock_fd, F_LOCK, 0)) { 623 if (close(lock_fd))
|
| /onnv/onnv-gate/usr/src/cmd/cmd-inet/usr.sbin/in.ftpd/ |
| ftpcount.c | 197 /* FUNCTION : lock_fd */ 202 static void lock_fd(int fd) function 229 /* PURPOSE : Unlock a file locked by lock_fd. */ 265 lock_fd(pidfd);
|
| access.c | 1089 /* FUNCTION : lock_fd */ 1094 static void lock_fd(int fd) function 1119 /* PURPOSE : Unlock a file locked by lock_fd. */ [all...] |
| /onnv/onnv-gate/usr/src/cmd/sendmail/libsmdb/ |
| smdb1.c | 459 int lock_fd; local 490 lock_fd = -1; 491 result = smdb_lock_file(&lock_fd, db_name, mode, sff, 508 db1->smdb1_lock_fd = lock_fd;
|
| smdb2.c | 581 int lock_fd; local 607 lock_fd = -1; 613 result = smdb_lock_file(&lock_fd, db_name, mode, sff, 632 db2->smdb2_lock_fd = lock_fd;
|
| smndbm.c | 499 int lock_fd; local 527 lock_fd = -1; 528 result = smdb_lock_file(&lock_fd, db_name, mode, sff, 542 (void) close(lock_fd); 562 db->smndbm_lock_fd = lock_fd;
|
| /onnv/onnv-gate/usr/src/lib/libdladm/common/ |
| libdladm.c | 543 int lock_fd; local 546 if ((lock_fd = open(lock_file, O_RDWR | O_CREAT | O_TRUNC, 555 if (fcntl(lock_fd, F_SETLKW, &lock) < 0) { 558 (void) close(lock_fd); 563 return (lock_fd); 677 int nfd, lock_fd; local 690 if ((lock_fd = i_dladm_lock_db 698 i_dladm_unlock_db(lock, lock_fd); 711 i_dladm_unlock_db(lock, lock_fd); 719 i_dladm_unlock_db(lock, lock_fd); [all...] |
| libdlflow.c | 85 int lock_fd; local 88 if ((lock_fd = open(DLADM_FLOW_DB_LOCK, O_RDWR | O_CREAT | O_TRUNC, 97 if (fcntl(lock_fd, F_SETLKW, &lock) < 0) { 98 (void) close(lock_fd); 102 return (lock_fd); 328 int nfd, fn_rc, lock_fd; local 348 if ((lock_fd = i_dladm_flow_lock_db(F_WRLCK)) < 0) 352 i_dladm_flow_unlock_db(lock_fd); 359 i_dladm_flow_unlock_db(lock_fd); 367 i_dladm_flow_unlock_db(lock_fd); 492 int lock_fd; local [all...] |
| /onnv/onnv-gate/usr/src/cmd/syseventadm/ |
| syseventadm.c | 87 static int lock_fd; variable 229 lock_fd = open(lock_file, O_CREAT|O_RDWR, 0644); 230 if (lock_fd < 0) { 242 if (fcntl(lock_fd, F_SETLKW, &lock) == -1) { 245 (void) close(lock_fd); 263 if (fcntl(lock_fd, F_SETLK, &lock) == -1) { 268 if (close(lock_fd) == -1) {
|
| /onnv/onnv-gate/usr/src/cmd/krb5/slave/ |
| kpropd.c | 530 int lock_fd; local 658 lock_fd = open(temp_file_name, O_RDWR|O_CREAT, 0600); 660 retval = krb5_lock_file(doit_context, lock_fd, 683 retval = krb5_lock_file(doit_context, lock_fd, KRB5_LOCKMODE_SHARED); 691 retval = krb5_lock_file(doit_context, lock_fd, KRB5_LOCKMODE_UNLOCK); 697 (void)close(lock_fd); [all...] |
| /onnv/onnv-gate/usr/src/cmd/syseventd/modules/sysevent_conf_mod/ |
| sysevent_conf_mod.c | 809 int lock_fd; local 812 lock_fd = open(lock_file, O_CREAT|O_RDWR, 0644); 813 if (lock_fd < 0) { 825 if (fcntl(lock_fd, F_SETLKW, &lock) == -1) { 828 (void) close(lock_fd); 834 return (lock_fd); 839 exit_lock(int lock_fd, char *lock_file) 848 if (fcntl(lock_fd, F_SETLK, &lock) == -1) { 853 if (close(lock_fd) == -1) { 2156 int lock_fd; local [all...] |
| /onnv/onnv-gate/usr/src/lib/libdevinfo/ |
| devinfo_devlink.h | 147 int lock_fd; /* lock file for updates */ member in struct:di_devlink_handle
|
| /onnv/onnv-gate/usr/src/cmd/allocate/ |
| allocate3.c | 995 char *zonename, int *lock_fd) 1088 if ((*lock_fd = lock_dev(fname, &stat_buf)) == -1) { 1140 int *lock_fd) 1231 zonename, lock_fd)) { 1246 if ((*lock_fd = lock_dev(fname, &stat_buf)) == -1) { 1347 int lock_fd = -1; local 1369 &lock_fd); 1394 error = _allocate_dev(optflag, uid, da, zonename, &lock_fd); 1407 if (lock_fd != -1) 1408 (void) close(lock_fd); 1425 int lock_fd = -1; local [all...] |