musl/src
Rich Felker 4fb7df12f5 fix errno value for getcwd when size argument is zero
based on patch by Michael Forney. at the same time, I've changed the
if branch to be more clear, avoiding the comma operator.

the underlying issue is that Linux always returns ERANGE when size is
too short, even when it's zero, rather than returning EINVAL for the
special case of zero as required by POSIX.
2013-10-08 19:49:10 -04:00
..
aio support configurable page size on mips, powerpc and microblaze 2013-09-15 02:00:32 +00:00
complex complex: add C11 CMPLX macros and replace cpack with them 2012-11-13 01:31:49 +01:00
conf correct the sysconf value for RTSIG_MAX 2013-09-20 01:49:03 -04:00
crypt comment potentially-confusing use of struct crypt_data type 2013-04-20 14:07:01 -04:00
ctype fix types for wctype_t and wctrans_t 2013-03-04 19:22:14 -05:00
dirent refactor headers, especially alltypes.h, and improve C++ ABI compat 2013-07-22 11:22:36 -04:00
env remove errno setting from setenv, malloc sets it correctly on oom 2013-10-07 13:26:51 +00:00
errno fix typo in newly-added error message for EOWNERDEAD 2013-02-07 03:13:35 -05:00
exit add support for init/fini array in main program, and greatly simplify 2013-07-21 03:00:54 -04:00
fcntl provide emulation of fcntl F_DUPFD_CLOEXEC on old kernels 2013-03-26 22:54:57 -04:00
fenv fix invalid instruction mnemonics in powerpc fenv asm 2013-08-27 18:54:46 -04:00
internal fix potential deadlock bug in libc-internal locking logic 2013-09-20 02:00:27 -04:00
ipc prevent shmget from allocating objects that overflow ptrdiff_t 2013-06-29 00:02:38 -04:00
ldso fix uninitialized variable in dladdr 2013-10-04 00:29:58 -04:00
legacy support configurable page size on mips, powerpc and microblaze 2013-09-15 02:00:32 +00:00
linux fix the prototype of settimeofday to follow the original BSD declaration 2013-05-26 16:01:38 +00:00
locale remove spurious tmp file present since initial git check-in 2013-08-17 22:28:50 -04:00
malloc slightly optimize __brk for size 2013-10-05 12:00:55 -04:00
math math: fix rare underflow issue in fma 2013-10-07 18:46:43 +00:00
misc remove incorrect cancellation points from realpath 2013-08-31 16:01:01 -04:00
mman support configurable page size on mips, powerpc and microblaze 2013-09-15 02:00:32 +00:00
mq use restrict everywhere it's required by c99 and/or posix 2008 2012-09-06 22:44:55 -04:00
multibyte fix buffer overflow in mbsrtowcs 2013-09-27 13:09:46 -04:00
network fix regression in dn_expand/reverse dns 2013-08-23 21:25:01 -04:00
passwd fix off-by-one error in getgrnam_r and getgrgid_r, clobbering gr_name 2013-09-29 02:52:33 -04:00
prng improve the quality of output from rand_r 2013-06-12 18:20:48 -04:00
process add missing va_end in execl* for correcness and static code analyzers 2013-10-07 13:24:00 +00:00
regex fix allocation sizes in regcomp 2013-10-07 13:25:19 +00:00
sched add pthread_setaffinity_np and pthread_getaffinity_np functions 2013-08-10 21:41:05 -04:00
search make tdestroy allow null function pointer if no destructor is needed 2013-08-02 21:20:33 -04:00
select remove __SYSCALL_SSLEN arch macro in favor of using public _NSIG 2013-03-26 23:07:31 -04:00
setjmp remove fenv saving/loading code from setjmp/longjmp on arm 2012-12-05 19:13:47 -05:00
signal fix sigemptyset and sigfillset for mips 2013-09-16 12:58:51 -04:00
stat make fchdir, fchmod, fchown, and fstat support O_PATH file descriptors 2013-08-02 13:33:31 -04:00
stdio minor vfprintf and vfwprintf changes to please static code analyzers 2013-10-07 13:22:24 +00:00
stdlib make fcvt decimal point location for zero make more sense 2013-08-07 11:19:11 -04:00
string optimized C memcpy 2013-08-28 03:34:57 -04:00
temp fix typo in comment in __randname 2013-09-04 10:23:42 -04:00
termios legacy junk compatibility grab-bag 2012-04-18 12:22:24 -04:00
thread fix invalid implicit pointer conversion in pthread_key_create 2013-10-04 01:06:42 -04:00
time add the %s (seconds since the epoch) format to strftime 2013-08-25 02:02:15 -04:00
unistd fix errno value for getcwd when size argument is zero 2013-10-08 19:49:10 -04:00