Searched refs:flock (Results 26 - 50 of 100) sorted by relevance

1234

/freebsd-12-stable/usr.sbin/cron/lib/
H A Dcompat.c131 /* The following flock() emulation snarfed intact *) from the HP-UX
140 * flock (fd, operation)
142 * This routine performs some file locking like the BSD 'flock'
171 flock(fd, operation) function
/freebsd-12-stable/contrib/netbsd-tests/fs/vfs/
H A Dt_vnops.c755 struct flock l;
797 int a = ((const struct flock *)p)->l_start;
798 int b = ((const struct flock *)q)->l_start;
813 struct flock *lock, struct flock *end)
816 const struct flock l = { start, len, 0, F_RDLCK, SEEK_SET };
857 struct flock expect[4];
858 const struct flock lock[4] = {
866 struct flock result[5];
/freebsd-12-stable/sys/kern/
H A Dcapabilities.conf189 ## Allow flock(2), subject to capability rights.
191 flock
H A Dkern_lockf.c108 static int lf_hash_owner(caddr_t, struct vnode *, struct flock *, int);
109 static int lf_owner_matches(struct lock_owner *, caddr_t, struct flock *,
131 static int lf_getlock(struct lockf *, struct lockf_entry *, struct flock *);
180 * POSIX fcntl locks, local file for BSD flock locks or <pid,sysid>
304 lf_hash_owner(caddr_t id, struct vnode *vp, struct flock *fl, int flags)
325 lf_owner_matches(struct lock_owner *lo, caddr_t id, struct flock *fl,
421 struct flock *fl = ap->a_fl;
441 * Convert the flock structure into a start and end.
1415 * For flock type locks, we must first remove
1578 lf_getlock(struct lockf *state, struct lockf_entry *lock, struct flock *f
[all...]
/freebsd-12-stable/sbin/dump/
H A Ditime.c100 (void) flock(fileno(df), LOCK_SH);
178 (void) flock(fd, LOCK_EX);
/freebsd-12-stable/contrib/tcpdump/lbl/
H A Dos-sunos4.h73 int flock(int, int);
/freebsd-12-stable/contrib/libpcap/lbl/
H A Dos-sunos4.h72 int flock(int, int);
/freebsd-12-stable/release/picobsd/tinyware/passwd/
H A Dpw_util.c124 * Open should allow flock'ing the file; see 4.4BSD. XXX
132 if (flock(lockfd, LOCK_EX|LOCK_NB))
/freebsd-12-stable/usr.bin/lockf/
H A Dlockf.c192 flock(lockfd, LOCK_UN);
/freebsd-12-stable/usr.bin/svn/lib/libapr/
H A DMakefile36 flock.c \
/freebsd-12-stable/contrib/ntp/
H A DMakefile.am48 flock-build \
/freebsd-12-stable/contrib/sendmail/libsmdb/
H A Dsmdb.c66 ** SMDB_LOCKFILE -- lock a file using flock or (shudder) fcntl locking
88 struct flock lfd;
136 while ((i = flock(fd, type)) < 0 && errno == EINTR)
148 syslog(LOG_ERR, "cannot flock(%s%s, fd=%d, type=%o, omode=%o, euid=%d)",
/freebsd-12-stable/crypto/openssh/openbsd-compat/
H A DMakefile.in70 bsd-flock.o \
/freebsd-12-stable/contrib/apr/
H A Dapr.mak78 -@erase "$(INTDIR)\flock.obj"
151 "$(INTDIR)\flock.obj" \
264 -@erase "$(INTDIR)\flock.obj"
337 "$(INTDIR)\flock.obj" \
450 -@erase "$(INTDIR)\flock.obj"
523 "$(INTDIR)\flock.obj" \
636 -@erase "$(INTDIR)\flock.obj"
710 "$(INTDIR)\flock.obj" \
905 SOURCE=.\file_io\win32\flock.c
907 "$(INTDIR)\flock
[all...]
/freebsd-12-stable/crypto/heimdal/lib/hdb/
H A Dhdb.c146 code = flock(fd, (operation == HDB_RLOCK ? LOCK_SH : LOCK_EX) | LOCK_NB);
162 code = flock(fd, LOCK_UN);
/freebsd-12-stable/sys/fs/nfs/
H A Dnfs_var.h491 int nfsrpc_advlock(vnode_t, off_t, int, struct flock *, int,
494 struct nfsclclient *, u_int64_t, u_int64_t, struct flock *,
560 int nfscl_checkwritelocked(vnode_t, struct flock *,
586 u_int64_t, struct flock *, NFSPROC_T *, void *, int);
/freebsd-12-stable/sys/sys/
H A Dsyscall.mk97 flock.o \
/freebsd-12-stable/libexec/atrun/
H A Datrun.c529 if (flock(dirfd(spool), LOCK_EX) == -1)
574 if (flock(dirfd(spool), LOCK_UN) == -1)
/freebsd-12-stable/contrib/netbsd-tests/kernel/
H A Dt_lockf.c85 struct flock fl;
/freebsd-12-stable/contrib/dma/
H A Dutil.c297 if (flock(fd, LOCK_EX|((flags & O_NONBLOCK)? LOCK_NB: 0)) < 0) {
/freebsd-12-stable/bin/cat/
H A Dcat.c103 struct flock stdout_lock;
/freebsd-12-stable/crypto/heimdal/lib/kadm5/
H A Dlog.c107 if (flock (fd, LOCK_EX) < 0) {
109 krb5_set_error_message(context->context, ret, "kadm5_log_init: flock %s",
130 flock (log_context->log_fd, LOCK_UN);
137 if (flock (fd, LOCK_EX) < 0) {
154 flock (fd, LOCK_UN);
/freebsd-12-stable/crypto/heimdal/lib/krb5/
H A Dfcache.c77 struct flock l;
85 ret = flock(fd, exclusive ? LOCK_EX : LOCK_SH);
120 struct flock l;
127 ret = flock(fd, LOCK_UN);
/freebsd-12-stable/lib/libc/include/
H A Dun-namespace.h49 #undef flock macro
/freebsd-12-stable/sys/compat/linuxkpi/common/include/linux/
H A Dfs.h170 int (*flock)(struct file *, int, struct file_lock *);

Completed in 373 milliseconds

1234