1. 13 9月, 2018 25 次提交
  2. 06 9月, 2018 2 次提交
  3. 05 9月, 2018 6 次提交
  4. 03 9月, 2018 1 次提交
  5. 02 9月, 2018 1 次提交
  6. 01 9月, 2018 2 次提交
    • R
      always terminate by SIGABRT when abort is called · 9b14ad54
      Rich Felker 提交于
      Linux makes this surprisingly difficult, but it can be done. the trick
      here is using the fact that we control the implementation of sigaction
      to prevent changing the disposition of SIGABRT to anything but SIG_DFL
      after abort has tried and failed to terminate the process simply by
      calling raise(SIGABRT).
      9b14ad54
    • R
      optimize raise not to make a syscall for getting tid · 0b4c92b7
      Rich Felker 提交于
      assuming signals are blocked, which they are here, the tid in the
      thread structure is always valid and cannot change out from under us.
      0b4c92b7
  7. 30 8月, 2018 3 次提交
    • R
      prevent perror from clobbering stderr's orientation · cff4b910
      Rich Felker 提交于
      this requirement is specified by POSIX.
      cff4b910
    • R
      prevent psignal/psiginfo from clobbering stderr orientation, errno · cd8d8309
      Rich Felker 提交于
      these functions are specified to write to stderr but not set its
      orientation, presumably so that they can be used in programs operating
      stderr in wide mode. also, they are not allowed to clobber errno on
      success. save and restore to meet the requirement.
      
      psiginfo is reduced to a think wrapper around psignal, since it
      already behaved the same. if we want to add more detailed siginfo
      printing at some point this will need refactoring.
      cd8d8309
    • R
      make vfprintf set stream orientation even for zero-length output · a43a7b21
      Rich Felker 提交于
      if no output is produced, no underlying fwrite will ever be called,
      but byte-oriented printf functions are still required to set the
      orientation of the stream to byte-oriented. call __towrite explicitly
      if the FILE is not already in write mode.
      a43a7b21