File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -414,7 +414,7 @@ pub const WindowsDynLib = struct {
414
414
};
415
415
416
416
pub const DlDynLib = struct {
417
- pub const Error = error {FileNotFound };
417
+ pub const Error = error { FileNotFound , NameTooLong };
418
418
419
419
handle : * anyopaque ,
420
420
Original file line number Diff line number Diff line change @@ -5979,7 +5979,7 @@ pub fn sched_getaffinity(pid: pid_t) SchedGetAffinityError!cpu_set_t {
5979
5979
5980
5980
/// Used to convert a slice to a null terminated slice on the stack.
5981
5981
/// TODO https://github.com/ziglang/zig/issues/287
5982
- pub fn toPosixPath (file_path : []const u8 ) ! [MAX_PATH_BYTES - 1 :0 ]u8 {
5982
+ pub fn toPosixPath (file_path : []const u8 ) error { NameTooLong } ! [MAX_PATH_BYTES - 1 :0 ]u8 {
5983
5983
if (std .debug .runtime_safety ) assert (std .mem .indexOfScalar (u8 , file_path , 0 ) == null );
5984
5984
var path_with_null : [MAX_PATH_BYTES - 1 :0 ]u8 = undefined ;
5985
5985
// >= rather than > to make room for the null byte
You can’t perform that action at this time.
0 commit comments