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 2026Releases
latest 35-
6.5.224 Jul 2026 -
6.5.124 Jul 2026 -
6.5.022 Feb 2026Release notes
Open source →- 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$INODE64symbol lookup failure). - PR #20:
- Fixed FFI lifetime bugs by copying native buffers before free in
read,pread, andnative_pipe. - Fixed macOS hostname truncation by increasing the
gethostnamebuffer size to255 + 1.
- Fixed FFI lifetime bugs by copying native buffers before free in
- PR #21:
- Added macOS
stat/lstatsymbol fallback from*stat$INODE64to unsuffixed symbols when needed.
- Added macOS
-
6.0.328 Jun 2025 -
6.0.218 Apr 2025 -
6.0.114 Nov 2023Release notes
Open source →- removed dependency on collection as causing compatability problems upstream.
-
6.0.014 Nov 2023Release notes
Open source →- 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.
-
5.0.012 May 2023Release notes
Open source →- 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
-
4.1.021 Oct 2022Release notes
Open source →- 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.
-
4.0.114 Oct 2022Release notes
Open source →- 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.
-
4.0.013 Jul 2022Release notes
Open source →- Upgraded to ffi 2.0
- Improved the doco and exception message for getpwuid and getpwname.
-
3.1.011 Apr 2022Release notes
Open source →- 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
-
3.0.013 Dec 2021Release notes
Open source →- 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.
-
2.2.307 Dec 2021Release notes
Open source →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
-
2.2.202 Dec 2021 -
2.2.117 Nov 2021 -
2.2.003 Nov 2021Release notes
Open source →- 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.
-
2.1.206 Jun 2021 -
2.1.106 Jun 2021 -
2.1.009 May 2021 -
2.0.018 Feb 2021 -
2.0.0-nullsafety.117 Feb 2021 pre-releaseRelease notes
Open source →removed dcli as a dependency to avoid circular dependecies. First nullsafety release.
-
1.3.415 Feb 2021 -
1.3.315 Feb 2021 -
1.3.203 Feb 2021Release notes
Open source →improved getlogin errors. Fixed bugs where we were comparing c null to the dart null which is not the same thing.
-
1.3.103 Feb 2021 -
1.3.021 Jan 2021Release notes
Open source →Fixed chown. Now throws an exception if an error is returned rather then returning -1;
-
1.2.019 Jan 2021 -
1.1.019 Jan 2021Release notes
Open source →Added passwd methods to library. Applied consistent naming convention to entry points that expose native types.
-
1.0.018 Jan 2021Release notes
Open source →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.
-
0.4.122 Sep 2020Release notes
Open source →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.
-
0.4.021 Sep 2020Release notes
Open source →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.
-
0.3.020 Sep 2020Release notes
Open source →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.
-
0.2.020 Sep 2020 -
0.1.019 Sep 2020