Searched refs:lockf (Results 1 - 25 of 35) sorted by relevance

12

/macosx-10.9.5/xnu-2422.115.4/bsd/sys/
H A Dlockf.h59 * @(#)lockf.h 8.1 (Berkeley) 6/11/93
60 * $FreeBSD: src/sys/sys/lockf.h,v 1.16 2004/04/07 04:19:49 imp Exp $
82 * The lockf structure is a kernel structure which contains the information
83 * associated with a byte range lock. The lockf structures are linked into
88 TAILQ_HEAD(locklist, lockf);
92 struct lockf { struct
98 struct lockf **lf_head; /* Back pointer to the head of the locf list */
100 struct lockf *lf_next; /* Pointer to the next lock on this inode */
102 TAILQ_ENTRY(lockf) lf_block;/* A request waiting for a lock */
122 void lf_print(char *, struct lockf *);
[all...]
H A DMakefile26 ioctl_compat.h ipc.h kernel.h kernel_types.h kern_event.h loadable_fs.h lock.h lockf.h \
73 ioctl_compat.h kernel.h kernel_types.h kern_event.h lctx.h lock.h lockf.h \
H A Dvnode_internal.h91 struct lockf;
172 struct lockf *v_lockf; /* advisory lock list head */
/macosx-10.9.5/xnu-2422.115.4/bsd/kern/
H A Dkern_lockf.c77 #include <sys/lockf.h>
91 void lf_print(const char *tag, struct lockf *lock);
92 void lf_printlist(const char *tag, struct lockf *lock);
110 MALLOC_DEFINE(M_LOCKF, "lockf", "Byte-range locking structures");
112 #define NOLOCKF (struct lockf *)0
129 static int lf_clearlock(struct lockf *);
130 static overlap_t lf_findoverlap(struct lockf *,
131 struct lockf *, int, struct lockf ***, struct lockf **);
[all...]
H A Dkern_malloc.c182 "lockf", /* 40 M_LOCKF */
372 { SOX(lockf), KMZ_CREATEZONE_ACCT, TRUE }, /* 40 M_LOCKF */
/macosx-10.9.5/ruby-104/ruby/missing/
H A Dflock.c57 /* Emulate flock() with lockf() or fcntl(). This is just to increase
103 return lockf (fd, F_LOCK, 0);
111 return lockf (fd, F_TLOCK, 0);
115 return lockf (fd, F_ULOCK, 0);
/macosx-10.9.5/OpenLDAP-491.1/OpenLDAP/libraries/liblutil/
H A Dlockf.c20 * - lockf
38 # define LOCK_API "lockf"
74 return lockf( fd, F_LOCK, 0 );
78 return lockf( fd, F_ULOCK, 0 );
/macosx-10.9.5/OpenLDAP-491.1/OpenLDAP/servers/slapd/slapi/
H A Dprintmsg.c72 while ( lockf( fileno( fp ), F_LOCK, 0 ) != 0 ) {
88 lockf( fileno( fp ), F_ULOCK, 0 );
/macosx-10.9.5/ruby-104/ruby/lib/cgi/
H A Dsession.rb397 lockf = File.open(@path+".lock", "r")
398 lockf.flock File::LOCK_SH
407 lockf.close if lockf
417 lockf = File.open(@path+".lock", File::CREAT|File::RDWR, 0600)
418 lockf.flock File::LOCK_EX
427 lockf.close if lockf
/macosx-10.9.5/cron-39/lib/
H A Dcompat.c172 * locks, since the 'lockf' system call in SYSV doesn't make any
192 i = lockf (fd, F_LOCK, 0);
197 i = lockf (fd, F_TLOCK, 0);
204 i = lockf (fd, F_ULOCK, 0);
/macosx-10.9.5/Libc-997.90.3/gen/FreeBSD/
H A Dlockf.c1 /* $NetBSD: lockf.c,v 1.3 2008/04/28 20:22:59 martin Exp $ */
32 __FBSDID("$FreeBSD: src/lib/libc/gen/lockf.c,v 1.10 2009/03/04 01:01:26 delphij Exp $");
48 lockf(int filedes, int function, off_t size) function
/macosx-10.9.5/procmail-14/procmail/src/
H A Dlocking.c212 if((ret|=lockf(fd,F_TLOCK,(off_t)0))&&(errno==EAGAIN||errno==EACCES||
221 { lockf(fd,F_ULOCK,(off_t)0);
236 ret=lockf(fd,F_LOCK,(off_t)0);
240 { lockf(fd,F_ULOCK,(off_t)0);
267 i|=lockf(oldfdlock,F_ULOCK,(off_t)0);lseek(oldfdlock,curp,SEEK_SET);
H A Dautoconf315 lockf(0,F_LOCK,(off_t)0);
348 $FGREP lockf _autotst.rrr >$DEVNULL && echo "#undef F_LOCK" >>_locktst.h
562 printf(", lockf()");
621 oldlockoffset=tell(oldfdlock),fd|=lockf(oldfdlock,F_LOCK,(off_t)0);
646 i|=lockf(oldfdlock,F_LOCK,(off_t)2);i|=lockf(oldfdlock,F_ULOCK,(off_t)0);
/macosx-10.9.5/xnu-2422.115.4/tools/tests/libMicro/
H A Dcascade_lockf.c84 "notes: thread cascade using lockf file locking\n",
136 return (lockf(files[index], F_LOCK, 0) == -1);
142 return (lockf(files[index], F_ULOCK, 0) == -1);
/macosx-10.9.5/CPANInternal-140/Data-UUID/
H A DUUID.h103 # define LOCK(f) lockf(fileno(f),F_LOCK,0);
104 # define UNLOCK(f) lockf(fileno(f),F_ULOCK,0);
/macosx-10.9.5/CPANInternal-140/Data-UUID-1.218/
H A DUUID.h102 # define LOCK(f) lockf(fileno(f),F_LOCK,0);
103 # define UNLOCK(f) lockf(fileno(f),F_ULOCK,0);
/macosx-10.9.5/OpenLDAP-491.1/OpenLDAP/servers/slapd/
H A Dalock.c57 res = lockf (fd, F_LOCK, (off_t) ALOCK_SLOT_SIZE);
81 # error alock needs lockf, fcntl, or _locking
98 res = lockf (fd, F_ULOCK, (off_t) ALOCK_SLOT_SIZE);
117 # error alock needs lockf, fcntl, or _locking
132 res = lockf (fd, F_TEST, (off_t) ALOCK_SLOT_SIZE);
166 # error alock needs lockf, fcntl, or _locking
/macosx-10.9.5/sudo-72/src/
H A Dfileops.c105 return lockf(fd, op, 0) == 0;
/macosx-10.9.5/Libc-997.90.3/include/
H A Dunistd.h651 int lockf(int, int, off_t) __DARWIN_ALIAS_C(lockf); variable
654 int lockf(int, int, off_t) LIBC_ALIAS_C(lockf); variable
/macosx-10.9.5/lsof-52/lsof/dialects/darwin/kmem/
H A Ddlsof.h199 #include <sys/lockf.h>
H A Ddnode.c353 struct lockf lf, *lff, *lfp;
/macosx-10.9.5/xnu-2422.115.4/tools/lldbmacros/
H A Dmemory.py1453 def GetVnodeLock(lockf):
1455 params: lockf - value representing v_lockf member in struct vnode *
1459 lockf_flags = lockf.lf_flags
1460 lockf_type = lockf.lf_type
1474 lockf_proc = Cast(lockf.lf_id, 'proc *')
1477 vnode_lock_output += ("ID {: <#019x}").format(int(lockf.lf_id))
1492 vnode_lock_output += ("{: #018x} ..").format(lockf.lf_start)
1493 vnode_lock_output += ("{: #018x}\n").format(lockf.lf_end)
/macosx-10.9.5/emacs-92/emacs/lib-src/
H A Dmovemail.c423 status = lockf (indesc, F_LOCK, 0);
/macosx-10.9.5/cups-372.4/cups/cups/
H A Dfile.c998 return (lockf(fp->fd, block ? F_LOCK : F_TLOCK, 0));
2020 return (lockf(fp->fd, F_ULOCK, 0));
/macosx-10.9.5/lsof-52/lsof/
H A DConfigure1961 if test -r ${LSOF_INCLUDE}/sys/lockf.h # {
1967 grep -q "^struct lockf_entry" ${LSOF_INCLUDE}/sys/lockf.h
3454 LSOF_TMP2="sys/lockf.h"
4110 if test -r ${LSOF_INCLUDE}/sys/lockf.h # {
4112 grep vop_advlock_args ${LSOF_INCLUDE}/sys/lockf.h > /dev/null

Completed in 230 milliseconds

12