Class PosixBase
The base codes that are guaranteed to be the same on any POSIX system
Inherited Members
Namespace: Couchbase.Lite
Assembly: Couchbase.Lite.dll
Syntax
public abstract class PosixBase
Fields
| Improve this Doc View SourceE2BIG
Argument list too long
Declaration
public static readonly int E2BIG
Field Value
Type | Description |
---|---|
System.Int32 |
EACCES
Permission denied
Declaration
public static readonly int EACCES
Field Value
Type | Description |
---|---|
System.Int32 |
EBADF
Bad file descriptor
Declaration
public static readonly int EBADF
Field Value
Type | Description |
---|---|
System.Int32 |
EBUSY
Device / Resource busy
Declaration
public static readonly int EBUSY
Field Value
Type | Description |
---|---|
System.Int32 |
ECHILD
No child processes
Declaration
public static readonly int ECHILD
Field Value
Type | Description |
---|---|
System.Int32 |
EDOM
Numerical argument out of domain
Declaration
public static readonly int EDOM
Field Value
Type | Description |
---|---|
System.Int32 |
EEXIST
File exists
Declaration
public static readonly int EEXIST
Field Value
Type | Description |
---|---|
System.Int32 |
EFAULT
Bad address
Declaration
public static readonly int EFAULT
Field Value
Type | Description |
---|---|
System.Int32 |
EFBIG
File too large
Declaration
public static readonly int EFBIG
Field Value
Type | Description |
---|---|
System.Int32 |
EINTR
Interrupted system call
Declaration
public static readonly int EINTR
Field Value
Type | Description |
---|---|
System.Int32 |
EINVAL
Invalid argument
Declaration
public static readonly int EINVAL
Field Value
Type | Description |
---|---|
System.Int32 |
EIO
Input/output error
Declaration
public static readonly int EIO
Field Value
Type | Description |
---|---|
System.Int32 |
EISDIR
Is a directory
Declaration
public static readonly int EISDIR
Field Value
Type | Description |
---|---|
System.Int32 |
EMFILE
Too many open files
Declaration
public static readonly int EMFILE
Field Value
Type | Description |
---|---|
System.Int32 |
EMLINK
Too many links
Declaration
public static readonly int EMLINK
Field Value
Type | Description |
---|---|
System.Int32 |
ENFILE
Too many open files in system
Declaration
public static readonly int ENFILE
Field Value
Type | Description |
---|---|
System.Int32 |
ENODEV
Operation not supported by device
Declaration
public static readonly int ENODEV
Field Value
Type | Description |
---|---|
System.Int32 |
ENOENT
No such file or directory
Declaration
public static readonly int ENOENT
Field Value
Type | Description |
---|---|
System.Int32 |
ENOEXEC
Exec format error
Declaration
public static readonly int ENOEXEC
Field Value
Type | Description |
---|---|
System.Int32 |
ENOMEM
Cannot allocate memory
Declaration
public static readonly int ENOMEM
Field Value
Type | Description |
---|---|
System.Int32 |
ENOSPC
No space left on device
Declaration
public static readonly int ENOSPC
Field Value
Type | Description |
---|---|
System.Int32 |
ENOTDIR
Not a directory
Declaration
public static readonly int ENOTDIR
Field Value
Type | Description |
---|---|
System.Int32 |
ENOTTY
Inappropriate ioctl for device
Declaration
public static readonly int ENOTTY
Field Value
Type | Description |
---|---|
System.Int32 |
ENXIO
Device not configured
Declaration
public static readonly int ENXIO
Field Value
Type | Description |
---|---|
System.Int32 |
EPERM
Operation not permitted
Declaration
public static readonly int EPERM
Field Value
Type | Description |
---|---|
System.Int32 |
EPIPE
Broken pipe
Declaration
public static readonly int EPIPE
Field Value
Type | Description |
---|---|
System.Int32 |
ERANGE
Result too large
Declaration
public static readonly int ERANGE
Field Value
Type | Description |
---|---|
System.Int32 |
EROFS
Read-only file system
Declaration
public static readonly int EROFS
Field Value
Type | Description |
---|---|
System.Int32 |
ESPIPE
Illegal seek
Declaration
public static readonly int ESPIPE
Field Value
Type | Description |
---|---|
System.Int32 |
ESRCH
No such process
Declaration
public static readonly int ESRCH
Field Value
Type | Description |
---|---|
System.Int32 |
EXDEV
Cross-device link
Declaration
public static readonly int EXDEV
Field Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceGetCode(String)
Gets the correct value for a given code (based on the name of the error e.g. ECONNREFUSED) for the currently executing OS
Declaration
public static int GetCode(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the code to get the value for (e.g. ECONNREFUSED) |
Returns
Type | Description |
---|---|
System.Int32 | The correct code for the given error, or 0 if the name does not exist |
IsError(String, Int32)
Checks whether or not the given code is the same as the code for the POSIX error name in a cross platform way.
Declaration
public static bool IsError(string name, int code)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the code to get the value for (e.g. ECONNREFUSED) |
System.Int32 | code | The code to check |
Returns
Type | Description |
---|---|
System.Boolean |
|