1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00
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
..
__ Fix empty struct thread_rwlockattr_t. 2017-08-20 12:44:33 +02:00
arpa Deprecate inet_addr(3) and inet_ntoa(3). 2017-02-14 20:43:30 +01:00
netinet Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
sys Fix <fcntl.h> including <sys/stat.h> namespace pollution. 2018-08-06 23:59:34 +02:00
alloca.h Clean up alloca.h header. 2016-05-15 22:43:29 +02:00
ar.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
argp.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
assert.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
blf.h Add bcrypt_checkhash(3) and bcrypt_newhash(3). 2016-01-09 02:54:51 +01:00
brand.h Make the branding system more neutral. 2016-05-15 22:43:29 +02:00
byteswap.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
ctype.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
DIR.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
dirent.h Fix <fcntl.h> including <sys/stat.h> namespace pollution. 2018-08-06 23:59:34 +02:00
dlfcn.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
elf.h Replace <elf.h> with public domain version from musl. 2016-02-29 01:37:31 +01:00
endian.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
err.h Add errc(3) family. 2016-11-06 15:31:52 -06:00
errno.h Clean up errno. 2016-05-15 22:43:29 +02:00
error.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
fcntl.h Fix <fcntl.h> including <sys/stat.h> namespace pollution. 2018-08-06 23:59:34 +02:00
features.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
FILE.h Fix <stdio.h> pulling in <pthread.h> through <FILE.h> when __is_sortix_libc. 2018-07-17 12:25:52 +02:00
fnmatch.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
fsmarshall-msg.h Fix <fcntl.h> including <sys/stat.h> namespace pollution. 2018-08-06 23:59:34 +02:00
fsmarshall.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
fstab.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
getopt.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
grp.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
inttypes.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
ioleast.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
langinfo.h Add nl_langinfo(3). 2016-10-03 20:02:12 +02:00
libgen.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
libk.h Seed kernel entropy with randomness from the previous boot. 2016-10-04 00:34:50 +02:00
locale.h Fix <locale.h> not defining NULL. 2017-08-20 12:44:34 +02:00
malloc.h Fix kernel HEAP_GUARD_DEBUG support. 2017-05-15 22:11:24 +02:00
msr.h Compile libc with -ffreestanding. 2016-05-15 22:43:29 +02:00
netdb.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
poll.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
psctl.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
pthread.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
pty.h Add openpty(3). 2016-11-23 22:31:05 +01:00
pwd.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
regex.h Add REG_STARTEND. 2016-10-30 18:08:59 +01:00
sched.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
scram.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
semaphore.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
setjmp.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
signal.h Fix <signal.h> namespace pollution for strict C. 2017-08-20 12:44:33 +02:00
stdint.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
stdio.h Remove UL suffix from BUFSIZ. 2016-10-03 20:02:11 +02:00
stdio_ext.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
stdlib.h Fix <stdlib.h> using long long in C89 mode. 2017-08-20 12:44:34 +02:00
string.h Fix <string.h> including <sys/__/types.h> in strict C mode. 2017-08-20 12:44:34 +02:00
strings.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
syslog.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
system-elf.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
termios.h Add pseudo terminals. 2016-11-23 22:31:05 +01:00
time.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
timespec.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
unistd.h Add support for sessions. 2016-11-23 22:30:47 +01:00
utime.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
wchar.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00
wctype.h Relicense Sortix to the ISC license. 2016-03-05 22:21:50 +01:00