Show / Hide Table of Contents

Class PosixBase

The base codes that are guaranteed to be the same on any POSIX system

Inheritance
System.Object
PosixBase
PosixLinux
PosixMac
PosixWindows
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Couchbase.Lite
Assembly: Couchbase.Lite.dll
Syntax
public abstract class PosixBase

Fields

| Improve this Doc View Source

E2BIG

Argument list too long

Declaration
public static readonly int E2BIG
Field Value
Type Description
System.Int32
| Improve this Doc View Source

EACCES

Permission denied

Declaration
public static readonly int EACCES
Field Value
Type Description
System.Int32
| Improve this Doc View Source

EBADF

Bad file descriptor

Declaration
public static readonly int EBADF
Field Value
Type Description
System.Int32
| Improve this Doc View Source

EBUSY

Device / Resource busy

Declaration
public static readonly int EBUSY
Field Value
Type Description
System.Int32
| Improve this Doc View Source

ECHILD

No child processes

Declaration
public static readonly int ECHILD
Field Value
Type Description
System.Int32
| Improve this Doc View Source

EDOM

Numerical argument out of domain

Declaration
public static readonly int EDOM
Field Value
Type Description
System.Int32
| Improve this Doc View Source

EEXIST

File exists

Declaration
public static readonly int EEXIST
Field Value
Type Description
System.Int32
| Improve this Doc View Source

EFAULT

Bad address

Declaration
public static readonly int EFAULT
Field Value
Type Description
System.Int32
| Improve this Doc View Source

EFBIG

File too large

Declaration
public static readonly int EFBIG
Field Value
Type Description
System.Int32
| Improve this Doc View Source

EINTR

Interrupted system call

Declaration
public static readonly int EINTR
Field Value
Type Description
System.Int32
| Improve this Doc View Source

EINVAL

Invalid argument

Declaration
public static readonly int EINVAL
Field Value
Type Description
System.Int32
| Improve this Doc View Source

EIO

Input/output error

Declaration
public static readonly int EIO
Field Value
Type Description
System.Int32
| Improve this Doc View Source

EISDIR

Is a directory

Declaration
public static readonly int EISDIR
Field Value
Type Description
System.Int32
| Improve this Doc View Source

EMFILE

Too many open files

Declaration
public static readonly int EMFILE
Field Value
Type Description
System.Int32
| Improve this Doc View Source

EMLINK

Too many links

Declaration
public static readonly int EMLINK
Field Value
Type Description
System.Int32
| Improve this Doc View Source

ENFILE

Too many open files in system

Declaration
public static readonly int ENFILE
Field Value
Type Description
System.Int32
| Improve this Doc View Source

ENODEV

Operation not supported by device

Declaration
public static readonly int ENODEV
Field Value
Type Description
System.Int32
| Improve this Doc View Source

ENOENT

No such file or directory

Declaration
public static readonly int ENOENT
Field Value
Type Description
System.Int32
| Improve this Doc View Source

ENOEXEC

Exec format error

Declaration
public static readonly int ENOEXEC
Field Value
Type Description
System.Int32
| Improve this Doc View Source

ENOMEM

Cannot allocate memory

Declaration
public static readonly int ENOMEM
Field Value
Type Description
System.Int32
| Improve this Doc View Source

ENOSPC

No space left on device

Declaration
public static readonly int ENOSPC
Field Value
Type Description
System.Int32
| Improve this Doc View Source

ENOTDIR

Not a directory

Declaration
public static readonly int ENOTDIR
Field Value
Type Description
System.Int32
| Improve this Doc View Source

ENOTTY

Inappropriate ioctl for device

Declaration
public static readonly int ENOTTY
Field Value
Type Description
System.Int32
| Improve this Doc View Source

ENXIO

Device not configured

Declaration
public static readonly int ENXIO
Field Value
Type Description
System.Int32
| Improve this Doc View Source

EPERM

Operation not permitted

Declaration
public static readonly int EPERM
Field Value
Type Description
System.Int32
| Improve this Doc View Source

EPIPE

Broken pipe

Declaration
public static readonly int EPIPE
Field Value
Type Description
System.Int32
| Improve this Doc View Source

ERANGE

Result too large

Declaration
public static readonly int ERANGE
Field Value
Type Description
System.Int32
| Improve this Doc View Source

EROFS

Read-only file system

Declaration
public static readonly int EROFS
Field Value
Type Description
System.Int32
| Improve this Doc View Source

ESPIPE

Illegal seek

Declaration
public static readonly int ESPIPE
Field Value
Type Description
System.Int32
| Improve this Doc View Source

ESRCH

No such process

Declaration
public static readonly int ESRCH
Field Value
Type Description
System.Int32
| Improve this Doc View Source

EXDEV

Cross-device link

Declaration
public static readonly int EXDEV
Field Value
Type Description
System.Int32

Methods

| Improve this Doc View Source

GetCode(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

| Improve this Doc View Source

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

true if the code matches, otherwise false

  • Improve this Doc
  • View Source
Back to top Generated by DocFX