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

12

/macosx-10.10.1/xnu-2782.1.97/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 DMakefile25 ioctl_compat.h ipc.h kernel.h kernel_types.h kern_event.h loadable_fs.h lock.h lockf.h \
76 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.10.1/xnu-2782.1.97/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.c183 "lockf", /* 40 M_LOCKF */
387 { SOX(lockf), KMZ_CREATEZONE_ACCT, TRUE }, /* 40 M_LOCKF */
/macosx-10.10.1/ksh-23/ksh/src/lib/libast/aso/
H A Daso.c113 Asolock_f lockf;
235 state.lockf = ASO_METHOD->lockf;
260 if (!meth->lockf && !(meth->type & ASO_INTRINSIC))
266 state.lockf = ASO_METHOD->lockf;
283 state.lockf = meth->lockf;
306 * error checking state.lockf() call
314 if ((r = state.lockf(dat
[all...]
/macosx-10.10.1/ruby-106/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.10.1/OpenLDAP-499.27/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.10.1/OpenLDAP-499.27/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.10.1/ruby-106/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.10.1/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.10.1/Libc-1044.1.2/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.10.1/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.10.1/xnu-2782.1.97/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.10.1/CPANInternal-159.1/Data-UUID-1.219/
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.10.1/OpenLDAP-499.27/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.10.1/sudo-73/src/
H A Dfileops.c105 return lockf(fd, op, 0) == 0;
/macosx-10.10.1/Libc-1044.1.2/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.10.1/ksh-23/ksh/src/lib/libast/include/
H A Daso.h74 Asolock_f lockf; member in struct:Asometh_s
/macosx-10.10.1/lsof-53/lsof/dialects/darwin/kmem/
H A Ddlsof.h199 #include <sys/lockf.h>
H A Ddnode.c353 struct lockf lf, *lff, *lfp;
/macosx-10.10.1/xnu-2782.1.97/tools/lldbmacros/
H A Dmemory.py1496 def GetVnodeLock(lockf):
1498 params: lockf - value representing v_lockf member in struct vnode *
1502 lockf_flags = lockf.lf_flags
1503 lockf_type = lockf.lf_type
1517 lockf_proc = Cast(lockf.lf_id, 'proc *')
1520 vnode_lock_output += ("ID {: <#019x}").format(int(lockf.lf_id))
1535 vnode_lock_output += ("{: #018x} ..").format(lockf.lf_start)
1536 vnode_lock_output += ("{: #018x}\n").format(lockf.lf_end)
/macosx-10.10.1/emacs-93/emacs/lib-src/
H A Dmovemail.c423 status = lockf (indesc, F_LOCK, 0);
/macosx-10.10.1/cups-408/cups/cups/
H A Dfile.c997 return (lockf(fp->fd, block ? F_LOCK : F_TLOCK, 0));
2019 return (lockf(fp->fd, F_ULOCK, 0));

Completed in 235 milliseconds

12