1. 09 4月, 2011 4 次提交
    • R
      greatly improve SIGEV_THREAD timers · 82171d6a
      Rich Felker 提交于
      calling pthread_exit from, or pthread_cancel on, the timer callback
      thread will no longer destroy the timer.
      82171d6a
    • R
      work around a nasty bug in linux readv syscall · 2cff36a8
      Rich Felker 提交于
      according to posix, readv "shall be equivalent to read(), except..."
      that it places the data into the buffers specified by the iov array.
      however on linux, when reading from a terminal, each iov element
      behaves almost like a separate read. this means that if the first iov
      exactly satisfied the request (e.g. a length-one read of '\n') and the
      second iov is nonzero length, the syscall will block again after
      getting the blank line from the terminal until another line is read.
      simply put, entering a single blank line becomes impossible.
      
      the solution, fortunately, is simple. whenever the buffer size is
      nonzero, reduce the length of the requested read by one byte and let
      the last byte go through the buffer. this way, readv will already be
      in the second (and last) iov, and won't re-block on the second iov.
      2cff36a8
    • R
      better fix sysconf pthread stack min · 67e793e5
      Rich Felker 提交于
      67e793e5
    • R
      consistency with pthread stack min in limits.h · 5e72cb4a
      Rich Felker 提交于
      5e72cb4a
  2. 08 4月, 2011 10 次提交
  3. 07 4月, 2011 10 次提交
  4. 06 4月, 2011 11 次提交
  5. 05 4月, 2011 5 次提交