1de572d98SGarrett D'Amore#
2de572d98SGarrett D'Amore# This file and its contents are supplied under the terms of the
3de572d98SGarrett D'Amore# Common Development and Distribution License ("CDDL"), version 1.0.
4de572d98SGarrett D'Amore# You may only use this file in accordance with the terms of version
5de572d98SGarrett D'Amore# 1.0 of the CDDL.
6de572d98SGarrett D'Amore#
7de572d98SGarrett D'Amore# A full copy of the text of the CDDL should have accompanied this
8de572d98SGarrett D'Amore# source.  A copy of the CDDL is also available via the Internet at
9de572d98SGarrett D'Amore# http://www.illumos.org/license/CDDL.
10de572d98SGarrett D'Amore#
11de572d98SGarrett D'Amore
12de572d98SGarrett D'Amore#
13de572d98SGarrett D'Amore# Copyright 2015 Garrett D'Amore <garrett@damore.org>
14de572d98SGarrett D'Amore#
15de572d98SGarrett D'Amore
16de572d98SGarrett D'Amore#
17de572d98SGarrett D'Amore# Definitions found in fcntl.h
18de572d98SGarrett D'Amore#
19de572d98SGarrett D'Amore
20de572d98SGarrett D'Amore#
21de572d98SGarrett D'Amore# Types.
22de572d98SGarrett D'Amore#
23de572d98SGarrett D'Amoretype |	mode_t		| fcntl.h | ALL
24de572d98SGarrett D'Amoretype |	off_t		| fcntl.h | ALL
25de572d98SGarrett D'Amoretype |	pid_t		| fcntl.h | ALL
26de572d98SGarrett D'Amoretype |	struct flock	| fcntl.h | ALL
27de572d98SGarrett D'Amore
28de572d98SGarrett D'Amore#
29de572d98SGarrett D'Amore# Values.
30de572d98SGarrett D'Amore#
31de572d98SGarrett D'Amorevalue | O_ACCMODE	| int	| fcntl.h | POSIX+ SUS+
32de572d98SGarrett D'Amorevalue | O_APPEND	| int	| fcntl.h | POSIX+ SUS+
33de572d98SGarrett D'Amorevalue | O_CLOEXEC	| int	| fcntl.h | POSIX+ SUS+
34de572d98SGarrett D'Amorevalue | O_CREAT		| int	| fcntl.h | POSIX+ SUS+
35de572d98SGarrett D'Amorevalue | O_DSYNC		| int	| fcntl.h | XPG3+ POSIX-1993+
36de572d98SGarrett D'Amorevalue | O_EXCL		| int	| fcntl.h | POSIX+ SUS+
37de572d98SGarrett D'Amorevalue | O_NDELAY	| int	| fcntl.h | -POSIX-1993+
38de572d98SGarrett D'Amorevalue | O_NOCTTY	| int	| fcntl.h | POSIX+ SUS+
39de572d98SGarrett D'Amorevalue | O_NONBLOCK	| int	| fcntl.h | POSIX+ SUS+
40de572d98SGarrett D'Amorevalue | O_RDONLY	| int	| fcntl.h | POSIX+ SUS+
41de572d98SGarrett D'Amorevalue | O_RDWR		| int	| fcntl.h | POSIX+ SUS+
42de572d98SGarrett D'Amorevalue | O_RSYNC		| int	| fcntl.h | XPG3+ POSIX-1993+
43de572d98SGarrett D'Amorevalue | O_SYNC		| int	| fcntl.h | XPG3+ POSIX-1993+
44de572d98SGarrett D'Amorevalue | O_WRONLY	| int	| fcntl.h | POSIX+ SUS+
45*69c811abSRobert Mustacchivalue | O_DIRECTORY	| int	| fcntl.h | -ALL SUSv4+
46de572d98SGarrett D'Amore
47de572d98SGarrett D'Amore#
48de572d98SGarrett D'Amore# Functions
49de572d98SGarrett D'Amore#
50de572d98SGarrett D'Amorefunc |	creat								|\
51de572d98SGarrett D'Amore	int								|\
52de572d98SGarrett D'Amore	const char *; mode_t						|\
53de572d98SGarrett D'Amore	fcntl.h | ALL
54de572d98SGarrett D'Amore
55de572d98SGarrett D'Amorefunc |	open								|\
56de572d98SGarrett D'Amore	int								|\
57de572d98SGarrett D'Amore	const char *; mode_t						|\
58de572d98SGarrett D'Amore	fcntl.h | ALL
59de572d98SGarrett D'Amore
60de572d98SGarrett D'Amorefunc |	fcntl								|\
61de572d98SGarrett D'Amore	int								|\
62de572d98SGarrett D'Amore	int; int							|\
63de572d98SGarrett D'Amore	fcntl.h | ALL
64