libc

/* $Id$ */
/* Copyright (c) 2009-2017 Pierre Pronchery <khorben@defora.org> */
/* This file is part of DeforaOS System libc */
/* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
* IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
#ifndef LIBC_KERNEL_WHITIX_FCNTL_H
# define LIBC_KERNEL_WHITIX_FCNTL_H
/* constants */
/* FIXME not checked */
# define F_DUPFD 0
# define F_GETFD 1
# define F_SETFD 2
# define F_GETFL 3
# define F_SETFL 4
# define F_GETLK 5 /* XXX 12 for 64 bits */
# define F_SETLK 6 /* XXX 13 for 64 bits */
# define F_SETLKW 7 /* XXX 14 for 64 bits */
# define F_SETOWN 8
# define F_GETOWN 9
# define FD_CLOEXEC 1
# define O_RDONLY 000000
# define O_WRONLY 000001
# define O_RDWR 000002
# define O_CREAT 000100
# define O_EXCL 000200
# define O_NOCTTY 000400
# define O_TRUNC 001000
# define O_APPEND 002000
# define O_NONBLOCK 004000
# define O_SYNC 010000
# define O_DSYNC O_SYNC
# define O_RSYNC O_SYNC
# define O_ACCMODE (O_WRONLY | O_RDWR)
#endif /* !LIBC_KERNEL_WHITIX_FCNTL_H */