aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjim price <shadeops@gmail.com>2023-03-04 18:03:37 -0800
committerVeikka Tuominen <git@vexu.eu>2023-03-05 17:56:44 +0200
commita63134a4a56e8683aeee292b641b4e943cbfb999 (patch)
tree29b1dfb59fa9181676893a2fbfc8d84d2e54e10b /src
parente7f128c2051b086cdb1c03da041745b560bbaa3e (diff)
downloadzig-a63134a4a56e8683aeee292b641b4e943cbfb999.tar.gz
zig-a63134a4a56e8683aeee292b641b4e943cbfb999.zip
std.os: Add DeviceBusy as a possible write error
In Linux when writing to various files in the virtual file system, for example /sys/fs/cgroup, if you write an invalid value to a file you'll get errno 16. This change allows for these specific cases to be caught instead of being lumped together in UnexpectedError.
Diffstat (limited to 'src')
-rw-r--r--src/link.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/link.zig b/src/link.zig
index 4c4915441d..24cc0a3861 100644
--- a/src/link.zig
+++ b/src/link.zig
@@ -460,6 +460,7 @@ pub const File = struct {
CurrentWorkingDirectoryUnlinked,
LockViolation,
NetNameDeleted,
+ DeviceBusy,
};
/// Called from within the CodeGen to lower a local variable instantion as an unnamed