setExtendedAttribute(named:to:)

Set the value of the named extended attribute.

FileDescriptor+Syscalls.swift:148

This declaration is gated by at least one @_spi attribute.

func setExtendedAttribute(named name: String, to value: UnsafeRawBufferPointer?) -> Result<Void, Errno>

Parameters

name

The name of the extended attribute.

value

The data to set for the attribute.

The corresponding C function is fsetxattr.