Home
last modified time | relevance | path

Searched refs:flock (Results 26 – 50 of 124) sorted by relevance

12345

/openbsd/gnu/llvm/lldb/source/Host/posix/
H A DLockFilePosix.cpp21 struct flock fl; in fileLock()
/openbsd/gnu/usr.sbin/mkhybrid/src/include/
H A Dmconfig.h149 # define flock dg_flock macro
/openbsd/sys/ufs/ufs/
H A Dufs_extern.h41 struct flock;
/openbsd/gnu/usr.bin/perl/t/lib/feature/
H A Dbareword_filehandles22 flock
257 # NAME flock
258 use Fcntl ":flock";
260 flock FOO, LOCK_SH;
262 flock FOO, LOCK_UN;
/openbsd/usr.sbin/lpr/common_source/
H A Ddisplayq.c158 if (fd >= 0 && flock(fd, LOCK_SH) == 0) { in displayq()
216 if (fd >= 0 && flock(fd, LOCK_SH) == 0) { in displayq()
/openbsd/lib/libfuse/
H A Dfuse.h139 int (*lock)(const char *, struct fuse_file_info *, int, struct flock *);
/openbsd/gnu/gcc/gcc/
H A Dsys-types.h39 struct flock;
/openbsd/gnu/usr.bin/gcc/gcc/
H A Dsys-types.h39 struct flock;
/openbsd/gnu/llvm/compiler-rt/lib/profile/
H A DWindowsMMap.c158 int flock(int fd, int operation) { in flock() function
H A DCMakeLists.txt32 struct flock s_flock;
/openbsd/sys/kern/
H A Dvfs_lockf.c110 int lf_getlock(struct lockf *, struct flock *);
216 struct flock *fl, int flags) in lf_advlock()
587 lf_getlock(struct lockf *lock, struct flock *fl) in lf_getlock()
/openbsd/games/sail/
H A Dsync.c215 if (flock(fileno(sync_fp), LOCK_EX|LOCK_NB) >= 0) in Sync()
289 (void) flock(fileno(sync_fp), LOCK_UN); in Sync()
/openbsd/sys/sys/
H A Dvnode.h547 struct flock *a_fl;
550 int VOP_ADVLOCK(struct vnode *, void *, int, struct flock *, int);
H A Dktrace.h269 ktrstruct(p, "flock", (fl), sizeof(struct flock))
/openbsd/lib/libc/sys/
H A DMakefile.inc52 flock.o fpathconf.o fstat.o fstatat.o fstatfs.o \
183 closefrom.2 connect.2 dup.2 execve.2 fcntl.2 fhopen.2 flock.2 \
/openbsd/usr.bin/htpasswd/
H A Dhtpasswd.c162 if (flock(fileno(in), LOCK_EX|LOCK_NB) == -1) in main()
/openbsd/gnu/usr.bin/perl/cpan/perlfaq/lib/
H A Dperlfaq5.pod885 X<lock> X<file, lock> X<flock>
891 Here are some gotchas with Perl's flock():
909 But even this is dubious at best. See the flock entry of L<perlfunc>
913 Two potentially non-obvious but traditional flock semantics are that
916 offer fewer guarantees. This means that files locked with flock() may
917 be modified by programs that do not also use flock(). Cars that stop
962 use Fcntl qw(:DEFAULT :flock);
964 flock $fh, LOCK_EX or die "can't flock numfile: $!";
980 If you are on a system that correctly implements C<flock> and you use
981 the example appending code from "perldoc -f flock" everything will be
[all …]
/openbsd/usr.sbin/user/
H A Duser.c418 if (flock(fileno(from), LOCK_EX | LOCK_NB) == -1) { in creategid()
490 if (flock(fileno(from), LOCK_EX | LOCK_NB) == -1) { in modify_gid()
615 if (flock(fileno(from), LOCK_EX | LOCK_NB) == -1) { in append_group()
1065 if (flock(masterfd, LOCK_EX | LOCK_NB) == -1) { in adduser()
1331 if (flock(fileno(from), LOCK_EX | LOCK_NB) == -1) { in rm_user_from_groups()
1507 if (flock(masterfd, LOCK_EX | LOCK_NB) == -1) { in moduser()
/openbsd/usr.bin/kdump/
H A Dktrstruct.c543 ktrflock(const struct flock *fl) in ktrflock()
715 struct flock fl; in ktrstruct()
/openbsd/gnu/usr.bin/perl/t/porting/
H A Dknown_pod_issues.dat138 flock(2)
139 flock(3)
/openbsd/usr.bin/tmux/
H A Dclient.c90 if (flock(lockfd, LOCK_EX|LOCK_NB) == -1) { in client_get_lock()
94 while (flock(lockfd, LOCK_EX) == -1 && errno == EINTR) in client_get_lock()
/openbsd/usr.sbin/rpc.lockd/
H A Dlockd_lock.c541 error = flock(fl->fd, lflags); in do_lock()
558 if(flock(fl->fd, lflags) != 0) { in do_lock()
/openbsd/usr.bin/mail/
H A Dquit.c99 if (flock(fileno(fbuf), LOCK_EX) == -1) { in quit()
/openbsd/usr.sbin/smtpd/
H A Dmakemap.c264 if (!isatty(fileno(fp)) && flock(fileno(fp), LOCK_SH|LOCK_NB) == -1) { in parse_map()
/openbsd/gnu/usr.bin/perl/
H A Dpp_sys.c128 # define FLOCK flock
5863 struct flock flock; in fcntl_emulate_flock() local
5867 flock.l_type = F_RDLCK; in fcntl_emulate_flock()
5870 flock.l_type = F_WRLCK; in fcntl_emulate_flock()
5873 flock.l_type = F_UNLCK; in fcntl_emulate_flock()
5879 flock.l_whence = SEEK_SET; in fcntl_emulate_flock()
5880 flock.l_start = flock.l_len = (Off_t)0; in fcntl_emulate_flock()
5882 res = fcntl(fd, (operation & LOCK_NB) ? F_SETLK : F_SETLKW, &flock); in fcntl_emulate_flock()

12345