devel/hs-atomic-write - The NetBSD Packages Collection

Atomically write to a file

Atomically write to a file on POSIX-compliant systems while preserving

On most Unix systems, mv is an atomic operation. This makes it simple to
write to a file atomically just by using the mv operation. However, this
will destroy the permissions on the original file. This library does the
following to preserve permissions while atomically writing to a file:

* If an original file exists, take those permissions and apply them to the
  temp file before mving the file into place.

* If the original file does not exist, create a following with default
  permissions (based on the currently-active umask).

This way, when the file is mv'ed into place, the permissions will be the
ones held by the original file.

Build dependencies

pkgtools/mktools pkgtools/cwrappers

Runtime dependencies

sysutils/hs-temporary devel/hs-unix-compat lang/ghc92 sysutils/hs-temporary

Binary packages

NetBSD 10.0x86_64hs-atomic-write-
NetBSD 10.0x86_64hs-atomic-write-
NetBSD 8.0x86_64hs-atomic-write-
NetBSD 8.0x86_64hs-atomic-write-
NetBSD 9.0aarch64hs-atomic-write-
NetBSD 9.0aarch64hs-atomic-write-
NetBSD 9.0x86_64hs-atomic-write-
NetBSD 9.0x86_64hs-atomic-write-
NetBSD 9.0x86_64hs-atomic-write-
NetBSD 9.0x86_64hs-atomic-write-
NetBSD 9.0x86_64hs-atomic-write-

Binary packages can be installed with the high-level tool pkgin (which can be installed with pkg_add) or pkg_add(1) (installed by default). The NetBSD packages collection is also designed to permit easy installation from source.

Available build options


Known vulnerabilities

The pkg_admin audit command locates any installed package which has been mentioned in security advisories as having vulnerabilities.

Please note the vulnerabilities database might not be fully accurate, and not every bug is exploitable with every configuration.

Problem reports, updates or suggestions for this package should be reported with send-pr.