Dela via


OsConstants Class

Definition

Constants and helper functions for use with Os.

[Android.Runtime.Register("android/system/OsConstants", DoNotGenerateAcw=true)]
public sealed class OsConstants : Java.Lang.Object
[<Android.Runtime.Register("android/system/OsConstants", DoNotGenerateAcw=true)>]
type OsConstants = class
    inherit Object
Inheritance
OsConstants
Attributes

Remarks

Constants and helper functions for use with Os.

Java documentation for android.system.OsConstants.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Properties

AfInet
AfInet6
AfNetlink
AfPacket
AfUnix
AfUnspec
AfVsock

The virt-vsock address family, linux specific.

AiAddrconfig
AiAll
AiCanonname
AiNumerichost
AiNumericserv
AiPassive
AiV4mapped
ArphrdEther
CapAuditControl
CapAuditWrite
CapBlockSuspend
CapChown
CapDacOverride
CapDacReadSearch
CapFowner
CapFsetid
CapIpcLock
CapIpcOwner
CapKill
CapLastCap
CapLease
CapLinuxImmutable
CapMacAdmin
CapMacOverride
CapMknod
CapNetAdmin
CapNetBindService
CapNetBroadcast
CapNetRaw
CapSetfcap
CapSetgid
CapSetpcap
CapSetuid
CapSysAdmin
CapSysBoot
CapSysChroot
CapSyslog
CapSysModule
CapSysNice
CapSysPacct
CapSysPtrace
CapSysRawio
CapSysResource
CapSysTime
CapSysTtyConfig
CapWakeAlarm
Class

Returns the runtime class of this Object.

(Inherited from Object)
E2big
Eacces
Eaddrinuse
Eaddrnotavail
Eafnosupport
Eagain
EaiAgain
EaiBadflags
EaiFail
EaiFamily
EaiMemory
EaiNodata
EaiNoname
EaiOverflow
EaiService
EaiSocktype
EaiSystem
Ealready
Ebadf
Ebadmsg
Ebusy
Ecanceled
Echild
Econnaborted
Econnrefused
Econnreset
Edeadlk
Edestaddrreq
Edom
Edquot
Eexist
Efault
Efbig
Ehostunreach
Eidrm
Eilseq
Einprogress
Eintr
Einval
Eio
Eisconn
Eisdir
Eloop
Emfile
Emlink
Emsgsize
Emultihop
Enametoolong
Enetdown
Enetreset
Enetunreach
Enfile
Enobufs
Enodata
Enodev
Enoent
Enoexec
Enolck
Enolink
Enomem
Enomsg
Enonet
Enoprotoopt
Enospc
Enosr
Enostr
Enosys
Enotconn
Enotdir
Enotempty
Enotsock
Enotsup
Enotty
Enxio
Eopnotsupp
Eoverflow
Eperm
Epipe
Eproto
Eprotonosupport
Eprototype
Erange
Erofs
Espipe
Esrch
Estale
EthPAll
EthPArp
EthPIp
EthPIpv6
Etime
Etimedout
Etxtbsy
Exdev
ExitFailure
ExitSuccess
FdCloexec
FDupfd
FDupfdCloexec
FGetfd
FGetfl
FGetlk
FGetlk64
FGetown
Fionread
FOk
FRdlck
FSetfd
FSetfl
FSetlk
FSetlk64
FSetlkw
FSetlkw64
FSetown
FUnlck
FWrlck
Handle

The handle to the underlying Android instance.

