This is a raw POSIX interface module. It does not not provide any convenience: cstrings are used instead of proper Nim strings and return codes indicate errors. If you want exceptions and a proper Nim-like interface, use the OS module or write a wrapper.
For high-level wrappers specialized for Linux and BSDs see: posix_utils
Coding conventions: ALL types are named the same as in the POSIX standard except that they start with 'T' or 'P' (if they are pointers) and without the '_t' suffix to be consistent with Nim conventions. If an identifier is a Nim keyword the `identifier` notation is used.
This library relies on the header files of your C compiler. The resulting C code will just #include <XYZ.h> and not define the symbols declared here.
Types
AddrInfo {.importc: "struct addrinfo", pure, final, header: "<netdb.h>".} = object ai_flags*: cint ## Input flags. ai_family*: cint ## Address family of socket. ai_socktype*: cint ## Socket type. ai_protocol*: cint ## Protocol of socket. ai_addrlen*: SockLen ## Length of socket address. ai_addr*: ptr SockAddr ## Socket address of socket. ai_canonname*: cstring ## Canonical name of service location. ai_next*: ptr AddrInfo ## Pointer to next in list.
- struct addrinfo Source Edit
Blkcnt {.importc: "blkcnt_t", header: "<sys/types.h>".} = int
- used for file block counts Source Edit
DIR {.importc: "DIR", header: "<dirent.h>", incompleteStruct.} = object
- A type representing a directory stream. Source Edit
Dirent {.importc: "struct dirent", header: "<dirent.h>", final, pure.} = object when defined(haiku): d_dev*: Dev ## Device (not POSIX) d_pdev*: Dev ## Parent device (only for queries) (not POSIX) d_ino*: Ino ## File serial number. when defined(dragonfly): d_type*: uint8 elif defined(linux) or defined(macosx) or defined(freebsd) or defined(netbsd) or defined(openbsd) or defined(genode): d_reclen*: cshort ## Length of this record. (not POSIX) d_type*: int8 ## Type of file; not supported by all filesystem types. ## (not POSIX) when defined(linux) or defined(openbsd): d_off*: Off ## Not an offset. Value that `telldir()` would return. elif defined(haiku): d_pino*: Ino ## Parent inode (only for queries) (not POSIX) d_reclen*: cushort ## Length of this record. (not POSIX) d_name*: array[0 .. 255, char] ## Name of entry.
- dirent_t struct Source Edit
FTW {.importc: "struct FTW", header: "<ftw.h>", final, pure.} = object base*: cint level*: cint
- Source Edit
Glob {.importc: "glob_t", header: "<glob.h>", final, pure.} = object gl_pathc*: int ## Count of paths matched by pattern. gl_pathv*: cstringArray ## Pointer to a list of matched pathnames. gl_offs*: int ## Slots to reserve at the beginning of gl_pathv.
- glob_t Source Edit
Group {.importc: "struct group", header: "<grp.h>", final, pure.} = object gr_name*: cstring ## The name of the group. gr_gid*: Gid ## Numerical group ID. gr_mem*: cstringArray ## Pointer to a null-terminated array of character ## pointers to member names.
- struct group Source Edit
Hostent {.importc: "struct hostent", pure, final, header: "<netdb.h>".} = object h_name*: cstring ## Official name of the host. h_aliases*: cstringArray ## A pointer to an array of pointers to ## alternative host names, terminated by a ## null pointer. h_addrtype*: cint ## Address type. h_length*: cint ## The length, in bytes, of the address. h_addr_list*: cstringArray ## A pointer to an array of pointers to network ## addresses (in network byte order) for the ## host, terminated by a null pointer.
- struct hostent Source Edit
Iconv {.importc: "iconv_t", header: "<iconv.h>", final, pure.} = object
- Identifies the conversion from one codeset to another. Source Edit
In6Addr {.importc: "struct in6_addr", pure, final, header: "<netinet/in.h>".} = object s6_addr*: array[0 .. 15, char]
- struct in6_addr Source Edit
InAddr {.importc: "struct in_addr", pure, final, header: "<netinet/in.h>".} = object s_addr*: InAddrScalar
- struct in_addr Source Edit
IOVec {.importc: "struct iovec", pure, final, header: "<sys/uio.h>".} = object iov_base*: pointer ## Base address of a memory region for input or output. iov_len*: csize_t ## The size of the memory pointed to by iov_base.
- struct iovec Source Edit
Ipc_perm {.importc: "struct ipc_perm", header: "<sys/ipc.h>", final, pure.} = object uid*: Uid ## Owner's user ID. gid*: Gid ## Owner's group ID. cuid*: Uid ## Creator's user ID. cgid*: Gid ## Creator's group ID. mode*: Mode ## Read/write permission.
- struct ipc_perm Source Edit
Itimerspec {.importc: "struct itimerspec", header: "<time.h>", final, pure.} = object it_interval*: Timespec ## Timer period. it_value*: Timespec ## Timer expiration.
- struct itimerspec Source Edit
Lconv {.importc: "struct lconv", header: "<locale.h>", final, pure.} = object currency_symbol*: cstring decimal_point*: cstring frac_digits*: char grouping*: cstring int_curr_symbol*: cstring int_frac_digits*: char int_n_cs_precedes*: char int_n_sep_by_space*: char int_n_sign_posn*: char int_p_cs_precedes*: char int_p_sep_by_space*: char int_p_sign_posn*: char mon_decimal_point*: cstring mon_grouping*: cstring mon_thousands_sep*: cstring negative_sign*: cstring n_cs_precedes*: char n_sep_by_space*: char n_sign_posn*: char positive_sign*: cstring p_cs_precedes*: char p_sep_by_space*: char p_sign_posn*: char thousands_sep*: cstring
- Source Edit
Mode {.importc: "mode_t", header: "<sys/types.h>".} = (when false or false: uint16 else: uint32)
- Source Edit
MqAttr {.importc: "struct mq_attr", header: "<mqueue.h>", final, pure.} = object mq_flags*: int ## Message queue flags. mq_maxmsg*: int ## Maximum number of messages. mq_msgsize*: int ## Maximum message size. mq_curmsgs*: int ## Number of messages currently queued.
- message queue attribute Source Edit
Passwd {.importc: "struct passwd", header: "<pwd.h>", final, pure.} = object pw_name*: cstring ## User's login name. pw_uid*: Uid ## Numerical user ID. pw_gid*: Gid ## Numerical group ID. pw_dir*: cstring ## Initial working directory. pw_shell*: cstring ## Program to use as shell.
- struct passwd Source Edit
Posix_typed_mem_info {.importc: "struct posix_typed_mem_info", header: "<sys/mman.h>", final, pure.} = object posix_tmi_length*: int
- Source Edit
Protoent {.importc: "struct protoent", pure, final, header: "<netdb.h>".} = object p_name*: cstring ## Official name of the protocol. p_aliases*: cstringArray ## A pointer to an array of pointers to ## alternative protocol names, terminated by ## a null pointer. p_proto*: cint ## The protocol number.
- struct protoent Source Edit
Pthread_attr {.importc: "pthread_attr_t", header: "<sys/types.h>".} = int
- Source Edit
Pthread_barrier {.importc: "pthread_barrier_t", header: "<sys/types.h>".} = int
- Source Edit
Pthread_barrierattr {.importc: "pthread_barrierattr_t", header: "<sys/types.h>".} = int
- Source Edit
Pthread_cond {.importc: "pthread_cond_t", header: "<sys/types.h>".} = int
- Source Edit
Pthread_condattr {.importc: "pthread_condattr_t", header: "<sys/types.h>".} = int
- Source Edit
Pthread_key {.importc: "pthread_key_t", header: "<sys/types.h>".} = int
- Source Edit
Pthread_mutex {.importc: "pthread_mutex_t", header: "<sys/types.h>".} = int
- Source Edit
Pthread_mutexattr {.importc: "pthread_mutexattr_t", header: "<sys/types.h>".} = int
- Source Edit
Pthread_once {.importc: "pthread_once_t", header: "<sys/types.h>".} = int
- Source Edit
Pthread_rwlock {.importc: "pthread_rwlock_t", header: "<sys/types.h>".} = int
- Source Edit
Pthread_rwlockattr {.importc: "pthread_rwlockattr_t", header: "<sys/types.h>".} = int
- Source Edit
Pthread_spinlock {.importc: "pthread_spinlock_t", header: "<sys/types.h>".} = int
- Source Edit
RLimit {.importc: "struct rlimit", header: "<sys/resource.h>", pure, final.} = object rlim_cur*: int rlim_max*: int
- Source Edit
Rusage {.importc: "struct rusage", header: "<sys/resource.h>", bycopy.} = object ru_utime*, ru_stime*: Timeval ru_maxrss*, ru_ixrss*, ru_idrss*, ru_isrss*, ru_minflt*, ru_majflt*, ru_nswap*, ru_inblock*, ru_oublock*, ru_msgsnd*, ru_msgrcv*, ru_nsignals*, ru_nvcsw*, ru_nivcsw*: clong
- Source Edit
Sched_param {.importc: "struct sched_param", header: "<sched.h>", final, pure.} = object sched_priority*: cint sched_ss_low_priority*: cint ## Low scheduling priority for ## sporadic server. sched_ss_repl_period*: Timespec ## Replenishment period for ## sporadic server. sched_ss_init_budget*: Timespec ## Initial budget for sporadic server. sched_ss_max_repl*: cint ## Maximum pending replenishments for ## sporadic server.
- struct sched_param Source Edit
Servent {.importc: "struct servent", pure, final, header: "<netdb.h>".} = object s_name*: cstring ## Official name of the service. s_aliases*: cstringArray ## A pointer to an array of pointers to ## alternative service names, terminated by ## a null pointer. s_port*: cint ## The port number at which the service ## resides, in network byte order. s_proto*: cstring ## The name of the protocol to use when ## contacting the service.
- struct servent Source Edit
Sig_atomic {.importc: "sig_atomic_t", header: "<signal.h>".} = cint
- Possibly volatile-qualified integer type of an object that can be accessed as an atomic entity, even in the presence of asynchronous interrupts. Source Edit
Sigaction {.importc: "struct sigaction", header: "<signal.h>", final, pure.} = object sa_handler*: proc (x: cint) {.noconv.} ## Pointer to a signal-catching ## function or one of the macros ## SIG_IGN or SIG_DFL. sa_mask*: Sigset ## Set of signals to be blocked during execution of ## the signal handling function. sa_flags*: cint ## Special flags. sa_sigaction*: proc (x: cint; y: ptr SigInfo; z: pointer) {.noconv.}
- struct sigaction Source Edit
SigEvent {.importc: "struct sigevent", header: "<signal.h>", final, pure.} = object sigev_notify*: cint ## Notification type. sigev_signo*: cint ## Signal number. sigev_value*: SigVal ## Signal value. sigev_notify_function*: proc (x: SigVal) {.noconv.} ## Notification func. sigev_notify_attributes*: ptr Pthread_attr ## Notification attributes.
- struct sigevent Source Edit
SigInfo {.importc: "siginfo_t", header: "<signal.h>", final, pure.} = object si_signo*: cint ## Signal number. si_code*: cint ## Signal code. si_errno*: cint ## If non-zero, an errno value associated with ## this signal, as defined in <errno.h>. si_pid*: Pid ## Sending process ID. si_uid*: Uid ## Real user ID of sending process. si_addr*: pointer ## Address of faulting instruction. si_status*: cint ## Exit value or signal. si_band*: int ## Band event for SIGPOLL. si_value*: SigVal ## Signal value.
- siginfo_t Source Edit
SigStack {.importc: "struct sigstack", header: "<signal.h>", final, pure.} = object ss_onstack*: cint ## Non-zero when signal stack is in use. ss_sp*: pointer ## Signal stack pointer.
- struct sigstack Source Edit
SigVal {.importc: "union sigval", header: "<signal.h>", final, pure.} = object sival_ptr*: pointer ## pointer signal value; ## integer signal value not defined!
- struct sigval Source Edit
SockAddr {.importc: "struct sockaddr", header: "<sys/socket.h>", pure, final.} = object sa_family*: TSa_Family ## Address family. sa_data*: array[0 .. 255 - 2, char] ## Socket address (variable-length data).
- struct sockaddr Source Edit
Sockaddr_in {.importc: "struct sockaddr_in", pure, final, header: "<netinet/in.h>".} = object sin_family*: TSa_Family ## AF_INET. sin_port*: InPort ## Port number. sin_addr*: InAddr ## IP address.
- struct sockaddr_in Source Edit
Sockaddr_in6 {.importc: "struct sockaddr_in6", pure, final, header: "<netinet/in.h>".} = object sin6_family*: TSa_Family ## AF_INET6. sin6_port*: InPort ## Port number. sin6_flowinfo*: int32 ## IPv6 traffic class and flow information. sin6_addr*: In6Addr ## IPv6 address. sin6_scope_id*: int32 ## Set of interfaces for a scope.
- struct sockaddr_in6 Source Edit
Sockaddr_storage {.importc: "struct sockaddr_storage", header: "<sys/socket.h>", pure, final.} = object ss_family*: TSa_Family ## Address family.
- struct sockaddr_storage Source Edit
Sockaddr_un {.importc: "struct sockaddr_un", header: "<sys/un.h>", pure, final.} = object sun_family*: TSa_Family ## Address family. sun_path*: array[0 .. 92 - 2, char] ## Socket path
- struct sockaddr_un Source Edit
SocketHandle = distinct cint
- Source Edit
Stack {.importc: "stack_t", header: "<signal.h>", final, pure.} = object ss_sp*: pointer ## Stack base or pointer. ss_size*: int ## Stack size. ss_flags*: cint ## Flags.
- stack_t Source Edit
Stat {.importc: "struct stat", header: "<sys/stat.h>", final, pure.} = object st_dev*: Dev ## Device ID of device containing file. st_ino*: Ino ## File serial number. st_mode*: Mode ## Mode of file (see below). st_nlink*: Nlink ## Number of hard links to the file. st_uid*: Uid ## User ID of file. st_gid*: Gid ## Group ID of file. st_rdev*: Dev ## Device ID (if file is character or block special). st_size*: Off ## For regular files, the file size in bytes. ## For symbolic links, the length in bytes of the ## pathname contained in the symbolic link. ## For a shared memory object, the length in bytes. ## For a typed memory object, the length in bytes. ## For other file types, the use of this field is ## unspecified. when StatHasNanoseconds: st_atim*: Timespec ## Time of last access. st_mtim*: Timespec ## Time of last data modification. st_ctim*: Timespec ## Time of last status change. else: st_atime*: Time ## Time of last access. st_mtime*: Time ## Time of last data modification. st_ctime*: Time ## Time of last status change. st_blksize*: Blksize ## A file system-specific preferred I/O block size ## for this object. In some file system types, this ## may vary from file to file. st_blocks*: Blkcnt ## Number of blocks allocated for this object.
- struct stat Source Edit
Statvfs {.importc: "struct statvfs", header: "<sys/statvfs.h>", final, pure.} = object f_bsize*: int ## File system block size. f_frsize*: int ## Fundamental file system block size. f_blocks*: Fsblkcnt ## Total number of blocks on file system ## in units of f_frsize. f_bfree*: Fsblkcnt ## Total number of free blocks. f_bavail*: Fsblkcnt ## Number of free blocks available to ## non-privileged process. f_files*: Fsfilcnt ## Total number of file serial numbers. f_ffree*: Fsfilcnt ## Total number of free file serial numbers. f_favail*: Fsfilcnt ## Number of file serial numbers available to ## non-privileged process. f_fsid*: int ## File system ID. f_flag*: int ## Bit mask of f_flag values. f_namemax*: int ## Maximum filename length.
- struct statvfs Source Edit
Tcmsghdr {.importc: "struct cmsghdr", pure, final, header: "<sys/socket.h>".} = object cmsg_len*: SockLen ## Data byte count, including the cmsghdr. cmsg_level*: cint ## Originating protocol. cmsg_type*: cint ## Protocol-specific type.
- struct cmsghdr Source Edit
Tflock {.importc: "struct flock", final, pure, header: "<fcntl.h>".} = object l_type*: cshort ## Type of lock; F_RDLCK, F_WRLCK, F_UNLCK. l_whence*: cshort ## Flag for starting offset. l_start*: Off ## Relative offset in bytes. l_len*: Off ## Size; if 0 then until EOF. l_pid*: Pid ## Process ID of the process holding the lock; ## returned with F_GETLK.
- flock type Source Edit
Tif_nameindex {.importc: "struct if_nameindex", final, pure, header: "<net/if.h>".} = object if_index*: cint ## Numeric index of the interface. if_name*: cstring ## Null-terminated name of the interface.
- struct if_nameindex Source Edit
Time {.importc: "time_t", header: "<time.h>".} = distinct (when defined( nimUse64BitCTime): int64 else: clong)
- Source Edit
Timespec {.importc: "struct timespec", header: "<time.h>", final, pure.} = object tv_sec*: Time ## Seconds. tv_nsec*: int ## Nanoseconds.
- struct timespec Source Edit
Timeval {.importc: "struct timeval", header: "<sys/select.h>", final, pure.} = object tv_sec*: Time ## Seconds. tv_usec*: Suseconds ## Microseconds.
- struct timeval Source Edit
Tipv6_mreq {.importc: "struct ipv6_mreq", pure, final, header: "<netinet/in.h>".} = object ipv6mr_multiaddr*: In6Addr ## IPv6 multicast address. ipv6mr_interface*: cint ## Interface index.
- struct ipv6_mreq Source Edit
TLinger {.importc: "struct linger", pure, final, header: "<sys/socket.h>".} = object l_onoff*: cint ## Indicates whether linger option is enabled. l_linger*: cint ## Linger time, in seconds.
- struct linger Source Edit
Tm {.importc: "struct tm", header: "<time.h>", final, pure.} = object tm_sec*: cint ## Seconds [0,60]. tm_min*: cint ## Minutes [0,59]. tm_hour*: cint ## Hour [0,23]. tm_mday*: cint ## Day of month [1,31]. tm_mon*: cint ## Month of year [0,11]. tm_year*: cint ## Years since 1900. tm_wday*: cint ## Day of week [0,6] (Sunday =0). tm_yday*: cint ## Day of year [0,365]. tm_isdst*: cint ## Daylight Savings flag.
- struct tm Source Edit
Tmsghdr {.importc: "struct msghdr", pure, final, header: "<sys/socket.h>".} = object msg_name*: pointer ## Optional address. msg_namelen*: SockLen ## Size of address. msg_iov*: ptr IOVec ## Scatter/gather array. msg_iovlen*: cint ## Members in msg_iov. msg_control*: pointer ## Ancillary data; see below. msg_controllen*: SockLen ## Ancillary data buffer len. msg_flags*: cint ## Flags on received message.
- struct msghdr Source Edit
Tnetent {.importc: "struct netent", pure, final, header: "<netdb.h>".} = object n_name*: cstring ## Official, fully-qualified (including the ## domain) name of the host. n_aliases*: cstringArray ## A pointer to an array of pointers to ## alternative network names, terminated by a ## null pointer. n_addrtype*: cint ## The address type of the network. n_net*: int32 ## The network number, in host byte order.
- struct netent Source Edit
TPollfd {.importc: "struct pollfd", pure, final, header: "<poll.h>".} = object fd*: cint ## The following descriptor being polled. events*: cshort ## The input event flags (see below). revents*: cshort ## The output event flags (see below).
- struct pollfd Source Edit
Tposix_spawn_file_actions {.importc: "posix_spawn_file_actions_t", header: "<spawn.h>", final, pure.} = object
- Source Edit
Tposix_spawnattr {.importc: "posix_spawnattr_t", header: "<spawn.h>", final, pure.} = object
- Source Edit
Trace_attr {.importc: "trace_attr_t", header: "<sys/types.h>".} = int
- Source Edit
Trace_event_id {.importc: "trace_event_id_t", header: "<sys/types.h>".} = int
- Source Edit
Trace_event_set {.importc: "trace_event_set_t", header: "<sys/types.h>".} = int
- Source Edit
TSa_Family {.importc: "sa_family_t", header: "<sys/socket.h>".} = cushort
- Source Edit
Ucontext {.importc: "ucontext_t", header: "<ucontext.h>", final, pure.} = object uc_link*: ptr Ucontext ## Pointer to the context that is resumed ## when this context returns. uc_sigmask*: Sigset ## The set of signals that are blocked when this ## context is active. uc_stack*: Stack ## The stack used by this context. uc_mcontext*: Mcontext ## A machine-specific representation of the saved ## context.
- ucontext_t Source Edit
Utsname {.importc: "struct utsname", header: "<sys/utsname.h>", final, pure.} = object sysname*, ## Name of the hardware type on which the ## system is running. ## Name of this implementation of the operating system. nodename*, ## Name of this node within the communications ## network to which this node is attached, if any. release*, ## Current release level of this implementation. version*, ## Current version level of this release. machine*: array[0 .. 255, char]
- struct utsname Source Edit
Vars
AI_ADDRCONFIG {.importc: "AI_ADDRCONFIG", header: "<netdb.h>".}: cint
- Source Edit
AI_CANONNAME {.importc: "AI_CANONNAME", header: "<netdb.h>".}: cint
- Source Edit
AI_NUMERICHOST {.importc: "AI_NUMERICHOST", header: "<netdb.h>".}: cint
- Source Edit
AI_NUMERICSERV {.importc: "AI_NUMERICSERV", header: "<netdb.h>".}: cint
- Source Edit
AI_PASSIVE {.importc: "AI_PASSIVE", header: "<netdb.h>".}: cint
- Source Edit
AI_V4MAPPED {.importc: "AI_V4MAPPED", header: "<netdb.h>".}: cint
- Source Edit
AIO_ALLDONE {.importc: "AIO_ALLDONE", header: "<aio.h>".}: cint
- Source Edit
AIO_CANCELED {.importc: "AIO_CANCELED", header: "<aio.h>".}: cint
- Source Edit
AIO_NOTCANCELED {.importc: "AIO_NOTCANCELED", header: "<aio.h>".}: cint
- Source Edit
ALT_DIGITS {.importc: "ALT_DIGITS", header: "<langinfo.h>".}: cint
- Source Edit
CLOCK_MONOTONIC {.importc: "CLOCK_MONOTONIC", header: "<time.h>".}: cint
- Source Edit
CLOCK_PROCESS_CPUTIME_ID {.importc: "CLOCK_PROCESS_CPUTIME_ID", header: "<time.h>".}: cint
- Source Edit
CLOCK_REALTIME {.importc: "CLOCK_REALTIME", header: "<time.h>".}: cint
- Source Edit
CLOCK_THREAD_CPUTIME_ID {.importc: "CLOCK_THREAD_CPUTIME_ID", header: "<time.h>".}: cint
- Source Edit
CLOCKS_PER_SEC {.importc: "CLOCKS_PER_SEC", header: "<time.h>".}: clong
- Source Edit
CS_POSIX_V6_ILP32_OFF32_CFLAGS {.importc: "_CS_POSIX_V6_ILP32_OFF32_CFLAGS", header: "<unistd.h>".}: cint
- Source Edit
CS_POSIX_V6_ILP32_OFF32_LDFLAGS {.importc: "_CS_POSIX_V6_ILP32_OFF32_LDFLAGS", header: "<unistd.h>".}: cint
- Source Edit
CS_POSIX_V6_ILP32_OFF32_LIBS {.importc: "_CS_POSIX_V6_ILP32_OFF32_LIBS", header: "<unistd.h>".}: cint
- Source Edit
CS_POSIX_V6_ILP32_OFFBIG_CFLAGS {.importc: "_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS", header: "<unistd.h>".}: cint
- Source Edit
CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS {.importc: "_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS", header: "<unistd.h>".}: cint
- Source Edit
CS_POSIX_V6_ILP32_OFFBIG_LIBS {.importc: "_CS_POSIX_V6_ILP32_OFFBIG_LIBS", header: "<unistd.h>".}: cint
- Source Edit
CS_POSIX_V6_LP64_OFF64_CFLAGS {.importc: "_CS_POSIX_V6_LP64_OFF64_CFLAGS", header: "<unistd.h>".}: cint
- Source Edit
CS_POSIX_V6_LP64_OFF64_LDFLAGS {.importc: "_CS_POSIX_V6_LP64_OFF64_LDFLAGS", header: "<unistd.h>".}: cint
- Source Edit
CS_POSIX_V6_LP64_OFF64_LIBS {.importc: "_CS_POSIX_V6_LP64_OFF64_LIBS", header: "<unistd.h>".}: cint
- Source Edit
CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS {.importc: "_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS", header: "<unistd.h>".}: cint
- Source Edit
CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS {.importc: "_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS", header: "<unistd.h>".}: cint
- Source Edit
CS_POSIX_V6_LPBIG_OFFBIG_LIBS {.importc: "_CS_POSIX_V6_LPBIG_OFFBIG_LIBS", header: "<unistd.h>".}: cint
- Source Edit
CS_POSIX_V6_WIDTH_RESTRICTED_ENVS {.importc: "_CS_POSIX_V6_WIDTH_RESTRICTED_ENVS", header: "<unistd.h>".}: cint
- Source Edit
EADDRINUSE {.importc: "EADDRINUSE", header: "<errno.h>".}: cint
- Source Edit
EADDRNOTAVAIL {.importc: "EADDRNOTAVAIL", header: "<errno.h>".}: cint
- Source Edit
EAFNOSUPPORT {.importc: "EAFNOSUPPORT", header: "<errno.h>".}: cint
- Source Edit
EAI_BADFLAGS {.importc: "EAI_BADFLAGS", header: "<netdb.h>".}: cint
- Source Edit
EAI_FAMILY {.importc: "EAI_FAMILY", header: "<netdb.h>".}: cint
- Source Edit
EAI_MEMORY {.importc: "EAI_MEMORY", header: "<netdb.h>".}: cint
- Source Edit
EAI_NONAME {.importc: "EAI_NONAME", header: "<netdb.h>".}: cint
- Source Edit
EAI_OVERFLOW {.importc: "EAI_OVERFLOW", header: "<netdb.h>".}: cint
- Source Edit
EAI_SERVICE {.importc: "EAI_SERVICE", header: "<netdb.h>".}: cint
- Source Edit
EAI_SOCKTYPE {.importc: "EAI_SOCKTYPE", header: "<netdb.h>".}: cint
- Source Edit
EAI_SYSTEM {.importc: "EAI_SYSTEM", header: "<netdb.h>".}: cint
- Source Edit
ECONNABORTED {.importc: "ECONNABORTED", header: "<errno.h>".}: cint
- Source Edit
ECONNREFUSED {.importc: "ECONNREFUSED", header: "<errno.h>".}: cint
- Source Edit
ECONNRESET {.importc: "ECONNRESET", header: "<errno.h>".}: cint
- Source Edit
EDESTADDRREQ {.importc: "EDESTADDRREQ", header: "<errno.h>".}: cint
- Source Edit
EHOSTUNREACH {.importc: "EHOSTUNREACH", header: "<errno.h>".}: cint
- Source Edit
EINPROGRESS {.importc: "EINPROGRESS", header: "<errno.h>".}: cint
- Source Edit
ENAMETOOLONG {.importc: "ENAMETOOLONG", header: "<errno.h>".}: cint
- Source Edit
ENETUNREACH {.importc: "ENETUNREACH", header: "<errno.h>".}: cint
- Source Edit
ENOPROTOOPT {.importc: "ENOPROTOOPT", header: "<errno.h>".}: cint
- Source Edit
EOPNOTSUPP {.importc: "EOPNOTSUPP", header: "<errno.h>".}: cint
- Source Edit
EPROTONOSUPPORT {.importc: "EPROTONOSUPPORT", header: "<errno.h>".}: cint
- Source Edit
EPROTOTYPE {.importc: "EPROTOTYPE", header: "<errno.h>".}: cint
- Source Edit
ERA_D_T_FMT {.importc: "ERA_D_T_FMT", header: "<langinfo.h>".}: cint
- Source Edit
EWOULDBLOCK {.importc: "EWOULDBLOCK", header: "<errno.h>".}: cint
- Source Edit
F_DUPFD_CLOEXEC {.importc: "F_DUPFD", header: "<fcntl.h>".}: cint
- Source Edit
FD_CLOEXEC {.importc: "FD_CLOEXEC", header: "<fcntl.h>".}: cint
- Source Edit
FD_SETSIZE {.importc: "FD_SETSIZE", header: "<sys/select.h>".}: cint
- Source Edit
FE_ALL_EXCEPT {.importc: "FE_ALL_EXCEPT", header: "<fenv.h>".}: cint
- Source Edit
FE_DFL_ENV {.importc: "FE_DFL_ENV", header: "<fenv.h>".}: cint
- Source Edit
FE_DIVBYZERO {.importc: "FE_DIVBYZERO", header: "<fenv.h>".}: cint
- Source Edit
FE_DOWNWARD {.importc: "FE_DOWNWARD", header: "<fenv.h>".}: cint
- Source Edit
FE_INEXACT {.importc: "FE_INEXACT", header: "<fenv.h>".}: cint
- Source Edit
FE_INVALID {.importc: "FE_INVALID", header: "<fenv.h>".}: cint
- Source Edit
FE_OVERFLOW {.importc: "FE_OVERFLOW", header: "<fenv.h>".}: cint
- Source Edit
FE_TONEAREST {.importc: "FE_TONEAREST", header: "<fenv.h>".}: cint
- Source Edit
FE_TOWARDZERO {.importc: "FE_TOWARDZERO", header: "<fenv.h>".}: cint
- Source Edit
FE_UNDERFLOW {.importc: "FE_UNDERFLOW", header: "<fenv.h>".}: cint
- Source Edit
FNM_NOESCAPE {.importc: "FNM_NOESCAPE", header: "<fnmatch.h>".}: cint
- Source Edit
FNM_NOMATCH {.importc: "FNM_NOMATCH", header: "<fnmatch.h>".}: cint
- Source Edit
FNM_PATHNAME {.importc: "FNM_PATHNAME", header: "<fnmatch.h>".}: cint
- Source Edit
FNM_PERIOD {.importc: "FNM_PERIOD", header: "<fnmatch.h>".}: cint
- Source Edit
GLOB_ABORTED {.importc: "GLOB_ABORTED", header: "<glob.h>".}: cint
- Source Edit
GLOB_APPEND {.importc: "GLOB_APPEND", header: "<glob.h>".}: cint
- Source Edit
GLOB_DOOFFS {.importc: "GLOB_DOOFFS", header: "<glob.h>".}: cint
- Source Edit
GLOB_NOCHECK {.importc: "GLOB_NOCHECK", header: "<glob.h>".}: cint
- Source Edit
GLOB_NOESCAPE {.importc: "GLOB_NOESCAPE", header: "<glob.h>".}: cint
- Source Edit
GLOB_NOMATCH {.importc: "GLOB_NOMATCH", header: "<glob.h>".}: cint
- Source Edit
GLOB_NOSORT {.importc: "GLOB_NOSORT", header: "<glob.h>".}: cint
- Source Edit
GLOB_NOSPACE {.importc: "GLOB_NOSPACE", header: "<glob.h>".}: cint
- Source Edit
GLOB_NOSYS {.importc: "GLOB_NOSYS", header: "<glob.h>".}: cint
- Source Edit
HOST_NOT_FOUND {.importc: "HOST_NOT_FOUND", header: "<netdb.h>".}: cint
- Source Edit
IF_NAMESIZE {.importc: "IF_NAMESIZE", header: "<net/if.h>".}: cint
- Source Edit
in6addr_any {.importc, header: "<netinet/in.h>".}: In6Addr
- Source Edit
in6addr_loopback {.importc, header: "<netinet/in.h>".}: In6Addr
- Source Edit
INADDR_ANY {.importc: "INADDR_ANY", header: "<netinet/in.h>".}: InAddrScalar
- Source Edit
INADDR_BROADCAST {.importc: "INADDR_BROADCAST", header: "<netinet/in.h>".}: InAddrScalar
- Source Edit
INADDR_LOOPBACK {.importc: "INADDR_LOOPBACK", header: "<netinet/in.h>".}: InAddrScalar
- Source Edit
INET6_ADDRSTRLEN {.importc: "INET6_ADDRSTRLEN", header: "<netinet/in.h>".}: cint
- Source Edit
INET_ADDRSTRLEN {.importc: "INET_ADDRSTRLEN", header: "<netinet/in.h>".}: cint
- Source Edit
IPC_NOWAIT {.importc: "IPC_NOWAIT", header: "<sys/ipc.h>".}: cint
- Source Edit
IPC_PRIVATE {.importc: "IPC_PRIVATE", header: "<sys/ipc.h>".}: cint
- Source Edit
IPPORT_RESERVED {.importc: "IPPORT_RESERVED", header: "<netdb.h>".}: cint
- Source Edit
IPPROTO_ICMP {.importc: "IPPROTO_ICMP", header: "<netinet/in.h>".}: cint
- Source Edit
IPPROTO_ICMPV6 {.importc: "IPPROTO_ICMPV6", header: "<netinet/in.h>".}: cint
- Source Edit
IPPROTO_IP {.importc: "IPPROTO_IP", header: "<netinet/in.h>".}: cint
- Source Edit
IPPROTO_IPV6 {.importc: "IPPROTO_IPV6", header: "<netinet/in.h>".}: cint
- Source Edit
IPPROTO_RAW {.importc: "IPPROTO_RAW", header: "<netinet/in.h>".}: cint
- Source Edit
IPPROTO_TCP {.importc: "IPPROTO_TCP", header: "<netinet/in.h>".}: cint
- Source Edit
IPPROTO_UDP {.importc: "IPPROTO_UDP", header: "<netinet/in.h>".}: cint
- Source Edit
IPV6_JOIN_GROUP {.importc: "IPV6_JOIN_GROUP", header: "<netinet/in.h>".}: cint
- Source Edit
IPV6_LEAVE_GROUP {.importc: "IPV6_LEAVE_GROUP", header: "<netinet/in.h>".}: cint
- Source Edit
IPV6_MULTICAST_HOPS {.importc: "IPV6_MULTICAST_HOPS", header: "<netinet/in.h>".}: cint
- Source Edit
IPV6_MULTICAST_IF {.importc: "IPV6_MULTICAST_IF", header: "<netinet/in.h>".}: cint
- Source Edit
IPV6_MULTICAST_LOOP {.importc: "IPV6_MULTICAST_LOOP", header: "<netinet/in.h>".}: cint
- Source Edit
IPV6_UNICAST_HOPS {.importc: "IPV6_UNICAST_HOPS", header: "<netinet/in.h>".}: cint
- Source Edit
IPV6_V6ONLY {.importc: "IPV6_V6ONLY", header: "<netinet/in.h>".}: cint
- Source Edit
LC_COLLATE {.importc: "LC_COLLATE", header: "<locale.h>".}: cint
- Source Edit
LC_MESSAGES {.importc: "LC_MESSAGES", header: "<locale.h>".}: cint
- Source Edit
LC_MONETARY {.importc: "LC_MONETARY", header: "<locale.h>".}: cint
- Source Edit
LC_NUMERIC {.importc: "LC_NUMERIC", header: "<locale.h>".}: cint
- Source Edit
LIO_NOWAIT {.importc: "LIO_NOWAIT", header: "<aio.h>".}: cint
- Source Edit
MAP_ANONYMOUS {.importc: "MAP_ANONYMOUS", header: "<sys/mman.h>".}: cint
- Source Edit
MAP_FAILED {.importc: "MAP_FAILED", header: "<sys/mman.h>".}: pointer
- Source Edit
MAP_FIXED_NOREPLACE {.importc: "MAP_FIXED_NOREPLACE", header: "<sys/mman.h>".}: cint
- Source Edit
MAP_NORESERVE {.importc: "MAP_NORESERVE", header: "<sys/mman.h>".}: cint
- Source Edit
MAP_POPULATE: cint = 0
- Source Edit
MAP_PRIVATE {.importc: "MAP_PRIVATE", header: "<sys/mman.h>".}: cint
- Source Edit
MAP_SHARED {.importc: "MAP_SHARED", header: "<sys/mman.h>".}: cint
- Source Edit
MCL_CURRENT {.importc: "MCL_CURRENT", header: "<sys/mman.h>".}: cint
- Source Edit
MCL_FUTURE {.importc: "MCL_FUTURE", header: "<sys/mman.h>".}: cint
- Source Edit
MINSIGSTKSZ {.importc: "MINSIGSTKSZ", header: "<signal.h>".}: cint
- Source Edit
MM_CONSOLE {.importc: "MM_CONSOLE", header: "<fmtmsg.h>".}: cint
- Source Edit
MM_RECOVER {.importc: "MM_RECOVER", header: "<fmtmsg.h>".}: cint
- Source Edit
MM_WARNING {.importc: "MM_WARNING", header: "<fmtmsg.h>".}: cint
- Source Edit
MS_INVALIDATE {.importc: "MS_INVALIDATE", header: "<sys/mman.h>".}: cint
- Source Edit
MSG_CTRUNC {.importc: "MSG_CTRUNC", header: "<sys/socket.h>".}: cint
- Source Edit
MSG_DONTROUTE {.importc: "MSG_DONTROUTE", header: "<sys/socket.h>".}: cint
- Source Edit
MSG_NOSIGNAL {.importc, header: "<sys/socket.h>".}: cint
- No SIGPIPE generated when an attempt to send is made on a stream-oriented socket that is no longer connected. Source Edit
MSG_WAITALL {.importc: "MSG_WAITALL", header: "<sys/socket.h>".}: cint
- Source Edit
NI_NAMEREQD {.importc: "NI_NAMEREQD", header: "<netdb.h>".}: cint
- Source Edit
NI_NUMERICHOST {.importc: "NI_NUMERICHOST", header: "<netdb.h>".}: cint
- Source Edit
NI_NUMERICSCOPE {.importc: "NI_NUMERICSCOPE", header: "<netdb.h>".}: cint
- Source Edit
NI_NUMERICSERV {.importc: "NI_NUMERICSERV", header: "<netdb.h>".}: cint
- Source Edit
NL_CAT_LOCALE {.importc: "NL_CAT_LOCALE", header: "<nl_types.h>".}: cint
- Source Edit
NO_RECOVERY {.importc: "NO_RECOVERY", header: "<netdb.h>".}: cint
- Source Edit
O_NONBLOCK {.importc: "O_NONBLOCK", header: "<fcntl.h>".}: cint
- Source Edit
PC_2_SYMLINKS {.importc: "_PC_2_SYMLINKS", header: "<unistd.h>".}: cint
- Source Edit
PC_ALLOC_SIZE_MIN {.importc: "_PC_ALLOC_SIZE_MIN", header: "<unistd.h>".}: cint
- Source Edit
PC_ASYNC_IO {.importc: "_PC_ASYNC_IO", header: "<unistd.h>".}: cint
- Source Edit
PC_CHOWN_RESTRICTED {.importc: "_PC_CHOWN_RESTRICTED", header: "<unistd.h>".}: cint
- Source Edit
PC_FILESIZEBITS {.importc: "_PC_FILESIZEBITS", header: "<unistd.h>".}: cint
- Source Edit
PC_LINK_MAX {.importc: "_PC_LINK_MAX", header: "<unistd.h>".}: cint
- Source Edit
PC_MAX_CANON {.importc: "_PC_MAX_CANON", header: "<unistd.h>".}: cint
- Source Edit
PC_MAX_INPUT {.importc: "_PC_MAX_INPUT", header: "<unistd.h>".}: cint
- Source Edit
PC_NAME_MAX {.importc: "_PC_NAME_MAX", header: "<unistd.h>".}: cint
- Source Edit
PC_NO_TRUNC {.importc: "_PC_NO_TRUNC", header: "<unistd.h>".}: cint
- Source Edit
PC_PATH_MAX {.importc: "_PC_PATH_MAX", header: "<unistd.h>".}: cint
- Source Edit
PC_PIPE_BUF {.importc: "_PC_PIPE_BUF", header: "<unistd.h>".}: cint
- Source Edit
PC_PRIO_IO {.importc: "_PC_PRIO_IO", header: "<unistd.h>".}: cint
- Source Edit
PC_REC_INCR_XFER_SIZE {.importc: "_PC_REC_INCR_XFER_SIZE", header: "<unistd.h>".}: cint
- Source Edit
PC_REC_MIN_XFER_SIZE {.importc: "_PC_REC_MIN_XFER_SIZE", header: "<unistd.h>".}: cint
- Source Edit
PC_REC_XFER_ALIGN {.importc: "_PC_REC_XFER_ALIGN", header: "<unistd.h>".}: cint
- Source Edit
PC_SYMLINK_MAX {.importc: "_PC_SYMLINK_MAX", header: "<unistd.h>".}: cint
- Source Edit
PC_SYNC_IO {.importc: "_PC_SYNC_IO", header: "<unistd.h>".}: cint
- Source Edit
PC_VDISABLE {.importc: "_PC_VDISABLE", header: "<unistd.h>".}: cint
- Source Edit
POLLRDBAND {.importc: "POLLRDBAND", header: "<poll.h>".}: cshort
- Source Edit
POLLRDNORM {.importc: "POLLRDNORM", header: "<poll.h>".}: cshort
- Source Edit
POLLWRBAND {.importc: "POLLWRBAND", header: "<poll.h>".}: cshort
- Source Edit
POLLWRNORM {.importc: "POLLWRNORM", header: "<poll.h>".}: cshort
- Source Edit
POSIX_ASYNC_IO {.importc: "_POSIX_ASYNC_IO", header: "<unistd.h>".}: cint
- Source Edit
POSIX_FADV_DONTNEED {.importc: "POSIX_FADV_DONTNEED", header: "<fcntl.h>".}: cint
- Source Edit
POSIX_FADV_NOREUSE {.importc: "POSIX_FADV_NOREUSE", header: "<fcntl.h>".}: cint
- Source Edit
POSIX_FADV_NORMAL {.importc: "POSIX_FADV_NORMAL", header: "<fcntl.h>".}: cint
- Source Edit
POSIX_FADV_RANDOM {.importc: "POSIX_FADV_RANDOM", header: "<fcntl.h>".}: cint
- Source Edit
POSIX_FADV_SEQUENTIAL {.importc: "POSIX_FADV_SEQUENTIAL", header: "<fcntl.h>".}: cint
- Source Edit
POSIX_FADV_WILLNEED {.importc: "POSIX_FADV_WILLNEED", header: "<fcntl.h>".}: cint
- Source Edit
POSIX_MADV_DONTNEED {.importc: "POSIX_MADV_DONTNEED", header: "<sys/mman.h>".}: cint
- Source Edit
POSIX_MADV_NORMAL {.importc: "POSIX_MADV_NORMAL", header: "<sys/mman.h>".}: cint
- Source Edit
POSIX_MADV_RANDOM {.importc: "POSIX_MADV_RANDOM", header: "<sys/mman.h>".}: cint
- Source Edit
POSIX_MADV_SEQUENTIAL {.importc: "POSIX_MADV_SEQUENTIAL", header: "<sys/mman.h>".}: cint
- Source Edit
POSIX_MADV_WILLNEED {.importc: "POSIX_MADV_WILLNEED", header: "<sys/mman.h>".}: cint
- Source Edit
POSIX_PRIO_IO {.importc: "_POSIX_PRIO_IO", header: "<unistd.h>".}: cint
- Source Edit
POSIX_SPAWN_RESETIDS {.importc: "POSIX_SPAWN_RESETIDS", header: "<spawn.h>".}: cint
- Source Edit
POSIX_SPAWN_SETPGROUP {.importc: "POSIX_SPAWN_SETPGROUP", header: "<spawn.h>".}: cint
- Source Edit
POSIX_SPAWN_SETSCHEDPARAM {.importc: "POSIX_SPAWN_SETSCHEDPARAM", header: "<spawn.h>".}: cint
- Source Edit
POSIX_SPAWN_SETSCHEDULER {.importc: "POSIX_SPAWN_SETSCHEDULER", header: "<spawn.h>".}: cint
- Source Edit
POSIX_SPAWN_SETSIGDEF {.importc: "POSIX_SPAWN_SETSIGDEF", header: "<spawn.h>".}: cint
- Source Edit
POSIX_SPAWN_SETSIGMASK {.importc: "POSIX_SPAWN_SETSIGMASK", header: "<spawn.h>".}: cint
- Source Edit
POSIX_SYNC_IO {.importc: "_POSIX_SYNC_IO", header: "<unistd.h>".}: cint
- Source Edit
POSIX_TYPED_MEM_ALLOCATE {.importc: "POSIX_TYPED_MEM_ALLOCATE", header: "<sys/mman.h>".}: cint
- Source Edit
POSIX_TYPED_MEM_ALLOCATE_CONTIG {.importc: "POSIX_TYPED_MEM_ALLOCATE_CONTIG", header: "<sys/mman.h>".}: cint
- Source Edit
POSIX_TYPED_MEM_MAP_ALLOCATABLE {.importc: "POSIX_TYPED_MEM_MAP_ALLOCATABLE", header: "<sys/mman.h>".}: cint
- Source Edit
PROT_WRITE {.importc: "PROT_WRITE", header: "<sys/mman.h>".}: cint
- Source Edit
PTHREAD_BARRIER_SERIAL_THREAD {.importc: "PTHREAD_BARRIER_SERIAL_THREAD", header: "<pthread.h>".}: cint
- Source Edit
PTHREAD_CANCEL_ASYNCHRONOUS {.importc: "PTHREAD_CANCEL_ASYNCHRONOUS", header: "<pthread.h>".}: cint
- Source Edit
PTHREAD_CANCEL_DEFERRED {.importc: "PTHREAD_CANCEL_DEFERRED", header: "<pthread.h>".}: cint
- Source Edit
PTHREAD_CANCEL_DISABLE {.importc: "PTHREAD_CANCEL_DISABLE", header: "<pthread.h>".}: cint
- Source Edit
PTHREAD_CANCEL_ENABLE {.importc: "PTHREAD_CANCEL_ENABLE", header: "<pthread.h>".}: cint
- Source Edit
PTHREAD_CREATE_DETACHED {.importc: "PTHREAD_CREATE_DETACHED", header: "<pthread.h>".}: cint
- Source Edit
PTHREAD_CREATE_JOINABLE {.importc: "PTHREAD_CREATE_JOINABLE", header: "<pthread.h>".}: cint
- Source Edit
PTHREAD_EXPLICIT_SCHED {.importc: "PTHREAD_EXPLICIT_SCHED", header: "<pthread.h>".}: cint
- Source Edit
PTHREAD_INHERIT_SCHED {.importc: "PTHREAD_INHERIT_SCHED", header: "<pthread.h>".}: cint
- Source Edit
PTHREAD_MUTEX_DEFAULT {.importc: "PTHREAD_MUTEX_DEFAULT", header: "<pthread.h>".}: cint
- Source Edit
PTHREAD_MUTEX_ERRORCHECK {.importc: "PTHREAD_MUTEX_ERRORCHECK", header: "<pthread.h>".}: cint
- Source Edit
PTHREAD_MUTEX_NORMAL {.importc: "PTHREAD_MUTEX_NORMAL", header: "<pthread.h>".}: cint
- Source Edit
PTHREAD_MUTEX_RECURSIVE {.importc: "PTHREAD_MUTEX_RECURSIVE", header: "<pthread.h>".}: cint
- Source Edit
PTHREAD_PRIO_INHERIT {.importc: "PTHREAD_PRIO_INHERIT", header: "<pthread.h>".}: cint
- Source Edit
PTHREAD_PRIO_NONE {.importc: "PTHREAD_PRIO_NONE", header: "<pthread.h>".}: cint
- Source Edit
PTHREAD_PRIO_PROTECT {.importc: "PTHREAD_PRIO_PROTECT", header: "<pthread.h>".}: cint
- Source Edit
PTHREAD_PROCESS_PRIVATE {.importc: "PTHREAD_PROCESS_PRIVATE", header: "<pthread.h>".}: cint
- Source Edit
PTHREAD_PROCESS_SHARED {.importc: "PTHREAD_PROCESS_SHARED", header: "<pthread.h>".}: cint
- Source Edit
PTHREAD_SCOPE_PROCESS {.importc: "PTHREAD_SCOPE_PROCESS", header: "<pthread.h>".}: cint
- Source Edit
PTHREAD_SCOPE_SYSTEM {.importc: "PTHREAD_SCOPE_SYSTEM", header: "<pthread.h>".}: cint
- Source Edit
RLIMIT_NOFILE {.importc: "RLIMIT_NOFILE", header: "<sys/resource.h>".}: cint
- Source Edit
RLIMIT_STACK {.importc: "RLIMIT_STACK", header: "<sys/resource.h>".}: cint
- Source Edit
RTLD_GLOBAL {.importc: "RTLD_GLOBAL", header: "<dlfcn.h>".}: cint
- Source Edit
RTLD_LOCAL {.importc: "RTLD_LOCAL", header: "<dlfcn.h>".}: cint
- Source Edit
SA_NOCLDSTOP {.importc: "SA_NOCLDSTOP", header: "<signal.h>".}: cint
- Source Edit
SA_NOCLDWAIT {.importc: "SA_NOCLDWAIT", header: "<signal.h>".}: cint
- Source Edit
SA_NODEFER {.importc: "SA_NODEFER", header: "<signal.h>".}: cint
- Source Edit
SA_ONSTACK {.importc: "SA_ONSTACK", header: "<signal.h>".}: cint
- Source Edit
SA_RESETHAND {.importc: "SA_RESETHAND", header: "<signal.h>".}: cint
- Source Edit
SA_RESTART {.importc: "SA_RESTART", header: "<signal.h>".}: cint
- Source Edit
SA_SIGINFO {.importc: "SA_SIGINFO", header: "<signal.h>".}: cint
- Source Edit
SC_2_C_BIND {.importc: "_SC_2_C_BIND", header: "<unistd.h>".}: cint
- Source Edit
SC_2_C_DEV {.importc: "_SC_2_C_DEV", header: "<unistd.h>".}: cint
- Source Edit
SC_2_CHAR_TERM {.importc: "_SC_2_CHAR_TERM", header: "<unistd.h>".}: cint
- Source Edit
SC_2_FORT_DEV {.importc: "_SC_2_FORT_DEV", header: "<unistd.h>".}: cint
- Source Edit
SC_2_FORT_RUN {.importc: "_SC_2_FORT_RUN", header: "<unistd.h>".}: cint
- Source Edit
SC_2_LOCALEDEF {.importc: "_SC_2_LOCALEDEF", header: "<unistd.h>".}: cint
- Source Edit
SC_2_PBS_ACCOUNTING {.importc: "_SC_2_PBS_ACCOUNTING", header: "<unistd.h>".}: cint
- Source Edit
SC_2_PBS_CHECKPOINT {.importc: "_SC_2_PBS_CHECKPOINT", header: "<unistd.h>".}: cint
- Source Edit
SC_2_PBS_LOCATE {.importc: "_SC_2_PBS_LOCATE", header: "<unistd.h>".}: cint
- Source Edit
SC_2_PBS_MESSAGE {.importc: "_SC_2_PBS_MESSAGE", header: "<unistd.h>".}: cint
- Source Edit
SC_2_PBS_TRACK {.importc: "_SC_2_PBS_TRACK", header: "<unistd.h>".}: cint
- Source Edit
SC_2_SW_DEV {.importc: "_SC_2_SW_DEV", header: "<unistd.h>".}: cint
- Source Edit
SC_2_VERSION {.importc: "_SC_2_VERSION", header: "<unistd.h>".}: cint
- Source Edit
SC_ADVISORY_INFO {.importc: "_SC_ADVISORY_INFO", header: "<unistd.h>".}: cint
- Source Edit
SC_AIO_LISTIO_MAX {.importc: "_SC_AIO_LISTIO_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_AIO_MAX {.importc: "_SC_AIO_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_AIO_PRIO_DELTA_MAX {.importc: "_SC_AIO_PRIO_DELTA_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_ARG_MAX {.importc: "_SC_ARG_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_ASYNCHRONOUS_IO {.importc: "_SC_ASYNCHRONOUS_IO", header: "<unistd.h>".}: cint
- Source Edit
SC_ATEXIT_MAX {.importc: "_SC_ATEXIT_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_BARRIERS {.importc: "_SC_BARRIERS", header: "<unistd.h>".}: cint
- Source Edit
SC_BC_BASE_MAX {.importc: "_SC_BC_BASE_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_BC_DIM_MAX {.importc: "_SC_BC_DIM_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_BC_SCALE_MAX {.importc: "_SC_BC_SCALE_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_BC_STRING_MAX {.importc: "_SC_BC_STRING_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_CHILD_MAX {.importc: "_SC_CHILD_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_CLK_TCK {.importc: "_SC_CLK_TCK", header: "<unistd.h>".}: cint
- Source Edit
SC_CLOCK_SELECTION {.importc: "_SC_CLOCK_SELECTION", header: "<unistd.h>".}: cint
- Source Edit
SC_COLL_WEIGHTS_MAX {.importc: "_SC_COLL_WEIGHTS_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_CPUTIME {.importc: "_SC_CPUTIME", header: "<unistd.h>".}: cint
- Source Edit
SC_DELAYTIMER_MAX {.importc: "_SC_DELAYTIMER_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_EXPR_NEST_MAX {.importc: "_SC_EXPR_NEST_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_GETGR_R_SIZE_MAX {.importc: "_SC_GETGR_R_SIZE_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_GETPW_R_SIZE_MAX {.importc: "_SC_GETPW_R_SIZE_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_HOST_NAME_MAX {.importc: "_SC_HOST_NAME_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_IOV_MAX {.importc: "_SC_IOV_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_JOB_CONTROL {.importc: "_SC_JOB_CONTROL", header: "<unistd.h>".}: cint
- Source Edit
SC_LINE_MAX {.importc: "_SC_LINE_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_LOGIN_NAME_MAX {.importc: "_SC_LOGIN_NAME_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_MAPPED_FILES {.importc: "_SC_MAPPED_FILES", header: "<unistd.h>".}: cint
- Source Edit
SC_MEMLOCK {.importc: "_SC_MEMLOCK", header: "<unistd.h>".}: cint
- Source Edit
SC_MEMLOCK_RANGE {.importc: "_SC_MEMLOCK_RANGE", header: "<unistd.h>".}: cint
- Source Edit
SC_MEMORY_PROTECTION {.importc: "_SC_MEMORY_PROTECTION", header: "<unistd.h>".}: cint
- Source Edit
SC_MESSAGE_PASSING {.importc: "_SC_MESSAGE_PASSING", header: "<unistd.h>".}: cint
- Source Edit
SC_MONOTONIC_CLOCK {.importc: "_SC_MONOTONIC_CLOCK", header: "<unistd.h>".}: cint
- Source Edit
SC_MQ_OPEN_MAX {.importc: "_SC_MQ_OPEN_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_MQ_PRIO_MAX {.importc: "_SC_MQ_PRIO_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_NGROUPS_MAX {.importc: "_SC_NGROUPS_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_NPROCESSORS_ONLN {.importc: "_SC_NPROCESSORS_ONLN", header: "<unistd.h>".}: cint
- Source Edit
SC_OPEN_MAX {.importc: "_SC_OPEN_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_PAGESIZE {.importc: "_SC_PAGESIZE", header: "<unistd.h>".}: cint
- Source Edit
SC_PRIORITIZED_IO {.importc: "_SC_PRIORITIZED_IO", header: "<unistd.h>".}: cint
- Source Edit
SC_PRIORITY_SCHEDULING {.importc: "_SC_PRIORITY_SCHEDULING", header: "<unistd.h>".}: cint
- Source Edit
SC_RAW_SOCKETS {.importc: "_SC_RAW_SOCKETS", header: "<unistd.h>".}: cint
- Source Edit
SC_RE_DUP_MAX {.importc: "_SC_RE_DUP_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_READER_WRITER_LOCKS {.importc: "_SC_READER_WRITER_LOCKS", header: "<unistd.h>".}: cint
- Source Edit
SC_REALTIME_SIGNALS {.importc: "_SC_REALTIME_SIGNALS", header: "<unistd.h>".}: cint
- Source Edit
SC_RTSIG_MAX {.importc: "_SC_RTSIG_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_SAVED_IDS {.importc: "_SC_SAVED_IDS", header: "<unistd.h>".}: cint
- Source Edit
SC_SEM_NSEMS_MAX {.importc: "_SC_SEM_NSEMS_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_SEM_VALUE_MAX {.importc: "_SC_SEM_VALUE_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_SEMAPHORES {.importc: "_SC_SEMAPHORES", header: "<unistd.h>".}: cint
- Source Edit
SC_SHARED_MEMORY_OBJECTS {.importc: "_SC_SHARED_MEMORY_OBJECTS", header: "<unistd.h>".}: cint
- Source Edit
SC_SIGQUEUE_MAX {.importc: "_SC_SIGQUEUE_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_SPIN_LOCKS {.importc: "_SC_SPIN_LOCKS", header: "<unistd.h>".}: cint
- Source Edit
SC_SPORADIC_SERVER {.importc: "_SC_SPORADIC_SERVER", header: "<unistd.h>".}: cint
- Source Edit
SC_SS_REPL_MAX {.importc: "_SC_SS_REPL_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_STREAM_MAX {.importc: "_SC_STREAM_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_SYMLOOP_MAX {.importc: "_SC_SYMLOOP_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_SYNCHRONIZED_IO {.importc: "_SC_SYNCHRONIZED_IO", header: "<unistd.h>".}: cint
- Source Edit
SC_THREAD_ATTR_STACKADDR {.importc: "_SC_THREAD_ATTR_STACKADDR", header: "<unistd.h>".}: cint
- Source Edit
SC_THREAD_ATTR_STACKSIZE {.importc: "_SC_THREAD_ATTR_STACKSIZE", header: "<unistd.h>".}: cint
- Source Edit
SC_THREAD_CPUTIME {.importc: "_SC_THREAD_CPUTIME", header: "<unistd.h>".}: cint
- Source Edit
SC_THREAD_DESTRUCTOR_ITERATIONS {.importc: "_SC_THREAD_DESTRUCTOR_ITERATIONS", header: "<unistd.h>".}: cint
- Source Edit
SC_THREAD_KEYS_MAX {.importc: "_SC_THREAD_KEYS_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_THREAD_PRIO_INHERIT {.importc: "_SC_THREAD_PRIO_INHERIT", header: "<unistd.h>".}: cint
- Source Edit
SC_THREAD_PRIO_PROTECT {.importc: "_SC_THREAD_PRIO_PROTECT", header: "<unistd.h>".}: cint
- Source Edit
SC_THREAD_PRIORITY_SCHEDULING {.importc: "_SC_THREAD_PRIORITY_SCHEDULING", header: "<unistd.h>".}: cint
- Source Edit
SC_THREAD_PROCESS_SHARED {.importc: "_SC_THREAD_PROCESS_SHARED", header: "<unistd.h>".}: cint
- Source Edit
SC_THREAD_SAFE_FUNCTIONS {.importc: "_SC_THREAD_SAFE_FUNCTIONS", header: "<unistd.h>".}: cint
- Source Edit
SC_THREAD_SPORADIC_SERVER {.importc: "_SC_THREAD_SPORADIC_SERVER", header: "<unistd.h>".}: cint
- Source Edit
SC_THREAD_STACK_MIN {.importc: "_SC_THREAD_STACK_MIN", header: "<unistd.h>".}: cint
- Source Edit
SC_THREAD_THREADS_MAX {.importc: "_SC_THREAD_THREADS_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_THREADS {.importc: "_SC_THREADS", header: "<unistd.h>".}: cint
- Source Edit
SC_TIMEOUTS {.importc: "_SC_TIMEOUTS", header: "<unistd.h>".}: cint
- Source Edit
SC_TIMER_MAX {.importc: "_SC_TIMER_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_TRACE_EVENT_FILTER {.importc: "_SC_TRACE_EVENT_FILTER", header: "<unistd.h>".}: cint
- Source Edit
SC_TRACE_EVENT_NAME_MAX {.importc: "_SC_TRACE_EVENT_NAME_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_TRACE_INHERIT {.importc: "_SC_TRACE_INHERIT", header: "<unistd.h>".}: cint
- Source Edit
SC_TRACE_LOG {.importc: "_SC_TRACE_LOG", header: "<unistd.h>".}: cint
- Source Edit
SC_TRACE_NAME_MAX {.importc: "_SC_TRACE_NAME_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_TRACE_SYS_MAX {.importc: "_SC_TRACE_SYS_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_TRACE_USER_EVENT_MAX {.importc: "_SC_TRACE_USER_EVENT_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_TTY_NAME_MAX {.importc: "_SC_TTY_NAME_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_TYPED_MEMORY_OBJECTS {.importc: "_SC_TYPED_MEMORY_OBJECTS", header: "<unistd.h>".}: cint
- Source Edit
SC_TZNAME_MAX {.importc: "_SC_TZNAME_MAX", header: "<unistd.h>".}: cint
- Source Edit
SC_V6_ILP32_OFF32 {.importc: "_SC_V6_ILP32_OFF32", header: "<unistd.h>".}: cint
- Source Edit
SC_V6_ILP32_OFFBIG {.importc: "_SC_V6_ILP32_OFFBIG", header: "<unistd.h>".}: cint
- Source Edit
SC_V6_LP64_OFF64 {.importc: "_SC_V6_LP64_OFF64", header: "<unistd.h>".}: cint
- Source Edit
SC_V6_LPBIG_OFFBIG {.importc: "_SC_V6_LPBIG_OFFBIG", header: "<unistd.h>".}: cint
- Source Edit
SC_VERSION {.importc: "_SC_VERSION", header: "<unistd.h>".}: cint
- Source Edit
SC_XBS5_ILP32_OFF32 {.importc: "_SC_XBS5_ILP32_OFF32", header: "<unistd.h>".}: cint
- Source Edit
SC_XBS5_ILP32_OFFBIG {.importc: "_SC_XBS5_ILP32_OFFBIG", header: "<unistd.h>".}: cint
- Source Edit
SC_XBS5_LP64_OFF64 {.importc: "_SC_XBS5_LP64_OFF64", header: "<unistd.h>".}: cint
- Source Edit
SC_XBS5_LPBIG_OFFBIG {.importc: "_SC_XBS5_LPBIG_OFFBIG", header: "<unistd.h>".}: cint
- Source Edit
SC_XOPEN_CRYPT {.importc: "_SC_XOPEN_CRYPT", header: "<unistd.h>".}: cint
- Source Edit
SC_XOPEN_ENH_I18N {.importc: "_SC_XOPEN_ENH_I18N", header: "<unistd.h>".}: cint
- Source Edit
SC_XOPEN_LEGACY {.importc: "_SC_XOPEN_LEGACY", header: "<unistd.h>".}: cint
- Source Edit
SC_XOPEN_REALTIME {.importc: "_SC_XOPEN_REALTIME", header: "<unistd.h>".}: cint
- Source Edit
SC_XOPEN_REALTIME_THREADS {.importc: "_SC_XOPEN_REALTIME_THREADS", header: "<unistd.h>".}: cint
- Source Edit
SC_XOPEN_SHM {.importc: "_SC_XOPEN_SHM", header: "<unistd.h>".}: cint
- Source Edit
SC_XOPEN_STREAMS {.importc: "_SC_XOPEN_STREAMS", header: "<unistd.h>".}: cint
- Source Edit
SC_XOPEN_UNIX {.importc: "_SC_XOPEN_UNIX", header: "<unistd.h>".}: cint
- Source Edit
SC_XOPEN_VERSION {.importc: "_SC_XOPEN_VERSION", header: "<unistd.h>".}: cint
- Source Edit
SCHED_FIFO {.importc: "SCHED_FIFO", header: "<sched.h>".}: cint
- Source Edit
SCHED_OTHER {.importc: "SCHED_OTHER", header: "<sched.h>".}: cint
- Source Edit
SCHED_SPORADIC {.importc: "SCHED_SPORADIC", header: "<sched.h>".}: cint
- Source Edit
SCM_RIGHTS {.importc: "SCM_RIGHTS", header: "<sys/socket.h>".}: cint
- Source Edit
SEM_FAILED {.importc: "SEM_FAILED", header: "<semaphore.h>".}: pointer
- Source Edit
SIG_SETMASK {.importc: "SIG_SETMASK", header: "<signal.h>".}: cint
- Source Edit
SIG_UNBLOCK {.importc: "SIG_UNBLOCK", header: "<signal.h>".}: cint
- Source Edit
SIGEV_NONE {.importc: "SIGEV_NONE", header: "<signal.h>".}: cint
- Source Edit
SIGEV_SIGNAL {.importc: "SIGEV_SIGNAL", header: "<signal.h>".}: cint
- Source Edit
SIGEV_THREAD {.importc: "SIGEV_THREAD", header: "<signal.h>".}: cint
- Source Edit
SO_ACCEPTCONN {.importc: "SO_ACCEPTCONN", header: "<sys/socket.h>".}: cint
- Source Edit
SO_BINDTODEVICE {.importc: "SO_BINDTODEVICE", header: "<sys/socket.h>".}: cint
- Source Edit
SO_BROADCAST {.importc: "SO_BROADCAST", header: "<sys/socket.h>".}: cint
- Source Edit
SO_DONTROUTE {.importc: "SO_DONTROUTE", header: "<sys/socket.h>".}: cint
- Source Edit
SO_KEEPALIVE {.importc: "SO_KEEPALIVE", header: "<sys/socket.h>".}: cint
- Source Edit
SO_OOBINLINE {.importc: "SO_OOBINLINE", header: "<sys/socket.h>".}: cint
- Source Edit
SO_RCVLOWAT {.importc: "SO_RCVLOWAT", header: "<sys/socket.h>".}: cint
- Source Edit
SO_RCVTIMEO {.importc: "SO_RCVTIMEO", header: "<sys/socket.h>".}: cint
- Source Edit
SO_REUSEADDR {.importc: "SO_REUSEADDR", header: "<sys/socket.h>".}: cint
- Source Edit
SO_SNDLOWAT {.importc: "SO_SNDLOWAT", header: "<sys/socket.h>".}: cint
- Source Edit
SO_SNDTIMEO {.importc: "SO_SNDTIMEO", header: "<sys/socket.h>".}: cint
- Source Edit
SOCK_DGRAM {.importc: "SOCK_DGRAM", header: "<sys/socket.h>".}: cint
- Source Edit
SOCK_SEQPACKET {.importc: "SOCK_SEQPACKET", header: "<sys/socket.h>".}: cint
- Source Edit
SOCK_STREAM {.importc: "SOCK_STREAM", header: "<sys/socket.h>".}: cint
- Source Edit
SOL_SOCKET {.importc: "SOL_SOCKET", header: "<sys/socket.h>".}: cint
- Source Edit
SS_DISABLE {.importc: "SS_DISABLE", header: "<signal.h>".}: cint
- Source Edit
SS_ONSTACK {.importc: "SS_ONSTACK", header: "<signal.h>".}: cint
- Source Edit
T_FMT_AMPM {.importc: "T_FMT_AMPM", header: "<langinfo.h>".}: cint
- Source Edit
TCP_NODELAY {.importc: "TCP_NODELAY", header: "<netinet/tcp.h>".}: cint
- Source Edit
TIMER_ABSTIME {.importc: "TIMER_ABSTIME", header: "<time.h>".}: cint
- Source Edit
WCONTINUED {.importc: "WCONTINUED", header: "<sys/wait.h>".}: cint
- Source Edit
Consts
DT_UNKNOWN = 0
- Unknown file type. Source Edit
INVALID_SOCKET = -1'i32
- Source Edit
MM_NULLACT = nil
- Source Edit
MM_NULLLBL = nil
- Source Edit
MM_NULLSEV = 0
- Source Edit
MM_NULLTAG = nil
- Source Edit
MM_NULLTXT = nil
- Source Edit
POSIX_SPAWN_USEVFORK = 0'i32
- Source Edit
RUSAGE_CHILDREN = -1'i32
- Source Edit
RUSAGE_SELF = 0'i32
- Source Edit
RUSAGE_THREAD = 1'i32
- Source Edit
SO_REUSEPORT = 512'i32
- Multiple binding: load balancing on incoming TCP connections or UDP packets. (Requires Linux kernel > 3.9) Source Edit
Sockaddr_max_length = 255
- Source Edit
StatHasNanoseconds = false
- Boolean flag that indicates if the system supports nanosecond time resolution in the fields of Stat. Note that the nanosecond based fields (Stat.st_atim, Stat.st_mtim and Stat.st_ctim) can be accessed without checking this flag, because this module defines fallback procs when they are not available. Source Edit
STDERR_FILENO = 2
- File number of stderr; Source Edit
STDIN_FILENO = 0
- File number of stdin; Source Edit
STDOUT_FILENO = 1
- File number of stdout; Source Edit
Procs
proc `==`(x, y: SocketHandle): bool {.borrow, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc accept(a1: SocketHandle; a2: ptr SockAddr; a3: ptr SockLen): SocketHandle {. importc, header: "<sys/socket.h>", sideEffect, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc bindSocket(a1: SocketHandle; a2: ptr SockAddr; a3: SockLen): cint {. importc: "bind", header: "<sys/socket.h>", ...raises: [], tags: [], forbids: [].}
- is Posix's bind, because bind is a reserved word Source Edit
proc bsd_signal(a1: cint; a2: proc (x: pointer) {.noconv.}) {.importc, header: "<signal.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc CMSG_FIRSTHDR(mhdr: ptr Tmsghdr): ptr Tcmsghdr {.importc, header: "<sys/socket.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc CMSG_SPACE(len: csize_t): csize_t {.importc, header: "<sys/socket.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc endhostent() {.importc, header: "<netdb.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc endprotoent() {.importc, header: "<netdb.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc endservent() {.importc, header: "<netdb.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc execvpe(a1: cstring; a2: cstringArray; a3: cstringArray): cint {.importc, header: "<unistd.h>", sideEffect, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc freeAddrInfo(a1: ptr AddrInfo) {.importc: "freeaddrinfo", header: "<netdb.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc gai_strerror(a1: cint): cstring {.importc: "(char *)$1", header: "<netdb.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc getcontext(a1: var Ucontext): cint {.importc, header: "<ucontext.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc gethostbyname(a1: cstring): ptr Hostent {.importc, header: "<netdb.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc gethostent(): ptr Hostent {.importc, header: "<netdb.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc getnetbyname(a1: cstring): ptr Tnetent {.importc, header: "<netdb.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc getpeername(a1: SocketHandle; a2: ptr SockAddr; a3: ptr SockLen): cint {. importc, header: "<sys/socket.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc getprotobyname(a1: cstring): ptr Protoent {.importc, header: "<netdb.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc getprotobynumber(a1: cint): ptr Protoent {.importc, header: "<netdb.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc getprotoent(): ptr Protoent {.importc, header: "<netdb.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc getservbyname(a1, a2: cstring): ptr Servent {.importc, header: "<netdb.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc getservent(): ptr Servent {.importc, header: "<netdb.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc getsockname(a1: SocketHandle; a2: ptr SockAddr; a3: ptr SockLen): cint {. importc, header: "<sys/socket.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc getsockopt(a1: SocketHandle; a2, a3: cint; a4: pointer; a5: ptr SockLen): cint {. importc, header: "<sys/socket.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc iconv_close(a1: Iconv): cint {.importc, header: "<iconv.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc iconv_open(a1, a2: cstring): Iconv {.importc, header: "<iconv.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc if_freenameindex(a1: ptr Tif_nameindex) {.importc, header: "<net/if.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc if_nameindex(): ptr Tif_nameindex {.importc, header: "<net/if.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc if_nametoindex(a1: cstring): cint {.importc, header: "<net/if.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc IN6_IS_ADDR_LINKLOCAL(a1: ptr In6Addr): cint {.importc, header: "<netinet/in.h>", ...raises: [], tags: [], forbids: [].}
- Unicast link-local address. Source Edit
proc IN6_IS_ADDR_LOOPBACK(a1: ptr In6Addr): cint {.importc, header: "<netinet/in.h>", ...raises: [], tags: [], forbids: [].}
- Loopback address. Source Edit
proc IN6_IS_ADDR_MC_GLOBAL(a1: ptr In6Addr): cint {.importc, header: "<netinet/in.h>", ...raises: [], tags: [], forbids: [].}
- Multicast global address. Source Edit
proc IN6_IS_ADDR_MC_LINKLOCAL(a1: ptr In6Addr): cint {.importc, header: "<netinet/in.h>", ...raises: [], tags: [], forbids: [].}
- Multicast link-local address. Source Edit
proc IN6_IS_ADDR_MC_NODELOCAL(a1: ptr In6Addr): cint {.importc, header: "<netinet/in.h>", ...raises: [], tags: [], forbids: [].}
- Multicast node-local address. Source Edit
proc IN6_IS_ADDR_MC_ORGLOCAL(a1: ptr In6Addr): cint {.importc, header: "<netinet/in.h>", ...raises: [], tags: [], forbids: [].}
- Multicast organization-local address. Source Edit
proc IN6_IS_ADDR_MC_SITELOCAL(a1: ptr In6Addr): cint {.importc, header: "<netinet/in.h>", ...raises: [], tags: [], forbids: [].}
- Multicast site-local address. Source Edit
proc IN6_IS_ADDR_MULTICAST(a1: ptr In6Addr): cint {.importc, header: "<netinet/in.h>", ...raises: [], tags: [], forbids: [].}
- Multicast address. Source Edit
proc IN6_IS_ADDR_SITELOCAL(a1: ptr In6Addr): cint {.importc, header: "<netinet/in.h>", ...raises: [], tags: [], forbids: [].}
- Unicast site-local address. Source Edit
proc IN6_IS_ADDR_UNSPECIFIED(a1: ptr In6Addr): cint {.importc, header: "<netinet/in.h>", ...raises: [], tags: [], forbids: [].}
- Unspecified address. Source Edit
proc IN6_IS_ADDR_V4COMPAT(a1: ptr In6Addr): cint {.importc, header: "<netinet/in.h>", ...raises: [], tags: [], forbids: [].}
- IPv4-compatible address. Source Edit
proc IN6_IS_ADDR_V4MAPPED(a1: ptr In6Addr): cint {.importc, header: "<netinet/in.h>", ...raises: [], tags: [], forbids: [].}
- IPv4 mapped address. Source Edit
proc IN6ADDR_ANY_INIT(): In6Addr {.importc, header: "<netinet/in.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc IN6ADDR_LOOPBACK_INIT(): In6Addr {.importc, header: "<netinet/in.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc ioctl(f: FileHandle; device: uint): int {.importc: "ioctl", header: "<sys/ioctl.h>", varargs, ...tags: [WriteIOEffect], raises: [], forbids: [].}
- A system call for device-specific input/output operations and other operations which cannot be expressed by regular system calls Source Edit
proc localeconv(): ptr Lconv {.importc, header: "<locale.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc makecontext(a1: var Ucontext; a4: proc () {.noconv.}; a3: cint) {.varargs, importc, header: "<ucontext.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc mkstemp(tmpl: cstring): cint {.importc, header: "<stdlib.h>", sideEffect, ...raises: [], tags: [], forbids: [].}
-
Creates a unique temporary file.Warning: The tmpl argument is written to by mkstemp and thus can't be a string literal. If in doubt make a copy of the cstring before passing it in.Source Edit
proc mkstemps(tmpl: cstring; suffixlen: int): cint {.importc, header: "<stdlib.h>", sideEffect, ...raises: [], tags: [], forbids: [].}
-
Creates a unique temporary file.Warning: The tmpl argument is written to by mkstemps and thus can't be a string literal. If in doubt make a copy of the cstring before passing it in.Source Edit
proc munlockall(): cint {.importc, header: "<sys/mman.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc nl_langinfo(a1: Nl_item): cstring {.importc, header: "<langinfo.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc posix_spawn(a1: var Pid; a2: cstring; a3: var Tposix_spawn_file_actions; a4: var Tposix_spawnattr; a5, a6: cstringArray): cint {. importc, header: "<spawn.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc posix_spawn_file_actions_addclose(a1: var Tposix_spawn_file_actions; a2: cint): cint {.importc, header: "<spawn.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc posix_spawn_file_actions_adddup2(a1: var Tposix_spawn_file_actions; a2, a3: cint): cint {.importc, header: "<spawn.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc posix_spawn_file_actions_addopen(a1: var Tposix_spawn_file_actions; a2: cint; a3: cstring; a4: cint; a5: Mode): cint {. importc, header: "<spawn.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc posix_spawn_file_actions_destroy(a1: var Tposix_spawn_file_actions): cint {. importc, header: "<spawn.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc posix_spawn_file_actions_init(a1: var Tposix_spawn_file_actions): cint {. importc, header: "<spawn.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc posix_spawnattr_destroy(a1: var Tposix_spawnattr): cint {.importc, header: "<spawn.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc posix_spawnattr_getflags(a1: var Tposix_spawnattr; a2: var cshort): cint {. importc, header: "<spawn.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc posix_spawnattr_getpgroup(a1: var Tposix_spawnattr; a2: var Pid): cint {. importc, header: "<spawn.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc posix_spawnattr_getschedparam(a1: var Tposix_spawnattr; a2: var Sched_param): cint {. importc, header: "<spawn.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc posix_spawnattr_getschedpolicy(a1: var Tposix_spawnattr; a2: var cint): cint {. importc, header: "<spawn.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc posix_spawnattr_getsigdefault(a1: var Tposix_spawnattr; a2: var Sigset): cint {. importc, header: "<spawn.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc posix_spawnattr_getsigmask(a1: var Tposix_spawnattr; a2: var Sigset): cint {. importc, header: "<spawn.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc posix_spawnattr_init(a1: var Tposix_spawnattr): cint {.importc, header: "<spawn.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc posix_spawnattr_setflags(a1: var Tposix_spawnattr; a2: cint): cint {. importc, header: "<spawn.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc posix_spawnattr_setpgroup(a1: var Tposix_spawnattr; a2: Pid): cint {. importc, header: "<spawn.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc posix_spawnattr_setschedparam(a1: var Tposix_spawnattr; a2: var Sched_param): cint {. importc, header: "<spawn.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc posix_spawnattr_setschedpolicy(a1: var Tposix_spawnattr; a2: cint): cint {. importc, header: "<spawn.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc posix_spawnattr_setsigdefault(a1: var Tposix_spawnattr; a2: var Sigset): cint {. importc, header: "<spawn.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc posix_spawnattr_setsigmask(a1: var Tposix_spawnattr; a2: var Sigset): cint {. importc, header: "<spawn.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc posix_spawnp(a1: var Pid; a2: cstring; a3: var Tposix_spawn_file_actions; a4: var Tposix_spawnattr; a5, a6: cstringArray): cint {. importc, header: "<spawn.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc posix_typed_mem_get_info(a1: cint; a2: var Posix_typed_mem_info): cint {. importc, header: "<sys/mman.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_atfork(a1, a2, a3: proc () {.noconv.}): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_attr_destroy(a1: ptr Pthread_attr): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_attr_getdetachstate(a1: ptr Pthread_attr; a2: cint): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_attr_getguardsize(a1: ptr Pthread_attr; a2: var cint): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_attr_getinheritsched(a1: ptr Pthread_attr; a2: var cint): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_attr_getschedparam(a1: ptr Pthread_attr; a2: ptr Sched_param): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_attr_getschedpolicy(a1: ptr Pthread_attr; a2: var cint): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_attr_getscope(a1: ptr Pthread_attr; a2: var cint): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_attr_getstack(a1: ptr Pthread_attr; a2: var pointer; a3: var int): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_attr_getstackaddr(a1: ptr Pthread_attr; a2: var pointer): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_attr_getstacksize(a1: ptr Pthread_attr; a2: var int): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_attr_init(a1: ptr Pthread_attr): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_attr_setdetachstate(a1: ptr Pthread_attr; a2: cint): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_attr_setguardsize(a1: ptr Pthread_attr; a2: int): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_attr_setinheritsched(a1: ptr Pthread_attr; a2: cint): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_attr_setschedparam(a1: ptr Pthread_attr; a2: ptr Sched_param): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_attr_setschedpolicy(a1: ptr Pthread_attr; a2: cint): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_attr_setscope(a1: ptr Pthread_attr; a2: cint): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_attr_setstack(a1: ptr Pthread_attr; a2: pointer; a3: int): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_attr_setstackaddr(a1: ptr Pthread_attr; a2: pointer): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_attr_setstacksize(a1: ptr Pthread_attr; a2: int): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_barrier_destroy(a1: ptr Pthread_barrier): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_barrier_init(a1: ptr Pthread_barrier; a2: ptr Pthread_barrierattr; a3: cint): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_barrier_wait(a1: ptr Pthread_barrier): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_barrierattr_destroy(a1: ptr Pthread_barrierattr): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_barrierattr_init(a1: ptr Pthread_barrierattr): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_cancel(a1: Pthread): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_cleanup_pop(a1: cint) {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_cleanup_push(a1: proc (x: pointer) {.noconv.}; a2: pointer) {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_cond_broadcast(a1: ptr Pthread_cond): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_cond_destroy(a1: ptr Pthread_cond): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_cond_init(a1: ptr Pthread_cond; a2: ptr Pthread_condattr): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_cond_signal(a1: ptr Pthread_cond): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_cond_timedwait(a1: ptr Pthread_cond; a2: ptr Pthread_mutex; a3: ptr Timespec): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_cond_wait(a1: ptr Pthread_cond; a2: ptr Pthread_mutex): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_condattr_destroy(a1: ptr Pthread_condattr): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_condattr_getclock(a1: ptr Pthread_condattr; a2: var ClockId): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_condattr_init(a1: ptr Pthread_condattr): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_condattr_setclock(a1: ptr Pthread_condattr; a2: ClockId): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_create(a1: ptr Pthread; a2: ptr Pthread_attr; a3: proc (x: pointer): pointer {.noconv.}; a4: pointer): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_detach(a1: Pthread): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_equal(a1, a2: Pthread): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_exit(a1: pointer) {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_getconcurrency(): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_getschedparam(a1: Pthread; a2: var cint; a3: ptr Sched_param): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_getspecific(a1: Pthread_key): pointer {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_key_create(a1: ptr Pthread_key; a2: proc (x: pointer) {.noconv.}): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_key_delete(a1: Pthread_key): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_mutex_destroy(a1: ptr Pthread_mutex): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_mutex_getprioceiling(a1: ptr Pthread_mutex; a2: var cint): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_mutex_init(a1: ptr Pthread_mutex; a2: ptr Pthread_mutexattr): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_mutex_lock(a1: ptr Pthread_mutex): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_mutex_setprioceiling(a1: ptr Pthread_mutex; a2: cint; a3: var cint): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_mutex_timedlock(a1: ptr Pthread_mutex; a2: ptr Timespec): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_mutex_trylock(a1: ptr Pthread_mutex): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_mutex_unlock(a1: ptr Pthread_mutex): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_mutexattr_destroy(a1: ptr Pthread_mutexattr): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_mutexattr_getprioceiling(a1: ptr Pthread_mutexattr; a2: var cint): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_mutexattr_getprotocol(a1: ptr Pthread_mutexattr; a2: var cint): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_mutexattr_gettype(a1: ptr Pthread_mutexattr; a2: var cint): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_mutexattr_init(a1: ptr Pthread_mutexattr): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_mutexattr_setprioceiling(a1: ptr Pthread_mutexattr; a2: cint): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_mutexattr_setprotocol(a1: ptr Pthread_mutexattr; a2: cint): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_mutexattr_settype(a1: ptr Pthread_mutexattr; a2: cint): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_once(a1: ptr Pthread_once; a2: proc () {.noconv.}): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_rwlock_destroy(a1: ptr Pthread_rwlock): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_rwlock_init(a1: ptr Pthread_rwlock; a2: ptr Pthread_rwlockattr): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_rwlock_rdlock(a1: ptr Pthread_rwlock): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_rwlock_timedrdlock(a1: ptr Pthread_rwlock; a2: ptr Timespec): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_rwlock_timedwrlock(a1: ptr Pthread_rwlock; a2: ptr Timespec): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_rwlock_tryrdlock(a1: ptr Pthread_rwlock): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_rwlock_trywrlock(a1: ptr Pthread_rwlock): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_rwlock_unlock(a1: ptr Pthread_rwlock): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_rwlock_wrlock(a1: ptr Pthread_rwlock): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_rwlockattr_destroy(a1: ptr Pthread_rwlockattr): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_rwlockattr_init(a1: ptr Pthread_rwlockattr): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_self(): Pthread {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_setconcurrency(a1: cint): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_setschedparam(a1: Pthread; a2: cint; a3: ptr Sched_param): cint {. importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_setspecific(a1: Pthread_key; a2: pointer): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_spin_destroy(a1: ptr Pthread_spinlock): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_spin_init(a1: ptr Pthread_spinlock; a2: cint): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_spin_lock(a1: ptr Pthread_spinlock): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_spin_trylock(a1: ptr Pthread_spinlock): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_spin_unlock(a1: ptr Pthread_spinlock): cint {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc pthread_testcancel() {.importc, header: "<pthread.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc S_TYPEISMQ(buf: var Stat): bool {.importc, header: "<sys/stat.h>", ...raises: [], tags: [], forbids: [].}
- Test for a message queue. Source Edit
proc S_TYPEISSEM(buf: var Stat): bool {.importc, header: "<sys/stat.h>", ...raises: [], tags: [], forbids: [].}
- Test for a semaphore. Source Edit
proc S_TYPEISSHM(buf: var Stat): bool {.importc, header: "<sys/stat.h>", ...raises: [], tags: [], forbids: [].}
- Test for a shared memory object. Source Edit
proc S_TYPEISTMO(buf: var Stat): bool {.importc, header: "<sys/stat.h>", ...raises: [], tags: [], forbids: [].}
- Test macro for a typed memory object. Source Edit
proc sched_get_priority_max(a1: cint): cint {.importc, header: "<sched.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc sched_get_priority_min(a1: cint): cint {.importc, header: "<sched.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc sched_getparam(a1: Pid; a2: var Sched_param): cint {.importc, header: "<sched.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc sched_getscheduler(a1: Pid): cint {.importc, header: "<sched.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc sched_setparam(a1: Pid; a2: var Sched_param): cint {.importc, header: "<sched.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc sched_setscheduler(a1: Pid; a2: cint; a3: var Sched_param): cint {.importc, header: "<sched.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc sched_yield(): cint {.importc, header: "<sched.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc sem_destroy(a1: ptr Sem): cint {.importc, header: "<semaphore.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc sem_trywait(a1: ptr Sem): cint {.importc, header: "<semaphore.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc sem_unlink(a1: cstring): cint {.importc, header: "<semaphore.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc setcontext(a1: var Ucontext): cint {.importc, header: "<ucontext.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc sethostent(a1: cint) {.importc, header: "<netdb.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc setprotoent(a1: cint) {.importc, header: "<netdb.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc setservent(a1: cint) {.importc, header: "<netdb.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc setsockopt(a1: SocketHandle; a2, a3: cint; a4: pointer; a5: SockLen): cint {. importc, header: "<sys/socket.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc shm_unlink(a1: cstring): cint {.importc, header: "<sys/mman.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc sigaltstack(a1, a2: var Stack): cint {.importc, header: "<signal.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc sigemptyset(a1: var Sigset): cint {.importc, header: "<signal.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc sigfillset(a1: var Sigset): cint {.importc, header: "<signal.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc siginterrupt(a1, a2: cint): cint {.importc, header: "<signal.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc sigpending(a1: var Sigset): cint {.importc, header: "<signal.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc sigsuspend(a1: var Sigset): cint {.importc, header: "<signal.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc sockatmark(a1: cint): cint {.importc, header: "<sys/socket.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc socket(a1, a2, a3: cint): SocketHandle {.importc, header: "<sys/socket.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc swapcontext(a1, a2: var Ucontext): cint {.importc, header: "<ucontext.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc timer_delete(a1: Timer): cint {.importc, header: "<time.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc timer_getoverrun(a1: Timer): cint {.importc, header: "<time.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc timer_gettime(a1: Timer; a2: var Itimerspec): cint {.importc, header: "<time.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc timer_settime(a1: Timer; a2: cint; a3: var Itimerspec; a4: var Itimerspec): cint {. importc, header: "<time.h>", ...raises: [], tags: [], forbids: [].}
- Source Edit
proc utimes(path: cstring; times: ptr array[2, Timeval]): int {. importc: "utimes", header: "<sys/time.h>", sideEffect, ...raises: [], tags: [], forbids: [].}
-
Sets file access and modification times.
Pass the filename and an array of times to set the access and modification times respectively. If you pass nil as the array both attributes will be set to the current time.
Returns zero on success.
For more information read http://www.unix.com/man-page/posix/3/utimes/.
Source Edit proc WEXITSTATUS(s: cint): cint {.importc, header: "<sys/wait.h>", ...raises: [], tags: [], forbids: [].}
- Exit code, if WIFEXITED(s) Source Edit
proc WIFCONTINUED(s: cint): bool {.importc, header: "<sys/wait.h>", ...raises: [], tags: [], forbids: [].}
- True if child has been continued. Source Edit
proc WIFSIGNALED(s: cint): bool {.importc, header: "<sys/wait.h>", ...raises: [], tags: [], forbids: [].}
- True if child exited due to uncaught signal. Source Edit
proc WIFSTOPPED(s: cint): bool {.importc, header: "<sys/wait.h>", ...raises: [], tags: [], forbids: [].}
- True if child is currently stopped. Source Edit
Templates
template onSignal(signals: varargs[cint]; body: untyped)
-
Setup code to be executed when Unix signals are received. The currently handled signal is injected as sig into the calling scope.
Example:
from std/posix import SIGINT, SIGTERM, onSignal onSignal(SIGINT, SIGTERM): echo "bye from signal ", sig
Source Edit