sortix--sortix/libc/include
Jonas 'Sortie' Termansen 29555d72bb Fix <fcntl.h> including <sys/stat.h> namespace pollution.
POSIX allows <fcntl.h> to include <sys/stat.h>, but doesn't require it.
There's little reason to do that, since they are separate headers, and
<fcntl.h> just needs the mode_t constants. Fix the code accidentally
relying on <fcntl.h> including <sys/stat.h>. The mode_t constants are now
provided in their own kernel header <sortix/mode.h>.

Additionally fix <sys/stat.h> pulling in all of <sys/types.h>, which is not
allowed by POSIX, which only requires a few types to be declared. Fix the
code accidentally relying on <sys/stat.h> including <sys/types.h>.

Finally fix <dirent.h> pulling in <stdint.h> through <sortix/dirent.h>.

The <sortix/__/dt.h> and <sortix/__/stat.h> headers are no longer required
and their contents have been merged into <sortix/__/dirent.h>.
2018-08-06 23:59:34 +02:00
..
__
arpa
netinet
sys Fix <fcntl.h> including <sys/stat.h> namespace pollution. 2018-08-06 23:59:34 +02:00
DIR.h
FILE.h
alloca.h
ar.h
argp.h
assert.h
blf.h
brand.h
byteswap.h
ctype.h
dirent.h Fix <fcntl.h> including <sys/stat.h> namespace pollution. 2018-08-06 23:59:34 +02:00
dlfcn.h
elf.h
endian.h
err.h
errno.h
error.h
fcntl.h Fix <fcntl.h> including <sys/stat.h> namespace pollution. 2018-08-06 23:59:34 +02:00
features.h
fnmatch.h
fsmarshall-msg.h Fix <fcntl.h> including <sys/stat.h> namespace pollution. 2018-08-06 23:59:34 +02:00
fsmarshall.h
fstab.h
getopt.h
grp.h
inttypes.h
ioleast.h
langinfo.h
libgen.h
libk.h
locale.h
malloc.h
msr.h
netdb.h
poll.h
psctl.h
pthread.h
pty.h
pwd.h
regex.h
sched.h
scram.h
semaphore.h
setjmp.h
signal.h
stdint.h
stdio.h
stdio_ext.h
stdlib.h
string.h
strings.h
syslog.h
system-elf.h
termios.h
time.h
timespec.h
unistd.h
utime.h
wchar.h
wctype.h