History log of /seL4-refos-master/libs/libmuslc/arch/x86_64/bits/fcntl.h
Revision Date Author Comments
# 28fa19b9 04-Aug-2017 Adrian Danis <Adrian.Danis@data61.csiro.au>

Fix up x86_64_sel4 arch after merge


# de8621ca 16-Aug-2015 Adrian Danis <Adrian.Danis@nicta.com.au>

Support a seL4 x86_64 build


# fd427c4e 01-Apr-2015 Rich Felker <dalias@aerifal.cx>

move O_PATH definition back to arch bits

while it's the same for all presently supported archs, it differs at
least on sparc, and conceptually it's no less arch-specific than the
other O_* macros. O_SEARCH and O_EXEC are still defined in terms of
O_PATH in the main fcntl.h.


# f7d348ec 23-Nov-2013 Szabolcs Nagy <nsz@port70.net>

add O_TMPFILE flag, new in linux 3.11

definition in linux:
#define O_TMPFILE (__O_TMPFILE | O_DIRECTORY)
where __O_TMPFILE and O_DIRECTORY are arch specific


# 73bb0489 10-Jan-2013 Szabolcs Nagy <nsz@port70.net>

add missing F_GETOWNER_UIDS flag to bits/fcntl.h


# 8d2887f8 17-Nov-2012 rofl0r <retnyg@gmx.net>

fcntl.h: O_SEARCH was missing for powerpc

put some macros that do not differ between architectures in the
main header and remove from bits.
restructure mips header so it has the same structure as the others.


# 6d05d862 15-Sep-2012 Rich Felker <dalias@aerifal.cx>

add O_EXEC open mode

the linux O_PATH mode provides the necessary semantics for both the
O_SEARCH and O_EXEC modes defined and required by POSIX 2008.


# b238b37a 13-Sep-2012 Rich Felker <dalias@aerifal.cx>

add O_PATH/O_SEARCH support to fcntl.h

I'm not 100% sure that Linux's O_PATH meets the POSIX requirements for
O_SEARCH, but it seems very close if not perfect. and old kernels
ignore it, so O_SEARCH will still work as desired as long as the
caller has read permissions to the directory.


# 4e8b0938 20-Jun-2012 Rich Felker <dalias@aerifal.cx>

proper error handling for fcntl F_GETOWN on modern kernels

on old kernels, there's no way to detect errors; we must assume
negative syscall return values are pgrp ids. but if the F_GETOWN_EX
fcntl works, we can get a reliable answer.


# 67b25fe0 15-Apr-2012 Rich Felker <dalias@aerifal.cx>

move F_DUPFD_CLOEXEC out of bits

fcntl values 1024 and up are universal, arch-independent. later I'll
add some of the other linux-specific ones for notify, leases, pipe
size, etc. here too.


# a68af229 15-Apr-2012 Rich Felker <dalias@aerifal.cx>

add F_SETSIG and F_GETSIG (linux specific) to fcntl.h

F_* is in the reserved namespace so no feature test is needed


# a3aa89d8 14-Apr-2011 Rich Felker <dalias@aerifal.cx>

fix O_SYNC definition, cleanup fcntl.h


# 0a84e72c 14-Apr-2011 Rich Felker <dalias@aerifal.cx>

fix FAPPEND typo on x86_64 (previously only fixed on i386)


# c2b18f35 14-Apr-2011 Rich Felker <dalias@aerifal.cx>

fcntl.h: move macros that do not vary between archs out of bits


# ace97363 14-Apr-2011 Rich Felker <dalias@aerifal.cx>

fix broken fcntl locks on x86_64


# 685e40bb 19-Mar-2011 Rich Felker <dalias@aerifal.cx>

syscall overhaul part two - unify public and internal syscall interface

with this patch, the syscallN() functions are no longer needed; a
variadic syscall() macro allows syscalls with anywhere from 0 to 6
arguments to be made with a single macro name. also, manually casting
each non-integer argument with (long) is no longer necessary; the
casts are hidden in the macros.

some source files which depended on being able to define the old macro
SYSCALL_RETURNS_ERRNO have been modified to directly use __syscall()
instead of syscall(). references to SYSCALL_SIGSET_SIZE and SYSCALL_LL
have also been changed.

x86_64 has not been tested, and may need a follow-up commit to fix any
minor bugs/oversights.


# 1e126325 15-Feb-2011 Nicholas J. Kain <njkain@gmail.com>

Port musl to x86-64. One giant commit!