fcntl.h (303bf60b5a47ba25850d1ab07297f73962521dff) fcntl.h (5b024a5b76c96ebbaf36ba7803ba4dbe959f7219)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 *
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22/*
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21/*
23 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
22 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
25 */
26
27/* Copyright (c) 1988 AT&T */
28/* All Rights Reserved */
29
30
31#ifndef _FCNTL_H

--- 94 unchanged lines hidden (view full) ---

126#endif /* _LP64 && _LARGEFILE64_SOURCE */
127
128#if defined(__STDC__)
129
130extern int fcntl(int, int, ...);
131extern int open(const char *, int, ...);
132extern int creat(const char *, mode_t);
133#if defined(__EXTENSIONS__) || defined(_XPG6) || !defined(__XOPEN_OR_POSIX)
23 * Use is subject to license terms.
24 */
25
26/* Copyright (c) 1988 AT&T */
27/* All Rights Reserved */
28
29
30#ifndef _FCNTL_H

--- 94 unchanged lines hidden (view full) ---

125#endif /* _LP64 && _LARGEFILE64_SOURCE */
126
127#if defined(__STDC__)
128
129extern int fcntl(int, int, ...);
130extern int open(const char *, int, ...);
131extern int creat(const char *, mode_t);
132#if defined(__EXTENSIONS__) || defined(_XPG6) || !defined(__XOPEN_OR_POSIX)
134extern int posix_fallocate(int fd, off_t offset, off_t len);
133extern int posix_fallocate(int, off_t, off_t);
135#endif /* defined(__EXTENSIONS__) || defined(_XPG6) || ... */
136#if defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) || \
137 defined(_ATFILE_SOURCE)
138extern int openat(int, const char *, int, ...);
139extern int attropen(const char *, const char *, int, ...);
140#endif /* defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) ... */
141#if defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX)
142extern int directio(int, int);
143#endif
144
145/* transitional large file interface versions */
146#if defined(_LARGEFILE64_SOURCE) && !((_FILE_OFFSET_BITS == 64) && \
147 !defined(__PRAGMA_REDEFINE_EXTNAME))
148extern int open64(const char *, int, ...);
149extern int creat64(const char *, mode_t);
150#if defined(__EXTENSIONS__) || defined(_XPG6) || !defined(__XOPEN_OR_POSIX)
134#endif /* defined(__EXTENSIONS__) || defined(_XPG6) || ... */
135#if defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) || \
136 defined(_ATFILE_SOURCE)
137extern int openat(int, const char *, int, ...);
138extern int attropen(const char *, const char *, int, ...);
139#endif /* defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) ... */
140#if defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX)
141extern int directio(int, int);
142#endif
143
144/* transitional large file interface versions */
145#if defined(_LARGEFILE64_SOURCE) && !((_FILE_OFFSET_BITS == 64) && \
146 !defined(__PRAGMA_REDEFINE_EXTNAME))
147extern int open64(const char *, int, ...);
148extern int creat64(const char *, mode_t);
149#if defined(__EXTENSIONS__) || defined(_XPG6) || !defined(__XOPEN_OR_POSIX)
151extern int posix_fallocate64(int fd, off64_t offset, off64_t len);
150extern int posix_fallocate64(int, off64_t, off64_t);
152#endif /* defined(__EXTENSIONS__) || defined(_XPG6) || ... */
153#if defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) || \
154 defined(_ATFILE_SOURCE)
155extern int openat64(int, const char *, int, ...);
156extern int attropen64(const char *, const char *, int, ...);
157#endif /* defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) ... */
158#endif
159

--- 40 unchanged lines hidden ---
151#endif /* defined(__EXTENSIONS__) || defined(_XPG6) || ... */
152#if defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) || \
153 defined(_ATFILE_SOURCE)
154extern int openat64(int, const char *, int, ...);
155extern int attropen64(const char *, const char *, int, ...);
156#endif /* defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX) ... */
157#endif
158

--- 40 unchanged lines hidden ---