1. 21 5月, 2012 1 次提交
  2. 14 5月, 2012 2 次提交
  3. 13 5月, 2012 6 次提交
  4. 11 5月, 2012 4 次提交
  5. 10 5月, 2012 2 次提交
  6. 09 5月, 2012 1 次提交
    • R
      omit declaration of basename wrongly interpreted as prototype in C++ · 37bb3cce
      Rich Felker 提交于
      the non-prototype declaration of basename in string.h is an ugly
      compromise to avoid breaking 2 types of broken software:
      
      1. programs which assume basename is declared in string.h and thus
      would suffer from dangerous pointer-truncation if an implicit
      declaration were used.
      
      2. programs which include string.h with _GNU_SOURCE defined but then
      declare their own prototype for basename using the incorrect GNU
      signature for the function (which would clash with a correct
      prototype).
      
      however, since C++ does not have non-prototype declarations and
      interprets them as prototypes for a function with no arguments, we
      must omit it when compiling C++ code. thankfully, all known broken
      apps that suffer from the above issues are written in C, not C++.
      37bb3cce
  7. 07 5月, 2012 2 次提交
  8. 06 5月, 2012 2 次提交
    • R
      add isastream (obsolete STREAMS junk) · 106e75f7
      Rich Felker 提交于
      apparently some packages see stropts.h and want to be able to use
      this. the implementation checks that the file descriptor is valid by
      using fcntl/F_GETFD so it can report an error if not (as specified).
      106e75f7
    • R
      fix definitions of FP_ILOGB constants · 98c9af50
      Rich Felker 提交于
      two issues: (1) the type was wrong (unsigned instead of signed int),
      and (2) the value of FP_ILOGBNAN should be INT_MIN rather than INT_MAX
      to match the ABI. this is also much more useful since INT_MAX
      corresponds to a valid input (infinity). the standard would allow us
      to set FP_ILOGB0 to -INT_MAX instead of INT_MIN, which would give us
      distinct values for ilogb(0) and ilogb(NAN), but the benefit seems way
      too small to justify ignoring the ABI.
      
      note that the macro is just a "portable" (to any twos complement
      system where signed and unsigned int have the same width) way to write
      INT_MIN without needing limits.h. it's valid to use this method since
      these macros are not required to work in #if directives.
      98c9af50
  9. 04 5月, 2012 4 次提交
  10. 02 5月, 2012 1 次提交
    • R
      remove minimal linux kernel headers · 6f0cf306
      Rich Felker 提交于
      these were at best of limited usefulness (for bootstrapping new
      systems, mainly) and at worst caused real kernel headers to get
      overwritten when upgrading libc.
      
      in case they're needed by anyone, the exact same files are now
      available in a new git repository:
      
      git://git.etalabs.net/mini-lkh
      6f0cf306
  11. 01 5月, 2012 1 次提交
  12. 30 4月, 2012 2 次提交
    • R
      first try at writing an efficient and "correct" exp10 · f6819755
      Rich Felker 提交于
      this is a nonstandard function so it's not clear what conditions it
      should satisfy. my intent is that it be fast and exact for positive
      integral exponents when the result fits in the destination type, and
      fast and correctly rounded for small negative integral exponents.
      otherwise we aim for at most 1ulp error; it seems to differ from pow
      by at most 1ulp and it's often 2-5 times faster than pow.
      f6819755
    • R
      add linux-specific unshare syscall wrapper · 50da5c26
      Rich Felker 提交于
      50da5c26
  13. 23 4月, 2012 2 次提交
  14. 22 4月, 2012 3 次提交
  15. 19 4月, 2012 2 次提交
  16. 18 4月, 2012 1 次提交
  17. 16 4月, 2012 1 次提交
    • R
      move F_DUPFD_CLOEXEC out of bits · 67b25fe0
      Rich Felker 提交于
      fcntl values 1024 and up are universal, arch-independent. later I'll
      add some of the other linux-specific ones for notify, leases, pipe
      size, etc. here too.
      67b25fe0
  18. 14 4月, 2012 1 次提交
    • R
      rename __sa_restorer to sa_restorer in struct sigaction · 0115a6ed
      Rich Felker 提交于
      this is legal since sa_* is in the reserved namespace for signal.h,
      per posix. note that the sa_restorer field is not used anywhere, so
      programs that are trying to use it may still break, but at least
      they'll compile. if it turns out such programs actually need to be
      able to set their own sa_restorer to function properly, i'll add the
      necessary code to sigaction.c later.
      0115a6ed
  19. 10 4月, 2012 2 次提交