Documentation
¶
Index ¶
- Constants
- func FSize(f *os.File) int
- func Fd(f *os.File) int
- func MMap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error)
- func MSync(b []byte) (err error)
- func MUnmap(b []byte) (err error)
- func Offset(offset int64) int64
- func Open(fd int, offset int64, length int, p Prot) (data []byte, err error)
- func ProtFlags(p Prot) (prot int, flags int)
- type Prot
Constants ¶
View Source
const ( ProtRead = syscall.PROT_READ ProtWrite = syscall.PROT_WRITE ProtExec = syscall.PROT_EXEC MapPrivate = syscall.MAP_PRIVATE MapCopy = MapPrivate )
Variables ¶
This section is empty.
Functions ¶
func Fd ¶
Fd returns the integer file descriptor referencing the open file. The file descriptor is valid only until f.Close is called or f is garbage collected.
Types ¶
Click to show internal directories.
Click to hide internal directories.