Global
Location
-
Reference:
- Go.dll .NET, .NET Standard 2.0
- Go.fx Island
- Namespace: go.os
- Platforms: .NET, .NET Standard 2.0, Island
Args
class var Args: Slice<string>;
static Slice<string> Args
static var Args: Slice<string>
Args Slice<string>
Shared FIELD Args() As Slice<string>
Chdir
class method Chdir(p: String): error
static error Chdir(String p)
static func Chdir(_ p: String) -> error
func Chdir(p String) error
Shared Function Chdir(p As String) As error
Parameters:
- p:
Clearenv
class method Clearenv
static void Clearenv()
static func Clearenv()
// .NET, .NET Standard 2.0
func Clearenv()
// Island
func Clearenv() void
Shared Sub Clearenv()
Create
class method Create(name: string): tuple of (File, error)
static (File, error) Create(string name)
static func Create(_ name: string) -> tuple of (File, error)
func Create(name string) tuple of (File, error)
Shared Function Create(name As string) As Tuple (Of File, error)
Parameters:
- name:
Environ
class method Environ: Slice<string>
static Slice<string> Environ()
static func Environ() -> Slice<string>
func Environ() Slice<string>
Shared Function Environ() As Slice<string>
ErrClosed
class var ErrClosed: error;
static error ErrClosed
static var ErrClosed: error
ErrClosed error
Shared FIELD ErrClosed() As error
ErrExist
class var ErrExist: error;
static error ErrExist
static var ErrExist: error
ErrExist error
Shared FIELD ErrExist() As error
ErrInvalid
class var ErrInvalid: error;
static error ErrInvalid
static var ErrInvalid: error
ErrInvalid error
Shared FIELD ErrInvalid() As error
ErrNoDeadline
class var ErrNoDeadline: error;
static error ErrNoDeadline
static var ErrNoDeadline: error
ErrNoDeadline error
Shared FIELD ErrNoDeadline() As error
ErrNotExist
class var ErrNotExist: error;
static error ErrNotExist
static var ErrNotExist: error
ErrNotExist error
Shared FIELD ErrNotExist() As error
ErrPermission
class var ErrPermission: error;
static error ErrPermission
static var ErrPermission: error
ErrPermission error
Shared FIELD ErrPermission() As error
Executable
class method Executable: tuple of (string, error)
static (string, error) Executable()
static func Executable() -> tuple of (string, error)
func Executable() tuple of (string, error)
Shared Function Executable() As Tuple (Of string, error)
Exit
class method Exit(i: Int32)
static void Exit(Int32 i)
static func Exit(_ i: Int32)
// .NET, .NET Standard 2.0
func Exit(i Int32)
// Island
func Exit(i Int32) void
Shared Sub Exit(i As Int32)
Parameters:
- i:
Expand
// .NET, .NET Standard 2.0, Island-watchOS-armv7k
class method Expand(s: string; mapping: Func<string, string>): string
// Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-watchOS Simulator, Island-watchOS-arm64_32, Island-Windows
class method Expand(s: string; mapping: Func<go.builtin.string,go.builtin.string>): string
// .NET, .NET Standard 2.0, Island-watchOS-armv7k
static string Expand(string s, Func<string, string> mapping)
// Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-watchOS Simulator, Island-watchOS-arm64_32, Island-Windows
static string Expand(string s, Func<go.builtin.string,go.builtin.string> mapping)
// .NET, .NET Standard 2.0, Island-watchOS-armv7k
static func Expand(_ s: string, _ mapping: Func<string, string>) -> string
// Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-watchOS Simulator, Island-watchOS-arm64_32, Island-Windows
static func Expand(_ s: string, _ mapping: Func<go.builtin.string,go.builtin.string>) -> string
// .NET, .NET Standard 2.0, Island-watchOS-armv7k
func Expand(s string, mapping Func<string, string>) string
// Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-watchOS Simulator, Island-watchOS-arm64_32, Island-Windows
func Expand(s string, mapping Func<go.builtin.string,go.builtin.string>) string
// .NET, .NET Standard 2.0, Island-watchOS-armv7k
Shared Function Expand(s As string, mapping As Func (Of string, string)) As string
// Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-watchOS Simulator, Island-watchOS-arm64_32, Island-Windows
Shared Function Expand(s As string, mapping As Func<go.builtin.string,go.builtin.string>) As string
Parameters:
- s:
- mapping:
ExpandEnv
class method ExpandEnv(s: string): string
static string ExpandEnv(string s)
static func ExpandEnv(_ s: string) -> string
func ExpandEnv(s string) string
Shared Function ExpandEnv(s As string) As string
Parameters:
- s:
FindProcess
class method FindProcess(pid: Int32): tuple of (Memory<Process>, error)
static (Memory<Process>, error) FindProcess(Int32 pid)
static func FindProcess(_ pid: Int32) -> tuple of (Memory<Process>, error)
func FindProcess(pid Int32) tuple of (Memory<Process>, error)
Shared Function FindProcess(pid As Int32) As Tuple (Of Memory<Process>, error)
Parameters:
- pid:
GetArgs Island
class method GetArgs: array of String
static String[] GetArgs()
static func GetArgs() -> String...
func GetArgs() array of String
Shared Function GetArgs() As String()
Getenv
class method Getenv(key: string): string
static string Getenv(string key)
static func Getenv(_ key: string) -> string
func Getenv(key string) string
Shared Function Getenv(key As string) As string
Parameters:
- key:
Geteuid
class method Geteuid: Int64
static Int64 Geteuid()
static func Geteuid() -> Int64
func Geteuid() Int64
Shared Function Geteuid() As Int64
Getgid
class method Getgid: Int64
static Int64 Getgid()
static func Getgid() -> Int64
func Getgid() Int64
Shared Function Getgid() As Int64
Getpid
class method Getpid: Int64
static Int64 Getpid()
static func Getpid() -> Int64
func Getpid() Int64
Shared Function Getpid() As Int64
Getppid
class method Getppid: Int64
static Int64 Getppid()
static func Getppid() -> Int64
func Getppid() Int64
Shared Function Getppid() As Int64
Getuid
class method Getuid: Int64
static Int64 Getuid()
static func Getuid() -> Int64
func Getuid() Int64
Shared Function Getuid() As Int64
Getwd
class method Getwd: tuple of (string, error)
static (string, error) Getwd()
static func Getwd() -> tuple of (string, error)
func Getwd() tuple of (string, error)
Shared Function Getwd() As Tuple (Of string, error)
Hostname
class method Hostname: tuple of (name: string, err: error)
static (string name, error err) Hostname()
static func Hostname() -> tuple of (string, error)
func Hostname() tuple of (|name=name| string, |name=err| error)
Shared Function Hostname() As Tuple (Of string, error)
IntStartProcess
class method IntStartProcess(name: string; argv: Slice<string>; attr: Memory<ProcAttr>): tuple of (Memory<Process>, error)
static (Memory<Process>, error) IntStartProcess(string name, Slice<string> argv, Memory<ProcAttr> attr)
static func IntStartProcess(_ name: string, _ argv: Slice<string>, _ attr: Memory<ProcAttr>) -> tuple of (Memory<Process>, error)
func IntStartProcess(name string, argv Slice<string>, attr Memory<ProcAttr>) tuple of (Memory<Process>, error)
Shared Function IntStartProcess(name As string, argv As Slice<string>, attr As Memory<ProcAttr>) As Tuple (Of Memory<Process>, error)
Parameters:
- name:
- argv:
- attr:
IsExist
class method IsExist(err: error): bool
static bool IsExist(error err)
static func IsExist(_ err: error) -> bool
func IsExist(err error) bool
Shared Function IsExist(err As error) As bool
Parameters:
- err:
IsNotExist
class method IsNotExist(err: error): bool
static bool IsNotExist(error err)
static func IsNotExist(_ err: error) -> bool
func IsNotExist(err error) bool
Shared Function IsNotExist(err As error) As bool
Parameters:
- err:
IsPathSeparator
class method IsPathSeparator(c: Char): Boolean
static Boolean IsPathSeparator(Char c)
static func IsPathSeparator(_ c: Char) -> Boolean
func IsPathSeparator(c Char) Boolean
Shared Function IsPathSeparator(c As Char) As Boolean
Parameters:
- c:
IsPermission
class method IsPermission(err: error): bool
static bool IsPermission(error err)
static func IsPermission(_ err: error) -> bool
func IsPermission(err error) bool
Shared Function IsPermission(err As error) As bool
Parameters:
- err:
IsTimeout
class method IsTimeout(err: error): bool
static bool IsTimeout(error err)
static func IsTimeout(_ err: error) -> bool
func IsTimeout(err error) bool
Shared Function IsTimeout(err As error) As bool
Parameters:
- err:
LookupEnv
class method LookupEnv(key: string): tuple of (string, Boolean)
static (string, Boolean) LookupEnv(string key)
static func LookupEnv(_ key: string) -> tuple of (string, Boolean)
func LookupEnv(key string) tuple of (string, Boolean)
Shared Function LookupEnv(key As string) As Tuple (Of string, Boolean)
Parameters:
- key:
Lstat
class method Lstat(name: string): tuple of (FileInfo, error)
static (FileInfo, error) Lstat(string name)
static func Lstat(_ name: string) -> tuple of (FileInfo, error)
func Lstat(name string) tuple of (FileInfo, error)
Shared Function Lstat(name As string) As Tuple (Of FileInfo, error)
Parameters:
- name:
Mkdir
class method Mkdir(name: string; perm: FileMode): error
static error Mkdir(string name, FileMode perm)
static func Mkdir(_ name: string, _ perm: FileMode) -> error
func Mkdir(name string, perm FileMode) error
Shared Function Mkdir(name As string, perm As FileMode) As error
Parameters:
- name:
- perm:
MkdirAll
class method MkdirAll(path: string; perm: FileMode): error
static error MkdirAll(string path, FileMode perm)
static func MkdirAll(_ path: string, _ perm: FileMode) -> error
func MkdirAll(path string, perm FileMode) error
Shared Function MkdirAll(path As string, perm As FileMode) As error
Parameters:
- path:
- perm:
ModeAppend
const ModeAppend: FileMode = 1073741824
const FileMode ModeAppend = 1073741824
static let ModeAppend: FileMode = 1073741824
const ModeAppend FileMode = 1073741824
Const ModeAppend As FileMode = 1073741824
ModeCharDevice
const ModeCharDevice: FileMode = 2097152
const FileMode ModeCharDevice = 2097152
static let ModeCharDevice: FileMode = 2097152
const ModeCharDevice FileMode = 2097152
Const ModeCharDevice As FileMode = 2097152
ModeDevice
const ModeDevice: FileMode = 67108864
const FileMode ModeDevice = 67108864
static let ModeDevice: FileMode = 67108864
const ModeDevice FileMode = 67108864
Const ModeDevice As FileMode = 67108864
ModeDir
// .NET, .NET Standard 2.0
const ModeDir: FileMode = 2147483648
// Island
const ModeDir: FileMode = -2147483648
// .NET, .NET Standard 2.0
const FileMode ModeDir = 2147483648
// Island
const FileMode ModeDir = -2147483648
// .NET, .NET Standard 2.0
static let ModeDir: FileMode = 2147483648
// Island
static let ModeDir: FileMode = -2147483648
// .NET, .NET Standard 2.0
const ModeDir FileMode = 2147483648
// Island
const ModeDir FileMode = -2147483648
// .NET, .NET Standard 2.0
Const ModeDir As FileMode = 2147483648
// Island
Const ModeDir As FileMode = -2147483648
ModeExclusive
const ModeExclusive: FileMode = 536870912
const FileMode ModeExclusive = 536870912
static let ModeExclusive: FileMode = 536870912
const ModeExclusive FileMode = 536870912
Const ModeExclusive As FileMode = 536870912
ModeIrregular
const ModeIrregular: FileMode = 524288
const FileMode ModeIrregular = 524288
static let ModeIrregular: FileMode = 524288
const ModeIrregular FileMode = 524288
Const ModeIrregular As FileMode = 524288
ModeNamedPipe
const ModeNamedPipe: FileMode = 33554432
const FileMode ModeNamedPipe = 33554432
static let ModeNamedPipe: FileMode = 33554432
const ModeNamedPipe FileMode = 33554432
Const ModeNamedPipe As FileMode = 33554432
ModePerm
const ModePerm: FileMode = 511
const FileMode ModePerm = 511
static let ModePerm: FileMode = 511
const ModePerm FileMode = 511
Const ModePerm As FileMode = 511
ModeSetgid
const ModeSetgid: FileMode = 4194304
const FileMode ModeSetgid = 4194304
static let ModeSetgid: FileMode = 4194304
const ModeSetgid FileMode = 4194304
Const ModeSetgid As FileMode = 4194304
ModeSetuid
const ModeSetuid: FileMode = 8388608
const FileMode ModeSetuid = 8388608
static let ModeSetuid: FileMode = 8388608
const ModeSetuid FileMode = 8388608
Const ModeSetuid As FileMode = 8388608
ModeSocket
const ModeSocket: FileMode = 16777216
const FileMode ModeSocket = 16777216
static let ModeSocket: FileMode = 16777216
const ModeSocket FileMode = 16777216
Const ModeSocket As FileMode = 16777216
ModeSticky
const ModeSticky: FileMode = 1048576
const FileMode ModeSticky = 1048576
static let ModeSticky: FileMode = 1048576
const ModeSticky FileMode = 1048576
Const ModeSticky As FileMode = 1048576
ModeSymlink
const ModeSymlink: FileMode = 134217728
const FileMode ModeSymlink = 134217728
static let ModeSymlink: FileMode = 134217728
const ModeSymlink FileMode = 134217728
Const ModeSymlink As FileMode = 134217728
ModeTemporary
const ModeTemporary: FileMode = 268435456
const FileMode ModeTemporary = 268435456
static let ModeTemporary: FileMode = 268435456
const ModeTemporary FileMode = 268435456
Const ModeTemporary As FileMode = 268435456
ModeType
// .NET, .NET Standard 2.0
const ModeType: FileMode = 2401763328
// Island
const ModeType: FileMode = -1893203968
// .NET, .NET Standard 2.0
const FileMode ModeType = 2401763328
// Island
const FileMode ModeType = -1893203968
// .NET, .NET Standard 2.0
static let ModeType: FileMode = 2401763328
// Island
static let ModeType: FileMode = -1893203968
// .NET, .NET Standard 2.0
const ModeType FileMode = 2401763328
// Island
const ModeType FileMode = -1893203968
// .NET, .NET Standard 2.0
Const ModeType As FileMode = 2401763328
// Island
Const ModeType As FileMode = -1893203968
NewFile
class method NewFile(fd: uint64; name: string): File
static File NewFile(uint64 fd, string name)
static func NewFile(_ fd: uint64, _ name: string) -> File
func NewFile(fd uint64, name string) File
Shared Function NewFile(fd As uint64, name As string) As File
Parameters:
- fd:
- name:
NewSyscallError
class method NewSyscallError(syscall: string; err: error): error
static error NewSyscallError(string syscall, error err)
static func NewSyscallError(_ syscall: string, _ err: error) -> error
func NewSyscallError(syscall string, err error) error
Shared Function NewSyscallError(syscall As string, err As error) As error
Parameters:
- syscall:
- err:
O_APPEND
const O_APPEND: Int32 = 1024
const Int32 O_APPEND = 1024
static let O_APPEND: Int32 = 1024
const O_APPEND Int32 = 1024
Const O_APPEND As Int32 = 1024
O_CREATE
const O_CREATE: Int32 = 64
const Int32 O_CREATE = 64
static let O_CREATE: Int32 = 64
const O_CREATE Int32 = 64
Const O_CREATE As Int32 = 64
O_EXCL
const O_EXCL: Int32 = 128
const Int32 O_EXCL = 128
static let O_EXCL: Int32 = 128
const O_EXCL Int32 = 128
Const O_EXCL As Int32 = 128
O_RDONLY
const O_RDONLY: Int32 = 0
const Int32 O_RDONLY = 0
static let O_RDONLY: Int32 = 0
const O_RDONLY Int32 = 0
Const O_RDONLY As Int32 = 0
O_RDWR
const O_RDWR: Int32 = 2
const Int32 O_RDWR = 2
static let O_RDWR: Int32 = 2
const O_RDWR Int32 = 2
Const O_RDWR As Int32 = 2
O_SYNC
const O_SYNC: Int32 = 4096
const Int32 O_SYNC = 4096
static let O_SYNC: Int32 = 4096
const O_SYNC Int32 = 4096
Const O_SYNC As Int32 = 4096
O_TRUNC
const O_TRUNC: Int32 = 512
const Int32 O_TRUNC = 512
static let O_TRUNC: Int32 = 512
const O_TRUNC Int32 = 512
Const O_TRUNC As Int32 = 512
O_WRONLY
const O_WRONLY: Int32 = 1
const Int32 O_WRONLY = 1
static let O_WRONLY: Int32 = 1
const O_WRONLY Int32 = 1
Const O_WRONLY As Int32 = 1
Open
class method Open(name: string): tuple of (File, error)
static (File, error) Open(string name)
static func Open(_ name: string) -> tuple of (File, error)
func Open(name string) tuple of (File, error)
Shared Function Open(name As string) As Tuple (Of File, error)
Parameters:
- name:
OpenFile
class method OpenFile(name: string; aFlags: Int32; perm: FileMode): tuple of (File, error)
static (File, error) OpenFile(string name, Int32 aFlags, FileMode perm)
static func OpenFile(_ name: string, _ aFlags: Int32, _ perm: FileMode) -> tuple of (File, error)
func OpenFile(name string, aFlags Int32, perm FileMode) tuple of (File, error)
Shared Function OpenFile(name As string, aFlags As Int32, perm As FileMode) As Tuple (Of File, error)
Parameters:
- name:
- aFlags:
- perm:
PathListSeparator
class var PathListSeparator: Char;
static Char PathListSeparator
static var PathListSeparator: Char
PathListSeparator Char
Shared FIELD PathListSeparator() As Char
PathSeparator
class var PathSeparator: Char;
static Char PathSeparator
static var PathSeparator: Char
PathSeparator Char
Shared FIELD PathSeparator() As Char
Readlink
class method Readlink(name: string): tuple of (string, error)
static (string, error) Readlink(string name)
static func Readlink(_ name: string) -> tuple of (string, error)
func Readlink(name string) tuple of (string, error)
Shared Function Readlink(name As string) As Tuple (Of string, error)
Parameters:
- name:
Remove
class method Remove(s: string): error
static error Remove(string s)
static func Remove(_ s: string) -> error
func Remove(s string) error
Shared Function Remove(s As string) As error
Parameters:
- s:
RemoveAll
class method RemoveAll(path: string): error
static error RemoveAll(string path)
static func RemoveAll(_ path: string) -> error
func RemoveAll(path string) error
Shared Function RemoveAll(path As string) As error
Parameters:
- path:
Rename
class method Rename(oldpath: string; newpath: string): error
static error Rename(string oldpath, string newpath)
static func Rename(_ oldpath: string, _ newpath: string) -> error
func Rename(oldpath string, newpath string) error
Shared Function Rename(oldpath As string, newpath As string) As error
Parameters:
- oldpath:
- newpath:
SEEK_CUR
const SEEK_CUR: Int32 = 1
const Int32 SEEK_CUR = 1
static let SEEK_CUR: Int32 = 1
const SEEK_CUR Int32 = 1
Const SEEK_CUR As Int32 = 1
SEEK_END
const SEEK_END: Int32 = 2
const Int32 SEEK_END = 2
static let SEEK_END: Int32 = 2
const SEEK_END Int32 = 2
Const SEEK_END As Int32 = 2
SEEK_SET
const SEEK_SET: Int32 = 0
const Int32 SEEK_SET = 0
static let SEEK_SET: Int32 = 0
const SEEK_SET Int32 = 0
Const SEEK_SET As Int32 = 0
Setenv
class method Setenv(key: string; value: string): error
static error Setenv(string key, string value)
static func Setenv(_ key: string, _ value: string) -> error
func Setenv(key string, value string) error
Shared Function Setenv(key As string, value As string) As error
Parameters:
- key:
- value:
StartProcess
class method StartProcess(name: string; argv: Slice<string>; attr: Memory<ProcAttr>): tuple of (Memory<Process>, error)
static (Memory<Process>, error) StartProcess(string name, Slice<string> argv, Memory<ProcAttr> attr)
static func StartProcess(_ name: string, _ argv: Slice<string>, _ attr: Memory<ProcAttr>) -> tuple of (Memory<Process>, error)
func StartProcess(name string, argv Slice<string>, attr Memory<ProcAttr>) tuple of (Memory<Process>, error)
Shared Function StartProcess(name As string, argv As Slice<string>, attr As Memory<ProcAttr>) As Tuple (Of Memory<Process>, error)
Parameters:
- name:
- argv:
- attr:
Stat
class method Stat(name: string): tuple of (FileInfo, error)
static (FileInfo, error) Stat(string name)
static func Stat(_ name: string) -> tuple of (FileInfo, error)
func Stat(name string) tuple of (FileInfo, error)
Shared Function Stat(name As string) As Tuple (Of FileInfo, error)
Parameters:
- name:
Stderr
class property Stderr: File read;
class File Stderr { get; }
static var Stderr: File { get{} }
Stderr File
Shared ReadOnly Property Stderr() As File
Stdin
class property Stdin: File read;
class File Stdin { get; }
static var Stdin: File { get{} }
Stdin File
Shared ReadOnly Property Stdin() As File
Stdout
class property Stdout: File read;
class File Stdout { get; }
static var Stdout: File { get{} }
Stdout File
Shared ReadOnly Property Stdout() As File
Unsetenv
class method Unsetenv(key: string): error
static error Unsetenv(string key)
static func Unsetenv(_ key: string) -> error
func Unsetenv(key string) error
Shared Function Unsetenv(key As string) As error
Parameters:
- key:
UserHomeDir
class method UserHomeDir: tuple of (String, error)
static (String, error) UserHomeDir()
static func UserHomeDir() -> tuple of (String, error)
func UserHomeDir() tuple of (String, error)
Shared Function UserHomeDir() As Tuple (Of String, error)
ModeAppend
const ModeAppend: FileMode = 1073741824
const FileMode ModeAppend = 1073741824
static let ModeAppend: FileMode = 1073741824
const ModeAppend FileMode = 1073741824
Const ModeAppend As FileMode = 1073741824
ModeCharDevice
const ModeCharDevice: FileMode = 2097152
const FileMode ModeCharDevice = 2097152
static let ModeCharDevice: FileMode = 2097152
const ModeCharDevice FileMode = 2097152
Const ModeCharDevice As FileMode = 2097152
ModeDevice
const ModeDevice: FileMode = 67108864
const FileMode ModeDevice = 67108864
static let ModeDevice: FileMode = 67108864
const ModeDevice FileMode = 67108864
Const ModeDevice As FileMode = 67108864
ModeDir
// .NET, .NET Standard 2.0
const ModeDir: FileMode = 2147483648
// Island
const ModeDir: FileMode = -2147483648
// .NET, .NET Standard 2.0
const FileMode ModeDir = 2147483648
// Island
const FileMode ModeDir = -2147483648
// .NET, .NET Standard 2.0
static let ModeDir: FileMode = 2147483648
// Island
static let ModeDir: FileMode = -2147483648
// .NET, .NET Standard 2.0
const ModeDir FileMode = 2147483648
// Island
const ModeDir FileMode = -2147483648
// .NET, .NET Standard 2.0
Const ModeDir As FileMode = 2147483648
// Island
Const ModeDir As FileMode = -2147483648
ModeExclusive
const ModeExclusive: FileMode = 536870912
const FileMode ModeExclusive = 536870912
static let ModeExclusive: FileMode = 536870912
const ModeExclusive FileMode = 536870912
Const ModeExclusive As FileMode = 536870912
ModeIrregular
const ModeIrregular: FileMode = 524288
const FileMode ModeIrregular = 524288
static let ModeIrregular: FileMode = 524288
const ModeIrregular FileMode = 524288
Const ModeIrregular As FileMode = 524288
ModeNamedPipe
const ModeNamedPipe: FileMode = 33554432
const FileMode ModeNamedPipe = 33554432
static let ModeNamedPipe: FileMode = 33554432
const ModeNamedPipe FileMode = 33554432
Const ModeNamedPipe As FileMode = 33554432
ModePerm
const ModePerm: FileMode = 511
const FileMode ModePerm = 511
static let ModePerm: FileMode = 511
const ModePerm FileMode = 511
Const ModePerm As FileMode = 511
ModeSetgid
const ModeSetgid: FileMode = 4194304
const FileMode ModeSetgid = 4194304
static let ModeSetgid: FileMode = 4194304
const ModeSetgid FileMode = 4194304
Const ModeSetgid As FileMode = 4194304
ModeSetuid
const ModeSetuid: FileMode = 8388608
const FileMode ModeSetuid = 8388608
static let ModeSetuid: FileMode = 8388608
const ModeSetuid FileMode = 8388608
Const ModeSetuid As FileMode = 8388608
ModeSocket
const ModeSocket: FileMode = 16777216
const FileMode ModeSocket = 16777216
static let ModeSocket: FileMode = 16777216
const ModeSocket FileMode = 16777216
Const ModeSocket As FileMode = 16777216
ModeSticky
const ModeSticky: FileMode = 1048576
const FileMode ModeSticky = 1048576
static let ModeSticky: FileMode = 1048576
const ModeSticky FileMode = 1048576
Const ModeSticky As FileMode = 1048576
ModeSymlink
const ModeSymlink: FileMode = 134217728
const FileMode ModeSymlink = 134217728
static let ModeSymlink: FileMode = 134217728
const ModeSymlink FileMode = 134217728
Const ModeSymlink As FileMode = 134217728
ModeTemporary
const ModeTemporary: FileMode = 268435456
const FileMode ModeTemporary = 268435456
static let ModeTemporary: FileMode = 268435456
const ModeTemporary FileMode = 268435456
Const ModeTemporary As FileMode = 268435456
ModeType
// .NET, .NET Standard 2.0
const ModeType: FileMode = 2401763328
// Island
const ModeType: FileMode = -1893203968
// .NET, .NET Standard 2.0
const FileMode ModeType = 2401763328
// Island
const FileMode ModeType = -1893203968
// .NET, .NET Standard 2.0
static let ModeType: FileMode = 2401763328
// Island
static let ModeType: FileMode = -1893203968
// .NET, .NET Standard 2.0
const ModeType FileMode = 2401763328
// Island
const ModeType FileMode = -1893203968
// .NET, .NET Standard 2.0
Const ModeType As FileMode = 2401763328
// Island
Const ModeType As FileMode = -1893203968
O_APPEND
const O_APPEND: Int32 = 1024
const Int32 O_APPEND = 1024
static let O_APPEND: Int32 = 1024
const O_APPEND Int32 = 1024
Const O_APPEND As Int32 = 1024
O_CREATE
const O_CREATE: Int32 = 64
const Int32 O_CREATE = 64
static let O_CREATE: Int32 = 64
const O_CREATE Int32 = 64
Const O_CREATE As Int32 = 64
O_EXCL
const O_EXCL: Int32 = 128
const Int32 O_EXCL = 128
static let O_EXCL: Int32 = 128
const O_EXCL Int32 = 128
Const O_EXCL As Int32 = 128
O_RDONLY
const O_RDONLY: Int32 = 0
const Int32 O_RDONLY = 0
static let O_RDONLY: Int32 = 0
const O_RDONLY Int32 = 0
Const O_RDONLY As Int32 = 0
O_RDWR
const O_RDWR: Int32 = 2
const Int32 O_RDWR = 2
static let O_RDWR: Int32 = 2
const O_RDWR Int32 = 2
Const O_RDWR As Int32 = 2
O_SYNC
const O_SYNC: Int32 = 4096
const Int32 O_SYNC = 4096
static let O_SYNC: Int32 = 4096
const O_SYNC Int32 = 4096
Const O_SYNC As Int32 = 4096
O_TRUNC
const O_TRUNC: Int32 = 512
const Int32 O_TRUNC = 512
static let O_TRUNC: Int32 = 512
const O_TRUNC Int32 = 512
Const O_TRUNC As Int32 = 512
O_WRONLY
const O_WRONLY: Int32 = 1
const Int32 O_WRONLY = 1
static let O_WRONLY: Int32 = 1
const O_WRONLY Int32 = 1
Const O_WRONLY As Int32 = 1
SEEK_CUR
const SEEK_CUR: Int32 = 1
const Int32 SEEK_CUR = 1
static let SEEK_CUR: Int32 = 1
const SEEK_CUR Int32 = 1
Const SEEK_CUR As Int32 = 1
SEEK_END
const SEEK_END: Int32 = 2
const Int32 SEEK_END = 2
static let SEEK_END: Int32 = 2
const SEEK_END Int32 = 2
Const SEEK_END As Int32 = 2
SEEK_SET
const SEEK_SET: Int32 = 0
const Int32 SEEK_SET = 0
static let SEEK_SET: Int32 = 0
const SEEK_SET Int32 = 0
Const SEEK_SET As Int32 = 0
Args
class var Args: Slice<string>;
static Slice<string> Args
static var Args: Slice<string>
Args Slice<string>
Shared FIELD Args() As Slice<string>
ErrClosed
class var ErrClosed: error;
static error ErrClosed
static var ErrClosed: error
ErrClosed error
Shared FIELD ErrClosed() As error
ErrExist
class var ErrExist: error;
static error ErrExist
static var ErrExist: error
ErrExist error
Shared FIELD ErrExist() As error
ErrInvalid
class var ErrInvalid: error;
static error ErrInvalid
static var ErrInvalid: error
ErrInvalid error
Shared FIELD ErrInvalid() As error
ErrNoDeadline
class var ErrNoDeadline: error;
static error ErrNoDeadline
static var ErrNoDeadline: error
ErrNoDeadline error
Shared FIELD ErrNoDeadline() As error
ErrNotExist
class var ErrNotExist: error;
static error ErrNotExist
static var ErrNotExist: error
ErrNotExist error
Shared FIELD ErrNotExist() As error
ErrPermission
class var ErrPermission: error;
static error ErrPermission
static var ErrPermission: error
ErrPermission error
Shared FIELD ErrPermission() As error
PathListSeparator
class var PathListSeparator: Char;
static Char PathListSeparator
static var PathListSeparator: Char
PathListSeparator Char
Shared FIELD PathListSeparator() As Char
PathSeparator
class var PathSeparator: Char;
static Char PathSeparator
static var PathSeparator: Char
PathSeparator Char
Shared FIELD PathSeparator() As Char
Stderr
class property Stderr: File read;
class File Stderr { get; }
static var Stderr: File { get{} }
Stderr File
Shared ReadOnly Property Stderr() As File
Stdin
class property Stdin: File read;
class File Stdin { get; }
static var Stdin: File { get{} }
Stdin File
Shared ReadOnly Property Stdin() As File
Stdout
class property Stdout: File read;
class File Stdout { get; }
static var Stdout: File { get{} }
Stdout File
Shared ReadOnly Property Stdout() As File
Chdir
class method Chdir(p: String): error
static error Chdir(String p)
static func Chdir(_ p: String) -> error
func Chdir(p String) error
Shared Function Chdir(p As String) As error
Parameters:
- p:
Clearenv
class method Clearenv
static void Clearenv()
static func Clearenv()
// .NET, .NET Standard 2.0
func Clearenv()
// Island
func Clearenv() void
Shared Sub Clearenv()
Create
class method Create(name: string): tuple of (File, error)
static (File, error) Create(string name)
static func Create(_ name: string) -> tuple of (File, error)
func Create(name string) tuple of (File, error)
Shared Function Create(name As string) As Tuple (Of File, error)
Parameters:
- name:
Environ
class method Environ: Slice<string>
static Slice<string> Environ()
static func Environ() -> Slice<string>
func Environ() Slice<string>
Shared Function Environ() As Slice<string>
Executable
class method Executable: tuple of (string, error)
static (string, error) Executable()
static func Executable() -> tuple of (string, error)
func Executable() tuple of (string, error)
Shared Function Executable() As Tuple (Of string, error)
Exit
class method Exit(i: Int32)
static void Exit(Int32 i)
static func Exit(_ i: Int32)
// .NET, .NET Standard 2.0
func Exit(i Int32)
// Island
func Exit(i Int32) void
Shared Sub Exit(i As Int32)
Parameters:
- i:
Expand
// .NET, .NET Standard 2.0, Island-watchOS-armv7k
class method Expand(s: string; mapping: Func<string, string>): string
// Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-watchOS Simulator, Island-watchOS-arm64_32, Island-Windows
class method Expand(s: string; mapping: Func<go.builtin.string,go.builtin.string>): string
// .NET, .NET Standard 2.0, Island-watchOS-armv7k
static string Expand(string s, Func<string, string> mapping)
// Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-watchOS Simulator, Island-watchOS-arm64_32, Island-Windows
static string Expand(string s, Func<go.builtin.string,go.builtin.string> mapping)
// .NET, .NET Standard 2.0, Island-watchOS-armv7k
static func Expand(_ s: string, _ mapping: Func<string, string>) -> string
// Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-watchOS Simulator, Island-watchOS-arm64_32, Island-Windows
static func Expand(_ s: string, _ mapping: Func<go.builtin.string,go.builtin.string>) -> string
// .NET, .NET Standard 2.0, Island-watchOS-armv7k
func Expand(s string, mapping Func<string, string>) string
// Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-watchOS Simulator, Island-watchOS-arm64_32, Island-Windows
func Expand(s string, mapping Func<go.builtin.string,go.builtin.string>) string
// .NET, .NET Standard 2.0, Island-watchOS-armv7k
Shared Function Expand(s As string, mapping As Func (Of string, string)) As string
// Island-Android, Island-iOS, Island-iOS Simulator, Island-Mac Catalyst, Island-macOS, Island-tvOS, Island-tvOS Simulator, Island-Ubuntu, Island-watchOS Simulator, Island-watchOS-arm64_32, Island-Windows
Shared Function Expand(s As string, mapping As Func<go.builtin.string,go.builtin.string>) As string
Parameters:
- s:
- mapping:
ExpandEnv
class method ExpandEnv(s: string): string
static string ExpandEnv(string s)
static func ExpandEnv(_ s: string) -> string
func ExpandEnv(s string) string
Shared Function ExpandEnv(s As string) As string
Parameters:
- s:
FindProcess
class method FindProcess(pid: Int32): tuple of (Memory<Process>, error)
static (Memory<Process>, error) FindProcess(Int32 pid)
static func FindProcess(_ pid: Int32) -> tuple of (Memory<Process>, error)
func FindProcess(pid Int32) tuple of (Memory<Process>, error)
Shared Function FindProcess(pid As Int32) As Tuple (Of Memory<Process>, error)
Parameters:
- pid:
GetArgs Island
class method GetArgs: array of String
static String[] GetArgs()
static func GetArgs() -> String...
func GetArgs() array of String
Shared Function GetArgs() As String()
Getenv
class method Getenv(key: string): string
static string Getenv(string key)
static func Getenv(_ key: string) -> string
func Getenv(key string) string
Shared Function Getenv(key As string) As string
Parameters:
- key:
Geteuid
class method Geteuid: Int64
static Int64 Geteuid()
static func Geteuid() -> Int64
func Geteuid() Int64
Shared Function Geteuid() As Int64
Getgid
class method Getgid: Int64
static Int64 Getgid()
static func Getgid() -> Int64
func Getgid() Int64
Shared Function Getgid() As Int64
Getpid
class method Getpid: Int64
static Int64 Getpid()
static func Getpid() -> Int64
func Getpid() Int64
Shared Function Getpid() As Int64
Getppid
class method Getppid: Int64
static Int64 Getppid()
static func Getppid() -> Int64
func Getppid() Int64
Shared Function Getppid() As Int64
Getuid
class method Getuid: Int64
static Int64 Getuid()
static func Getuid() -> Int64
func Getuid() Int64
Shared Function Getuid() As Int64
Getwd
class method Getwd: tuple of (string, error)
static (string, error) Getwd()
static func Getwd() -> tuple of (string, error)
func Getwd() tuple of (string, error)
Shared Function Getwd() As Tuple (Of string, error)
Hostname
class method Hostname: tuple of (name: string, err: error)
static (string name, error err) Hostname()
static func Hostname() -> tuple of (string, error)
func Hostname() tuple of (|name=name| string, |name=err| error)
Shared Function Hostname() As Tuple (Of string, error)
IntStartProcess
class method IntStartProcess(name: string; argv: Slice<string>; attr: Memory<ProcAttr>): tuple of (Memory<Process>, error)
static (Memory<Process>, error) IntStartProcess(string name, Slice<string> argv, Memory<ProcAttr> attr)
static func IntStartProcess(_ name: string, _ argv: Slice<string>, _ attr: Memory<ProcAttr>) -> tuple of (Memory<Process>, error)
func IntStartProcess(name string, argv Slice<string>, attr Memory<ProcAttr>) tuple of (Memory<Process>, error)
Shared Function IntStartProcess(name As string, argv As Slice<string>, attr As Memory<ProcAttr>) As Tuple (Of Memory<Process>, error)
Parameters:
- name:
- argv:
- attr:
IsExist
class method IsExist(err: error): bool
static bool IsExist(error err)
static func IsExist(_ err: error) -> bool
func IsExist(err error) bool
Shared Function IsExist(err As error) As bool
Parameters:
- err:
IsNotExist
class method IsNotExist(err: error): bool
static bool IsNotExist(error err)
static func IsNotExist(_ err: error) -> bool
func IsNotExist(err error) bool
Shared Function IsNotExist(err As error) As bool
Parameters:
- err:
IsPathSeparator
class method IsPathSeparator(c: Char): Boolean
static Boolean IsPathSeparator(Char c)
static func IsPathSeparator(_ c: Char) -> Boolean
func IsPathSeparator(c Char) Boolean
Shared Function IsPathSeparator(c As Char) As Boolean
Parameters:
- c:
IsPermission
class method IsPermission(err: error): bool
static bool IsPermission(error err)
static func IsPermission(_ err: error) -> bool
func IsPermission(err error) bool
Shared Function IsPermission(err As error) As bool
Parameters:
- err:
IsTimeout
class method IsTimeout(err: error): bool
static bool IsTimeout(error err)
static func IsTimeout(_ err: error) -> bool
func IsTimeout(err error) bool
Shared Function IsTimeout(err As error) As bool
Parameters:
- err:
LookupEnv
class method LookupEnv(key: string): tuple of (string, Boolean)
static (string, Boolean) LookupEnv(string key)
static func LookupEnv(_ key: string) -> tuple of (string, Boolean)
func LookupEnv(key string) tuple of (string, Boolean)
Shared Function LookupEnv(key As string) As Tuple (Of string, Boolean)
Parameters:
- key:
Lstat
class method Lstat(name: string): tuple of (FileInfo, error)
static (FileInfo, error) Lstat(string name)
static func Lstat(_ name: string) -> tuple of (FileInfo, error)
func Lstat(name string) tuple of (FileInfo, error)
Shared Function Lstat(name As string) As Tuple (Of FileInfo, error)
Parameters:
- name:
Mkdir
class method Mkdir(name: string; perm: FileMode): error
static error Mkdir(string name, FileMode perm)
static func Mkdir(_ name: string, _ perm: FileMode) -> error
func Mkdir(name string, perm FileMode) error
Shared Function Mkdir(name As string, perm As FileMode) As error
Parameters:
- name:
- perm:
MkdirAll
class method MkdirAll(path: string; perm: FileMode): error
static error MkdirAll(string path, FileMode perm)
static func MkdirAll(_ path: string, _ perm: FileMode) -> error
func MkdirAll(path string, perm FileMode) error
Shared Function MkdirAll(path As string, perm As FileMode) As error
Parameters:
- path:
- perm:
NewFile
class method NewFile(fd: uint64; name: string): File
static File NewFile(uint64 fd, string name)
static func NewFile(_ fd: uint64, _ name: string) -> File
func NewFile(fd uint64, name string) File
Shared Function NewFile(fd As uint64, name As string) As File
Parameters:
- fd:
- name:
NewSyscallError
class method NewSyscallError(syscall: string; err: error): error
static error NewSyscallError(string syscall, error err)
static func NewSyscallError(_ syscall: string, _ err: error) -> error
func NewSyscallError(syscall string, err error) error
Shared Function NewSyscallError(syscall As string, err As error) As error
Parameters:
- syscall:
- err:
Open
class method Open(name: string): tuple of (File, error)
static (File, error) Open(string name)
static func Open(_ name: string) -> tuple of (File, error)
func Open(name string) tuple of (File, error)
Shared Function Open(name As string) As Tuple (Of File, error)
Parameters:
- name:
OpenFile
class method OpenFile(name: string; aFlags: Int32; perm: FileMode): tuple of (File, error)
static (File, error) OpenFile(string name, Int32 aFlags, FileMode perm)
static func OpenFile(_ name: string, _ aFlags: Int32, _ perm: FileMode) -> tuple of (File, error)
func OpenFile(name string, aFlags Int32, perm FileMode) tuple of (File, error)
Shared Function OpenFile(name As string, aFlags As Int32, perm As FileMode) As Tuple (Of File, error)
Parameters:
- name:
- aFlags:
- perm:
Readlink
class method Readlink(name: string): tuple of (string, error)
static (string, error) Readlink(string name)
static func Readlink(_ name: string) -> tuple of (string, error)
func Readlink(name string) tuple of (string, error)
Shared Function Readlink(name As string) As Tuple (Of string, error)
Parameters:
- name:
Remove
class method Remove(s: string): error
static error Remove(string s)
static func Remove(_ s: string) -> error
func Remove(s string) error
Shared Function Remove(s As string) As error
Parameters:
- s:
RemoveAll
class method RemoveAll(path: string): error
static error RemoveAll(string path)
static func RemoveAll(_ path: string) -> error
func RemoveAll(path string) error
Shared Function RemoveAll(path As string) As error
Parameters:
- path:
Rename
class method Rename(oldpath: string; newpath: string): error
static error Rename(string oldpath, string newpath)
static func Rename(_ oldpath: string, _ newpath: string) -> error
func Rename(oldpath string, newpath string) error
Shared Function Rename(oldpath As string, newpath As string) As error
Parameters:
- oldpath:
- newpath:
Setenv
class method Setenv(key: string; value: string): error
static error Setenv(string key, string value)
static func Setenv(_ key: string, _ value: string) -> error
func Setenv(key string, value string) error
Shared Function Setenv(key As string, value As string) As error
Parameters:
- key:
- value:
StartProcess
class method StartProcess(name: string; argv: Slice<string>; attr: Memory<ProcAttr>): tuple of (Memory<Process>, error)
static (Memory<Process>, error) StartProcess(string name, Slice<string> argv, Memory<ProcAttr> attr)
static func StartProcess(_ name: string, _ argv: Slice<string>, _ attr: Memory<ProcAttr>) -> tuple of (Memory<Process>, error)
func StartProcess(name string, argv Slice<string>, attr Memory<ProcAttr>) tuple of (Memory<Process>, error)
Shared Function StartProcess(name As string, argv As Slice<string>, attr As Memory<ProcAttr>) As Tuple (Of Memory<Process>, error)
Parameters:
- name:
- argv:
- attr:
Stat
class method Stat(name: string): tuple of (FileInfo, error)
static (FileInfo, error) Stat(string name)
static func Stat(_ name: string) -> tuple of (FileInfo, error)
func Stat(name string) tuple of (FileInfo, error)
Shared Function Stat(name As string) As Tuple (Of FileInfo, error)
Parameters:
- name:
Unsetenv
class method Unsetenv(key: string): error
static error Unsetenv(string key)
static func Unsetenv(_ key: string) -> error
func Unsetenv(key string) error
Shared Function Unsetenv(key As string) As error
Parameters:
- key:
UserHomeDir
class method UserHomeDir: tuple of (String, error)
static (String, error) UserHomeDir()
static func UserHomeDir() -> tuple of (String, error)
func UserHomeDir() tuple of (String, error)
Shared Function UserHomeDir() As Tuple (Of String, error)