Error Set FChmodAtError [src]

Errors

AccessDenied FChmodError
FileNotFound FChmodError
InputOutput FChmodError
NameTooLong

A component of path exceeded NAME_MAX, or the entire path exceeded PATH_MAX.

OperationNotSupported

path resolves to a symbolic link, and AT.SYMLINK_NOFOLLOW was set in flags. This error only occurs on Linux, where changing the mode of a symbolic link has no meaning and can cause undefined behaviour on certain filesystems.

The procfs fallback was used but procfs was not mounted.

PermissionDenied FChmodError
ProcessFdQuotaExceeded

The procfs fallback was used but the process exceeded its open file limit.

ReadOnlyFileSystem FChmodError
SymLinkLoop FChmodError
SystemFdQuotaExceeded

The procfs fallback was used but the system exceeded it open file limit.

SystemResources FChmodError
Unexpected UnexpectedError

The Operating System returned an undocumented error code.

This error is in theory not possible, but it would be better to handle this error than to invoke undefined behavior.

When this error code is observed, it usually means the Zig Standard Library needs a small patch to add the error code to the error set for the respective function.

Source

pub const FChmodAtError = FChmodError || error{ /// A component of `path` exceeded `NAME_MAX`, or the entire path exceeded /// `PATH_MAX`. NameTooLong, /// `path` resolves to a symbolic link, and `AT.SYMLINK_NOFOLLOW` was set /// in `flags`. This error only occurs on Linux, where changing the mode of /// a symbolic link has no meaning and can cause undefined behaviour on /// certain filesystems. /// /// The procfs fallback was used but procfs was not mounted. OperationNotSupported, /// The procfs fallback was used but the process exceeded its open file /// limit. ProcessFdQuotaExceeded, /// The procfs fallback was used but the system exceeded it open file limit. SystemFdQuotaExceeded, }