Documentation ¶
Overview ¶
Package os implements a subset of the Go "os" package. See https://godoc.org/os for details.
Note that the current implementation is blocking. This limitation should be removed in a future version.
Package os implements a subset of the Go "os" package. See https://godoc.org/os for details.
Note that the current implementation is blocking. This limitation should be removed in a future version.
Index ¶
- Constants
- Variables
- func Chdir(dir string) error
- func Chmod(name string, mode FileMode) error
- func Chown(name string, uid, gid int) error
- func Chtimes(name string, atime time.Time, mtime time.Time) error
- func Clearenv()
- func DirFS(dir string) fs.FS
- func Environ() []string
- func Executable() (string, error)
- func Exit(code int)
- func Expand(s string, mapping func(string) string) string
- func ExpandEnv(s string) string
- func Getegid() int
- func Getenv(key string) string
- func Geteuid() int
- func Getgid() int
- func Getpagesize() int
- func Getpid() int
- func Getppid() int
- func Getuid() int
- func Getwd() (string, error)
- func Hostname() (name string, err error)
- func Ignore(sig ...Signal)
- func IsExist(err error) bool
- func IsNotExist(err error) bool
- func IsPathSeparator(c uint8) bool
- func IsPermission(err error) bool
- func IsTimeout(err error) bool
- func Link(oldname, newname string) error
- func LookupEnv(key string) (string, bool)
- func Mkdir(path string, perm FileMode) error
- func MkdirAll(path string, perm FileMode) error
- func MkdirTemp(dir, pattern string) (string, error)
- func Mount(prefix string, filesystem Filesystem)
- func NewSyscallError(syscall string, err error) error
- func Pipe() (r *File, w *File, err error)
- func ReadFile(name string) ([]byte, error)
- func Readlink(name string) (string, error)
- func Remove(path string) error
- func RemoveAll(path string) error
- func Rename(oldpath, newpath string) error
- func SameFile(fi1, fi2 FileInfo) bool
- func Setenv(key, value string) error
- func Symlink(oldname, newname string) error
- func TempDir() string
- func Truncate(name string, size int64) error
- func Unsetenv(key string) error
- func UserHomeDir() (string, error)
- func WriteFile(name string, data []byte, perm FileMode) error
- type DeadlineExceededError
- type DirEntry
- type File
- func (f *File) Close() (err error)
- func (f *File) Fd() uintptr
- func (f *File) Name() string
- func (f *File) Read(b []byte) (n int, err error)
- func (f *File) ReadAt(b []byte, offset int64) (n int, err error)
- func (f *File) ReadDir(n int) ([]DirEntry, error)
- func (f *File) Readdir(n int) ([]FileInfo, error)
- func (f *File) Readdirnames(n int) (names []string, err error)
- func (f *File) Seek(offset int64, whence int) (ret int64, err error)
- func (f *File) SetDeadline(t time.Time) error
- func (f *File) SetReadDeadline(t time.Time) error
- func (f *File) SetWriteDeadline(t time.Time) error
- func (f *File) Stat() (FileInfo, error)
- func (f *File) Sync() (err error)
- func (f *File) SyscallConn() (conn syscall.RawConn, err error)
- func (f *File) Truncate(size int64) (err error)
- func (f *File) Write(b []byte) (n int, err error)
- func (f *File) WriteAt(b []byte, offset int64) (n int, err error)
- func (f *File) WriteString(s string) (n int, err error)
- type FileHandle
- type FileInfo
- type FileMode
- type Filesystem
- type LinkError
- type PathError
- type ProcAttr
- type Process
- type ProcessState
- type Signal
- type SyscallError
Constants ¶
const ( SEEK_SET int = io.SeekStart SEEK_CUR int = io.SeekCurrent SEEK_END int = io.SeekEnd )
Seek whence values.
Deprecated: Use io.SeekStart, io.SeekCurrent, and io.SeekEnd.
const ( O_RDONLY int = syscall.O_RDONLY O_WRONLY int = syscall.O_WRONLY O_RDWR int = syscall.O_RDWR O_APPEND int = syscall.O_APPEND O_CREATE int = syscall.O_CREAT O_EXCL int = syscall.O_EXCL O_SYNC int = syscall.O_SYNC O_TRUNC int = syscall.O_TRUNC )
OpenFile flag values.
const ( // The single letters are the abbreviations // used by the String method's formatting. ModeDir = fs.ModeDir // d: is a directory ModeAppend = fs.ModeAppend // a: append-only ModeExclusive = fs.ModeExclusive // l: exclusive use ModeTemporary = fs.ModeTemporary // T: temporary file; Plan 9 only ModeSymlink = fs.ModeSymlink // L: symbolic link ModeDevice = fs.ModeDevice // D: device file ModeNamedPipe = fs.ModeNamedPipe // p: named pipe (FIFO) ModeSocket = fs.ModeSocket // S: Unix domain socket ModeSetuid = fs.ModeSetuid // u: setuid ModeSetgid = fs.ModeSetgid // g: setgid ModeCharDevice = fs.ModeCharDevice // c: Unix character device, when ModeDevice is set ModeSticky = fs.ModeSticky // t: sticky ModeIrregular = fs.ModeIrregular // ?: non-regular file; nothing else is known about this file // Mask for the type bits. For regular files, none will be set. ModeType = fs.ModeType ModePerm = fs.ModePerm // Unix permission bits, 0o777 )
The defined file mode bits are the most significant bits of the FileMode. The nine least-significant bits are the standard Unix rwxrwxrwx permissions. The values of these bits should be considered part of the public API and may be used in wire protocols or disk representations: they must not be changed, although new bits might be added.
const ( PathSeparator = '/' // PathSeparator is the OS-specific path separator PathListSeparator = ':' // PathListSeparator is the OS-specific path list separator )
const DevNull = "/dev/null"
Variables ¶
var ( // ErrInvalid indicates an invalid argument. // Methods on File will return this error when the receiver is nil. ErrInvalid = fs.ErrInvalid // "invalid argument" ErrPermission = fs.ErrPermission // "permission denied" ErrExist = fs.ErrExist // "file already exists" ErrNotExist = fs.ErrNotExist // "file does not exist" ErrClosed = fs.ErrClosed // "file already closed" // Note that these are exported for use in the Filesystem interface. ErrUnsupported = errors.New("operation not supported") ErrNotImplemented = errors.New("operation not implemented") )
Portable analogs of some common system call errors.
Errors returned from this package may be tested against these errors with errors.Is.
var ( ErrNotImplementedDir = errors.New("directory setting not implemented") ErrNotImplementedSys = errors.New("sys setting not implemented") ErrNotImplementedFiles = errors.New("files setting not implemented") )
var ( Stdin = NewFile(uintptr(syscall.Stdin), "/dev/stdin") Stdout = NewFile(uintptr(syscall.Stdout), "/dev/stdout") Stderr = NewFile(uintptr(syscall.Stderr), "/dev/stderr") )
Stdin, Stdout, and Stderr are open Files pointing to the standard input, standard output, and standard error file descriptors.
var Args []string
Args hold the command-line arguments, starting with the program name.
var ErrDeadlineExceeded error = &DeadlineExceededError{}
ErrDeadlineExceeded is returned for an expired deadline. This is exported by the os package as os.ErrDeadlineExceeded.
var ErrNoDeadline = errors.New("file type does not support deadline")
ErrNoDeadline is returned when a request is made to set a deadline on a file type that does not use the poller.
var ErrProcessDone = errors.New("os: process already finished")
ErrProcessDone indicates a Process has finished.
Functions ¶
func Chdir ¶ added in v0.22.0
Chdir changes the current working directory to the named directory. If there is an error, it will be of type *PathError.
func Chmod ¶ added in v0.22.0
Chmod changes the mode of the named file to mode. If the file is a symbolic link, it changes the mode of the link's target. If there is an error, it will be of type *PathError.
A different subset of the mode bits are used, depending on the operating system.
On Unix, the mode's permission bits, ModeSetuid, ModeSetgid, and ModeSticky are used.
On Windows, only the 0200 bit (owner writable) of mode is used; it controls whether the file's read-only attribute is set or cleared. The other bits are currently unused. For compatibility with Go 1.12 and earlier, use a non-zero mode. Use mode 0400 for a read-only file and 0600 for a readable+writable file.
func Chown ¶ added in v0.33.0
Chown changes the numeric uid and gid of the named file. If the file is a symbolic link, it changes the uid and gid of the link's target. A uid or gid of -1 means to not change that value. If there is an error, it will be of type *PathError.
func DirFS ¶ added in v0.23.0
DirFS returns a file system (an fs.FS) for the tree of files rooted at the directory dir.
Note that DirFS("/prefix") only guarantees that the Open calls it makes to the operating system will begin with "/prefix": DirFS("/prefix").Open("file") is the same as os.Open("/prefix/file"). So if /prefix/file is a symbolic link pointing outside the /prefix tree, then using DirFS does not stop the access any more than using os.Open does. DirFS is therefore not a general substitute for a chroot-style security mechanism when the directory tree contains arbitrary content.
func Environ ¶ added in v0.22.0
func Environ() []string
Environ returns a copy of strings representing the environment, in the form "key=value".
func Executable ¶ added in v0.20.0
func Exit ¶ added in v0.7.0
func Exit(code int)
Exit causes the current program to exit with the given status code. Conventionally, code zero indicates success, non-zero an error. The program terminates immediately; deferred functions are not run.
func Expand ¶ added in v0.22.0
Expand replaces ${var} or $var in the string based on the mapping function. For example, os.ExpandEnv(s) is equivalent to os.Expand(s, os.Getenv).
func ExpandEnv ¶ added in v0.22.0
ExpandEnv replaces ${var} or $var in the string according to the values of the current environment variables. References to undefined variables are replaced by the empty string.
func Getegid ¶ added in v0.19.0
func Getegid() int
Getegid returns the numeric effective group id of the caller.
On non-POSIX systems, it returns -1.
func Getenv ¶ added in v0.14.0
Getenv retrieves the value of the environment variable named by the key. It returns the value, which will be empty if the variable is not present. To distinguish between an empty value and an unset value, use LookupEnv.
func Geteuid ¶ added in v0.19.0
func Geteuid() int
Geteuid returns the numeric effective user id of the caller.
On non-POSIX systems, it returns -1.
func Getgid ¶ added in v0.19.0
func Getgid() int
Getgid returns the numeric group id of the caller.
On non-POSIX systems, it returns -1.
func Getpagesize ¶ added in v0.24.0
func Getpagesize() int
Getpagesize returns the underlying system's memory page size.
func Getpid ¶ added in v0.7.0
func Getpid() int
Getpid returns the process id of the caller, or -1 if unavailable.
func Getppid ¶ added in v0.19.0
func Getppid() int
Getppid returns the process id of the caller's parent, or -1 if unavailable.
func Getuid ¶ added in v0.19.0
func Getuid() int
Getuid returns the numeric user id of the caller.
On non-POSIX systems, it returns -1.
func IsNotExist ¶ added in v0.7.0
func IsPathSeparator ¶ added in v0.7.0
IsPathSeparator reports whether c is a directory separator character.
func IsPermission ¶ added in v0.14.0
func Link ¶ added in v0.32.0
Link creates newname as a hard link to the oldname file. If there is an error, it will be of type *LinkError.
func LookupEnv ¶ added in v0.17.0
LookupEnv retrieves the value of the environment variable named by the key. If the variable is present in the environment the value (which may be empty) is returned and the boolean is true. Otherwise the returned value will be empty and the boolean will be false.
func Mkdir ¶ added in v0.7.0
Mkdir creates a directory. If the operation fails, it will return an error of type *PathError.
func MkdirAll ¶ added in v0.22.0
MkdirAll creates a directory named path, along with any necessary parents, and returns nil, or else returns an error. The permission bits perm (before umask) are used for all directories that MkdirAll creates. If path is already a directory, MkdirAll does nothing and returns nil.
func MkdirTemp ¶ added in v0.20.0
MkdirTemp creates a new temporary directory in the directory dir and returns the pathname of the new directory. The new directory's name is generated by adding a random string to the end of pattern. If pattern includes a "*", the random string replaces the last "*" instead. If dir is the empty string, MkdirTemp uses the default directory for temporary files, as returned by TempDir. Multiple programs or goroutines calling MkdirTemp simultaneously will not choose the same directory. It is the caller's responsibility to remove the directory when it is no longer needed.
func Mount ¶ added in v0.14.0
func Mount(prefix string, filesystem Filesystem)
Mount mounts the given filesystem in the filesystem abstraction layer of the os package. It is not possible to unmount filesystems. Filesystems added later will override earlier filesystems.
The provided prefix must start and end with a forward slash. This is true for the root directory ("/") for example.
func NewSyscallError ¶ added in v0.14.0
func ReadFile ¶ added in v0.18.0
ReadFile reads the named file and returns the contents. A successful call returns err == nil, not err == EOF. Because ReadFile reads the whole file, it does not treat an EOF from Read as an error to be reported.
func Readlink ¶ added in v0.7.0
Readlink returns the destination of the named symbolic link. If there is an error, it will be of type *PathError.
func Remove ¶ added in v0.14.0
Remove removes a file or (empty) directory. If the operation fails, it will return an error of type *PathError.
func RemoveAll ¶ added in v0.22.0
RemoveAll removes path and any children it contains. It removes everything it can but returns the first error it encounters. If the path does not exist, RemoveAll returns nil (no error). If there is an error, it will be of type *PathError.
func Rename ¶ added in v0.22.0
Rename renames (moves) oldpath to newpath. If newpath already exists and is not a directory, Rename replaces it. OS-specific restrictions may apply when oldpath and newpath are in different directories. If there is an error, it will be of type *LinkError.
func SameFile ¶ added in v0.22.0
SameFile reports whether fi1 and fi2 describe the same file. For example, on Unix this means that the device and inode fields of the two underlying structures are identical; on other systems the decision may be based on the path names. SameFile only applies to results returned by this package's Stat. It returns false in other cases.
func Setenv ¶ added in v0.22.0
Setenv sets the value of the environment variable named by the key. It returns an error, if any.
func Symlink ¶ added in v0.22.0
Symlink creates newname as a symbolic link to oldname. On Windows, a symlink to a non-existent oldname creates a file symlink; if oldname is later created as a directory the symlink will not work. If there is an error, it will be of type *LinkError.
func TempDir ¶ added in v0.7.0
func TempDir() string
TempDir returns the default directory to use for temporary files.
On Unix systems, it returns $TMPDIR if non-empty, else /tmp. On Windows, it uses GetTempPath, returning the first non-empty value from %TMP%, %TEMP%, %USERPROFILE%, or the Windows directory.
The directory is neither guaranteed to exist nor have accessible permissions.
func Truncate ¶ added in v0.33.0
Truncate changes the size of the named file. If the file is a symbolic link, it changes the size of the link's target. If there is an error, it will be of type *PathError.
func UserHomeDir ¶ added in v0.23.0
UserHomeDir returns the current user's home directory.
On Unix, including macOS, it returns the $HOME environment variable. On Windows, it returns %USERPROFILE%. On Plan 9, it returns the $home environment variable.
Types ¶
type DeadlineExceededError ¶ added in v0.23.0
type DeadlineExceededError struct{}
DeadlineExceededError is returned for an expired deadline.
func (*DeadlineExceededError) Error ¶ added in v0.23.0
func (e *DeadlineExceededError) Error() string
Implement the net.Error interface. The string is "i/o timeout" because that is what was returned by earlier Go versions. Changing it may break programs that match on error strings.
func (*DeadlineExceededError) Temporary ¶ added in v0.23.0
func (e *DeadlineExceededError) Temporary() bool
func (*DeadlineExceededError) Timeout ¶ added in v0.23.0
func (e *DeadlineExceededError) Timeout() bool
type DirEntry ¶ added in v0.18.0
A DirEntry is an entry read from a directory (using the ReadDir function or a File's ReadDir method).
type File ¶
type File struct {
// contains filtered or unexported fields
}
File represents an open file descriptor.
func CreateTemp ¶ added in v0.19.0
CreateTemp creates a new temporary file in the directory dir, opens the file for reading and writing, and returns the resulting file. The filename is generated by taking pattern and adding a random string to the end. If pattern includes a "*", the random string replaces the last "*". If dir is the empty string, CreateTemp uses the default directory for temporary files, as returned by TempDir. Multiple programs or goroutines calling CreateTemp simultaneously will not choose the same file. The caller can use the file's Name method to find the pathname of the file. It is the caller's responsibility to remove the file when it is no longer needed.
func OpenFile ¶ added in v0.7.0
OpenFile opens the named file. If the operation fails, the returned error will be of type *PathError.
func (*File) Read ¶
Read reads up to len(b) bytes from the File. It returns the number of bytes read and any error encountered. At end of file, Read returns 0, io.EOF.
func (*File) ReadAt ¶ added in v0.14.0
ReadAt reads up to len(b) bytes from the File at the given absolute offset. It returns the number of bytes read and any error encountered, possible io.EOF. At end of file, Read returns 0, io.EOF.
func (*File) ReadDir ¶ added in v0.18.0
ReadDir reads the contents of the directory associated with the file f and returns a slice of DirEntry values in directory order. Subsequent calls on the same file will yield later DirEntry records in the directory.
If n > 0, ReadDir returns at most n DirEntry records. In this case, if ReadDir returns an empty slice, it will return an error explaining why. At the end of a directory, the error is io.EOF.
If n <= 0, ReadDir returns all the DirEntry records remaining in the directory. When it succeeds, it returns a nil error (not io.EOF).
func (*File) Readdir ¶ added in v0.7.0
Readdir reads the contents of the directory associated with file and returns a slice of up to n FileInfo values, as would be returned by Lstat, in directory order. Subsequent calls on the same file will yield further FileInfos.
If n > 0, Readdir returns at most n FileInfo structures. In this case, if Readdir returns an empty slice, it will return a non-nil error explaining why. At the end of a directory, the error is io.EOF.
If n <= 0, Readdir returns all the FileInfo from the directory in a single slice. In this case, if Readdir succeeds (reads all the way to the end of the directory), it returns the slice and a nil error. If it encounters an error before the end of the directory, Readdir returns the FileInfo read until that point and a non-nil error.
Most clients are better served by the more efficient ReadDir method.
func (*File) Readdirnames ¶ added in v0.7.0
Readdirnames reads the contents of the directory associated with file and returns a slice of up to n names of files in the directory, in directory order. Subsequent calls on the same file will yield further names.
If n > 0, Readdirnames returns at most n names. In this case, if Readdirnames returns an empty slice, it will return a non-nil error explaining why. At the end of a directory, the error is io.EOF.
If n <= 0, Readdirnames returns all the names from the directory in a single slice. In this case, if Readdirnames succeeds (reads all the way to the end of the directory), it returns the slice and a nil error. If it encounters an error before the end of the directory, Readdirnames returns the names read until that point and a non-nil error.
func (*File) Seek ¶ added in v0.19.0
Seek sets the offset for the next Read or Write on file to offset, interpreted according to whence: 0 means relative to the origin of the file, 1 means relative to the current offset, and 2 means relative to the end. It returns the new offset and an error, if any. The behavior of Seek on a file opened with O_APPEND is not specified.
If f is a directory, the behavior of Seek varies by operating system; you can seek to the beginning of the directory on Unix-like operating systems, but not on Windows.
func (*File) SetDeadline ¶ added in v0.34.0
SetDeadline sets the read and write deadlines for a File. Calls to SetDeadline for files that do not support deadlines will return ErrNoDeadline This stub always returns ErrNoDeadline. A zero value for t means I/O operations will not time out.
func (*File) SetReadDeadline ¶ added in v0.32.0
SetReadDeadline sets the deadline for future Read calls and any currently-blocked Read call.
func (*File) SetWriteDeadline ¶ added in v0.34.0
SetWriteDeadline sets the deadline for any future Write calls and any currently-blocked Write call.
func (*File) Stat ¶ added in v0.7.0
Stat returns the FileInfo structure describing file. If there is an error, it will be of type *PathError.
func (*File) Sync ¶ added in v0.14.0
Sync commits the current contents of the file to stable storage. Typically, this means flushing the file system's in-memory copy of recently written data to disk.
func (*File) SyscallConn ¶ added in v0.14.0
func (*File) Truncate ¶ added in v0.22.0
Truncate changes the size of the file. It does not change the I/O offset. If there is an error, it will be of type *PathError. Alternatively just use 'raw' syscall by file name
func (*File) Write ¶
Write writes len(b) bytes to the File. It returns the number of bytes written and an error, if any. Write returns a non-nil error when n != len(b).
type FileHandle ¶ added in v0.14.0
type FileHandle interface { // Read reads up to len(b) bytes from the file. Read(b []byte) (n int, err error) // ReadAt reads up to len(b) bytes from the file starting at the given absolute offset ReadAt(b []byte, offset int64) (n int, err error) // Seek resets the file pointer relative to start, current position, or end Seek(offset int64, whence int) (newoffset int64, err error) // Sync blocks until buffered writes have been written to persistent storage Sync() (err error) // Write writes up to len(b) bytes to the file. Write(b []byte) (n int, err error) // WriteAt writes b to the file at the given absolute offset WriteAt(b []byte, offset int64) (n int, err error) // Close closes the file, making it unusable for further writes. Close() (err error) }
FileHandle is an interface that should be implemented by filesystems implementing the Filesystem interface.
WARNING: this interface is not finalized and may change in a future version.
type FileInfo ¶ added in v0.7.0
type Filesystem ¶ added in v0.14.0
type Filesystem interface { // OpenFile opens the named file. OpenFile(name string, flag int, perm FileMode) (uintptr, error) // Mkdir creates a new directory with the specified permission (before // umask). Some filesystems may not support directories or permissions. Mkdir(name string, perm FileMode) error // Remove removes the named file or (empty) directory. Remove(name string) error }
Filesystem provides an interface for generic filesystem drivers mounted in the os package. The errors returned must be one of the os.Err* errors, or a custom error if one doesn't exist. It should not be a *PathError because errors will be wrapped with a *PathError by the filesystem abstraction.
WARNING: this interface is not finalized and may change in a future version.
type LinkError ¶ added in v0.22.0
LinkError records an error during a link or symlink or rename system call and the paths that caused it.
type PathError ¶ added in v0.7.0
PathError records an error and the operation and file path that caused it.
type ProcAttr ¶ added in v0.22.0
type ProcAttr struct { Dir string Env []string Files []*File Sys *syscall.SysProcAttr }
type Process ¶ added in v0.22.0
type Process struct {
Pid int
}
func FindProcess ¶ added in v0.32.0
FindProcess looks for a running process by its pid. Keep compatibility with golang and always succeed and return new proc with pid on Linux.
func StartProcess ¶ added in v0.22.0
StartProcess starts a new process with the program, arguments and attributes specified by name, argv and attr. Arguments to the process (os.Args) are passed via argv.
func (*Process) Release ¶ added in v0.32.0
Release releases any resources associated with the Process p, rendering it unusable in the future. Release only needs to be called if Wait is not.
func (*Process) Wait ¶ added in v0.22.0
func (p *Process) Wait() (*ProcessState, error)
type ProcessState ¶ added in v0.22.0
type ProcessState struct { }
func (*ProcessState) ExitCode ¶ added in v0.23.0
func (p *ProcessState) ExitCode() int
ExitCode returns the exit code of the exited process, or -1 if the process hasn't exited or was terminated by a signal.
func (*ProcessState) Exited ¶ added in v0.35.0
func (p *ProcessState) Exited() bool
func (*ProcessState) String ¶ added in v0.22.0
func (p *ProcessState) String() string
func (*ProcessState) Success ¶ added in v0.22.0
func (p *ProcessState) Success() bool
func (*ProcessState) Sys ¶ added in v0.23.0
func (p *ProcessState) Sys() interface{}
Sys returns system-dependent exit information about the process. Convert it to the appropriate underlying type, such as syscall.WaitStatus on Unix, to access its contents.
type Signal ¶ added in v0.14.0
type Signal interface { String() string Signal() // to distinguish from other Stringers }
The only signal values guaranteed to be present in the os package on all systems are os.Interrupt (send the process an interrupt) and os.Kill (force the process to exit). On Windows, sending os.Interrupt to a process with os.Process.Signal is not implemented; it will return an error instead of sending a signal.
type SyscallError ¶ added in v0.14.0
SyscallError records an error from a specific system call.
func (*SyscallError) Error ¶ added in v0.14.0
func (e *SyscallError) Error() string
func (*SyscallError) Timeout ¶ added in v0.26.0
func (e *SyscallError) Timeout() bool
Timeout reports whether this error represents a timeout.
func (*SyscallError) Unwrap ¶ added in v0.14.0
func (e *SyscallError) Unwrap() error
Source Files ¶
- dir.go
- dir_unix.go
- dirent_linux.go
- endian_little.go
- env.go
- errors.go
- exec.go
- exec_linux.go
- executable_procfs.go
- file.go
- file_anyos.go
- file_notdarwin.go
- file_posix.go
- file_unix.go
- filesystem.go
- osexec.go
- path.go
- path_unix.go
- proc.go
- removeall_noat.go
- stat.go
- stat_linuxlike.go
- stat_unix.go
- sys.go
- tempfile.go
- types.go
- types_anyos.go
- types_unix.go