Jonas 'Sortie' Termansen
9cd3cdf79c
Update libc/locale/setlocale.cpp to current coding conventions.
2014-03-01 14:37:41 +01:00
Jonas 'Sortie' Termansen
71f9f882d1
Fix readdir(3) not preserving errno in case of end-of-directory condition.
2014-03-01 14:37:40 +01:00
Jonas 'Sortie' Termansen
da933464e5
Add d_namlen, d_dev, and d_type to struct dirent.
2014-03-01 14:37:40 +01:00
Jonas 'Sortie' Termansen
5dd70aa4ff
Split libc/dirent/fddir-sortix.cpp into multiple files.
2014-03-01 14:37:40 +01:00
Jonas 'Sortie' Termansen
ddce6045e0
Split libc/dirent/dir.cpp into multiple files.
2014-03-01 14:37:40 +01:00
Jonas 'Sortie' Termansen
d7467e98be
Move the declaration of the DIR structure into its own header.
2014-03-01 14:37:40 +01:00
Jonas 'Sortie' Termansen
6788f0096e
Preprocess assembly files with the C preprocessor.
2014-03-01 14:37:40 +01:00
Jonas 'Sortie' Termansen
8a49c47742
Include <stdarg.h> in <wchar.h>.
2014-03-01 14:37:40 +01:00
Jonas 'Sortie' Termansen
b08455c4d3
Remove mxmpp.
2014-03-01 14:37:40 +01:00
Jonas 'Sortie' Termansen
98a87fa1e5
Rename Sortix kernel directory to kernel.
2014-03-01 14:37:39 +01:00
Jonas 'Sortie' Termansen
18d2695439
Add libdl and librt to libc.
2014-03-01 14:37:39 +01:00
Jonas 'Sortie' Termansen
4c1d36fd11
Fix setuid(2) calling sys_getuid rather than sys_setuid.
2014-02-23 14:47:22 +01:00
Jonas 'Sortie' Termansen
478db91c3e
Fix setgid(2) calling sys_getgid rather than sys_setgid.
2014-02-23 14:47:22 +01:00
Jonas 'Sortie' Termansen
aa9f642df2
Fix seteuid(2) calling sys_geteuid rather than sys_seteuid.
2014-02-23 14:47:22 +01:00
Jonas 'Sortie' Termansen
3163f4600d
Fix setegid(2) calling sys_getegid rather than sys_setegid.
2014-02-23 14:47:21 +01:00
Jonas 'Sortie' Termansen
142b2c66c4
Fix symlinkat(2) calling sys_linkat rather than sys_symlinkat.
2014-02-23 14:47:21 +01:00
Jonas 'Sortie' Termansen
4227d97f55
Fix send(2) calling sys_recv rather than sys_send.
2014-02-23 14:47:21 +01:00
Jonas 'Sortie' Termansen
31c310036c
Fix lseek changing errno in fdio_install_fd when no real error occurs.
2014-02-16 12:38:04 +01:00
Jonas 'Sortie' Termansen
fd5b40de26
Fix wrong return types in towlower(3) and towupper(3) implementations.
2014-02-13 15:49:48 +01:00
Jonas 'Sortie' Termansen
061eddff91
Silence uninitialized variable warning in wcrtomb(3).
2014-02-06 00:15:03 +01:00
Jonas 'Sortie' Termansen
140dfe22fc
Fix memory leak in getlogin_r(3).
2014-02-06 00:15:03 +01:00
Jonas 'Sortie' Termansen
5c58b65546
Fix range check in sigismember(3).
2014-02-02 23:14:02 +01:00
Jonas 'Sortie' Termansen
6af85a5dd8
Fix negated return value in sigisemptyset(3).
2014-02-02 23:14:02 +01:00
Jonas 'Sortie' Termansen
b5d80ee5d1
Fix %T in strftime(3) being incorrectly implemented.
2014-01-19 22:47:52 +01:00
Jonas 'Sortie' Termansen
187cdf03dc
Fix accept4 ignoring addrlen parameter as input.
2014-01-19 00:32:11 +01:00
Jonas 'Sortie' Termansen
6473d72621
Fix bugs in vprintf_callback(3) and improve %c and %s support.
2014-01-18 16:30:56 +01:00
Jonas 'Sortie' Termansen
021256ad8e
Fix struct kernel_dirent::d_namlen being called d_namelen.
2014-01-18 16:30:56 +01:00
Jonas 'Sortie' Termansen
bfc8570bb8
Fix libc function implementations without extern "C" linkage.
2014-01-18 16:30:56 +01:00
Jonas 'Sortie' Termansen
7c3df4e4f7
Fix <FILE.h> not being wrapped in __BEGIN_DECLS and __END_DECLS.
2014-01-18 16:30:55 +01:00
Jonas 'Sortie' Termansen
a4220d5b5f
Fix incorrect usage of __is_sortix_foo macros in preprocessor conditionals.
...
These macros might not be defined, in which case this usage would have
generated warnings had they not been in system headers.
2014-01-18 16:30:55 +01:00
Jonas 'Sortie' Termansen
7bc8ccd46f
Fix unportable gid_t and uid_t parsing in fgetpwent_r(3).
2013-12-30 20:46:22 +01:00
Jonas 'Sortie' Termansen
ace4a6cc54
Fix unportable gid_t parsing in fgetgrent_r(3).
2013-12-30 20:46:22 +01:00
Jonas 'Sortie' Termansen
ac3928bfc8
Fix unportable pid_t printing in calltrace(3).
2013-12-30 20:46:22 +01:00
Jonas 'Sortie' Termansen
f47cb98b97
Fix wrong return type in getpgid(2) implementation.
2013-12-30 20:19:00 +01:00
Jonas 'Sortie' Termansen
4cffc6b77b
Add fnmatch(3).
2013-12-19 17:42:08 +01:00
Jonas 'Sortie' Termansen
500d3bb38b
Add symlink(2) and symlinkat(2) stub.
2013-12-19 17:42:08 +01:00
Jonas 'Sortie' Termansen
48931408f4
Make FILE a macro that expands to FILE.
...
This solves a compatibility problem with libgmp that erroneously attempts to
detect whether <stdio.h> has been included, but doesn't know what the include
guards for Sortix libc are.
2013-12-19 17:42:07 +01:00
Jonas 'Sortie' Termansen
6a9eee3238
Add brand.h.
2013-12-17 14:30:46 +01:00
Jonas 'Sortie' Termansen
c833b054d5
Add <argp.h>.
2013-12-17 14:30:46 +01:00
Jonas 'Sortie' Termansen
33bf0d93ad
Avoid libc conflicts with libstdc++.
2013-12-17 14:30:45 +01:00
Jonas 'Sortie' Termansen
2302350d78
Remove <sortix/kernel/platform.h>.
2013-12-17 14:30:45 +01:00
Jonas 'Sortie' Termansen
0d3e35bd82
Add symbol size to SYSCALL_FUNCTION macro assembly.
2013-12-17 14:30:45 +01:00
Jonas 'Sortie' Termansen
dbd07b6ade
Update <sys/syscall.h> to current coding conventions.
2013-12-17 14:30:45 +01:00
Jonas 'Sortie' Termansen
d43a044575
Refactor assert(3).
2013-12-17 14:30:45 +01:00
Jonas 'Sortie' Termansen
9d4bc2a15f
Grow kernel heap upwards.
...
Previously the kernel heap grew downwards for historical reasons. There is no
reason for this and it simplifies the heap implementation if it only grows
upwards. This also rearranges how the kernel virtual memory is allocated to
suit an upwards-growing heap.
2013-12-17 14:30:45 +01:00
Jonas 'Sortie' Termansen
b9e463965b
Split libc/stdlib/on_exit.cpp into multiple files.
2013-12-17 14:30:45 +01:00
Jonas 'Sortie' Termansen
8018a85a30
Fix wrong base parsing in strtol(3).
2013-12-17 14:30:45 +01:00
Jonas 'Sortie' Termansen
db185ece7d
Add <ar.h> header.
2013-12-17 14:30:45 +01:00
Jonas 'Sortie' Termansen
e31b98c5a1
Improve standards conformance of asctime_r(3).
2013-12-17 14:30:45 +01:00
Jonas 'Sortie' Termansen
011ea58176
Rewrite vprintf_callback(3).
2013-12-17 14:30:44 +01:00