# Generated by detect.nim # var E2BIG* {.importc: "E2BIG", header: "".}: cint var EACCES* {.importc: "EACCES", header: "".}: cint var EADDRINUSE* {.importc: "EADDRINUSE", header: "".}: cint var EADDRNOTAVAIL* {.importc: "EADDRNOTAVAIL", header: "".}: cint var EAFNOSUPPORT* {.importc: "EAFNOSUPPORT", header: "".}: cint var EAGAIN* {.importc: "EAGAIN", header: "".}: cint var EALREADY* {.importc: "EALREADY", header: "".}: cint var EBADF* {.importc: "EBADF", header: "".}: cint var EBADMSG* {.importc: "EBADMSG", header: "".}: cint var EBUSY* {.importc: "EBUSY", header: "".}: cint var ECANCELED* {.importc: "ECANCELED", header: "".}: cint var ECHILD* {.importc: "ECHILD", header: "".}: cint var ECONNABORTED* {.importc: "ECONNABORTED", header: "".}: cint var ECONNREFUSED* {.importc: "ECONNREFUSED", header: "".}: cint var ECONNRESET* {.importc: "ECONNRESET", header: "".}: cint var EDEADLK* {.importc: "EDEADLK", header: "".}: cint var EDESTADDRREQ* {.importc: "EDESTADDRREQ", header: "".}: cint var EDOM* {.importc: "EDOM", header: "".}: cint var EDQUOT* {.importc: "EDQUOT", header: "".}: cint var EEXIST* {.importc: "EEXIST", header: "".}: cint var EFAULT* {.importc: "EFAULT", header: "".}: cint var EFBIG* {.importc: "EFBIG", header: "".}: cint var EHOSTUNREACH* {.importc: "EHOSTUNREACH", header: "".}: cint var EIDRM* {.importc: "EIDRM", header: "".}: cint var EILSEQ* {.importc: "EILSEQ", header: "".}: cint var EINPROGRESS* {.importc: "EINPROGRESS", header: "".}: cint var EINTR* {.importc: "EINTR", header: "".}: cint var EINVAL* {.importc: "EINVAL", header: "".}: cint var EIO* {.importc: "EIO", header: "".}: cint var EISCONN* {.importc: "EISCONN", header: "".}: cint var EISDIR* {.importc: "EISDIR", header: "".}: cint var ELOOP* {.importc: "ELOOP", header: "".}: cint var EMFILE* {.importc: "EMFILE", header: "".}: cint var EMLINK* {.importc: "EMLINK", header: "".}: cint var EMSGSIZE* {.importc: "EMSGSIZE", header: "".}: cint var EMULTIHOP* {.importc: "EMULTIHOP", header: "".}: cint var ENAMETOOLONG* {.importc: "ENAMETOOLONG", header: "".}: cint var ENETDOWN* {.importc: "ENETDOWN", header: "".}: cint var ENETRESET* {.importc: "ENETRESET", header: "".}: cint var ENETUNREACH* {.importc: "ENETUNREACH", header: "".}: cint var ENFILE* {.importc: "ENFILE", header: "".}: cint var ENOBUFS* {.importc: "ENOBUFS", header: "".}: cint var ENODATA* {.importc: "ENODATA", header: "".}: cint var ENODEV* {.importc: "ENODEV", header: "".}: cint var ENOENT* {.importc: "ENOENT", header: "".}: cint var ENOEXEC* {.importc: "ENOEXEC", header: "".}: cint var ENOLCK* {.importc: "ENOLCK", header: "".}: cint var ENOLINK* {.importc: "ENOLINK", header: "".}: cint var ENOMEM* {.importc: "ENOMEM", header: "".}: cint var ENOMSG* {.importc: "ENOMSG", header: "".}: cint var ENOPROTOOPT* {.importc: "ENOPROTOOPT", header: "".}: cint var ENOSPC* {.importc: "ENOSPC", header: "".}: cint var ENOSR* {.importc: "ENOSR", header: "".}: cint var ENOSTR* {.importc: "ENOSTR", header: "".}: cint var ENOSYS* {.importc: "ENOSYS", header: "".}: cint var ENOTCONN* {.importc: "ENOTCONN", header: "".}: cint var ENOTDIR* {.importc: "ENOTDIR", header: "".}: cint var ENOTEMPTY* {.importc: "ENOTEMPTY", header: "".}: cint var ENOTSOCK* {.importc: "ENOTSOCK", header: "".}: cint var ENOTSUP* {.importc: "ENOTSUP", header: "".}: cint var ENOTTY* {.importc: "ENOTTY", header: "".}: cint var ENXIO* {.importc: "ENXIO", header: "".}: cint var EOPNOTSUPP* {.importc: "EOPNOTSUPP", header: "".}: cint var EOVERFLOW* {.importc: "EOVERFLOW", header: "".}: cint var EPERM* {.importc: "EPERM", header: "".}: cint var EPIPE* {.importc: "EPIPE", header: "".}: cint var EPROTO* {.importc: "EPROTO", header: "".}: cint var EPROTONOSUPPORT* {.importc: "EPROTONOSUPPORT", header: "".}: cint var EPROTOTYPE* {.importc: "EPROTOTYPE", header: "".}: cint var ERANGE* {.importc: "ERANGE", header: "".}: cint var EROFS* {.importc: "EROFS", header: "".}: cint var ESPIPE* {.importc: "ESPIPE", header: "".}: cint var ESRCH* {.importc: "ESRCH", header: "".}: cint var ESTALE* {.importc: "ESTALE", header: "".}: cint var ETIME* {.importc: "ETIME", header: "".}: cint var ETIMEDOUT* {.importc: "ETIMEDOUT", header: "".}: cint var ETXTBSY* {.importc: "ETXTBSY", header: "".}: cint var EWOULDBLOCK* {.importc: "EWOULDBLOCK", header: "".}: cint var EXDEV* {.importc: "EXDEV", header: "".}: cint # var F_GETFD* {.importc: "F_GETFD", header: "".}: cint # var F_SETFD* {.importc: "F_SETFD", header: "".}: cint var F_GETFL* {.importc: "F_GETFL", header: "".}: cint var F_SETFL* {.importc: "F_SETFL", header: "".}: cint # var F_GETLK* {.importc: "F_GETLK", header: "".}: cint # var F_SETLK* {.importc: "F_SETLK", header: "".}: cint # var F_SETLKW* {.importc: "F_SETLKW", header: "".}: cint # var F_GETOWN* {.importc: "F_GETOWN", header: "".}: cint # var F_SETOWN* {.importc: "F_SETOWN", header: "".}: cint # var FD_CLOEXEC* {.importc: "FD_CLOEXEC", header: "".}: cint # var F_RDLCK* {.importc: "F_RDLCK", header: "".}: cint # var F_UNLCK* {.importc: "F_UNLCK", header: "".}: cint # var F_WRLCK* {.importc: "F_WRLCK", header: "".}: cint var O_CREAT* {.importc: "O_CREAT", header: "".}: cint var O_EXCL* {.importc: "O_EXCL", header: "".}: cint # var O_NOCTTY* {.importc: "O_NOCTTY", header: "".}: cint var O_TRUNC* {.importc: "O_TRUNC", header: "".}: cint var O_APPEND* {.importc: "O_APPEND", header: "".}: cint # var O_DSYNC* {.importc: "O_DSYNC", header: "".}: cint var O_NONBLOCK* {.importc: "O_NONBLOCK", header: "".}: cint # var O_RSYNC* {.importc: "O_RSYNC", header: "".}: cint # var O_SYNC* {.importc: "O_SYNC", header: "".}: cint # var O_ACCMODE* {.importc: "O_ACCMODE", header: "".}: cint var O_RDONLY* {.importc: "O_RDONLY", header: "".}: cint var O_RDWR* {.importc: "O_RDWR", header: "".}: cint var O_WRONLY* {.importc: "O_WRONLY", header: "".}: cint # var O_CLOEXEC* {.importc: "O_CLOEXEC", header: "".}: cint # # # var LC_ALL* {.importc: "LC_ALL", header: "".}: cint # var LC_COLLATE* {.importc: "LC_COLLATE", header: "".}: cint # var LC_CTYPE* {.importc: "LC_CTYPE", header: "".}: cint # var LC_MESSAGES* {.importc: "LC_MESSAGES", header: "".}: cint # var LC_MONETARY* {.importc: "LC_MONETARY", header: "".}: cint # var LC_NUMERIC* {.importc: "LC_NUMERIC", header: "".}: cint # var LC_TIME* {.importc: "LC_TIME", header: "".}: cint # var HOST_NOT_FOUND* {.importc: "HOST_NOT_FOUND", header: "".}: cint var NO_DATA* {.importc: "NO_DATA", header: "".}: cint var NO_RECOVERY* {.importc: "NO_RECOVERY", header: "".}: cint var TRY_AGAIN* {.importc: "TRY_AGAIN", header: "".}: cint var AI_PASSIVE* {.importc: "AI_PASSIVE", header: "".}: cint var AI_CANONNAME* {.importc: "AI_CANONNAME", header: "".}: cint var AI_NUMERICHOST* {.importc: "AI_NUMERICHOST", header: "".}: cint var AI_NUMERICSERV* {.importc: "AI_NUMERICSERV", header: "".}: cint var AI_V4MAPPED* {.importc: "AI_V4MAPPED", header: "".}: cint var AI_ALL* {.importc: "AI_ALL", header: "".}: cint var AI_ADDRCONFIG* {.importc: "AI_ADDRCONFIG", header: "".}: cint var NI_NOFQDN* {.importc: "NI_NOFQDN", header: "".}: cint var NI_NUMERICHOST* {.importc: "NI_NUMERICHOST", header: "".}: cint var NI_NAMEREQD* {.importc: "NI_NAMEREQD", header: "".}: cint var NI_NUMERICSERV* {.importc: "NI_NUMERICSERV", header: "".}: cint var NI_DGRAM* {.importc: "NI_DGRAM", header: "".}: cint var EAI_AGAIN* {.importc: "EAI_AGAIN", header: "".}: cint var EAI_BADFLAGS* {.importc: "EAI_BADFLAGS", header: "".}: cint var EAI_FAIL* {.importc: "EAI_FAIL", header: "".}: cint var EAI_FAMILY* {.importc: "EAI_FAMILY", header: "".}: cint var EAI_MEMORY* {.importc: "EAI_MEMORY", header: "".}: cint var EAI_NONAME* {.importc: "EAI_NONAME", header: "".}: cint var EAI_SERVICE* {.importc: "EAI_SERVICE", header: "".}: cint var EAI_SOCKTYPE* {.importc: "EAI_SOCKTYPE", header: "".}: cint var LWIP_DNS_API_DECLARE_H_ERRNO* {.importc: "LWIP_DNS_API_DECLARE_H_ERRNO", header: "".}: cint var LWIP_DNS_API_DEFINE_ERRORS* {.importc: "LWIP_DNS_API_DEFINE_ERRORS", header: "".}: cint var LWIP_DNS_API_DEFINE_FLAGS* {.importc: "LWIP_DNS_API_DEFINE_FLAGS", header: "".}: cint var LWIP_DNS_API_DECLARE_STRUCTS* {.importc: "LWIP_DNS_API_DECLARE_STRUCTS", header: "".}: cint var NETDB_ELEM_SIZE* {.importc: "NETDB_ELEM_SIZE", header: "".}: cint # var ENABLE_LOOPBACK* {.importc: "ENABLE_LOOPBACK", header: "".}: cint var NETIF_MAX_HWADDR_LEN* {.importc: "NETIF_MAX_HWADDR_LEN", header: "".}: cint var NETIF_NAMESIZE* {.importc: "NETIF_NAMESIZE", header: "".}: cint var NETIF_FLAG_UP* {.importc: "NETIF_FLAG_UP", header: "".}: cint var NETIF_FLAG_BROADCAST* {.importc: "NETIF_FLAG_BROADCAST", header: "".}: cint var NETIF_FLAG_LINK_UP* {.importc: "NETIF_FLAG_LINK_UP", header: "".}: cint var NETIF_FLAG_ETHARP* {.importc: "NETIF_FLAG_ETHARP", header: "".}: cint var NETIF_FLAG_ETHERNET* {.importc: "NETIF_FLAG_ETHERNET", header: "".}: cint var NETIF_FLAG_IGMP* {.importc: "NETIF_FLAG_IGMP", header: "".}: cint var NETIF_FLAG_MLD6* {.importc: "NETIF_FLAG_MLD6", header: "".}: cint var NETIF_FLAG_GARP* {.importc: "NETIF_FLAG_GARP", header: "".}: cint var NETIF_CHECKSUM_GEN_IP* {.importc: "NETIF_CHECKSUM_GEN_IP", header: "".}: cint var NETIF_CHECKSUM_GEN_UDP* {.importc: "NETIF_CHECKSUM_GEN_UDP", header: "".}: cint var NETIF_CHECKSUM_GEN_TCP* {.importc: "NETIF_CHECKSUM_GEN_TCP", header: "".}: cint var NETIF_CHECKSUM_GEN_ICMP* {.importc: "NETIF_CHECKSUM_GEN_ICMP", header: "".}: cint var NETIF_CHECKSUM_GEN_ICMP6* {.importc: "NETIF_CHECKSUM_GEN_ICMP6", header: "".}: cint var NETIF_CHECKSUM_CHECK_IP* {.importc: "NETIF_CHECKSUM_CHECK_IP", header: "".}: cint var NETIF_CHECKSUM_CHECK_UDP* {.importc: "NETIF_CHECKSUM_CHECK_UDP", header: "".}: cint var NETIF_CHECKSUM_CHECK_TCP* {.importc: "NETIF_CHECKSUM_CHECK_TCP", header: "".}: cint var NETIF_CHECKSUM_CHECK_ICMP* {.importc: "NETIF_CHECKSUM_CHECK_ICMP", header: "".}: cint var NETIF_CHECKSUM_CHECK_ICMP6* {.importc: "NETIF_CHECKSUM_CHECK_ICMP6", header: "".}: cint var NETIF_CHECKSUM_ENABLE_ALL* {.importc: "NETIF_CHECKSUM_ENABLE_ALL", header: "".}: cint var NETIF_CHECKSUM_DISABLE_ALL* {.importc: "NETIF_CHECKSUM_DISABLE_ALL", header: "".}: cint var NETIF_ADDR_IDX_MAX* {.importc: "NETIF_ADDR_IDX_MAX", header: "".}: cint var LWIP_NETIF_USE_HINTS* {.importc: "LWIP_NETIF_USE_HINTS", header: "".}: cint var NETIF_NO_INDEX* {.importc: "NETIF_NO_INDEX", header: "".}: cint var LWIP_NSC_NONE* {.importc: "LWIP_NSC_NONE", header: "".}: cint var LWIP_NSC_NETIF_ADDED* {.importc: "LWIP_NSC_NETIF_ADDED", header: "".}: cint var LWIP_NSC_NETIF_REMOVED* {.importc: "LWIP_NSC_NETIF_REMOVED", header: "".}: cint var LWIP_NSC_LINK_CHANGED* {.importc: "LWIP_NSC_LINK_CHANGED", header: "".}: cint var LWIP_NSC_STATUS_CHANGED* {.importc: "LWIP_NSC_STATUS_CHANGED", header: "".}: cint var LWIP_NSC_IPV4_ADDRESS_CHANGED* {.importc: "LWIP_NSC_IPV4_ADDRESS_CHANGED", header: "".}: cint var LWIP_NSC_IPV4_GATEWAY_CHANGED* {.importc: "LWIP_NSC_IPV4_GATEWAY_CHANGED", header: "".}: cint var LWIP_NSC_IPV4_NETMASK_CHANGED* {.importc: "LWIP_NSC_IPV4_NETMASK_CHANGED", header: "".}: cint var LWIP_NSC_IPV4_SETTINGS_CHANGED* {.importc: "LWIP_NSC_IPV4_SETTINGS_CHANGED", header: "".}: cint var LWIP_NSC_IPV6_SET* {.importc: "LWIP_NSC_IPV6_SET", header: "".}: cint var LWIP_NSC_IPV6_ADDR_STATE_CHANGED* {.importc: "LWIP_NSC_IPV6_ADDR_STATE_CHANGED", header: "".}: cint #define NETIF_DECLARE_EXT_CALLBACK(name) # var IF_NAMESIZE* {.importc: "IF_NAMESIZE", header: "".}: cint # var IPPROTO_IP* {.importc: "IPPROTO_IP", header: "".}: cint var IPPROTO_IPV6* {.importc: "IPPROTO_IPV6", header: "".}: cint var IPPROTO_ICMP* {.importc: "IPPROTO_ICMP", header: "".}: cint var IPPROTO_ICMPV6* {.importc: "IPPROTO_ICMPV6", header: "".}: cint var IPPROTO_RAW* {.importc: "IPPROTO_RAW", header: "".}: cint var IPPROTO_TCP* {.importc: "IPPROTO_TCP", header: "".}: cint var IPPROTO_UDP* {.importc: "IPPROTO_UDP", header: "".}: cint var INADDR_ANY* {.importc: "INADDR_ANY", header: "".}: InAddrScalar var INADDR_LOOPBACK* {.importc: "INADDR_LOOPBACK", header: "".}: InAddrScalar var INADDR_BROADCAST* {.importc: "INADDR_BROADCAST", header: "".}: InAddrScalar var INET_ADDRSTRLEN* {.importc: "INET_ADDRSTRLEN", header: "".}: cint var INET6_ADDRSTRLEN* {.importc: "INET6_ADDRSTRLEN", header: "".}: cint var IPV6_JOIN_GROUP* {.importc: "IPV6_JOIN_GROUP", header: "".}: cint var IPV6_LEAVE_GROUP* {.importc: "IPV6_LEAVE_GROUP", header: "".}: cint var IPV6_MULTICAST_HOPS* {.importc: "IPV6_MULTICAST_HOPS", header: "".}: cint var IPV6_MULTICAST_IF* {.importc: "IPV6_MULTICAST_IF", header: "".}: cint var IPV6_MULTICAST_LOOP* {.importc: "IPV6_MULTICAST_LOOP", header: "".}: cint var IPV6_UNICAST_HOPS* {.importc: "IPV6_UNICAST_HOPS", header: "".}: cint var IPV6_V6ONLY* {.importc: "IPV6_V6ONLY", header: "".}: cint # const TCP_NODELAY* = 0x01 # don't delay send to coalesce packets const TCP_KEEPALIVE* = 0x02 # send KEEPALIVE probes when idle for pcb->keep_idle milliseconds const TCP_KEEPIDLE* = 0x03 # set pcb->keep_idle - Same as TCP_KEEPALIVE, but use seconds for get/setsockopt const TCP_KEEPINTVL* = 0x04 # set pcb->keep_intvl - Use seconds for get/setsockopt const TCP_KEEPCNT* = 0x05 # set pcb->keep_cnt - Use number of probes sent for get/setsockopt # # var NL_SETD* {.importc: "NL_SETD", header: "".}: cint # var NL_CAT_LOCALE* {.importc: "NL_CAT_LOCALE", header: "".}: cint # # var POLLIN* {.importc: "POLLIN", header: "".}: cshort # var POLLRDNORM* {.importc: "POLLRDNORM", header: "".}: cshort # var POLLRDBAND* {.importc: "POLLRDBAND", header: "".}: cshort # var POLLPRI* {.importc: "POLLPRI", header: "".}: cshort # var POLLOUT* {.importc: "POLLOUT", header: "".}: cshort # var POLLWRNORM* {.importc: "POLLWRNORM", header: "".}: cshort # var POLLWRBAND* {.importc: "POLLWRBAND", header: "".}: cshort # var POLLERR* {.importc: "POLLERR", header: "".}: cshort # var POLLHUP* {.importc: "POLLHUP", header: "".}: cshort # var POLLNVAL* {.importc: "POLLNVAL", header: "".}: cshort # var PTHREAD_STACK_MIN* {.importc: "PTHREAD_STACK_MIN", header: "".}: cint # var PTHREAD_BARRIER_SERIAL_THREAD* {.importc: "PTHREAD_BARRIER_SERIAL_THREAD", header: "".}: cint # var PTHREAD_CANCEL_ASYNCHRONOUS* {.importc: "PTHREAD_CANCEL_ASYNCHRONOUS", header: "".}: cint # var PTHREAD_CANCEL_ENABLE* {.importc: "PTHREAD_CANCEL_ENABLE", header: "".}: cint # var PTHREAD_CANCEL_DEFERRED* {.importc: "PTHREAD_CANCEL_DEFERRED", header: "".}: cint # var PTHREAD_CANCEL_DISABLE* {.importc: "PTHREAD_CANCEL_DISABLE", header: "".}: cint # var PTHREAD_CREATE_DETACHED* {.importc: "PTHREAD_CREATE_DETACHED", header: "".}: cint # var PTHREAD_CREATE_JOINABLE* {.importc: "PTHREAD_CREATE_JOINABLE", header: "".}: cint # var PTHREAD_EXPLICIT_SCHED* {.importc: "PTHREAD_EXPLICIT_SCHED", header: "".}: cint # var PTHREAD_INHERIT_SCHED* {.importc: "PTHREAD_INHERIT_SCHED", header: "".}: cint # var PTHREAD_MUTEX_DEFAULT* {.importc: "PTHREAD_MUTEX_DEFAULT", header: "".}: cint # var PTHREAD_MUTEX_ERRORCHECK* {.importc: "PTHREAD_MUTEX_ERRORCHECK", header: "".}: cint # var PTHREAD_MUTEX_NORMAL* {.importc: "PTHREAD_MUTEX_NORMAL", header: "".}: cint # var PTHREAD_MUTEX_RECURSIVE* {.importc: "PTHREAD_MUTEX_RECURSIVE", header: "".}: cint # var PTHREAD_PRIO_INHERIT* {.importc: "PTHREAD_PRIO_INHERIT", header: "".}: cint # var PTHREAD_PRIO_NONE* {.importc: "PTHREAD_PRIO_NONE", header: "".}: cint # var PTHREAD_PRIO_PROTECT* {.importc: "PTHREAD_PRIO_PROTECT", header: "".}: cint # var PTHREAD_PROCESS_SHARED* {.importc: "PTHREAD_PROCESS_SHARED", header: "".}: cint # var PTHREAD_PROCESS_PRIVATE* {.importc: "PTHREAD_PROCESS_PRIVATE", header: "".}: cint # var PTHREAD_SCOPE_PROCESS* {.importc: "PTHREAD_SCOPE_PROCESS", header: "".}: cint # var PTHREAD_SCOPE_SYSTEM* {.importc: "PTHREAD_SCOPE_SYSTEM", header: "".}: cint # # # var SCHED_FIFO* {.importc: "SCHED_FIFO", header: "".}: cint # var SCHED_RR* {.importc: "SCHED_RR", header: "".}: cint # var SCHED_SPORADIC* {.importc: "SCHED_SPORADIC", header: "".}: cint # var SCHED_OTHER* {.importc: "SCHED_OTHER", header: "".}: cint # var SEM_FAILED* {.importc: "SEM_FAILED", header: "".}: pointer # # # var SIGEV_NONE* {.importc: "SIGEV_NONE", header: "".}: cint # var SIGEV_SIGNAL* {.importc: "SIGEV_SIGNAL", header: "".}: cint # var SIGEV_THREAD* {.importc: "SIGEV_THREAD", header: "".}: cint # var SIGABRT* {.importc: "SIGABRT", header: "".}: cint # var SIGALRM* {.importc: "SIGALRM", header: "".}: cint # var SIGBUS* {.importc: "SIGBUS", header: "".}: cint # var SIGCHLD* {.importc: "SIGCHLD", header: "".}: cint # var SIGCONT* {.importc: "SIGCONT", header: "".}: cint # var SIGFPE* {.importc: "SIGFPE", header: "".}: cint # var SIGHUP* {.importc: "SIGHUP", header: "".}: cint # var SIGILL* {.importc: "SIGILL", header: "".}: cint # var SIGINT* {.importc: "SIGINT", header: "".}: cint # var SIGKILL* {.importc: "SIGKILL", header: "".}: cint # var SIGPIPE* {.importc: "SIGPIPE", header: "".}: cint # var SIGQUIT* {.importc: "SIGQUIT", header: "".}: cint # var SIGSEGV* {.importc: "SIGSEGV", header: "".}: cint # var SIGSTOP* {.importc: "SIGSTOP", header: "".}: cint # var SIGTERM* {.importc: "SIGTERM", header: "".}: cint # var SIGTSTP* {.importc: "SIGTSTP", header: "".}: cint # var SIGTTIN* {.importc: "SIGTTIN", header: "".}: cint # var SIGTTOU* {.importc: "SIGTTOU", header: "".}: cint # var SIGUSR1* {.importc: "SIGUSR1", header: "".}: cint # var SIGUSR2* {.importc: "SIGUSR2", header: "".}: cint # var SIGPOLL* {.importc: "SIGPOLL", header: "".}: cint # var SIGPROF* {.importc: "SIGPROF", header: "".}: cint # var SIGSYS* {.importc: "SIGSYS", header: "".}: cint # var SIGTRAP* {.importc: "SIGTRAP", header: "".}: cint # var SIGURG* {.importc: "SIGURG", header: "".}: cint # var SIGVTALRM* {.importc: "SIGVTALRM", header: "".}: cint # var SIGXCPU* {.importc: "SIGXCPU", header: "".}: cint # var SIGXFSZ* {.importc: "SIGXFSZ", header: "".}: cint # var SA_NOCLDSTOP* {.importc: "SA_NOCLDSTOP", header: "".}: cint # var SIG_BLOCK* {.importc: "SIG_BLOCK", header: "".}: cint # var SIG_UNBLOCK* {.importc: "SIG_UNBLOCK", header: "".}: cint # var SIG_SETMASK* {.importc: "SIG_SETMASK", header: "".}: cint # var SA_ONSTACK* {.importc: "SA_ONSTACK", header: "".}: cint # var SA_RESETHAND* {.importc: "SA_RESETHAND", header: "".}: cint # var SA_RESTART* {.importc: "SA_RESTART", header: "".}: cint # var SA_SIGINFO* {.importc: "SA_SIGINFO", header: "".}: cint # var SA_NOCLDWAIT* {.importc: "SA_NOCLDWAIT", header: "".}: cint # var SA_NODEFER* {.importc: "SA_NODEFER", header: "".}: cint # var SS_ONSTACK* {.importc: "SS_ONSTACK", header: "".}: cint # var SS_DISABLE* {.importc: "SS_DISABLE", header: "".}: cint # var MINSIGSTKSZ* {.importc: "MINSIGSTKSZ", header: "".}: cint # var SIGSTKSZ* {.importc: "SIGSTKSZ", header: "".}: cint # var SIG_HOLD* {.importc: "SIG_HOLD", header: "".}: Sighandler # var SIG_DFL* {.importc: "SIG_DFL", header: "".}: Sighandler # var SIG_ERR* {.importc: "SIG_ERR", header: "".}: Sighandler # var SIG_IGN* {.importc: "SIG_IGN", header: "".}: Sighandler # # # var IPC_CREAT* {.importc: "IPC_CREAT", header: "".}: cint # var IPC_EXCL* {.importc: "IPC_EXCL", header: "".}: cint # var IPC_NOWAIT* {.importc: "IPC_NOWAIT", header: "".}: cint # var IPC_PRIVATE* {.importc: "IPC_PRIVATE", header: "".}: cint # var IPC_RMID* {.importc: "IPC_RMID", header: "".}: cint # var IPC_SET* {.importc: "IPC_SET", header: "".}: cint # var IPC_STAT* {.importc: "IPC_STAT", header: "".}: cint # # # var PROT_READ* {.importc: "PROT_READ", header: "".}: cint # var PROT_WRITE* {.importc: "PROT_WRITE", header: "".}: cint # var PROT_EXEC* {.importc: "PROT_EXEC", header: "".}: cint # var PROT_NONE* {.importc: "PROT_NONE", header: "".}: cint # var MAP_ANONYMOUS* {.importc: "MAP_ANONYMOUS", header: "".}: cint # var MAP_FIXED_NOREPLACE* {.importc: "MAP_FIXED_NOREPLACE", header: "".}: cint # var MAP_NORESERVE* {.importc: "MAP_NORESERVE", header: "".}: cint # var MAP_SHARED* {.importc: "MAP_SHARED", header: "".}: cint # var MAP_PRIVATE* {.importc: "MAP_PRIVATE", header: "".}: cint # var MAP_FIXED* {.importc: "MAP_FIXED", header: "".}: cint # var MS_ASYNC* {.importc: "MS_ASYNC", header: "".}: cint # var MS_SYNC* {.importc: "MS_SYNC", header: "".}: cint # var MS_INVALIDATE* {.importc: "MS_INVALIDATE", header: "".}: cint # var MCL_CURRENT* {.importc: "MCL_CURRENT", header: "".}: cint # var MCL_FUTURE* {.importc: "MCL_FUTURE", header: "".}: cint # var MAP_FAILED* {.importc: "MAP_FAILED", header: "".}: pointer # var POSIX_MADV_NORMAL* {.importc: "POSIX_MADV_NORMAL", header: "".}: cint # var POSIX_MADV_SEQUENTIAL* {.importc: "POSIX_MADV_SEQUENTIAL", header: "".}: cint # var POSIX_MADV_RANDOM* {.importc: "POSIX_MADV_RANDOM", header: "".}: cint # var POSIX_MADV_WILLNEED* {.importc: "POSIX_MADV_WILLNEED", header: "".}: cint # var POSIX_MADV_DONTNEED* {.importc: "POSIX_MADV_DONTNEED", header: "".}: cint # var POSIX_TYPED_MEM_ALLOCATE* {.importc: "POSIX_TYPED_MEM_ALLOCATE", header: "".}: cint # var POSIX_TYPED_MEM_ALLOCATE_CONTIG* {.importc: "POSIX_TYPED_MEM_ALLOCATE_CONTIG", header: "".}: cint # var POSIX_TYPED_MEM_MAP_ALLOCATABLE* {.importc: "POSIX_TYPED_MEM_MAP_ALLOCATABLE", header: "".}: cint # # var RLIMIT_NOFILE* {.importc: "RLIMIT_NOFILE", header: "".}: cint var FD_MAX* {.importc: "CONFIG_LWIP_MAX_SOCKETS", header: "".}: cint # var FD_SETSIZE* {.importc: "FD_SETSIZE", header: "".}: cint # # struct msghdr->msg_flags bit field values const MSG_TRUNC* = 0x04 const MSG_CTRUNC* = 0x08 # Flags we can use with send and recv. const MSG_PEEK* = 0x01 # Peeks at an incoming message const MSG_WAITALL* = 0x02 # Unimplemented: Requests that the function block until the full amount of data requested can be returned const MSG_OOB* = 0x04 # Unimplemented: Requests out-of-band data. The significance and semantics of out-of-band data are protocol-specific const MSG_DONTWAIT* = 0x08 # Nonblocking i/o for this operation only const MSG_MORE* = 0x10 # Sender will send more # const MSG_NOSIGNAL* = 0x20 # Uninmplemented: Requests not to send the SIGPIPE signal if an attempt to send is made on a stream-oriented socket that is no longer connected. # Alternately, they can defined like this, but the above seems better when they're known/stable values: # var MSG_TRUNC* {.importc: "MSG_TRUNC", header: "".}: cint # var MSG_CTRUNC* {.importc: "MSG_CTRUNC", header: "".}: cint # var MSG_DONTROUTE* {.importc: "MSG_DONTROUTE", header: "".}: cint # not defined in lwip # var MSG_EOR* {.importc: "MSG_EOR", header: "".}: cint # not defined in lwip # var MSG_OOB* {.importc: "MSG_OOB", header: "".}: cint # var SCM_RIGHTS* {.importc: "SCM_RIGHTS", header: "".}: cint var SO_ACCEPTCONN* {.importc: "SO_ACCEPTCONN", header: "".}: cint var SO_BROADCAST* {.importc: "SO_BROADCAST", header: "".}: cint var SO_DEBUG* {.importc: "SO_DEBUG", header: "".}: cint var SO_DONTROUTE* {.importc: "SO_DONTROUTE", header: "".}: cint var SO_ERROR* {.importc: "SO_ERROR", header: "".}: cint var SO_KEEPALIVE* {.importc: "SO_KEEPALIVE", header: "".}: cint var SO_LINGER* {.importc: "SO_LINGER", header: "".}: cint var SO_OOBINLINE* {.importc: "SO_OOBINLINE", header: "".}: cint var SO_RCVBUF* {.importc: "SO_RCVBUF", header: "".}: cint var SO_RCVLOWAT* {.importc: "SO_RCVLOWAT", header: "".}: cint var SO_RCVTIMEO* {.importc: "SO_RCVTIMEO", header: "".}: cint var SO_REUSEADDR* {.importc: "SO_REUSEADDR", header: "".}: cint var SO_SNDBUF* {.importc: "SO_SNDBUF", header: "".}: cint var SO_SNDLOWAT* {.importc: "SO_SNDLOWAT", header: "".}: cint var SO_SNDTIMEO* {.importc: "SO_SNDTIMEO", header: "".}: cint var SO_TYPE* {.importc: "SO_TYPE", header: "".}: cint var SOCK_DGRAM* {.importc: "SOCK_DGRAM", header: "".}: cint var SOCK_RAW* {.importc: "SOCK_RAW", header: "".}: cint # var SOCK_SEQPACKET* {.importc: "SOCK_SEQPACKET", header: "".}: cint const SOCK_SEQPACKET* = cint(5) var SOCK_STREAM* {.importc: "SOCK_STREAM", header: "".}: cint var SOL_SOCKET* {.importc: "SOL_SOCKET", header: "".}: cint const SocketMaxConnections {.intdefine.}: int = 32 var SOMAXCONN*: cint = SocketMaxConnections.cint var AF_INET* {.importc: "AF_INET", header: "".}: cint var AF_INET6* {.importc: "AF_INET6", header: "".}: cint # var AF_UNIX* {.importc: "AF_UNIX", header: "".}: cint const AF_UNIX*: cint = 1 # for compat with Nim libraries, doesn't exist on freertos var AF_UNSPEC* {.importc: "AF_UNSPEC", header: "".}: cint var SHUT_RD* {.importc: "SHUT_RD", header: "".}: cint var SHUT_RDWR* {.importc: "SHUT_RDWR", header: "".}: cint var SHUT_WR* {.importc: "SHUT_WR", header: "".}: cint # # # # var S_IFBLK* {.importc: "S_IFBLK", header: "".}: cint # var S_IFCHR* {.importc: "S_IFCHR", header: "".}: cint # var S_IFDIR* {.importc: "S_IFDIR", header: "".}: cint # var S_IFIFO* {.importc: "S_IFIFO", header: "".}: cint # var S_IFLNK* {.importc: "S_IFLNK", header: "".}: cint # var S_IFMT* {.importc: "S_IFMT", header: "".}: cint # var S_IFREG* {.importc: "S_IFREG", header: "".}: cint # var S_IFSOCK* {.importc: "S_IFSOCK", header: "".}: cint var S_IRGRP* {.importc: "S_IRGRP", header: "".}: cint var S_IROTH* {.importc: "S_IROTH", header: "".}: cint var S_IRUSR* {.importc: "S_IRUSR", header: "".}: cint # var S_IRWXG* {.importc: "S_IRWXG", header: "".}: cint # var S_IRWXO* {.importc: "S_IRWXO", header: "".}: cint # var S_IRWXU* {.importc: "S_IRWXU", header: "".}: cint # var S_ISGID* {.importc: "S_ISGID", header: "".}: cint # var S_ISUID* {.importc: "S_ISUID", header: "".}: cint # var S_ISVTX* {.importc: "S_ISVTX", header: "".}: cint var S_IWGRP* {.importc: "S_IWGRP", header: "".}: cint var S_IWOTH* {.importc: "S_IWOTH", header: "".}: cint var S_IWUSR* {.importc: "S_IWUSR", header: "".}: cint var S_IXGRP* {.importc: "S_IXGRP", header: "".}: cint var S_IXOTH* {.importc: "S_IXOTH", header: "".}: cint var S_IXUSR* {.importc: "S_IXUSR", header: "".}: cint # # # var ST_RDONLY* {.importc: "ST_RDONLY", header: "".}: cint # var ST_NOSUID* {.importc: "ST_NOSUID", header: "".}: cint # # # var WNOHANG* {.importc: "WNOHANG", header: "".}: cint # var WUNTRACED* {.importc: "WUNTRACED", header: "".}: cint # var WEXITED* {.importc: "WEXITED", header: "".}: cint # var WSTOPPED* {.importc: "WSTOPPED", header: "".}: cint # var WCONTINUED* {.importc: "WCONTINUED", header: "".}: cint # var WNOWAIT* {.importc: "WNOWAIT", header: "".}: cint # var P_ALL* {.importc: "P_ALL", header: "".}: cint # var P_PID* {.importc: "P_PID", header: "".}: cint # var P_PGID* {.importc: "P_PGID", header: "".}: cint # # # var POSIX_SPAWN_RESETIDS* {.importc: "POSIX_SPAWN_RESETIDS", header: "".}: cint # var POSIX_SPAWN_SETPGROUP* {.importc: "POSIX_SPAWN_SETPGROUP", header: "".}: cint # var POSIX_SPAWN_SETSCHEDPARAM* {.importc: "POSIX_SPAWN_SETSCHEDPARAM", header: "".}: cint # var POSIX_SPAWN_SETSCHEDULER* {.importc: "POSIX_SPAWN_SETSCHEDULER", header: "".}: cint # var POSIX_SPAWN_SETSIGDEF* {.importc: "POSIX_SPAWN_SETSIGDEF", header: "".}: cint # var POSIX_SPAWN_SETSIGMASK* {.importc: "POSIX_SPAWN_SETSIGMASK", header: "".}: cint ## # var IOFBF* {.importc: "_IOFBF", header: "".}: cint # var IONBF* {.importc: "_IONBF", header: "".}: cint # var CLOCKS_PER_SEC* {.importc: "CLOCKS_PER_SEC", header: "".}: clong var CLOCK_PROCESS_CPUTIME_ID* {.importc: "CLOCK_PROCESS_CPUTIME_ID", header: "".}: cint var CLOCK_THREAD_CPUTIME_ID* {.importc: "CLOCK_THREAD_CPUTIME_ID", header: "".}: cint var CLOCK_REALTIME* {.importc: "CLOCK_REALTIME", header: "".}: cint var TIMER_ABSTIME* {.importc: "TIMER_ABSTIME", header: "".}: cint var CLOCK_MONOTONIC* {.importc: "CLOCK_MONOTONIC", header: "".}: cint # const F_OK* = cint(0) const R_OK* = cint(4) const W_OK* = cint(2) const X_OK* = cint(1) const F_LOCK* = cint(1) const F_TEST* = cint(3) const F_TLOCK* = cint(2) const F_ULOCK* = cint(0)