fcntl.h (177791) | fcntl.h (180025) |
---|---|
1/*- 2 * Copyright (c) 1983, 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 18 unchanged lines hidden (view full) --- 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)fcntl.h 8.3 (Berkeley) 1/21/94 | 1/*- 2 * Copyright (c) 1983, 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 18 unchanged lines hidden (view full) --- 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)fcntl.h 8.3 (Berkeley) 1/21/94 |
35 * $FreeBSD: head/sys/sys/fcntl.h 177791 2008-03-31 12:14:04Z kib $ | 35 * $FreeBSD: head/sys/sys/fcntl.h 180025 2008-06-26 10:21:54Z dfr $ |
36 */ 37 38#ifndef _SYS_FCNTL_H_ 39#define _SYS_FCNTL_H_ 40 41/* 42 * This file includes the definitions for open and fcntl 43 * described by POSIX for <fcntl.h>; it also includes --- 178 unchanged lines hidden (view full) --- 222#define F_WRLCK 3 /* exclusive or write lock */ 223#define F_UNLCKSYS 4 /* purge locks for a given system ID */ 224#define F_CANCEL 5 /* cancel an async lock request */ 225#ifdef _KERNEL 226#define F_WAIT 0x010 /* Wait until lock is granted */ 227#define F_FLOCK 0x020 /* Use flock(2) semantics for lock */ 228#define F_POSIX 0x040 /* Use POSIX semantics for lock */ 229#define F_REMOTE 0x080 /* Lock owner is remote NFS client */ | 36 */ 37 38#ifndef _SYS_FCNTL_H_ 39#define _SYS_FCNTL_H_ 40 41/* 42 * This file includes the definitions for open and fcntl 43 * described by POSIX for <fcntl.h>; it also includes --- 178 unchanged lines hidden (view full) --- 222#define F_WRLCK 3 /* exclusive or write lock */ 223#define F_UNLCKSYS 4 /* purge locks for a given system ID */ 224#define F_CANCEL 5 /* cancel an async lock request */ 225#ifdef _KERNEL 226#define F_WAIT 0x010 /* Wait until lock is granted */ 227#define F_FLOCK 0x020 /* Use flock(2) semantics for lock */ 228#define F_POSIX 0x040 /* Use POSIX semantics for lock */ 229#define F_REMOTE 0x080 /* Lock owner is remote NFS client */ |
230#define F_NOINTR 0x100 /* Ignore signals when waiting */ |
|
230#endif 231 232/* 233 * Advisory file segment locking data type - 234 * information passed to system by user 235 */ 236struct flock { 237 off_t l_start; /* starting offset */ --- 45 unchanged lines hidden --- | 231#endif 232 233/* 234 * Advisory file segment locking data type - 235 * information passed to system by user 236 */ 237struct flock { 238 off_t l_start; /* starting offset */ --- 45 unchanged lines hidden --- |