- 28 6月, 2013 1 次提交
-
-
由 Rich Felker 提交于
the pathnames prefixed with /dev/null/ are guaranteed never to be valid. the previous use of /dev/null alone was mildly dangerous in that bad software might attempt to unlink the name when it found a non-regular file there and create a new file.
-
- 27 6月, 2013 1 次提交
-
-
由 Rich Felker 提交于
-
- 26 6月, 2013 3 次提交
-
-
由 Rich Felker 提交于
despite declaring functions that take arguments of type va_list, these headers are not permitted by the c standard to expose the definition of va_list, so an alias for the type must be used. the name __isoc_va_list was chosen to convey that the purpose of this alternate name is for iso c conformance, and to avoid the multitude of names which gcc mangles with its hideous "fixincludes" monstrosity, leading to serious header breakage if these "fixes" are run.
-
由 Rich Felker 提交于
also move all legacy inet_* functions into a single file to avoid wasting object file and compile time overhead on them. the added functions are legacy interfaces for working with classful ipv4 network addresses. they have no modern usefulness whatsoever, but some programs unconditionally use them anyway, and they're tiny.
-
由 Rich Felker 提交于
based on patch by Strake with minor stylistic changes, and combined into a single file. this patch remained open for a long time due to some question as to whether ether_aton would be better implemented in terms of sscanf, and it's time something was committed, so here it is.
-
- 08 6月, 2013 2 次提交
-
-
由 Rich Felker 提交于
arguably CLOCK_MONOTONIC should be redirected to CLOCK_BOOTTIME with a fallback for old kernels that don't support it, since Linux's CLOCK_BOOTTIME semantics seem to match the spirit of the POSIX requirements for CLOCK_MONOTONIC better than Linux's version of CLOCK_MONOTONIC does. however, this is a change that would require further discussion and research, so for now, I'm simply making them all available.
-
由 Rich Felker 提交于
originally it was right on 32-bit archs and wrong on 64-bit, but after recent changes it was wrong everywhere. with this commit, it's now right everywhere.
-
- 07 6月, 2013 1 次提交
-
-
由 Rich Felker 提交于
defining tm_gmtoff and tm_zone as macros was breaking some application code that used these names for its own purposes.
-
- 27 5月, 2013 1 次提交
-
-
由 Szabolcs Nagy 提交于
-
- 18 5月, 2013 2 次提交
-
-
由 Rich Felker 提交于
there was some question as to how many decimal places to use, since one decimal place is always sufficient to identify the smallest denormal uniquely. for now, I'm following the example in the C standard which is consistent with the other min/max macros we already had in place.
-
由 Rich Felker 提交于
somehow I missed this when removing the corresponding __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS nonsense from stdint.h. these were all attempts by the C committee to guess what the C++ committee would want, and the guesses turned out to be wrong.
-
- 16 5月, 2013 1 次提交
-
-
由 Rich Felker 提交于
-
- 07 5月, 2013 1 次提交
-
-
由 Szabolcs Nagy 提交于
__FLOAT_BITS and __DOUBLE_BITS macros used union compound literals, now they are changed into static inline functions. A good C compiler generates the same code for both and the later is C++ conformant.
-
- 23 4月, 2013 1 次提交
-
-
由 Rich Felker 提交于
C++11, the first C++ with stdint.h, requires the previously protected macros to be exposed unconditionally by stdint.h. apparently these checks were an early attempt by the C committee to guess what the C++ committee would want, and they guessed wrong.
-
- 11 4月, 2013 1 次提交
-
-
由 Rich Felker 提交于
the getifaddrs interface seems to have been invented by glibc, and they expose socket.h, so for us not to do so is just gratuitous incompatibility with the interface we're mimicing.
-
- 07 4月, 2013 1 次提交
-
-
由 Rich Felker 提交于
this is a bit ugly, and the motivation for supporting it is questionable. however the main factors were: 1. it will be useful to have this for certain internal purposes anyway -- things like syslog. 2. applications can just save argv[0] in main, but it's hard to fix non-portable library code that's depending on being able to get the invocation name without the main application's help.
-
- 06 4月, 2013 3 次提交
- 05 4月, 2013 6 次提交
-
-
由 Rich Felker 提交于
-
由 rofl0r 提交于
-
由 Rich Felker 提交于
-
由 Rich Felker 提交于
the preprocessor can reliably determine the signedness of wchar_t. L'\0' is used for 0 in the expressions so that, if the underlying type of wchar_t is long rather than int, the promoted type of the expression will match the type of wchar_t.
-
由 Rich Felker 提交于
-
由 Rich Felker 提交于
since shadow does not yet support enumeration (getspent), the corresponding FILE-based get and put versions are also subbed out for now. this is partly out of laziness and partly because it's not clear how they should work in the presence of TCB shadow files. the stubs should make it possible to compile some software that expects them to exist, but such software still may not work properly.
-
- 02 4月, 2013 7 次提交
-
-
由 rofl0r 提交于
the contents of this header are already in arpa/nameser.h
-
由 rofl0r 提交于
-
由 Szabolcs Nagy 提交于
-
由 Szabolcs Nagy 提交于
-
由 Szabolcs Nagy 提交于
-
由 Szabolcs Nagy 提交于
- 01 4月, 2013 1 次提交
-
-
由 Rich Felker 提交于
-
- 07 3月, 2013 1 次提交
-
-
由 Rich Felker 提交于
this fix is far from ideal and breaks the rule of not using arch-specific #ifdefs, but for now we just need a solution to the existing breakage. the underlying problem is that the kernel folks made a very stupid decision to make misalignment of this struct part of the kernel API/ABI for x86_64, in order to avoid writing a few extra lines of code to handle both 32- and 64-bit userspace on 64-bit kernels. I had just added the packed attribute unconditionally thinking it was harmless on 32-bit archs, but non-x86 32-bit archs have 8-byte alignment on 64-bit types.
-
- 06 3月, 2013 1 次提交
-
-
由 Rich Felker 提交于
-
- 05 3月, 2013 1 次提交
-
-
由 Rich Felker 提交于
-
- 26 2月, 2013 2 次提交
-
-
由 Rich Felker 提交于
patch by Chris Spiegel.
-
由 Rich Felker 提交于
-
- 22 2月, 2013 2 次提交