This project is mirrored from https://github.com/haskell/unix. Pull mirroring updated .
  1. 06 Sep, 2021 1 commit
  2. 27 Jul, 2021 1 commit
  3. 13 Jun, 2021 1 commit
  4. 26 Apr, 2021 1 commit
  5. 13 Apr, 2021 1 commit
  6. 19 Mar, 2021 1 commit
  7. 24 Feb, 2021 7 commits
  8. 19 Feb, 2021 1 commit
  9. 16 Feb, 2021 3 commits
  10. 15 Feb, 2021 1 commit
  11. 13 Feb, 2021 2 commits
  12. 09 Feb, 2021 1 commit
  13. 25 Jan, 2021 1 commit
  14. 21 Jan, 2021 1 commit
  15. 17 Jan, 2021 4 commits
    • vdukhovni's avatar
      Updated changelog · f29d039a
      vdukhovni authored
      f29d039a
    • vdukhovni's avatar
      Deal with FreeBSD getpwnam_r(3), ... thread safety · fd83feec
      vdukhovni authored
      On FreeBSD systems the get(pw|gr)(nam|[ug]id)_r(3) "thread-safe"
      functions are only safe in 1-to-1 thread models.  They share the
      thread-specific open file handle with calls from get(gr|pw)ent(3),
      breaking Haskell's sharing of OS threads for multiple "green" threads.
      
      The work-around is to use bound threads for the "*ent(3)" functions on
      FreeBSD systems when in the threaded RTS, and otherwise use locks to
      serialise all passwd/group file access.
      
      Linux, MacOS and NetBSD systems [tested] and OpenBSD systems [based on
      preliminary code inspection] don't appear to require the same
      work-around, as they don't share the setpassent(3) and setgroupent(3)
      optimisations of `get(pw|gr)(nam|[ug]id)_r(3)` that create the
      thread-safety obstacles.
      fd83feec
    • vdukhovni's avatar
      Make passwd/group FFI functions "safe". · ef1f230b
      vdukhovni authored
      Change the passwd/group FFI glue functions from "unsafe" to
      "safe".  These are not low-latency APIs.
      ef1f230b
    • vdukhovni's avatar
      Drop support for non-thread-safe getpw(nam|uid)(). · a3fe4df2
      vdukhovni authored
      Simplify target platform assumptions: either getpwnam_r(3)
      and getpwuid_r(3) exist, or we don't support password lookups.
      The legacy non-thread-safe variants should not be needed on
      any supported platforms.
      
      This is already the case with the getgr(nam|gid), where only
      getgr(nam|gid)_r(3) are supported.
      a3fe4df2
  16. 07 Jan, 2021 6 commits
  17. 06 Dec, 2020 1 commit
  18. 15 Nov, 2020 5 commits
  19. 24 Jul, 2020 1 commit