1. 10 9月, 2012 1 次提交
    • R
      add 7-arg syscall support for mips · 9a3bbce4
      Rich Felker 提交于
      no syscalls actually use that many arguments; the issue is that some
      syscalls with 64-bit arguments have them ordered badly so that
      breaking them into aligned 32-bit half-arguments wastes slots with
      padding, and a 7th slot is needed for the last argument.
      9a3bbce4
  2. 09 9月, 2012 12 次提交
  3. 08 9月, 2012 13 次提交
  4. 07 9月, 2012 11 次提交
    • R
      cleanup src/linux and src/misc trees, etc. · b9bb8f67
      Rich Felker 提交于
      previously, it was pretty much random which one of these trees a given
      function appeared in. they have now been organized into:
      
      src/linux: non-POSIX linux syscalls (possibly shard with other nixen)
      src/legacy: various obsolete/legacy functions, mostly wrappers
      src/misc: still mostly uncategorized; some misc POSIX, some nonstd
      src/crypt: crypt hash functions
      
      further cleanup will be done later.
      b9bb8f67
    • R
      fix constraint violation in ftw · 780aede4
      Rich Felker 提交于
      void* does not implicitly convert to function pointer types.
      780aede4
    • R
      provide loff_t for splice syscall · c4ea0e3f
      Rich Felker 提交于
      so far, this is the only actual use of loff_t i've found. some
      software, including glib, assumes loff_t must exist if splice exists;
      this is a reasonable assumption since the official prototype for
      splice uses loff_t, as it always works with 64-bit offsets regardless
      of the selected libc off_t size. i'm using #define for now rather than
      a typedef to make it easy to define in other headers if necessary
      (like the LFS64 ugliness), but it may be necessary to add it to
      alltypes.h eventually if other functions end up needing it.
      c4ea0e3f
    • R
      further use of _Noreturn, for non-plain-C functions · 0c05bd3a
      Rich Felker 提交于
      note that POSIX does not specify these functions as _Noreturn, because
      POSIX is aligned with C99, not the new C11 standard. when POSIX is
      eventually updated to C11, it will almost surely give these functions
      the _Noreturn attribute. for now, the actual _Noreturn keyword is not
      used anyway when compiling with a c99 compiler, which is what POSIX
      requires; the GCC __attribute__ is used instead if it's available,
      however.
      
      in a few places, I've added infinite for loops at the end of _Noreturn
      functions to silence compiler warnings. presumably
      __buildin_unreachable could achieve the same thing, but it would only
      work on newer GCCs and would not be portable. the loops should have
      near-zero code size cost anyway.
      
      like the previous _Noreturn commit, this one is based on patches
      contributed by philomath.
      0c05bd3a
    • R
      45305957
    • R
      c8ea9857
    • R
      ac5d0856
    • R
      use restrict everywhere it's required by c99 and/or posix 2008 · 400c5e5c
      Rich Felker 提交于
      to deal with the fact that the public headers may be used with pre-c99
      compilers, __restrict is used in place of restrict, and defined
      appropriately for any supported compiler. we also avoid the form
      [restrict] since older versions of gcc rejected it due to a bug in the
      original c99 standard, and instead use the form *restrict.
      400c5e5c
    • R
      remove dependency of wmemmove on wmemcpy direction · bac03cdd
      Rich Felker 提交于
      unlike the memmove commit, this one should be fine to leave in place.
      wmemmove is not performance-critical, and even if it were, it's
      already copying whole 32-bit words at a time instead of bytes.
      bac03cdd
    • R
      remove dependency of memmove on memcpy direction · 594318fd
      Rich Felker 提交于
      this commit introduces a performance regression in many uses of
      memmove, which will need to be addressed before the next release. i'm
      making it as a temporary measure so that the restrict patch can be
      committed without invoking undefined behavior when memmove calls
      memcpy with overlapping regions.
      594318fd
    • R
      fcfba995
  5. 03 9月, 2012 1 次提交
    • R
      avoid "inline" in public headers for strict c89 compatibility · fb247faf
      Rich Felker 提交于
      while musl itself requires a c99 compiler, some applications insist on
      being compiled with c89 compilers, and use of "inline" in the headers
      was breaking them. much of this had been avoided already by just
      skipping the inline keyword in pre-c99 compilers or modes, but this
      new unified solution is cleaner and may/should result in better code
      generation in the default gcc configuration.
      fb247faf
  6. 01 9月, 2012 1 次提交
  7. 30 8月, 2012 1 次提交