Home
last modified time | relevance | path

Searched refs:lockf (Results 1 – 25 of 77) sorted by relevance

1234

/titanic_41/usr/src/cmd/ypcmd/shared/
H A Dlockmap.c187 if (lockf(lockfile, F_LOCK, 0) == 0) { in init_lock_map()
205 lockf(lockfile, F_ULOCK, 0); in init_lock_map()
213 lockf(lockfile, F_ULOCK, 0); in init_lock_map()
237 lockf(lockfile, F_ULOCK, 0); in init_lock_map()
248 lockf(lockfile, F_ULOCK, 0); in init_lock_map()
259 if (lockf(lockfile, F_ULOCK, 0) != 0) { in init_lock_map()
/titanic_41/usr/src/lib/libnisdb/yptol/
H A Dlock_update.c133 if (lockf(lockfile, F_LOCK, 0) == 0) { in init_update_lock_map()
153 lockf(lockfile, F_ULOCK, 0); in init_update_lock_map()
161 lockf(lockfile, F_ULOCK, 0); in init_update_lock_map()
186 lockf(lockfile, F_ULOCK, 0); in init_update_lock_map()
197 lockf(lockfile, F_ULOCK, 0); in init_update_lock_map()
208 if (lockf(lockfile, F_ULOCK, 0) != 0) { in init_update_lock_map()
/titanic_41/usr/src/cmd/bnu/
H A Dulockf.c364 while ( lockf(fd, F_TLOCK, 0L) != 0 ) {
426 return( lockf(fd, F_TEST, 0L) );
448 (void) lockf(fd, F_ULOCK, 0L);
456 lockf(fd, cmd, size) in lockf() function
/titanic_41/usr/src/head/
H A Dunistd.h211 #pragma redefine_extname lockf lockf64
219 #define lockf lockf64
232 #pragma redefine_extname lockf64 lockf
240 #define lockf64 lockf
419 extern int lockf(int, int, off_t);
/titanic_41/usr/src/cmd/ttymon/
H A Dulockf.c363 while ( lockf(fd, F_TLOCK, 0L) != 0 ) {
425 return( lockf(fd, F_TEST, 0L) );
447 (void) lockf(fd, F_ULOCK, 0L);
H A Dtmsac.c60 if (lockf(Lckfd, F_TEST, 0L) == -1) in openpid()
69 if (lockf(Lckfd, F_LOCK, 0L) == -1) in openpid()
H A Dtmlock.c55 extern int lockf();
/titanic_41/usr/src/lib/lvm/libmeta/common/
H A Dmeta_setup.c240 if (lockf(lockfd, F_ULOCK, 0) != 0) { in meta_unlock()
275 if (lockf(lockfd, F_TLOCK, 0) != 0) { in meta_lock()
284 if (lockf(lockfd, F_LOCK, 0) != 0) { in meta_lock()
328 if (lockf(lockfd, F_TLOCK, 0) != 0) { in meta_lock_nowait()
376 if (lockf(lockfd, F_TEST, 0) != 0) { in meta_lock_status()
/titanic_41/usr/src/lib/libnsl/dial/
H A Dulockf.c266 while (lockf(fd, F_TLOCK, 0L) != 0) { in fd_mklock()
301 (void) lockf(fd, F_ULOCK, 0L); in fd_rmlock()
/titanic_41/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_domain.c399 (void) lockf(fileno(fp), F_LOCK, 0); in smb_domain_save()
433 (void) lockf(fileno(fp), F_ULOCK, 0); in smb_domain_save()
451 (void) lockf(fileno(fp), F_LOCK, 0); in smb_domain_show()
459 (void) lockf(fileno(fp), F_ULOCK, 0); in smb_domain_show()
/titanic_41/usr/src/lib/libbc/libc/compat/common/
H A Dlockf.c47 lockf(int fildes, int function, long size) in lockf() function
/titanic_41/usr/src/lib/libshare/common/
H A Dlibsharecore.c548 (void) lockf(fileno(dfstab), F_LOCK, 0); in sa_comment_line()
561 (void) lockf(fileno(dfstab), F_ULOCK, 0); in sa_comment_line()
601 (void) lockf(fileno(dfstab), F_LOCK, 0); in sa_delete_legacy()
642 (void) lockf(fileno(dfstab), F_ULOCK, 0); in sa_delete_legacy()
708 (void) lockf(fileno(dfstab), F_LOCK, 0); in sa_update_legacy()
718 (void) lockf(fileno(dfstab), F_ULOCK, 0); in sa_update_legacy()
1376 (void) lockf(fileno(fp), F_LOCK, 0); in get_share_list()
1383 (void) lockf(fileno(fp), F_ULOCK, 0); in get_share_list()
1409 (void) lockf(fileno(fp), F_ULOCK, 0); in get_share_list()
1415 (void) lockf(fileno(fp), F_ULOCK, 0); in get_share_list()
/titanic_41/usr/src/cmd/oamuser/group/
H A Dadd_group.c73 lockf(fileno(etctmp), F_LOCK, 0) != 0) {
/titanic_41/usr/src/common/net/patricia/
H A Dradix.c1098 rn_walktree_mt(h, f, w, lockf, unlockf) in rn_walktree_mt() argument
1102 lockf_t lockf, unlockf;
1109 if (lockf != NULL) {
1125 (*lockf)(rn);
1141 (*lockf)(next);
1148 (*lockf)(base);
/titanic_41/usr/src/cmd/saf/
H A Dlog.c90 if (lockf(fileno(Lfp), F_LOCK, 0) < 0) { in openlog()
/titanic_41/usr/src/cmd/rexd/
H A Dmntent.c143 if (lockf(fileno(mnttabp), LOCK_EX, 0) < 0)
/titanic_41/usr/src/cmd/oamuser/user/
H A Duserdefs.c348 if (lockf(fileno(defptr), F_LOCK, 0) != 0) { in putusrdef()
399 (void) lockf(fileno(defptr), F_ULOCK, 0); in putusrdef()
/titanic_41/usr/src/cmd/fs.d/nfs/nfslog/
H A Dnfslogd.c550 if (lockf(fileno(fd), F_LOCK, 0L) < 0) { in nfslogtab_remove()
606 if (lockf(fileno(fd), F_LOCK, 0L) < 0) { in nfslogtab_deactivate_after_boot()
840 if (lockf(fd, F_LOCK, 0) < 0) { in process_pidfile()
/titanic_41/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_netbios.c504 (void) lockf(fileno(fp), F_LOCK, 0); in smb_netbios_dump()
531 (void) lockf(fileno(fp), F_ULOCK, 0); in smb_netbios_dump()
/titanic_41/usr/src/cmd/filesync/
H A Dmain.c559 ret = lockf(lockfd, F_TLOCK, 0L); in findfiles()
595 (void) lockf(lockfd, F_ULOCK, 0); in cleanup()
/titanic_41/usr/src/lib/libc/port/gen/
H A Dgetutx.c661 if (lockf(fd, F_LOCK, 0) < NULL) in pututxline()
689 (void) lockf(fd, F_ULOCK, 0); in pututxline()
1085 if (lockf(lockfd, F_LOCK, 0) < 0) { in lockutx()
1105 (void) lockf(fd, F_ULOCK, 0); in unlockutx()
H A Dgetut.c672 if (lockf(fd, F_LOCK, 0) < 0) { in lockut()
687 (void) lockf(fd, F_ULOCK, 0); in unlockut()
/titanic_41/usr/src/cmd/svr4pkg/libinst/
H A Dlockinst.c208 if (lockf(fd, F_LOCK, 0)) { in lockinst()
/titanic_41/usr/src/cmd/oplhpd/
H A Doplhpd.c174 if (lockf(pid_fd, F_TLOCK, 0L) < 0) { in init_daemon()
/titanic_41/usr/src/lib/libnsl/yp/
H A Dyp_bind.c1091 st = lockf(fd, F_TEST, 1); in get_cached_transport()
1123 st = lockf(fileno(fp), F_TEST, 1); in get_cached_domain()
1159 st = lockf(fd, F_TEST, 1); in ypbind_running()

1234