Extension (Structure)swift-nio 2.74.0all tags
FileDescriptor (ext)
You’re viewing third-party extensions to FileDescriptor
, a struct from swift-system.
You can also read the documentation forFileDescriptor
itself.
extension FileDescriptor
Extension in _NIOFileSystem
Instance members
Show system interfaces (8)
Hide system interfaces
func changeMode(FilePermissions, retryOnInterrupt: Bool
) -> Result<Void, Errno> Sets the permission bits of the open file.
func getExtendedAttribute(named: String, buffer: UnsafeMutableRawBufferPointer?
) -> Result<Int, Errno> Get the value of the named extended attribute.
func listExtendedAttributes(UnsafeMutableBufferPointer<CChar>?
) -> Result<Int, Errno> List the names of extended attributes.
func open(atPath: FilePath, mode: FileDescriptor.AccessMode, options: FileDescriptor.OpenOptions, permissions: FilePermissions?, retryOnInterrupt: Bool
) -> Result<FileDescriptor, Errno> Opens or creates a file for reading or writing.
func removeExtendedAttribute(String
) -> Result<Void, Errno> Remove the value for the named extended attribute.
func setExtendedAttribute(named: String, to: UnsafeRawBufferPointer?
) -> Result<Void, Errno> Set the value of the named extended attribute.
func status(
) -> Result<CInterop.Stat, Errno> Returns information about the status of the open file.
func synchronize(retryOnInterrupt: Bool
) -> Result<Void, Errno> Synchronize modified data and metadata to a permanent storage device.