package caps
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=84dac271a62bd7f13776958561fa9056
sha512=85701a1dd5a584ea795e6b2101aa8a07b3d1ab616a302b013b1d18bf2d69e287e3392a6d30d06e228c8fbd30f41a137b6bbced02e75d9c72c99293b40e27dc9b
doc/caps.tcb/TCB/Unix/index.html
Module TCB.UnixSource
type error = Unix.error = | 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
*)| EOVERFLOW(*File size or position not representable
*)| EUNKNOWNERR of int(*Unknown error
*)
type open_flag = Unix.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
*)| O_NOCTTY(*Don't make this dev a controlling tty
*)| O_DSYNC| O_SYNC| O_RSYNC| O_SHARE_DELETE| O_CLOEXEC| O_KEEPEXEC
type stats = Unix.stats = {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 ID (if special file)
*)st_size : int;(*Size in bytes
*)st_atime : float;(*Last access time
*)st_mtime : float;(*Last modification time
*)st_ctime : float;(*Last status change time
*)
}type tm = Unix.tm = {tm_sec : int;(*Seconds 0..60
*)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;(*Daylight time savings in effect
*)
}