Documentation ¶
Index ¶
- Constants
- func Access(path *byte, flags int32) int32
- func Chdir(path *byte) int32
- func Create(path *byte, mode csys.Mode) uintptr
- func Dprintf(format string, args ...interface{}) int
- func FDControl(fd uintptr, flags int32, ctls ...interface{}) int32
- func Fprintf(file *File, format string, args ...interface{}) int
- func FprintfGo(w io.Writer, format string, args ...interface{}) (int, error)
- func FprintlnfGo(w io.Writer, format string, args ...interface{}) (int, error)
- func Fscanf(file *File, format string, args ...interface{}) int
- func FscanfGo(r io.Reader, format string, args ...interface{}) (int, error)
- func GetCwd(p *byte, sz int) *byte
- func Lseek(fd uintptr, offs uint64, whence int32) uint64
- func Open(path *byte, flags int32, ctls ...interface{}) uintptr
- func Printf(format string, args ...interface{}) int
- func Remove(path string, _ ...interface{}) int
- func Rename(path1, path2 string, _ ...interface{}) int
- func Rmdir(path *byte) int32
- func Scanf(format string, args ...interface{}) int
- func SetFS(fs Filesystem)
- func Snprintf(buf *byte, sz int, format string, args ...interface{}) int
- func Sprintf(buf *byte, format string, args ...interface{}) int
- func Sscanf(buf *byte, format string, args ...interface{}) int
- func Unlink(path *byte) int32
- func Vfprintf(file *File, format string, args libc.ArgList) int
- func Vfscanf(file *File, format string, args libc.ArgList) int
- func Vprintf(format string, args libc.ArgList) int
- func Vscanf(format string, args libc.ArgList) int
- func Vsnprintf(buf *byte, sz int, format string, args libc.ArgList) int
- func Vsprintf(buf *byte, format string, args libc.ArgList) int
- func Vsscanf(buf *byte, format string, args libc.ArgList) int
- type File
- func (f *File) Close() int32
- func (f *File) Error() int64
- func (f *File) FileNo() uintptr
- func (f *File) Flush() int32
- func (f *File) GetC() int
- func (f *File) GetS(buf *byte, sz int32) *byte
- func (f *File) IsEOF() int32
- func (f *File) PutC(c int) int64
- func (f *File) PutS(s *byte) int64
- func (f *File) Read(p *byte, sz int) int32
- func (f *File) ReadN(p *byte, size, cnt int) int32
- func (f *File) Scanf(format string, args ...interface{}) int64
- func (f *File) Seek(off int64, whence int32) int32
- func (f *File) SetErr(err error)
- func (f *File) Tell() int64
- func (f *File) UnGetC(c int) int
- func (f *File) Write(p *byte, sz int) int32
- func (f *File) WriteN(p *byte, size, cnt int) int32
- type FileI
- type Filesystem
- type Glob
Constants ¶
View Source
const ( EOF = -2 SEEK_SET = int32(io.SeekStart) SEEK_CUR = int32(io.SeekCurrent) SEEK_END = int32(io.SeekEnd) )
View Source
const GlobNoEscape = 1
Variables ¶
This section is empty.
Functions ¶
func SetFS ¶
func SetFS(fs Filesystem)
Types ¶
type Filesystem ¶
type Filesystem interface { Stdout() FileI Stderr() FileI Stdin() FileI Getwd() (string, error) Chdir(path string) error Rmdir(path string) error Unlink(path string) error Open(path string, flag int, mode os.FileMode) (FileI, error) Stat(path string) (os.FileInfo, error) }
func FS ¶
func FS() Filesystem
func NewLocalFS ¶
func NewLocalFS() Filesystem
Click to show internal directories.
Click to hide internal directories.