1. 21 1月, 2012 3 次提交
  2. 19 1月, 2012 1 次提交
  3. 17 1月, 2012 1 次提交
  4. 24 12月, 2011 1 次提交
  5. 17 11月, 2011 1 次提交
    • R
      fix issue with excessive mremap syscalls on realloc · e5d78fe8
      Rich Felker 提交于
      CHUNK_SIZE macro was defined incorrectly and shaving off at least one
      significant bit in the size of mmapped chunks, resulting in the test
      for oldlen==newlen always failing and incurring a syscall. fortunately
      i don't think this issue caused any other observable behavior; the
      definition worked correctly for all non-mmapped chunks where its
      correctness matters more, since their lengths are always multiples of
      the alignment.
      e5d78fe8
  6. 11 11月, 2011 3 次提交
  7. 26 10月, 2011 1 次提交
  8. 18 10月, 2011 2 次提交
  9. 15 10月, 2011 6 次提交
  10. 10 10月, 2011 1 次提交
    • R
      fix F_GETOWN return value handling · 8e8ddeff
      Rich Felker 提交于
      the fcntl syscall can return a negative value when the command is
      F_GETOWN, and this is not an error code but an actual value. thus we
      must special-case it and avoid calling __syscall_ret to set errno.
      this fix is better than the glibc fix (using F_GETOWN_EX) which only
      works on newer kernels and is more complex.
      8e8ddeff
  11. 09 10月, 2011 1 次提交
  12. 05 10月, 2011 1 次提交
  13. 04 10月, 2011 1 次提交
  14. 03 10月, 2011 6 次提交
  15. 01 10月, 2011 6 次提交
  16. 29 9月, 2011 5 次提交
    • R
      4b877369
    • R
      don't crash on null strings in printf · 5f814682
      Rich Felker 提交于
      passing null pointer for %s is UB but lots of broken programs do it anyway
      5f814682
    • R
      fix excessive/insufficient wakes in __vm_unlock · de543b05
      Rich Felker 提交于
      there is no need to send a wake when the lock count does not hit zero,
      but when it does, all waiters must be woken (since all with the same
      sign are eligible to obtain the lock).
      de543b05
    • R
      make getmntent_r discard long lines when it returns error, not seek back · ede5ae7b
      Rich Felker 提交于
      seeking back can be performed by the caller, but if the caller doesn't
      expect it, it will result in an infinite loop of failures.
      ede5ae7b
    • R
      improve pshared barriers · 9cee9307
      Rich Felker 提交于
      eliminate the sequence number field and instead use the counter as the
      futex because of the way the lock is held, sequence numbers are
      completely useless, and this frees up a field in the barrier structure
      to be used as a waiter count for the count futex, which lets us avoid
      some syscalls in the best case.
      
      as of now, self-synchronized destruction and unmapping should be fully
      safe. before any thread can return from the barrier, all threads in
      the barrier have obtained the vm lock, and each holds a shared lock on
      the barrier. the barrier memory is not inspected after the shared lock
      count reaches 0, nor after the vm lock is released.
      9cee9307