• Jonas Termansen's avatar
    Fix <fcntl.h> including <sys/stat.h> namespace pollution. · 29555d72
    Jonas Termansen authored
    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>.
    29555d72
Name
Last commit
Last update
..
__ Loading commit data...
arpa Loading commit data...
netinet Loading commit data...
sys Loading commit data...
DIR.h Loading commit data...
FILE.h Loading commit data...
alloca.h Loading commit data...
ar.h Loading commit data...
argp.h Loading commit data...
assert.h Loading commit data...
blf.h Loading commit data...
brand.h Loading commit data...
byteswap.h Loading commit data...
ctype.h Loading commit data...
dirent.h Loading commit data...
dlfcn.h Loading commit data...
elf.h Loading commit data...
endian.h Loading commit data...
err.h Loading commit data...
errno.h Loading commit data...
error.h Loading commit data...
fcntl.h Loading commit data...
features.h Loading commit data...
fnmatch.h Loading commit data...
fsmarshall-msg.h Loading commit data...
fsmarshall.h Loading commit data...
fstab.h Loading commit data...
getopt.h Loading commit data...
grp.h Loading commit data...
inttypes.h Loading commit data...
ioleast.h Loading commit data...
langinfo.h Loading commit data...
libgen.h Loading commit data...
libk.h Loading commit data...
locale.h Loading commit data...
malloc.h Loading commit data...
msr.h Loading commit data...
netdb.h Loading commit data...
poll.h Loading commit data...
psctl.h Loading commit data...
pthread.h Loading commit data...
pty.h Loading commit data...
pwd.h Loading commit data...
regex.h Loading commit data...
sched.h Loading commit data...
scram.h Loading commit data...
semaphore.h Loading commit data...
setjmp.h Loading commit data...
signal.h Loading commit data...
stdint.h Loading commit data...
stdio.h Loading commit data...
stdio_ext.h Loading commit data...
stdlib.h Loading commit data...
string.h Loading commit data...
strings.h Loading commit data...
syslog.h Loading commit data...
system-elf.h Loading commit data...
termios.h Loading commit data...
time.h Loading commit data...
timespec.h Loading commit data...
unistd.h Loading commit data...
utime.h Loading commit data...
wchar.h Loading commit data...
wctype.h Loading commit data...