//go:build unix && !tinygo

package sysfs

import (
	

	
)

const (
	nonBlockingFileReadSupported  = true
	nonBlockingFileWriteSupported = true
)

func rmdir( string) sys.Errno {
	 := syscall.Rmdir()
	return sys.UnwrapOSError()
}

// readFd exposes syscall.Read.
func readFd( uintptr,  []byte) (int, sys.Errno) {
	if len() == 0 {
		return 0, 0 // Short-circuit 0-len reads.
	}
	,  := syscall.Read(int(), )
	 := sys.UnwrapOSError()
	return , 
}

// writeFd exposes syscall.Write.
func writeFd( uintptr,  []byte) (int, sys.Errno) {
	if len() == 0 {
		return 0, 0 // Short-circuit 0-len writes.
	}
	,  := syscall.Write(int(), )
	 := sys.UnwrapOSError()
	return , 
}