Types |
error |
Errors defined in the POSIX standard
= |
E2BIG |
Argument list too long
|
| |
EACCES |
Permission denied
|
| |
EAGAIN |
Resource temporarily unavailable; try again
|
| |
EBADF |
Bad file descriptor
|
| |
EBUSY |
Resource unavailable
|
| |
ECHILD |
No child process
|
| |
EDEADLK |
Resource deadlock would occur
|
| |
EDOM |
Domain error for math functions, etc.
|
| |
EEXIST |
File exists
|
| |
EFAULT |
Bad address
|
| |
EFBIG |
File too large
|
| |
EINTR |
Function interrupted by signal
|
| |
EINVAL |
Invalid argument
|
| |
EIO |
Hardware I/O error
|
| |
EISDIR |
Is a directory
|
| |
EMFILE |
Too many open files by the process
|
| |
EMLINK |
Too many links
|
| |
ENAMETOOLONG |
Filename too long
|
| |
ENFILE |
Too many open files in the system
|
| |
ENODEV |
No such device
|
| |
ENOENT |
No such file or directory
|
| |
ENOEXEC |
Not an executable file
|
| |
ENOLCK |
No locks available
|
| |
ENOMEM |
Not enough memory
|
| |
ENOSPC |
No space left on device
|
| |
ENOSYS |
Function not supported
|
| |
ENOTDIR |
Not a directory
|
| |
ENOTEMPTY |
Directory not empty
|
| |
ENOTTY |
Inappropriate I/O control operation
|
| |
ENXIO |
No such device or address
|
| |
EPERM |
Operation not permitted
|
| |
EPIPE |
Broken pipe
|
| |
ERANGE |
Result too large
|
| |
EROFS |
Read-only file system
|
| |
ESPIPE |
Invalid seek e.g. on a pipe
|
| |
ESRCH |
No such process
|
| |
EXDEV |
Invalid link
|
| |
EWOULDBLOCK |
Operation would block
|
| |
EINPROGRESS |
Operation now in progress
|
| |
EALREADY |
Operation already in progress
|
| |
ENOTSOCK |
Socket operation on non-socket
|
| |
EDESTADDRREQ |
Destination address required
|
| |
EMSGSIZE |
Message too long
|
| |
EPROTOTYPE |
Protocol wrong type for socket
|
| |
ENOPROTOOPT |
Protocol not available
|
| |
EPROTONOSUPPORT |
Protocol not supported
|
| |
ESOCKTNOSUPPORT |
Socket type not supported
|
| |
EOPNOTSUPP |
Operation not supported on socket
|
| |
EPFNOSUPPORT |
Protocol family not supported
|
| |
EAFNOSUPPORT |
Address family not supported by protocol family
|
| |
EADDRINUSE |
Address already in use
|
| |
EADDRNOTAVAIL |
Can't assign requested address
|
| |
ENETDOWN |
Network is down
|
| |
ENETUNREACH |
Network is unreachable
|
| |
ENETRESET |
Network dropped connection on reset
|
| |
ECONNABORTED |
Software caused connection abort
|
| |
ECONNRESET |
Connection reset by peer
|
| |
ENOBUFS |
No buffer space available
|
| |
EISCONN |
Socket is already connected
|
| |
ENOTCONN |
Socket is not connected
|
| |
ESHUTDOWN |
Can't send after socket shutdown
|
| |
ETOOMANYREFS |
Too many references: can't splice
|
| |
ETIMEDOUT |
Connection timed out
|
| |
ECONNREFUSED |
Connection refused
|
| |
EHOSTDOWN |
Host is down
|
| |
EHOSTUNREACH |
No route to host
|
| |
ELOOP |
Too many levels of symbolic links
|
| |
EUNKNOWNERR |
of int
Unknown error
|
|
process_status |
= |
WEXITED |
of int
|
| |
WSIGNALED |
of int
|
| |
WSTOPPED |
of int
|
|
wait_flag |
|
file_descr |
The abstract type of file descriptors.
Abstract |
open_flag |
= |
O_RDONLY |
Open for reading
|
| |
O_WRONLY |
Open for writing
|
| |
O_RDWR |
Open for reading and writing
|
| |
O_NONBLOCK |
Open in non-blocking mode
|
| |
O_APPEND |
Open for append
|
| |
O_CREAT |
Create if nonexistent
|
| |
O_TRUNC |
Truncate to 0 length if existing
|
| |
O_EXCL |
Fail if existing
|
|
file_perm |
The type of file access rights.
= int
|
seek_command |
= |
SEEK_SET |
|
| |
SEEK_CUR |
|
| |
SEEK_END |
|
|
file_kind |
= |
S_REG |
Regular file
|
| |
S_DIR |
Directory
|
| |
S_CHR |
Character device
|
| |
S_BLK |
Block device
|
| |
S_LNK |
Symbolic link
|
| |
S_FIFO |
Named pipe
|
| |
S_SOCK |
Socket
|
|
stats |
Last status change time
= {
st_dev |
: int ;
Device number
|
st_ino |
: int ;
Inode number
|
st_kind |
: file_kind ;
Kind of the file
|
st_perm |
: file_perm ;
Access rights
|
st_nlink |
: int ;
Number of links
|
st_uid |
: int ;
User id of the owner
|
st_gid |
: int ;
Group ID of the file's group
|
st_rdev |
: int ;
Device minor number
|
st_size |
: int ;
Size in bytes
|
st_atime |
: float ;
Last access time
|
st_mtime |
: float ;
Last modification time
|
st_ctime |
: float ;
|
} |
access_permission |
= |
R_OK |
Read permission
|
| |
W_OK |
Write permission
|
| |
X_OK |
Execution permission
|
| |
F_OK |
File exists
|
|
dir_handle |
Abstract |
lock_command |
= |
F_ULOCK |
Unlock a region
|
| |
F_LOCK |
Lock a region for writing, and block if already locked
|
| |
F_TLOCK |
Lock a region for writing, or fail if already locked
|
| |
F_TEST |
Test a region for other process locks
|
| |
F_RLOCK |
Lock a region for reading, and block if already locked
|
| |
F_TRLOCK |
Lock a region for reading, or fail if already locked
|
|
sigprocmask_command |
= |
SIG_SETMASK |
|
| |
SIG_BLOCK |
|
| |
SIG_UNBLOCK |
|
|
process_times |
System time for the children processes
= {
tms_utime |
: float ;
User time for the process
|
tms_stime |
: float ;
System time for the process
|
tms_cutime |
: float ;
User time for the children processes
|
tms_cstime |
: float ;
|
} |
tm |
Daylight time savings in effect
= {
tm_sec |
: int ;
Seconds 0..59
|
tm_min |
: int ;
Minutes 0..59
|
tm_hour |
: int ;
Hours 0..23
|
tm_mday |
: int ;
Day of month 1..31
|
tm_mon |
: int ;
Month of year 0..11
|
tm_year |
: int ;
Year - 1900
|
tm_wday |
: int ;
Day of week (Sunday is 0)
|
tm_yday |
: int ;
Day of year 0..365
|
tm_isdst |
: bool ;
|
} |
interval_timer |
= |
ITIMER_REAL |
|
| |
ITIMER_VIRTUAL |
|
| |
ITIMER_PROF |
The three kinds of interval timers.
ITIMER_REAL decrements in real time, and sends the signal
SIGALRM when expired.
ITIMER_VIRTUAL decrements in process virtual time, and sends
SIGVTALRM when expired.
ITIMER_PROF (for profiling) decrements both when the process
is running and when the system is running on behalf of the
process; it sends SIGPROF when expired.
|
|
interval_timer_status |
Current value of the timer
= {
it_interval |
: float ;
Period
|
it_value |
: float ;
|
} |
passwd_entry |
Structure of entries in the passwd database.
= {
pw_name |
: string ;
|
pw_passwd |
: string ;
|
pw_uid |
: int ;
|
pw_gid |
: int ;
|
pw_gecos |
: string ;
|
pw_dir |
: string ;
|
pw_shell |
: string ;
|
} |
group_entry |
Structure of entries in the groups database.
= {
gr_name |
: string ;
|
gr_passwd |
: string ;
|
gr_gid |
: int ;
|
gr_mem |
: string array ;
|
} |
inet_addr |
The abstract type of Internet addresses.
Abstract |
socket_domain |
= |
PF_UNIX |
Unix domain
|
| |
PF_INET |
Internet domain
|
|
socket_type |
= |
SOCK_STREAM |
Stream socket
|
| |
SOCK_DGRAM |
Datagram socket
|
| |
SOCK_RAW |
Raw socket
|
| |
SOCK_SEQPACKET |
Sequenced packets socket
|
|
sockaddr |
= |
ADDR_UNIX |
of string
|
| |
ADDR_INET |
of inet_addr * int
|
|
shutdown_command |
= |
SHUTDOWN_RECEIVE |
Close for receiving
|
| |
SHUTDOWN_SEND |
Close for sending
|
| |
SHUTDOWN_ALL |
Close both
|
|
msg_flag |
= |
MSG_OOB |
|
| |
MSG_DONTROUTE |
|
| |
MSG_PEEK |
The flags for recv , recvfrom , send and sendto .
|
|
socket_bool_option |
= |
SO_DEBUG |
Record debugging information
|
| |
SO_BROADCAST |
Permit sending of broadcast messages
|
| |
SO_REUSEADDR |
Allow reuse of local addresses for bind
|
| |
SO_KEEPALIVE |
Keep connection active
|
| |
SO_DONTROUTE |
Bypass the standard routing algorithms
|
| |
SO_OOBINLINE |
Leave out-of-band data in line
|
| |
SO_ACCEPTCONN |
Report whether socket listening is enabled
|
|
socket_int_option |
= |
SO_SNDBUF |
Size of send buffer
|
| |
SO_RCVBUF |
Size of received buffer
|
| |
SO_ERROR |
Report the error status and clear it
|
| |
SO_TYPE |
Report the socket type
|
| |
SO_RCVLOWAT |
Minimum number of bytes to process for input operations
|
| |
SO_SNDLOWAT |
Minimum number of bytes to process for output operations
|
|
socket_optint_option |
= |
SO_LINGER |
Whether to linger on closed connections
that have data present, and for how long
(in seconds)
|
|
socket_float_option |
= |
SO_RCVTIMEO |
Timeout for input operations
|
| |
SO_SNDTIMEO |
Timeout for output operations
|
|
host_entry |
Structure of entries in the hosts database.
= {
} |
protocol_entry |
Structure of entries in the protocols database.
= {
p_name |
: string ;
|
p_aliases |
: string array ;
|
p_proto |
: int ;
|
} |
service_entry |
Structure of entries in the services database.
= {
s_name |
: string ;
|
s_aliases |
: string array ;
|
s_port |
: int ;
|
s_proto |
: string ;
|
} |
terminal_io |
= {
c_ignbrk (mutable) |
: bool ;
Ignore the break condition.
|
c_brkint (mutable) |
: bool ;
Signal interrupt on break condition.
|
c_ignpar (mutable) |
: bool ;
Ignore characters with parity errors.
|
c_parmrk (mutable) |
: bool ;
Mark parity errors.
|
c_inpck (mutable) |
: bool ;
Enable parity check on input.
|
c_istrip (mutable) |
: bool ;
Strip 8th bit on input characters.
|
c_inlcr (mutable) |
: bool ;
Map NL to CR on input.
|
c_igncr (mutable) |
: bool ;
Ignore CR on input.
|
c_icrnl (mutable) |
: bool ;
Map CR to NL on input.
|
c_ixon (mutable) |
: bool ;
Recognize XON/XOFF characters on input.
|
c_ixoff (mutable) |
: bool ;
Emit XON/XOFF chars to control input flow.
|
c_opost (mutable) |
: bool ;
Enable output processing.
|
c_obaud (mutable) |
: int ;
Output baud rate (0 means close connection).
|
c_ibaud (mutable) |
: int ;
Input baud rate.
|
c_csize (mutable) |
: int ;
Number of bits per character (5-8).
|
c_cstopb (mutable) |
: int ;
Number of stop bits (1-2).
|
c_cread (mutable) |
: bool ;
Reception is enabled.
|
c_parenb (mutable) |
: bool ;
Enable parity generation and detection.
|
c_parodd (mutable) |
: bool ;
Specify odd parity instead of even.
|
c_hupcl (mutable) |
: bool ;
Hang up on last close.
|
c_clocal (mutable) |
: bool ;
Ignore modem status lines.
|
c_isig (mutable) |
: bool ;
Generate signal on INTR, QUIT, SUSP.
|
c_icanon (mutable) |
: bool ;
Enable canonical processing
(line buffering and editing)
|
c_noflsh (mutable) |
: bool ;
Disable flush after INTR, QUIT, SUSP.
|
c_echo (mutable) |
: bool ;
Echo input characters.
|
c_echoe (mutable) |
: bool ;
Echo ERASE (to erase previous character).
|
c_echok (mutable) |
: bool ;
Echo KILL (to erase the current line).
|
c_echonl (mutable) |
: bool ;
Echo NL even if c_echo is not set.
|
c_vintr (mutable) |
: char ;
Interrupt character (usually ctrl-C).
|
c_vquit (mutable) |
: char ;
Quit character (usually ctrl-\).
|
c_verase (mutable) |
: char ;
Erase character (usually DEL or ctrl-H).
|
c_vkill (mutable) |
: char ;
Kill line character (usually ctrl-U).
|
c_veof (mutable) |
: char ;
End-of-file character (usually ctrl-D).
|
c_veol (mutable) |
: char ;
Alternate end-of-line char. (usually none).
|
c_vmin (mutable) |
: int ;
Minimum number of characters to read
before the read request is satisfied.
|
c_vtime (mutable) |
: int ;
Maximum read wait (in 0.1s units).
|
c_vstart (mutable) |
: char ;
Start character (usually ctrl-Q).
|
c_vstop (mutable) |
: char ;
Stop character (usually ctrl-S).
|
} |
setattr_when |
= |
TCSANOW |
|
| |
TCSADRAIN |
|
| |
TCSAFLUSH |
|
|
flush_queue |
= |
TCIFLUSH |
|
| |
TCOFLUSH |
|
| |
TCIOFLUSH |
|
|
flow_action |
= |
TCOOFF |
|
| |
TCOON |
|
| |
TCIOFF |
|
| |
TCION |
|
|