(Inherited from Object)
Icmp6EchoReply
Icmp6EchoRequest
IcmpEcho
IcmpEchoreply
IfaFDadfailed
IfaFDeprecated
IfaFHomeaddress
IfaFManagetempaddr
IfaFNodad
IfaFNoprefixroute
IfaFOptimistic
IfaFPermanent
IfaFSecondary
IfaFTemporary
IfaFTentative
IffAllmulti
IffAutomedia
IffBroadcast
IffDebug
IffDynamic
IffLoopback
IffMaster
IffMulticast
IffNoarp
IffNotrailers
IffPointopoint
IffPortsel
IffPromisc
IffRunning
IffSlave
IffUp
IpMulticastIf
IpMulticastLoop
IpMulticastTtl
IpprotoIcmp
IpprotoIcmpv6
IpprotoIp
IpprotoIpv6
IpprotoRaw
IpprotoTcp
IpprotoUdp
IpTos
IpTtl
Ipv6Checksum
Ipv6MulticastHops
Ipv6MulticastIf
Ipv6MulticastLoop
Ipv6Recvdstopts
Ipv6Recvhoplimit
Ipv6Recvhopopts
Ipv6Recvpktinfo
Ipv6Recvrthdr
Ipv6Recvtclass
Ipv6Tclass
Ipv6UnicastHops
Ipv6V6only
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
MapAnonymous
MapFixed
MapPrivate
MapShared
McastBlockSource
McastJoinGroup
McastJoinSourceGroup
McastLeaveGroup
McastLeaveSourceGroup
McastUnblockSource
MclCurrent
MclFuture
MfdCloexec
MsAsync
MsgCtrunc
MsgDontroute
MsgEor
MsgOob
MsgPeek
MsgTrunc
MsgWaitall
MsInvalidate
MsSync
NetlinkInetDiag

SELinux enforces that only system_server and netd may use this netlink socket type.

NetlinkNetfilter
NetlinkRoute
NiDgram
NiNamereqd
NiNofqdn
NiNumerichost
NiNumericserv
OAccmode
OAppend
OCloexec
OCreat
ODsync
OExcl
ONoctty
ONofollow
ONonblock
ORdonly
ORdwr
OSync
OTrunc
OWronly
PeerReference (Inherited from Object)
Pollerr
Pollhup
Pollin
Pollnval
Pollout
Pollpri
Pollrdband
Pollrdnorm
Pollwrband
Pollwrnorm
PrGetDumpable
ProtExec
ProtNone
ProtRead
ProtWrite
PrSetDumpable
PrSetNoNewPrivs
ROk
RtmgrpNeigh
RtScopeHost
RtScopeLink
RtScopeNowhere
RtScopeSite
RtScopeUniverse
Sc2CBind
Sc2CDev
Sc2CharTerm
Sc2CVersion
Sc2FortDev
Sc2FortRun
Sc2Localedef
Sc2SwDev
Sc2Upe
Sc2Version
ScAioListioMax
ScAioMax
ScAioPrioDeltaMax
ScArgMax
ScAsynchronousIo
ScAtexitMax
ScAvphysPages
ScBcBaseMax
ScBcDimMax
ScBcScaleMax
ScBcStringMax
ScChildMax
ScClkTck
ScCollWeightsMax
ScDelaytimerMax
ScExprNestMax
ScFsync
ScGetgrRSizeMax
ScGetpwRSizeMax
ScIovMax
ScJobControl
ScLineMax
ScLoginNameMax
ScMappedFiles
ScMemlock
ScMemlockRange
ScMemoryProtection
ScMessagePassing
ScMqOpenMax
ScMqPrioMax
ScNgroupsMax
ScNprocessorsConf
ScNprocessorsOnln
ScOpenMax
ScPagesize
ScPageSize
ScPassMax
ScPhysPages
ScPrioritizedIo
ScPriorityScheduling
ScRealtimeSignals
ScReDupMax
ScRtsigMax
ScSavedIds
ScSemaphores
ScSemNsemsMax
ScSemValueMax
ScSharedMemoryObjects
ScSigqueueMax
ScStreamMax
ScSynchronizedIo
ScThreadAttrStackaddr
ScThreadAttrStacksize
ScThreadDestructorIterations
ScThreadKeysMax
ScThreadPrioInherit
ScThreadPrioProtect
ScThreadPriorityScheduling
ScThreads
ScThreadSafeFunctions
ScThreadStackMin
ScThreadThreadsMax
ScTimerMax
ScTimers
ScTtyNameMax
ScTznameMax
ScVersion
ScXbs5Ilp32Off32
ScXbs5Ilp32Offbig
ScXbs5Lp64Off64
ScXbs5LpbigOffbig
ScXopenCrypt
ScXopenEnhI18n
ScXopenLegacy
ScXopenRealtime
ScXopenRealtimeThreads
ScXopenShm
ScXopenUnix
ScXopenVersion
ScXopenXcuVersion
SeekCur
SeekEnd
SeekSet
ShutRd
ShutRdwr
ShutWr
SIfblk
SIfchr
SIfdir
SIfifo
SIflnk
SIfmt
SIfreg
SIfsock
Sigabrt
Sigalrm
Sigbus
Sigchld
Sigcont
Sigfpe
Sighup
Sigill
Sigint
Sigio
Sigkill
Sigpipe
Sigprof
Sigpwr
Sigquit
Sigrtmax
Sigrtmin
Sigsegv
Sigstkflt
Sigstop
Sigsys
Sigterm
Sigtrap
Sigtstp
Sigttin
Sigttou
Sigurg
Sigusr1
Sigusr2
Sigvtalrm
Sigwinch
Sigxcpu
Sigxfsz
Siocgifaddr
Siocgifbrdaddr
Siocgifdstaddr
Siocgifnetmask
SIrgrp
SIroth
SIrusr
SIrwxg
SIrwxo
SIrwxu
SIsgid
SIsuid
SIsvtx
SIwgrp
SIwoth
SIwusr
SIxgrp
SIxoth
SIxusr
SoBindtodevice
SoBroadcast
SockCloexec

