summaryrefslogtreecommitdiff
path: root/src/sys/stat.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-07-29 01:33:10 +0000
committerGitHub <noreply@github.com>2021-07-29 01:33:10 +0000
commit3c45e08eae9d9590d959e5f687aed69209b24241 (patch)
treeef3efc6b13485fbb91a18eccde2635715e0734c5 /src/sys/stat.rs
parent62b227c199bd1926554177a309ad0fffaf17f049 (diff)
parent6e2158bc7126510890351d67400d53de9fa9629e (diff)
parent358adafa279ff3e6898ed49f4a2140144f121e9c (diff)
parent86acc26cbcadfd572d6af93ba34467a3cdac8b4e (diff)
downloadnix-3c45e08eae9d9590d959e5f687aed69209b24241.zip
Merge #1473 #1474 #1476
1473: sys/stat: add a safe wrapper for mknodat(2) r=asomers a=lucab This introduces a new `mknodat` helper. Ref: https://pubs.opengroup.org/onlinepubs/9699919799/functions/mknod.html 1474: Mark most C-derived enums as non_exhaustive r=asomers a=asomers Since libc may add new variants at any time, Nix's consumers should not use exhaustive match patterns. Fixes #1182 1476: Constify many functions r=asomers a=asomers Constify most functions that can be constified. The exceptions are mostly accessors for structs that have no const constructor. Co-authored-by: Luca BRUNO <luca.bruno@coreos.com> Co-authored-by: Alan Somers <asomers@gmail.com>