1. 20 3月, 2011 3 次提交
    • R
      syscall overhaul part two - unify public and internal syscall interface · 685e40bb
      Rich Felker 提交于
      with this patch, the syscallN() functions are no longer needed; a
      variadic syscall() macro allows syscalls with anywhere from 0 to 6
      arguments to be made with a single macro name. also, manually casting
      each non-integer argument with (long) is no longer necessary; the
      casts are hidden in the macros.
      
      some source files which depended on being able to define the old macro
      SYSCALL_RETURNS_ERRNO have been modified to directly use __syscall()
      instead of syscall(). references to SYSCALL_SIGSET_SIZE and SYSCALL_LL
      have also been changed.
      
      x86_64 has not been tested, and may need a follow-up commit to fix any
      minor bugs/oversights.
      685e40bb
    • R
      add some ioctl stuff to sys/mount.h · b0e83133
      Rich Felker 提交于
      b0e83133
    • R
      overhaul syscall interface · d00ff295
      Rich Felker 提交于
      this commit shuffles around the location of syscall definitions so
      that we can make a syscall() library function with both SYS_* and
      __NR_* style syscall names available to user applications, provides
      the syscall() library function, and optimizes the code that performs
      the actual inline syscalls in the library itself.
      
      previously on i386 when built as PIC (shared library), syscalls were
      incurring bus lock (lock prefix) overhead at entry and exit, due to
      the way the ebx register was being loaded (xchg instruction with a
      memory operand). now the xchg takes place between two registers.
      
      further cleanup to arch/$(ARCH)/syscall.h is planned.
      d00ff295
  2. 19 3月, 2011 2 次提交
  3. 18 3月, 2011 2 次提交
    • R
      implement [v]swprintf · e18b5638
      Rich Felker 提交于
      e18b5638
    • R
      implement robust mutexes · 047e434e
      Rich Felker 提交于
      some of this code should be cleaned up, e.g. using macros for some of
      the bit flags, masks, etc. nonetheless, the code is believed to be
      working and correct at this point.
      047e434e
  4. 14 3月, 2011 1 次提交
  5. 13 3月, 2011 1 次提交
    • R
      pthread.h needs clockid_t · d8d19f4d
      Rich Felker 提交于
      actually it gets this from time.h if _POSIX_C_SOURCE or any other
      feature test macros are defined, but it breaks if they're not.
      d8d19f4d
  6. 11 3月, 2011 2 次提交
  7. 09 3月, 2011 2 次提交
  8. 08 3月, 2011 2 次提交
  9. 04 3月, 2011 1 次提交
  10. 03 3月, 2011 1 次提交
  11. 27 2月, 2011 4 次提交
  12. 25 2月, 2011 1 次提交
  13. 21 2月, 2011 4 次提交
  14. 20 2月, 2011 4 次提交
  15. 19 2月, 2011 5 次提交
    • R
      add syscall wrappers for inotify · 095a5ae6
      Rich Felker 提交于
      095a5ae6
    • R
      prototype wait3 and wait4 · 52874c82
      Rich Felker 提交于
      52874c82
    • R
      prototypes for brk and sbrk · b386d818
      Rich Felker 提交于
      b386d818
    • R
      support the ugly and deprecated ucontext and sigcontext header stuff... · ad2fe250
      Rich Felker 提交于
      only the structures, not the functions from ucontext.h, are supported
      at this point. the main goal of this commit is to make modern gcc with
      dwarf2 unwinding build without errors.
      
      honestly, it probably doesn't matter how we define these as long as
      they have members with the right names to prevent errors while
      compiling libgcc. the only time they will be used is for propagating
      exceptions across signal-handler boundaries, which invokes undefined
      behavior anyway. but as-is, they're probably correct and may be useful
      to various low-level applications dealing with virtualization, jit
      code generation, and so on...
      ad2fe250
    • R
      add pthread_atfork interface · e9417fff
      Rich Felker 提交于
      note that this presently does not handle consistency of the libc's own
      global state during forking. as per POSIX 2008, if the parent process
      was threaded, the child process may only call async-signal-safe
      functions until one of the exec-family functions is called, so the
      current behavior is believed to be conformant even if non-ideal. it
      may be improved at some later time.
      e9417fff
  16. 18 2月, 2011 2 次提交
  17. 17 2月, 2011 3 次提交