1 /* 2 * BEGIN illumos section 3 * This is an unstable interface; changes may be made 4 * without notice. 5 * END illumos section 6 */ 7 /*********************************************************************** 8 * * 9 * This software is part of the ast package * 10 * Copyright (c) 1985-2025 AT&T Intellectual Property * 11 * All Rights Reserved * 12 * This software is licensed by AT&T Intellectual Property * 13 * under the terms and conditions of the license in * 14 * http://www.eclipse.org/org/documents/epl-v10.html * 15 * (with an md5 checksum of b35adb5213ca9657e911e9befb180842) * 16 * * 17 * Information and Software Systems Research * 18 * AT&T Research * 19 * Florham Park NJ * 20 * * 21 * Glenn Fowler <gsf@research.att.com> * 22 * David Korn <dgk@research.att.com> * 23 * Phong Vo <kpv@research.att.com> * 24 * * 25 ***********************************************************************/ 26 27 /* : : generated by proto : : */ 28 /* : : generated from contrib/ast/src/lib/libast/features/fcntl.c by iffe version 2012-07-17 : : */ 29 #ifndef _def_fcntl_ast 30 #if !defined(__PROTO__) 31 # if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus) 32 # if defined(__cplusplus) 33 # define __LINKAGE__ "C" 34 # else 35 # define __LINKAGE__ 36 # endif 37 # define __STDARG__ 38 # define __PROTO__(x) x 39 # define __OTORP__(x) 40 # define __PARAM__(n,o) n 41 # if !defined(__STDC__) && !defined(__cplusplus) 42 # if !defined(c_plusplus) 43 # define const 44 # endif 45 # define signed 46 # define void int 47 # define volatile 48 # define __V_ char 49 # else 50 # define __V_ void 51 # endif 52 # else 53 # define __PROTO__(x) () 54 # define __OTORP__(x) x 55 # define __PARAM__(n,o) o 56 # define __LINKAGE__ 57 # define __V_ char 58 # define const 59 # define signed 60 # define void int 61 # define volatile 62 # endif 63 # define __MANGLE__ __LINKAGE__ 64 # if defined(__cplusplus) || defined(c_plusplus) 65 # define __VARARG__ ... 66 # else 67 # define __VARARG__ 68 # endif 69 # if defined(__STDARG__) 70 # define __VA_START__(p,a) va_start(p,a) 71 # else 72 # define __VA_START__(p,a) va_start(p) 73 # endif 74 # if !defined(__INLINE__) 75 # if defined(__cplusplus) 76 # define __INLINE__ extern __MANGLE__ inline 77 # else 78 # if defined(_WIN32) && !defined(__GNUC__) 79 # define __INLINE__ __inline 80 # endif 81 # endif 82 # endif 83 #endif 84 #if !defined(__LINKAGE__) 85 #define __LINKAGE__ /* 2004-08-11 transition */ 86 #endif 87 88 #define _def_fcntl_ast 1 89 #define _sys_types 1 /* #include <sys/types.h> ok */ 90 91 92 #if _typ_off64_t 93 #undef off_t 94 #ifdef __STDC__ 95 #define off_t off_t 96 #endif 97 #endif 98 99 #include <ast_fs.h> 100 101 #if _typ_off64_t 102 #undef off_t 103 #ifdef __STDC__ 104 #define off_t off_t 105 #endif 106 #endif 107 108 #include <fcntl.h> 109 #include <sys/mman.h> 110 111 #define F_dupfd_cloexec F_DUPFD_CLOEXEC 112 #define O_BINARY 0 113 #define O_cloexec O_CLOEXEC 114 #define O_TEMPORARY 0 115 #define O_TEXT 0 116 117 #include <ast_fs.h> 118 #if _typ_off64_t 119 #undef off_t 120 #define off_t off64_t 121 #endif 122 #if _lib_fstat64 123 #define fstat fstat64 124 #endif 125 #if _lib_lstat64 126 #define lstat lstat64 127 #endif 128 #if _lib_stat64 129 #define stat stat64 130 #endif 131 #if _lib_creat64 132 #define creat creat64 133 #endif 134 #if _lib_mmap64 135 #define mmap mmap64 136 #endif 137 #if _lib_open64 138 #undef open 139 #define open open64 140 #endif 141 #endif 142