• 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
bench Loading commit data...
build-aux Loading commit data...
carray Loading commit data...
disked Loading commit data...
dispd Loading commit data...
doc Loading commit data...
editor Loading commit data...
ext Loading commit data...
games Loading commit data...
hostname Loading commit data...
init Loading commit data...
kblayout Loading commit data...
kblayout-compiler Loading commit data...
kernel Loading commit data...
libc Loading commit data...
libm Loading commit data...
libmount Loading commit data...
login Loading commit data...
mkinitrd Loading commit data...
regress Loading commit data...
rw Loading commit data...
sf Loading commit data...
sh Loading commit data...
share/man Loading commit data...
sysinstall Loading commit data...
tix Loading commit data...
trianglix Loading commit data...
update-initrd Loading commit data...
utils Loading commit data...
.gitignore Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README Loading commit data...