17141a35fSJohn Birrell /* 27141a35fSJohn Birrell * Copyright (C) 2007 John Birrell <jb@freebsd.org> 37141a35fSJohn Birrell * All rights reserved. 47141a35fSJohn Birrell * 57141a35fSJohn Birrell * Redistribution and use in source and binary forms, with or without 67141a35fSJohn Birrell * modification, are permitted provided that the following conditions 77141a35fSJohn Birrell * are met: 87141a35fSJohn Birrell * 1. Redistributions of source code must retain the above copyright 97141a35fSJohn Birrell * notice, this list of conditions and the following disclaimer. 107141a35fSJohn Birrell * 2. Redistributions in binary form must reproduce the above copyright 117141a35fSJohn Birrell * notice, this list of conditions and the following disclaimer in the 127141a35fSJohn Birrell * documentation and/or other materials provided with the distribution. 137141a35fSJohn Birrell * 147141a35fSJohn Birrell * THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND 157141a35fSJohn Birrell * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 167141a35fSJohn Birrell * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 177141a35fSJohn Birrell * ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE 187141a35fSJohn Birrell * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 197141a35fSJohn Birrell * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 207141a35fSJohn Birrell * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 217141a35fSJohn Birrell * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 227141a35fSJohn Birrell * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 237141a35fSJohn Birrell * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 247141a35fSJohn Birrell * SUCH DAMAGE. 257141a35fSJohn Birrell * 267141a35fSJohn Birrell */ 277141a35fSJohn Birrell 287141a35fSJohn Birrell #ifndef _COMPAT_OPENSOLARIS_FCNTL_H_ 297141a35fSJohn Birrell #define _COMPAT_OPENSOLARIS_FCNTL_H_ 307141a35fSJohn Birrell 317141a35fSJohn Birrell #include_next <fcntl.h> 327141a35fSJohn Birrell 33*9e5787d2SMatt Macy #ifndef open64 3410b9d77bSPawel Jakub Dawidek #define open64(...) open(__VA_ARGS__) 35*9e5787d2SMatt Macy #endif 3610b9d77bSPawel Jakub Dawidek #define openat64(...) openat(__VA_ARGS__) 377141a35fSJohn Birrell 387141a35fSJohn Birrell #endif 39