PackageTrack
Sign in Get early access

posix

Exposes the POSIX api on OSx and Linux

6.5.2 6.2M downloads/mo #117 most downloaded on pub.dev onepub-dev/dart_posix

What this package is like to depend on

Last release 1 months ago

24 Jul 2026

Release timing varies

gaps range from 2 weeks to 1.4 years

Nearly every release is documented

notes for 34 of 34 stable releases

Nothing withdrawn

no release was ever pulled

6 years old

35 releases · first in 2020

3 releases in the last 12 months

see the full history below

Release timeline

35 releases · Sep 2020 to Jul 2026
2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 35
  1. 6.5.2 24 Jul 2026
    Release notes
    • documented the Signal enum
    Open source →
  2. 6.5.1 24 Jul 2026
    Release notes
    • Added 'kill' function with associatd signal enum
    Open source →
  3. 6.5.0 22 Feb 2026
    Release notes
    • Refactor large modules and add regression tests
    • Fix macOS CI failures in hostname and stat
    • Fix #13: fallback to stat symbols without INODE64
    • Fix #19: copy FFI buffers before free
    • Fix #13: fallback to stat symbols without INODE64
    • Thanks to @ardera for reporting #19 (use-after-free in FFI buffer handling).
    • Thanks to @cbenhagen for reporting #13 (macOS stat$INODE64 symbol lookup failure).
    • PR #20:
      • Fixed FFI lifetime bugs by copying native buffers before free in read, pread, and native_pipe.
      • Fixed macOS hostname truncation by increasing the gethostname buffer size to 255 + 1.
    • PR #21:
      • Added macOS stat/lstat symbol fallback from *stat$INODE64 to unsuffixed symbols when needed.
    Open source →
  4. 6.0.3 28 Jun 2025
    Release notes
    • updated copy right notice to reflect mit license.
    Open source →
  5. 6.0.2 18 Apr 2025
    Release notes
    • Removed deprecated Pointer.elementAt.
    Open source →
  6. 6.0.1 14 Nov 2023
    Release notes
    • removed dependency on collection as causing compatability problems upstream.
    Open source →
  7. 6.0.0 14 Nov 2023
    Release notes
    • Fixed a bug with uname on gnu as the struct wasn't large enough as gnu returns the 'domain' field requiring an extra 65 bytes.
    • ugpraded to dart 3.x
    • removed quiver as it pulls in the test packages which causes conflicts with other projects.
    Open source →
  8. 5.0.0 12 May 2023
    Release notes
    • fixes #12 ffi error with dart 3.x This error actually affects any sdk from 2.19 hence the new minimum sdk. There are no other updates in this release.
    • upgraded base sdk to 2.19
    Open source →
  9. 4.1.0 21 Oct 2022
    Release notes
    • BREAKING: change getpwent to return Passwd? as it couldn't be used for its intended purpose to interate across the list of users.
    • Added simplifed getUsers method.
    • second attempt at fixing the macos gecos npe.
    Open source →
  10. 4.0.1 14 Oct 2022
    Release notes
    • fixed bug on macos where gecos in getpwent can be null.
    • moved back to depending on the publish dcli version now that the circular dependecies have been resolved.
    Open source →
  11. 4.0.0 13 Jul 2022
    Release notes
    • Upgraded to ffi 2.0
    • Improved the doco and exception message for getpwuid and getpwname.
    Open source →
  12. 3.1.0 11 Apr 2022
    Release notes
    • ADDED: initgroups and getgroups. Added a simple function name for getGroupByGid and getGroups
    • ADDED: method setErrno.
    • ADDED: uname()
    • ADDED: sysinfo()
    • Moved getgroups from unistd to grp.dart.
    • upgraded to latest dcli version.
    • Upgrade Dart & package:ffi to the latest stable versions (2.16)
    • grp_test: use "admin" group on macOS
    • sysinfo: add missing unused_element to pass analysis
    • Set up CI
    • pwd_test: replace hard-coded username with $USER
    • added tests back in after upgrade dcli to resolve circular dependency.
    • Added simplified api name getPassword
    Open source →
  13. 3.0.0 13 Dec 2021
    Release notes
    • BREAKING: Changed Passwd field user_info to userInfo.
    • BREAKING: Renamed clear_errno to clearErrno
    • applied lint_hard with the objective of making the code more consistent.
    • added additional simplifed names.
    • Implemented missing hashCode on a no. of classes.
    • commented out opaque thread as causing vc-code performance issues and looks like its not used.
    • split mac.dart into smaller 'part of ' files as vscode was having serious performance problems.
    Open source →
  14. 2.2.3 07 Dec 2021
    Release notes

    Thanks to https://github.com/ab36245 for the contribution.

    • Fixed stat command on macos
    • Split stat into separate files for simplicity
    • Separate ffigen files for linux and mac
    • Changed generic ffigen to linux-specific
    Open source →
  15. 2.2.2 02 Dec 2021
    Release notes
    • Added chmod.
    • upgraded to dcli 1.14.1
    Open source →
  16. 2.2.1 17 Nov 2021
    Release notes
    • fixed an invalid null check in throwIfErrno
    Open source →
  17. 2.2.0 03 Nov 2021
    Release notes
    • added external statements to Struct members as required by the latest version of ffi.
    • Fixes for the stat test.
    • renamed stat mode functions isUserXXX to isOwnerXXX. Add unit tests for same.
    • stat.dart added missing initialisation for mode.
    Open source →
  18. 2.1.2 06 Jun 2021
    Release notes

    Added missing export for simplified.dart

    Open source →
  19. 2.1.1 06 Jun 2021
    Release notes

    Added simplified library with method getUserNameByUid

    Open source →
  20. 2.1.0 09 May 2021
    Release notes

    Added stat function.

    Open source →
  21. 2.0.0 18 Feb 2021
    Release notes

    First stable nnbd release.

    Open source →
  22. 2.0.0-nullsafety.1 17 Feb 2021 pre-release
    Release notes

    removed dcli as a dependency to avoid circular dependecies. First nullsafety release.

    Open source →
  23. 1.3.4 15 Feb 2021
    Release notes

    reverted Opaque to Struct as not supported under 2.10.

    Open source →
  24. 1.3.3 15 Feb 2021
    Release notes

    Updated empty structs to use Opaque

    Open source →
  25. 1.3.2 03 Feb 2021
    Release notes

    improved getlogin errors. Fixed bugs where we were comparing c null to the dart null which is not the same thing.

    Open source →
  26. 1.3.1 03 Feb 2021
    Release notes

    Added method to check if posix is supported.

    Open source →
  27. 1.3.0 21 Jan 2021
    Release notes

    Fixed chown. Now throws an exception if an error is returned rather then returning -1;

    Open source →
  28. 1.2.0 19 Jan 2021
    Release notes

    Added grp.h to allow access to posix groups.

    Open source →
  29. 1.1.0 19 Jan 2021
    Release notes

    Added passwd methods to library. Applied consistent naming convention to entry points that expose native types.

    Open source →
  30. 1.0.0 18 Jan 2021
    Release notes

    testing for setuid/setgid Added dart wrappers for a number of posix methods so users don't need to play with ffi internals. Fixed bug where the ctor args where not setting the fields. re-organised method location. changed path to lookup function. Cleaned up types. Corrected type for method. Added test for getcwd.

    Open source →
  31. 0.4.1 22 Sep 2020
    Release notes

    Converted most of the unistd.dart methods to dart types. Now need to see If we can actually call any of the methods. generated code for strings.h no conversions as yet.

    Open source →
  32. 0.4.0 21 Sep 2020
    Release notes

    Work on changing all types sent and returned from the api to dart types. Also changed the methods to all be global functions.

    Still a chunk more work to do to complete the conversion of all data types. Next step will be to create some unit test to prove the basic process is working.

    Open source →
  33. 0.3.0 20 Sep 2020
    Release notes

    Some very early work on bindings to unistd.h. Started by generating bindings using ffigen and then begun cleanup with the intent that all passed/returned types are native Dart types.

    Open source →
  34. 0.2.0 20 Sep 2020
    Release notes

    generated code using ffigen.

    Open source →
  35. 0.1.0 19 Sep 2020
    Release notes

    Initial commit

    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive