nix/src
Artemis Tosini 803943fce4 Add support for utimensat as an alternative to lutimes
OpenBSD doesn't support `lutimes`, but does support `utimensat` which
subsumes it. In fact, all the BSDs, Linux, and newer macOS all support
it. So lets make this our first choice for the implementation.

In addition, let's get rid of the `lutimes` `ENOSYS` special case. The
Linux manpage says

> ENOSYS
>
> The kernel does not support this call; Linux 2.6.22 or later is
> required.

which I think is the origin of this check, but that's a very old version
of Linux at this point. The code can be simplified a lot of we drop
support for it here (as we've done elsewhere, anyways).

Co-Authored-By: John Ericson <John.Ericson@Obsidian.Systems>
(cherry picked from commit d023202811)
2024-10-28 10:27:39 +00:00
..
build-remote build-remote: only allocate storeUri once 2024-07-25 14:04:03 +02:00
external-api-docs Deduplicate our many package.nix a bit (#11175) 2024-07-25 03:12:39 +00:00
internal-api-docs Deduplicate our many package.nix a bit (#11175) 2024-07-25 03:12:39 +00:00
libcmd fetchers::downloadTarball(): Return a cacheable accessor 2024-09-09 12:46:07 +00:00
libexpr Use HAVE_BOEHMGC 2024-09-19 19:04:17 +00:00
libexpr-c allow to c api with older c versions 2024-08-07 23:12:17 +00:00
libfetchers Merge pull request #11692 from NixOS/mergify/bp/2.24-maintenance/pr-11690 2024-10-14 16:01:43 +02:00
libflake fix: add flake headers 2024-07-30 13:19:55 -04:00
libmain Merge pull request #11167 from NixOS/repl-test-rejiggle 2024-07-27 00:55:57 +02:00
libmain-c Deduplicate our many package.nix a bit (#11175) 2024-07-25 03:12:39 +00:00
libstore Make S3 downloads slightly more interruptable 2024-10-14 14:44:28 +02:00
libstore-c Deduplicate our many package.nix a bit (#11175) 2024-07-25 03:12:39 +00:00
libutil Add support for utimensat as an alternative to lutimes 2024-10-28 10:27:39 +00:00
libutil-c Merge pull request #11127 from NixOS/issue-10635-c-api-error-enum 2024-07-29 16:00:58 +02:00
nix docs: clarify how ^ works for -E/-f installables 2024-07-31 22:27:58 +02:00
nix-build fix env-vars beeing written to /tmp 2024-10-22 12:13:47 +00:00
nix-channel downloadFile(): Remove the "locked" (aka "immutable") flag 2024-04-08 15:56:16 +02:00
nix-collect-garbage inline the usage of nix::readDirectory 2024-05-12 17:42:18 +05:30
nix-copy-closure Restrict some code to StoreDirConfig 2023-11-04 19:05:36 -04:00
nix-env Make abort() call sites log first 2024-07-24 16:52:04 +02:00
nix-instantiate No global settings in libnixfetchers and libnixflake 2024-07-12 08:50:28 -04:00
nix-store Make abort() call sites log first 2024-07-24 16:52:04 +02:00
perl add werror=suggest-override 2024-07-25 07:41:12 +02:00
nix-expr-test-support Put back files for now 2024-07-02 09:26:22 -04:00
nix-expr-tests Put back files for now 2024-07-02 09:26:22 -04:00
nix-fetchers-tests Put back files for now 2024-07-02 09:26:22 -04:00
nix-flake-tests Put back files for now 2024-07-02 09:26:22 -04:00
nix-store-test-support Put back files for now 2024-07-02 09:26:22 -04:00
nix-store-tests Put back files for now 2024-07-02 09:26:22 -04:00
nix-util-test-support Put back files for now 2024-07-02 09:26:22 -04:00
nix-util-tests Put back files for now 2024-07-02 09:26:22 -04:00