1. 04 5月, 2012 3 次提交
    • R
      add support for ugly *64 functions with _LARGEFILE64_SOURCE · 2dd8d5e1
      Rich Felker 提交于
      musl does not support legacy 32-bit-off_t whatsoever. off_t is always
      64 bit, and correct programs that use off_t and the standard functions
      will just work out of the box. (on glibc, they would require
      -D_FILE_OFFSET_BITS=64 to work.) however, some programs instead define
      _LARGEFILE64_SOURCE and use alternate versions of all the standard
      types and functions with "64" appended to their names.
      
      we do not want code to actually get linked against these functions
      (it's ugly and inconsistent), so macros are used instead of prototypes
      with weak aliases in the library itself. eventually the weak aliases
      may be added at the library level for the sake of using code that was
      originally built against glibc, but the macros will still be the
      desired solution in the headers.
      2dd8d5e1
    • R
    • R
      add additional compatibility union member for ipv6 addresses · ca2d3c6e
      Rich Felker 提交于
      in6_* is in the reserved namespace, so this is valid
      ca2d3c6e
  2. 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
  3. 01 5月, 2012 1 次提交
  4. 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
  5. 23 4月, 2012 2 次提交
  6. 22 4月, 2012 3 次提交
  7. 19 4月, 2012 2 次提交
  8. 18 4月, 2012 1 次提交
  9. 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
  10. 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
  11. 10 4月, 2012 2 次提交
  12. 04 4月, 2012 1 次提交
  13. 31 3月, 2012 2 次提交
  14. 23 3月, 2012 3 次提交
  15. 22 3月, 2012 1 次提交
    • R
      fix DECIMAL_DIG definitions · 47db8903
      Rich Felker 提交于
      DECIMAL_DIG is not the same as LDBL_DIG
      
      type_DIG is the maximimum number of decimal digits that can survive a
      round trip from decimal to type and back to decimal.
      
      DECIMAL_DIG is the minimum number of decimal digits required in order
      for any floating point type to survive the round trip to decimal and
      back, and it is generally larger than LDBL_DIG. since the exact
      formula is non-trivial, and defining it larger than necessary may be
      legal but wasteful, just define the right value in bits/float.h.
      47db8903
  16. 21 3月, 2012 2 次提交
  17. 18 3月, 2012 2 次提交
  18. 17 3月, 2012 1 次提交
  19. 15 3月, 2012 3 次提交
  20. 13 3月, 2012 1 次提交
    • R
      first commit of the new libm! · b69f695a
      Rich Felker 提交于
      thanks to the hard work of Szabolcs Nagy (nsz), identifying the best
      (from correctness and license standpoint) implementations from freebsd
      and openbsd and cleaning them up! musl should now fully support c99
      float and long double math functions, and has near-complete complex
      math support. tgmath should also work (fully on gcc-compatible
      compilers, and mostly on any c99 compiler).
      
      based largely on commit 0376d44a890fea261506f1fc63833e7a686dca19 from
      nsz's libm git repo, with some additions (dummy versions of a few
      missing long double complex functions, etc.) by me.
      
      various cleanups still need to be made, including re-adding (if
      they're correct) some asm functions that were dropped.
      b69f695a
  21. 03 3月, 2012 2 次提交
    • R
      fix nan/infinity macros in math.h, etc. · 405ce58d
      Rich Felker 提交于
      the previous version not only failed to work in c++, but also failed
      to produce constant expressions, making the macros useless as
      initializers for objects of static storage duration.
      
      gcc 3.3 and later have builtins for these, which sadly seem to be the
      most "portable" solution. the alternative definitions produce
      exceptions (for NAN) and compiler warnings (for INFINITY) on newer
      versions of gcc.
      405ce58d
    • R
      typo in math.h c version check · 9fcecd7b
      Rich Felker 提交于
      9fcecd7b
  22. 02 3月, 2012 2 次提交
  23. 01 3月, 2012 1 次提交