Set the close-on-exec (FD_CLOEXEC) flag on the new file descriptor created by Os#socket(int,int,int) or Os#socketpair(int,int,int,java.io.FileDescriptor,java.io.FileDescriptor).

SockDgram
SockNonblock

Set the O_NONBLOCK file status flag on the file descriptor created by Os#socket(int,int,int) or Os#socketpair(int,int,int,java.io.FileDescriptor,java.io.FileDescriptor).

SockRaw
SockSeqpacket
SockStream
SoDebug
SoDontroute
SoError
SoKeepalive
SoLinger
SolSocket
SolUdp
SoOobinline
SoPasscred
SoPeercred
SoRcvbuf
SoRcvlowat
SoRcvtimeo
SoReuseaddr
SoSndbuf
SoSndlowat
SoSndtimeo
SoType
StderrFileno
StdinFileno
StdoutFileno
StMandlock
StNoatime
StNodev
StNodiratime
StNoexec
StNosuid
StRdonly
StRelatime
StSynchronous
TcpNodelay
TcpUserTimeout
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
UdpGro
UdpSegment
VmaddrCidAny

The virtio-vsock svmCid value to listens for all CIDs.

VmaddrCidHost

The virtio-vsock svmCid value for loopback communication.

VmaddrCidLocal

The virtio-vsock svmCid value for host communication.

VmaddrPortAny

The virtio-vsock svmPort value to bind for any available port.

Wcontinued
Wexited
Wnohang
Wnowait
WOk
Wstopped
Wuntraced
XOk

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
ErrnoName(Int32)

Returns the string name of an errno value.

GaiName(Int32)

Returns the string name of a getaddrinfo(3) error value.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
S_ISBLK(Int32)

Tests whether the given mode is a block device.

S_ISCHR(Int32)

Tests whether the given mode is a character device.

S_ISDIR(Int32)

Tests whether the given mode is a directory.

S_ISFIFO(Int32)

Tests whether the given mode is a FIFO.

S_ISLNK(Int32)

Tests whether the given mode is a symbolic link.

S_ISREG(Int32)

Tests whether the given mode is a regular file.

S_ISSOCK(Int32)

Tests whether the given mode is a socket.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
WCOREDUMP(Int32)

Tests whether the child dumped core.

WEXITSTATUS(Int32)

Extracts the exit status of a child.

WIFEXITED(Int32)

Tests whether the child exited normally.

WIFSIGNALED(Int32)

Tests whether the child was terminated by a signal.

WIFSTOPPED(Int32)

Tests whether the child was stopped (not terminated) by a signal.

WSTOPSIG(Int32)

Returns the signal that cause the child to stop.

WTERMSIG(Int32)

Returns the signal that caused the child to exit.

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to