fcntl.h (1817) | fcntl.h (13765) |
---|---|
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. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)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. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)fcntl.h 8.3 (Berkeley) 1/21/94 |
39 * $Id$ | 39 * $Id: fcntl.h,v 1.2 1994/08/02 07:52:57 davidg Exp $ |
40 */ 41 42#ifndef _SYS_FCNTL_H_ 43#define _SYS_FCNTL_H_ 44 45/* 46 * This file includes the definitions for open and fcntl 47 * described by POSIX for <fcntl.h>; it also includes --- 32 unchanged lines hidden (view full) --- 80#define O_NONBLOCK 0x0004 /* no delay */ 81#define O_APPEND 0x0008 /* set append mode */ 82#ifndef _POSIX_SOURCE 83#define O_SHLOCK 0x0010 /* open with shared file lock */ 84#define O_EXLOCK 0x0020 /* open with exclusive file lock */ 85#define O_ASYNC 0x0040 /* signal pgrp when data ready */ 86#define O_FSYNC 0x0080 /* synchronous writes */ 87#endif | 40 */ 41 42#ifndef _SYS_FCNTL_H_ 43#define _SYS_FCNTL_H_ 44 45/* 46 * This file includes the definitions for open and fcntl 47 * described by POSIX for <fcntl.h>; it also includes --- 32 unchanged lines hidden (view full) --- 80#define O_NONBLOCK 0x0004 /* no delay */ 81#define O_APPEND 0x0008 /* set append mode */ 82#ifndef _POSIX_SOURCE 83#define O_SHLOCK 0x0010 /* open with shared file lock */ 84#define O_EXLOCK 0x0020 /* open with exclusive file lock */ 85#define O_ASYNC 0x0040 /* signal pgrp when data ready */ 86#define O_FSYNC 0x0080 /* synchronous writes */ 87#endif |
88#define O_CREAT 0x0200 /* create if nonexistant */ | 88#define O_CREAT 0x0200 /* create if nonexistent */ |
89#define O_TRUNC 0x0400 /* truncate to zero length */ 90#define O_EXCL 0x0800 /* error if already exists */ 91#ifdef KERNEL 92#define FMARK 0x1000 /* mark during gc() */ 93#define FDEFER 0x2000 /* defer for next gc pass */ 94#define FHASLOCK 0x4000 /* descriptor holds advisory lock */ 95#endif 96 --- 95 unchanged lines hidden --- | 89#define O_TRUNC 0x0400 /* truncate to zero length */ 90#define O_EXCL 0x0800 /* error if already exists */ 91#ifdef KERNEL 92#define FMARK 0x1000 /* mark during gc() */ 93#define FDEFER 0x2000 /* defer for next gc pass */ 94#define FHASLOCK 0x4000 /* descriptor holds advisory lock */ 95#endif 96 --- 95 unchanged lines hidden --- |