• 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
..
arpa/inet Loading commit data...
assert Loading commit data...
blf Loading commit data...
c++ Loading commit data...
ctype Loading commit data...
dirent Loading commit data...
dlfcn Loading commit data...
err Loading commit data...
errno Loading commit data...
error Loading commit data...
fcntl Loading commit data...
fnmatch Loading commit data...
fsmarshall Loading commit data...
fstab Loading commit data...
getopt Loading commit data...
grp Loading commit data...
include Loading commit data...
init Loading commit data...
inttypes Loading commit data...
ioleast Loading commit data...
langinfo Loading commit data...
libgen Loading commit data...
locale Loading commit data...
malloc Loading commit data...
msr Loading commit data...
netdb Loading commit data...
netinet/in Loading commit data...
poll Loading commit data...
psctl Loading commit data...
pthread Loading commit data...
pty Loading commit data...
pwd Loading commit data...
regex Loading commit data...
sched Loading commit data...
scram Loading commit data...
semaphore Loading commit data...
signal Loading commit data...
ssp Loading commit data...
stdio Loading commit data...
stdio_ext Loading commit data...
stdlib Loading commit data...
string Loading commit data...
sys Loading commit data...
syslog Loading commit data...
termios Loading commit data...
time Loading commit data...
timespec Loading commit data...
ubsan Loading commit data...
unistd Loading commit data...
utime Loading commit data...
wchar Loading commit data...
wctype Loading commit data...
x64 Loading commit data...
x86 Loading commit data...
.gitignore Loading commit data...
Makefile Loading commit data...