mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-15 17:35:45 +00:00
1280 lines
84 KiB
C
1280 lines
84 KiB
C
/* Generated by Nim Compiler v1.2.6 */
|
|
/* (c) 2020 Andreas Rumpf */
|
|
/* The generated code is subject to the original license. */
|
|
/* Compiled for: Linux, amd64, gcc */
|
|
/* Command for C compiler:
|
|
gcc -c -w -pthread -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace -I/home/runner/work/nim-waku/nim-waku/vendor/nim-libbacktrace/install/usr/include -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-secp256k1/secp256k1_wrapper/secp256k1/src -DHAVE_CONFIG_H -DHAVE_BUILTIN_EXPECT -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/src -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/inc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-bearssl/bearssl/csources/tools -DBR_USE_UNIX_TIME=1 -DBR_USE_URANDOM=1 -DBR_LE_UNALIGNED=1 -DBR_64=1 -DBR_amd64=1 -DBR_INT128=1 -march=native -g3 -Og -O3 -fno-strict-aliasing -fno-ident -I/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib -I/home/runner/work/nim-waku/nim-waku/waku/v1/node -o nimcache/release/start_network/stdlib_selectors.nim.c.o nimcache/release/start_network/stdlib_selectors.nim.c */
|
|
#define NIM_INTBITS 64
|
|
|
|
#include "nimbase.h"
|
|
#include <sys/resource.h>
|
|
#include <string.h>
|
|
#include <sys/epoll.h>
|
|
#include <sys/types.h>
|
|
#include <pthread.h>
|
|
#include <sys/socket.h>
|
|
#include <unistd.h>
|
|
#include <sys/signalfd.h>
|
|
#undef LANGUAGE_C
|
|
#undef MIPSEB
|
|
#undef MIPSEL
|
|
#undef PPC
|
|
#undef R3000
|
|
#undef R4000
|
|
#undef i386
|
|
#undef linux
|
|
#undef mips
|
|
#undef near
|
|
#undef far
|
|
#undef powerpc
|
|
#undef unix
|
|
#define nimfr_(x, y)
|
|
#define nimln_(x, y)
|
|
typedef struct tyObject_SelectorImpl__g9a4S3yH20afsjHZx9aezm9bA tyObject_SelectorImpl__g9a4S3yH20afsjHZx9aezm9bA;
|
|
typedef struct tySequence__iPL3rW9a9bV9cIzaXekL6AsDg tySequence__iPL3rW9a9bV9cIzaXekL6AsDg;
|
|
typedef struct TNimType TNimType;
|
|
typedef struct TNimNode TNimNode;
|
|
typedef struct tyObject_SelectorKey__s8WfktWY9bd6XxYsLizlOtg tyObject_SelectorKey__s8WfktWY9bd6XxYsLizlOtg;
|
|
typedef struct tyObject_SelectorData__bCtwor9caPGFc9ccCxVlW5Ww tyObject_SelectorData__bCtwor9caPGFc9ccCxVlW5Ww;
|
|
typedef struct tyObject_AsyncCallback__Swoy2e9aGWZSpT0Jm9aqp3Zw tyObject_AsyncCallback__Swoy2e9aGWZSpT0Jm9aqp3Zw;
|
|
typedef struct tyObject_CompletionData__EBfvX747tMGQ0twDQltLkw tyObject_CompletionData__EBfvX747tMGQ0twDQltLkw;
|
|
typedef struct TGenericSeq TGenericSeq;
|
|
typedef struct tyObject_ReadyKey__vOvPQEijZeFv1xAgbh5rNw tyObject_ReadyKey__vOvPQEijZeFv1xAgbh5rNw;
|
|
typedef struct NimStringDesc NimStringDesc;
|
|
typedef struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g;
|
|
typedef struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w;
|
|
typedef struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ;
|
|
typedef struct tyObject_GcStack__7fytPA5bBsob6See21YMRA tyObject_GcStack__7fytPA5bBsob6See21YMRA;
|
|
typedef struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg;
|
|
typedef struct tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ;
|
|
typedef struct tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg;
|
|
typedef struct tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw;
|
|
typedef struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA;
|
|
typedef struct tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw;
|
|
typedef struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw;
|
|
typedef struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg;
|
|
typedef struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyTuple__ujsjpB2O9cjj3uDHsXbnSzg;
|
|
typedef struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg;
|
|
typedef struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ;
|
|
typedef struct tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg;
|
|
typedef struct tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw;
|
|
typedef struct tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg;
|
|
typedef struct tyObject_IOSelectorsException__QyK3XdhgwEegLQs5Yj3Vew tyObject_IOSelectorsException__QyK3XdhgwEegLQs5Yj3Vew;
|
|
typedef struct Exception Exception;
|
|
typedef struct RootObj RootObj;
|
|
typedef struct tySequence__uB9b75OUPRENsBAu4AnoePA tySequence__uB9b75OUPRENsBAu4AnoePA;
|
|
typedef struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA;
|
|
struct tyObject_SelectorImpl__g9a4S3yH20afsjHZx9aezm9bA {int epollFD;
|
|
NI maxFD;
|
|
NI numFD;
|
|
tySequence__iPL3rW9a9bV9cIzaXekL6AsDg* fds;
|
|
NI count;
|
|
};
|
|
typedef NU8 tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A;
|
|
typedef NU8 tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ;
|
|
typedef N_NIMCALL_PTR(void, tyProc__ojoeKfW4VYIm36I9cpDTQIg) (void* p, NI op);
|
|
typedef N_NIMCALL_PTR(void*, tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ) (void* p);
|
|
struct TNimType {NI size;
|
|
tyEnum_TNimKind__jIBKr1ejBgsfM33Kxw4j7A kind;
|
|
tySet_tyEnum_TNimTypeFlag__v8QUszD1sWlSIWZz7mC4bQ flags;
|
|
TNimType* base;
|
|
TNimNode* node;
|
|
void* finalizer;
|
|
tyProc__ojoeKfW4VYIm36I9cpDTQIg marker;
|
|
tyProc__WSm2xU5ARYv9aAR4l0z9c9auQ deepcopy;
|
|
NCSTRING name;
|
|
TNimType* nextType;
|
|
NI instances;
|
|
NI sizes;
|
|
};
|
|
typedef NU8 tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ;
|
|
struct TNimNode {tyEnum_TNimNodeKind__unfNsxrcATrufDZmpBq4HQ kind;
|
|
NI offset;
|
|
TNimType* typ;
|
|
NCSTRING name;
|
|
NI len;
|
|
TNimNode** sons;
|
|
};
|
|
typedef NU32 tySet_tyEnum_Event__nI40bZzTyYVrl763dZ9aHDg;
|
|
typedef struct {
|
|
N_NIMCALL_PTR(void, ClP_0) (void* arg, void* ClE_0);
|
|
void* ClE_0;
|
|
} tyProc__9bqx36VxQxXejdrF09bFARDQ;
|
|
struct tyObject_AsyncCallback__Swoy2e9aGWZSpT0Jm9aqp3Zw {tyProc__9bqx36VxQxXejdrF09bFARDQ function;
|
|
void* udata;
|
|
};
|
|
struct tyObject_CompletionData__EBfvX747tMGQ0twDQltLkw {int fd;
|
|
void* udata;
|
|
};
|
|
struct tyObject_SelectorData__bCtwor9caPGFc9ccCxVlW5Ww {tyObject_AsyncCallback__Swoy2e9aGWZSpT0Jm9aqp3Zw reader;
|
|
tyObject_CompletionData__EBfvX747tMGQ0twDQltLkw rdata;
|
|
tyObject_AsyncCallback__Swoy2e9aGWZSpT0Jm9aqp3Zw writer;
|
|
tyObject_CompletionData__EBfvX747tMGQ0twDQltLkw wdata;
|
|
};
|
|
struct tyObject_SelectorKey__s8WfktWY9bd6XxYsLizlOtg {NI ident;
|
|
tySet_tyEnum_Event__nI40bZzTyYVrl763dZ9aHDg events;
|
|
NI param;
|
|
tyObject_SelectorData__bCtwor9caPGFc9ccCxVlW5Ww data;
|
|
};
|
|
typedef NU8 tyEnum_Event__nI40bZzTyYVrl763dZ9aHDg;
|
|
struct TGenericSeq {NI len;
|
|
NI reserved;
|
|
};
|
|
struct tyObject_ReadyKey__vOvPQEijZeFv1xAgbh5rNw {NI fd;
|
|
tySet_tyEnum_Event__nI40bZzTyYVrl763dZ9aHDg events;
|
|
NI32 errorCode;
|
|
};
|
|
struct NimStringDesc { TGenericSeq Sup;NIM_CHAR data[SEQ_DECL_SIZE];
|
|
};
|
|
struct tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g {NI refcount;
|
|
TNimType* typ;
|
|
};
|
|
struct tyObject_GcStack__7fytPA5bBsob6See21YMRA {void* bottom;
|
|
};
|
|
struct tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w {NI len;
|
|
NI cap;
|
|
tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g** d;
|
|
};
|
|
typedef tyObject_SmallChunk__tXn60W2f8h3jgAYdEmy5NQ* tyArray__SiRwrEKZdLgxqz9a9aoVBglg[512];
|
|
typedef NU32 tyArray__BHbOSqU1t9b3Gt7K2c6fQig[24];
|
|
typedef tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* tyArray__N1u1nqOgmuJN9cSZrnMHgOQ[32];
|
|
typedef tyArray__N1u1nqOgmuJN9cSZrnMHgOQ tyArray__B6durA4ZCi1xjJvRtyYxMg[24];
|
|
typedef tyObject_Trunk__W0r8S0Y3UGke6T9bIUWnnuw* tyArray__lh2A89ahMmYg9bCmpVaplLbA[256];
|
|
struct tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA {tyArray__lh2A89ahMmYg9bCmpVaplLbA data;
|
|
};
|
|
typedef tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* tyArray__0aOLqZchNi8nWtMTi8ND8w[2];
|
|
struct tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw {tyArray__0aOLqZchNi8nWtMTi8ND8w link;
|
|
NI key;
|
|
NI upperBound;
|
|
NI level;
|
|
};
|
|
struct tyTuple__ujsjpB2O9cjj3uDHsXbnSzg {
|
|
tyObject_BigChunk__Rv9c70Uhp2TytkX7eH78qEg* Field0;
|
|
NI Field1;
|
|
};
|
|
typedef tyTuple__ujsjpB2O9cjj3uDHsXbnSzg tyArray__LzOv2eCDGiceMKQstCLmhw[30];
|
|
struct tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg {NI len;
|
|
tyArray__LzOv2eCDGiceMKQstCLmhw chunks;
|
|
tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg* next;
|
|
};
|
|
struct tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg {NI minLargeObj;
|
|
NI maxLargeObj;
|
|
tyArray__SiRwrEKZdLgxqz9a9aoVBglg freeSmallChunks;
|
|
NU32 flBitmap;
|
|
tyArray__BHbOSqU1t9b3Gt7K2c6fQig slBitmap;
|
|
tyArray__B6durA4ZCi1xjJvRtyYxMg matrix;
|
|
tyObject_LLChunk__XsENErzHIZV9bhvyJx56wGw* llmem;
|
|
NI currMem;
|
|
NI maxMem;
|
|
NI freeMem;
|
|
NI occ;
|
|
NI lastSize;
|
|
tyObject_IntSet__EZObFrE3NC9bIb3YMkY9crZA chunkStarts;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* root;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* deleted;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* last;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw* freeAvlNodes;
|
|
NIM_BOOL locked;
|
|
NIM_BOOL blockChunkSizeIncrease;
|
|
NI nextChunkSize;
|
|
tyObject_AvlNode__IaqjtwKhxLEpvDS9bct9blEw bottomData;
|
|
tyObject_HeapLinks__PDV1HBZ8CQSQJC9aOBFNRSg heapLinks;
|
|
NI allocCounter;
|
|
NI deallocCounter;
|
|
};
|
|
struct tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg {NI stackScans;
|
|
NI cycleCollections;
|
|
NI maxThreshold;
|
|
NI maxStackSize;
|
|
NI maxStackCells;
|
|
NI cycleTableSize;
|
|
NI64 maxPause;
|
|
};
|
|
struct tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ {NI counter;
|
|
NI max;
|
|
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg* head;
|
|
tyObject_PageDesc__fublkgIY4LG3mT51LU2WHg** data;
|
|
};
|
|
typedef long tyArray__xDUyu9aScDpt0JZLU6q9aEZQ[5];
|
|
struct tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw {tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg* head;
|
|
tyObject_SharedListNodecolonObjectType___KGw0YAw6W9aSz3Sr9aXGu7zg* tail;
|
|
pthread_mutex_t lock;
|
|
};
|
|
struct tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ {tyObject_GcStack__7fytPA5bBsob6See21YMRA stack;
|
|
NI cycleThreshold;
|
|
NI zctThreshold;
|
|
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w zct;
|
|
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w decStack;
|
|
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w tempStack;
|
|
NI recGcLock;
|
|
tyObject_MemRegion__x81NhDv59b8ercDZ9bi85jyg region;
|
|
tyObject_GcStat__0RwLoVBHZPfUAcLczmfQAg stat;
|
|
tyObject_CellSet__jG87P0AI9aZtss9ccTYBIISQ marked;
|
|
tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w additionalRoots;
|
|
tyObject_SharedList__JI9cx34TL8n3aOKF6tSMBUw toDispose;
|
|
NI gcThreadId;
|
|
};
|
|
struct RootObj {TNimType* m_type;};
|
|
struct Exception { RootObj Sup;Exception* parent;
|
|
NCSTRING name;
|
|
NimStringDesc* message;
|
|
tySequence__uB9b75OUPRENsBAu4AnoePA* trace;
|
|
Exception* up;
|
|
};
|
|
struct tyObject_IOSelectorsException__QyK3XdhgwEegLQs5Yj3Vew { Exception Sup;};
|
|
typedef struct epoll_event tyArray__FS3tk39b6JCJ6siEPK54vgg[64];
|
|
typedef NU8 tyArray__imubzojaOiPVfv1g8EarTA[48];
|
|
struct tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA {NCSTRING procname;
|
|
NI line;
|
|
NCSTRING filename;
|
|
};
|
|
struct tySequence__iPL3rW9a9bV9cIzaXekL6AsDg { TGenericSeq Sup; tyObject_SelectorKey__s8WfktWY9bd6XxYsLizlOtg data[SEQ_DECL_SIZE];};struct tySequence__uB9b75OUPRENsBAu4AnoePA { TGenericSeq Sup; tyObject_StackTraceEntry__oLyohQ7O2XOvGnflOss8EA data[SEQ_DECL_SIZE];};N_LIB_PRIVATE N_NIMCALL(void, nimGCvisit)(void* d, NI op);
|
|
static N_NIMCALL(void, Marker_tySequence__iPL3rW9a9bV9cIzaXekL6AsDg)(void* p, NI op);
|
|
static N_NIMCALL(void, Marker_tyRef__HhFgDyQdqUwF69cxqPVsT8w)(void* p, NI op);
|
|
N_LIB_PRIVATE N_NOINLINE(void, chckNil)(void* p);
|
|
static N_INLINE(void, nimZeroMem)(void* p, NI size);
|
|
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseOSError__CWyPYlyH9a6rAuZckFyVxPA)(NI32 errorCode, NimStringDesc* additionalInfo);
|
|
N_LIB_PRIVATE N_NIMCALL(NI32, osLastError__9bUWNxbcGnToMWA9b79aTXLIw)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(void, failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A)(NimStringDesc* msg);
|
|
N_LIB_PRIVATE N_NIMCALL(void*, newObj)(TNimType* typ, NI size);
|
|
N_LIB_PRIVATE N_NIMCALL(tySequence__iPL3rW9a9bV9cIzaXekL6AsDg*, newSeq__2MueU2CkFmB9cp1o7idI9czw)(NI len);
|
|
static N_INLINE(void, asgnRef)(void** dest, void* src);
|
|
static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y);
|
|
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr);
|
|
static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y);
|
|
static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y);
|
|
static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
N_LIB_PRIVATE N_NOINLINE(void, addZCT__Y66tOYFjgwJ0k4aLz4bc0Q)(tyObject_CellSeq__Axo1XVm9aaQueTOldv8le5w* s, tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseIndexError2)(NI i, NI n);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseOverflow)(void);
|
|
N_LIB_PRIVATE N_NIMCALL(void, verifySelectParams__VELOTGJpsenobkytwG1KAw)(NI timeout);
|
|
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src);
|
|
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size);
|
|
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, nimIntToStr)(NI x);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, rawNewString)(NI space);
|
|
N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i, NI64 a, NI64 b);
|
|
N_LIB_PRIVATE N_NIMCALL(void, raiseIOSelectorsError__E2YyF3Q0SipazWf0jnjh7w)(NI32 message);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, osErrorMsg__33xViSVWAmDrexoKkLfMhg)(NI32 errorCode);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, resizeString)(NimStringDesc* dest, NI addlen);
|
|
static N_NIMCALL(void, Marker_tyRef__AwXiAVUXPdcLyQW5mY84tA)(void* p, NI op);
|
|
N_LIB_PRIVATE N_NIMCALL(NimStringDesc*, copyStringRC1)(NimStringDesc* src);
|
|
static N_INLINE(void, nimGCunrefNoCycle)(void* p);
|
|
N_LIB_PRIVATE N_NIMCALL(void, raiseExceptionEx)(Exception* e, NCSTRING ename, NCSTRING procname, NCSTRING filename, NI line);
|
|
N_LIB_PRIVATE N_NIMCALL(void, raiseIOSelectorsError__DsOWi00vXgEmCXwnjpsJhw)(NimStringDesc* message);
|
|
static N_INLINE(void, stareq___ogcC1Md4c289bEhAZWpmZUwsystem)(NI* x, NI y);
|
|
N_LIB_PRIVATE N_NIMCALL(TGenericSeq*, setLengthSeqV2)(TGenericSeq* s, TNimType* typ, NI newLen);
|
|
static N_INLINE(NIM_BOOL, contains__OZFzGZer6mx0buZiLTnhyQselectors)(tyObject_SelectorImpl__g9a4S3yH20afsjHZx9aezm9bA* s, NI fd);
|
|
N_LIB_PRIVATE TNimType NTI__g9a4S3yH20afsjHZx9aezm9bA_;
|
|
extern TNimType NTI__nlCscttRCss70IBTyuBqnA_;
|
|
extern TNimType NTI__rR5Bzr1D5krxoo1NcNyeMA_;
|
|
N_LIB_PRIVATE TNimType NTI__s8WfktWY9bd6XxYsLizlOtg_;
|
|
N_LIB_PRIVATE TNimType NTI__nI40bZzTyYVrl763dZ9aHDg_;
|
|
N_LIB_PRIVATE TNimType NTI__YIRsZrDT89buh37M5yeUgng_;
|
|
extern TNimType NTI__bCtwor9caPGFc9ccCxVlW5Ww_;
|
|
N_LIB_PRIVATE TNimType NTI__iPL3rW9a9bV9cIzaXekL6AsDg_;
|
|
N_LIB_PRIVATE TNimType NTI__HhFgDyQdqUwF69cxqPVsT8w_;
|
|
N_LIB_PRIVATE TNimType NTI__vOvPQEijZeFv1xAgbh5rNw_;
|
|
extern TNimType NTI__sVg18TP9cLifHyygRe9cro9aA_;
|
|
STRING_LITERAL(TM__ln5vuDpFyDrAqQbYD2g52Q_8, "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim(80, 11) `\0120 "
|
|
"< maxFD` ", 136);
|
|
extern TNimType NTI__XEycrCsme5C8CVWAYEcdBQ_;
|
|
N_LIB_PRIVATE TNimType NTI__QyK3XdhgwEegLQs5Yj3Vew_;
|
|
STRING_LITERAL(TM__ln5vuDpFyDrAqQbYD2g52Q_10, "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/selectors.nim(321, 13) `timeout >= -1` Canno"
|
|
"t select with a negative value, got ", 163);
|
|
STRING_LITERAL(TM__ln5vuDpFyDrAqQbYD2g52Q_11, " (code: ", 8);
|
|
STRING_LITERAL(TM__ln5vuDpFyDrAqQbYD2g52Q_12, ")", 1);
|
|
N_LIB_PRIVATE TNimType NTI__AwXiAVUXPdcLyQW5mY84tA_;
|
|
STRING_LITERAL(TM__ln5vuDpFyDrAqQbYD2g52Q_13, "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim(399, 15) `\012n"
|
|
"ot (pkey.ident == InvalidIdent)` ", 160);
|
|
STRING_LITERAL(TM__ln5vuDpFyDrAqQbYD2g52Q_19, "Maximum number of descriptors is exhausted!", 43);
|
|
extern TNimType* nimTypeRoot;
|
|
extern NIM_THREADVAR tyObject_GcHeap__1TRH1TZMaVZTnLNcIHuNFQ gch__IcYaEuuWivYAS86vFMTS3Q;
|
|
static N_NIMCALL(void, Marker_tySequence__iPL3rW9a9bV9cIzaXekL6AsDg)(void* p, NI op) {
|
|
tySequence__iPL3rW9a9bV9cIzaXekL6AsDg* a;
|
|
NI T1_; a = (tySequence__iPL3rW9a9bV9cIzaXekL6AsDg*)p;
|
|
T1_ = (NI)0; for (T1_ = 0; T1_ < (a ? a->Sup.len : 0); T1_++) {
|
|
nimGCvisit((void*)a->data[T1_].data.reader.function.ClE_0, op); nimGCvisit((void*)a->data[T1_].data.writer.function.ClE_0, op); }
|
|
}
|
|
static N_NIMCALL(void, Marker_tyRef__HhFgDyQdqUwF69cxqPVsT8w)(void* p, NI op) {
|
|
tyObject_SelectorImpl__g9a4S3yH20afsjHZx9aezm9bA* a;
|
|
a = (tyObject_SelectorImpl__g9a4S3yH20afsjHZx9aezm9bA*)p;
|
|
nimGCvisit((void*)(*a).fds, op);}
|
|
|
|
#line 22 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(void, nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory)(void* a, int v, NI size) { void* T1_;
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 24 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
T1_ = (void*)0; T1_ = memset(a, v, ((size_t) (size)));}
|
|
|
|
#line 33 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(void, nimZeroMem)(void* p, NI size) {
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 34 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
nimSetMem__zxfKBYntu9cBapkhrCOk1fgmemory(p, ((int) 0), size);
|
|
}
|
|
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
static N_INLINE(NI, pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem)(NI x, NI y) { NI result; result = (NI)0;
|
|
#line 426 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
|
|
#line 430 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
result = ((NI) ((NU)((NU64)(((NU) (x))) + (NU64)(((NU) (y)))))); return result;}
|
|
|
|
#line 182 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, incRef__AT1eRuflKWyTTBdLjEDZbg_3system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 184 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
(*c).refcount = pluspercent___dgYAo7RfdUVVpvkfKDym8wsystem((*c).refcount, ((NI) 8));}
|
|
|
|
#line 436 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
static N_INLINE(NI, minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system)(NI x, NI y) { NI result; result = (NI)0;
|
|
#line 437 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
|
|
#line 441 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
result = ((NI) ((NU)((NU64)(((NU) (x))) - (NU64)(((NU) (y)))))); return result;}
|
|
|
|
#line 128 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*, usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem)(void* usr) { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* result; NI T1_; result = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0;
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 130 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T1_ = (NI)0; T1_ = minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system(((NI) (ptrdiff_t) (usr)), ((NI) 16)); result = ((tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*) (T1_)); return result;}
|
|
|
|
#line 187 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
|
|
static N_INLINE(NIM_BOOL, ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem)(NI x, NI y) { NIM_BOOL result; result = (NIM_BOOL)0;
|
|
#line 188 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
|
|
|
|
#line 190 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/comparisons.nim"
|
|
result = ((NU64)(((NU) (x))) < (NU64)(((NU) (y)))); return result;}
|
|
|
|
#line 194 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 196 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
addZCT__Y66tOYFjgwJ0k4aLz4bc0Q((&gch__IcYaEuuWivYAS86vFMTS3Q.zct), c);
|
|
}
|
|
|
|
#line 198 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, decRef__AT1eRuflKWyTTBdLjEDZbgsystem)(tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* c) {
|
|
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 201 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
(*c).refcount = minuspercent___dgYAo7RfdUVVpvkfKDym8w_2system((*c).refcount, ((NI) 8));
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
{ NIM_BOOL T3_;
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 202 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T3_ = (NIM_BOOL)0; T3_ = ltpercent___hPljn3JCDQ00ua1R07X9bxQsystem((*c).refcount, ((NI) 8)); if (!T3_) goto LA4_;
|
|
|
|
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 203 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
rtlAddZCT__AT1eRuflKWyTTBdLjEDZbg_2system(c);
|
|
}
|
|
LA4_: ;
|
|
}
|
|
|
|
#line 235 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, asgnRef)(void** dest, void* src) {
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
{ tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T5_;
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
if (!!((src == NIM_NIL))) goto LA3_;
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T5_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T5_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(src);
|
|
#line 239 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
incRef__AT1eRuflKWyTTBdLjEDZbg_3system(T5_);
|
|
}
|
|
LA3_: ;
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
{ tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T10_;
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
if (!!(((*dest) == NIM_NIL))) goto LA8_;
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T10_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T10_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem((*dest));
|
|
#line 240 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
decRef__AT1eRuflKWyTTBdLjEDZbgsystem(T10_);
|
|
}
|
|
LA8_: ;
|
|
|
|
#line 241 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
(*dest) = src;}
|
|
|
|
#line 74 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_SelectorImpl__g9a4S3yH20afsjHZx9aezm9bA*, newSelector__jafMlDV4ZKvuJjquPHA18g)(void) { tyObject_SelectorImpl__g9a4S3yH20afsjHZx9aezm9bA* result; struct rlimit a; NI maxFD; int epollFD; tyObject_SelectorImpl__g9a4S3yH20afsjHZx9aezm9bA* T16_; result = (tyObject_SelectorImpl__g9a4S3yH20afsjHZx9aezm9bA*)0;
|
|
#line 76 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
chckNil((void*)(&a)); nimZeroMem((void*)(&a), sizeof(struct rlimit));
|
|
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
{ int T3_; NI32 T6_;
|
|
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 77 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
T3_ = (int)0; T3_ = getrlimit(((int) 7), (&a)); if (!!((T3_ == ((NI32) 0)))) goto LA4_;
|
|
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
T6_ = (NI32)0; T6_ = osLastError__9bUWNxbcGnToMWA9b79aTXLIw();
|
|
#line 78 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
raiseOSError__CWyPYlyH9a6rAuZckFyVxPA(T6_, ((NimStringDesc*) NIM_NIL));
|
|
}
|
|
LA4_: ;
|
|
|
|
#line 79 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
maxFD = a.rlim_max;
|
|
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
{
|
|
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if (!!((((NI) 0) < maxFD))) goto LA9_;
|
|
|
|
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 80 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__ln5vuDpFyDrAqQbYD2g52Q_8));
|
|
}
|
|
LA9_: ;
|
|
|
|
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 84 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
epollFD = epoll_create(((int) 64));
|
|
#line 85 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
{ NI32 T15_;
|
|
#line 85 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if (!(epollFD < ((NI32) 0))) goto LA13_;
|
|
|
|
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
T15_ = (NI32)0; T15_ = osLastError__9bUWNxbcGnToMWA9b79aTXLIw();
|
|
#line 86 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
raiseOSError__CWyPYlyH9a6rAuZckFyVxPA(T15_, ((NimStringDesc*) NIM_NIL));
|
|
}
|
|
LA13_: ;
|
|
|
|
#line 95 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
T16_ = (tyObject_SelectorImpl__g9a4S3yH20afsjHZx9aezm9bA*)0; T16_ = (tyObject_SelectorImpl__g9a4S3yH20afsjHZx9aezm9bA*) newObj((&NTI__HhFgDyQdqUwF69cxqPVsT8w_), sizeof(tyObject_SelectorImpl__g9a4S3yH20afsjHZx9aezm9bA)); result = T16_;
|
|
#line 96 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
(*result).epollFD = epollFD;
|
|
#line 97 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
(*result).maxFD = maxFD;
|
|
#line 98 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
(*result).numFD = ((NI) 1024);
|
|
#line 99 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 99 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
asgnRef((void**) (&(*result).fds), newSeq__2MueU2CkFmB9cp1o7idI9czw(((NI) 1024))); { NI i; NI i_2; i = (NI)0;
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
i_2 = ((NI) 0); {
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__ln5vuDpFyDrAqQbYD2g52Q_9;
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(i_2 < ((NI) 1024))) goto LA19;
|
|
|
|
#line 101 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
i = i_2; if ((NU)(i) >= (NU)((*result).fds ? (*result).fds->Sup.len : 0)){ raiseIndexError2(i,((*result).fds ? (*result).fds->Sup.len : 0)-1); }
|
|
#line 102 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
(*result).fds->data[i].ident = ((NI) -1);
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(i_2, ((NI) 1), &TM__ln5vuDpFyDrAqQbYD2g52Q_9)) { raiseOverflow(); }; i_2 = (NI)(TM__ln5vuDpFyDrAqQbYD2g52Q_9); } LA19: ;
|
|
}
|
|
}
|
|
return result;}
|
|
|
|
#line 11 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
static N_INLINE(void, nimCopyMem)(void* dest, void* source, NI size) { void* T1_;
|
|
#line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
|
|
#line 13 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/memory.nim"
|
|
T1_ = (void*)0; T1_ = memcpy(dest, source, ((size_t) (size)));}
|
|
|
|
#line 2112 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
static N_INLINE(void, copyMem__i80o3k0SgEI5gTRCzYdyWAsystem)(void* dest, void* source, NI size) {
|
|
#line 2113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
|
|
#line 2113 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system.nim"
|
|
nimCopyMem(dest, source, size);
|
|
}
|
|
|
|
#line 217 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
static N_INLINE(void, appendString)(NimStringDesc* dest, NimStringDesc* src) {
|
|
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
{
|
|
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
|
|
#line 218 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
if (!!((src == NIM_NIL))) goto LA3_;
|
|
|
|
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
|
|
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
|
|
#line 219 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
copyMem__i80o3k0SgEI5gTRCzYdyWAsystem(((void*) ((&(*dest).data[(*dest).Sup.len]))), ((void*) ((*src).data)), ((NI) ((NI)((*src).Sup.len + ((NI) 1)))));
|
|
|
|
#line 220 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/sysstr.nim"
|
|
(*dest).Sup.len += (*src).Sup.len; }
|
|
LA3_: ;
|
|
}
|
|
|
|
#line 318 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/selectors.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, verifySelectParams__VELOTGJpsenobkytwG1KAw)(NI timeout) {
|
|
#line 321 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/selectors.nim"
|
|
{ NimStringDesc* T5_; NimStringDesc* T6_;
|
|
#line 321 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/selectors.nim"
|
|
|
|
#line 321 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/selectors.nim"
|
|
if (!!((((NI) -1) <= timeout))) goto LA3_;
|
|
|
|
#line 321 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/selectors.nim"
|
|
|
|
#line 321 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/selectors.nim"
|
|
T5_ = (NimStringDesc*)0;
|
|
#line 321 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/selectors.nim"
|
|
T6_ = (NimStringDesc*)0; T6_ = nimIntToStr(timeout); T5_ = rawNewString((T6_ ? T6_->Sup.len : 0) + 163);appendString(T5_, ((NimStringDesc*) &TM__ln5vuDpFyDrAqQbYD2g52Q_10));appendString(T5_, T6_);
|
|
#line 321 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/selectors.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(T5_);
|
|
}
|
|
LA3_: ;
|
|
}
|
|
static N_NIMCALL(void, Marker_tyRef__AwXiAVUXPdcLyQW5mY84tA)(void* p, NI op) {
|
|
tyObject_IOSelectorsException__QyK3XdhgwEegLQs5Yj3Vew* a;
|
|
a = (tyObject_IOSelectorsException__QyK3XdhgwEegLQs5Yj3Vew*)p;
|
|
nimGCvisit((void*)(*a).Sup.parent, op); nimGCvisit((void*)(*a).Sup.message, op); nimGCvisit((void*)(*a).Sup.trace, op); nimGCvisit((void*)(*a).Sup.up, op);}
|
|
|
|
#line 227 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
static N_INLINE(void, nimGCunrefNoCycle)(void* p) { tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g* T1_;
|
|
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
|
|
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
T1_ = (tyObject_Cell__1zcF9cV8XIAtbN8h5HRUB8g*)0; T1_ = usrToCell__QFQqcLB3lgOdwipkv9a60xwsystem(p);
|
|
#line 229 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/gc.nim"
|
|
decRef__AT1eRuflKWyTTBdLjEDZbgsystem(T1_);
|
|
}
|
|
|
|
#line 271 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/selectors.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, raiseIOSelectorsError__E2YyF3Q0SipazWf0jnjh7w)(NI32 message) { NimStringDesc* msg; NimStringDesc* T1_; NimStringDesc* T2_; NimStringDesc* T3_; tyObject_IOSelectorsException__QyK3XdhgwEegLQs5Yj3Vew* err; tyObject_IOSelectorsException__QyK3XdhgwEegLQs5Yj3Vew* T4_; NimStringDesc* T5_;
|
|
#line 272 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/selectors.nim"
|
|
msg = ((NimStringDesc*) NIM_NIL);
|
|
#line 276 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/selectors.nim"
|
|
|
|
#line 276 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/selectors.nim"
|
|
T1_ = (NimStringDesc*)0;
|
|
#line 276 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/selectors.nim"
|
|
|
|
#line 276 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/selectors.nim"
|
|
T2_ = (NimStringDesc*)0; T2_ = osErrorMsg__33xViSVWAmDrexoKkLfMhg(message);
|
|
#line 276 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/selectors.nim"
|
|
T3_ = (NimStringDesc*)0; T3_ = nimIntToStr(((NI) (message))); T1_ = rawNewString((T2_ ? T2_->Sup.len : 0) + (T3_ ? T3_->Sup.len : 0) + 9);appendString(T1_, T2_);appendString(T1_, ((NimStringDesc*) &TM__ln5vuDpFyDrAqQbYD2g52Q_11));appendString(T1_, T3_);appendString(T1_, ((NimStringDesc*) &TM__ln5vuDpFyDrAqQbYD2g52Q_12)); msg = resizeString(msg, (T1_ ? T1_->Sup.len : 0) + 0);appendString(msg, T1_);
|
|
#line 279 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/selectors.nim"
|
|
T4_ = (tyObject_IOSelectorsException__QyK3XdhgwEegLQs5Yj3Vew*)0; T4_ = (tyObject_IOSelectorsException__QyK3XdhgwEegLQs5Yj3Vew*) newObj((&NTI__AwXiAVUXPdcLyQW5mY84tA_), sizeof(tyObject_IOSelectorsException__QyK3XdhgwEegLQs5Yj3Vew)); (*T4_).Sup.Sup.m_type = (&NTI__QyK3XdhgwEegLQs5Yj3Vew_); (*T4_).Sup.name = "IOSelectorsException"; T5_ = (NimStringDesc*)0; T5_ = (*T4_).Sup.message; (*T4_).Sup.message = copyStringRC1(msg); if (T5_) nimGCunrefNoCycle(T5_); asgnRef((void**) (&(*T4_).Sup.parent), NIM_NIL); err = T4_;
|
|
#line 280 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/selectors.nim"
|
|
raiseExceptionEx((Exception*)err, "IOSelectorsException", "raiseIOSelectorsError", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/selectors.nim", 280);}
|
|
|
|
#line 371 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(NI, selectInto__g9bC709by87fZZEElpoIiY9aQ)(tyObject_SelectorImpl__g9a4S3yH20afsjHZx9aezm9bA* s, NI timeout, tyObject_ReadyKey__vOvPQEijZeFv1xAgbh5rNw* results, NI resultsLen_0) { NI result; tyArray__FS3tk39b6JCJ6siEPK54vgg resTable; NI maxres; NI i; NI k; int count; result = (NI)0; nimZeroMem((void*)resTable, sizeof(tyArray__FS3tk39b6JCJ6siEPK54vgg));
|
|
#line 375 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
maxres = ((NI) 64); i = (NI)0; k = (NI)0;
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
{
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 378 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if (!(resultsLen_0 < maxres)) goto LA3_;
|
|
|
|
#line 379 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 379 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
maxres = resultsLen_0; }
|
|
LA3_: ;
|
|
|
|
#line 381 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 381 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
verifySelectParams__VELOTGJpsenobkytwG1KAw(timeout);
|
|
|
|
#line 383 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if ((maxres) < ((int) (-2147483647 -1)) || (maxres) > ((int) 2147483647)){ raiseRangeErrorI(maxres, ((int) (-2147483647 -1)), ((int) 2147483647)); } if ((timeout) < ((int) (-2147483647 -1)) || (timeout) > ((int) 2147483647)){ raiseRangeErrorI(timeout, ((int) (-2147483647 -1)), ((int) 2147483647)); }
|
|
#line 383 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
count = epoll_wait((*s).epollFD, (&resTable[(((NI) 0))- 0]), ((int) (maxres)), ((int) (timeout)));
|
|
#line 385 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
{ NI32 err;
|
|
#line 385 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if (!(count < ((NI32) 0))) goto LA7_;
|
|
|
|
#line 386 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
result = ((NI) 0);
|
|
#line 387 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 387 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
err = osLastError__9bUWNxbcGnToMWA9b79aTXLIw();
|
|
#line 388 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
{
|
|
#line 388 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 388 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if (!!((err == ((int) 4)))) goto LA11_;
|
|
|
|
#line 389 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 389 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
raiseIOSelectorsError__E2YyF3Q0SipazWf0jnjh7w(err);
|
|
}
|
|
LA11_: ;
|
|
}
|
|
goto LA5_;
|
|
LA7_: ;
|
|
{
|
|
#line 390 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if (!(count == ((NI32) 0))) goto LA14_;
|
|
|
|
#line 391 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
result = ((NI) 0); }
|
|
goto LA5_;
|
|
LA14_: ;
|
|
{
|
|
#line 393 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
i = ((NI) 0);
|
|
#line 394 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
k = ((NI) 0); {
|
|
#line 395 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
while (1) {
|
|
#line 395 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if (!(i < ((NI) (count)))) goto LA18;
|
|
{ NI fdi; NU32 pevents; tyObject_SelectorKey__s8WfktWY9bd6XxYsLizlOtg* pkey; tyObject_ReadyKey__vOvPQEijZeFv1xAgbh5rNw rkey; NI TM__ln5vuDpFyDrAqQbYD2g52Q_17; NI TM__ln5vuDpFyDrAqQbYD2g52Q_18;
|
|
#line 396 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if ((NU)(i) > (NU)(63)){ raiseIndexError2(i, 63); } if ((NI64)(resTable[(i)- 0].data.u64) < ((NI) (IL64(-9223372036854775807) - IL64(1))) || (NI64)(resTable[(i)- 0].data.u64) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(resTable[(i)- 0].data.u64, ((NI) (IL64(-9223372036854775807) - IL64(1))), ((NI) IL64(9223372036854775807))); } fdi = ((NI) (resTable[(i)- 0].data.u64));
|
|
#line 397 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if ((NU)(i) > (NU)(63)){ raiseIndexError2(i, 63); } pevents = resTable[(i)- 0].events;
|
|
#line 398 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if ((NU)(fdi) >= (NU)((*s).fds ? (*s).fds->Sup.len : 0)){ raiseIndexError2(fdi,((*s).fds ? (*s).fds->Sup.len : 0)-1); } pkey = (&(*s).fds->data[fdi]);
|
|
#line 399 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
{
|
|
#line 399 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 399 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 399 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if (!!(!(((*pkey).ident == ((NI) -1))))) goto LA22_;
|
|
|
|
#line 399 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 399 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
failedAssertImpl__W9cjVocn1tjhW7p7xohJj6A(((NimStringDesc*) &TM__ln5vuDpFyDrAqQbYD2g52Q_13));
|
|
}
|
|
LA22_: ;
|
|
|
|
#line 400 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
chckNil((void*)(&rkey)); nimZeroMem((void*)(&rkey), sizeof(tyObject_ReadyKey__vOvPQEijZeFv1xAgbh5rNw)); rkey.fd = fdi; rkey.events = 0;
|
|
#line 402 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
{ NIM_BOOL T26_;
|
|
#line 402 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
T26_ = (NIM_BOOL)0;
|
|
#line 402 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 402 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 402 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
T26_ = !(((NU32)(pevents & ((NU32) 8)) == ((NU32) 0))); if (T26_) goto LA27_;
|
|
|
|
#line 402 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 402 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 402 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
T26_ = !(((NU32)(pevents & ((NU32) 16)) == ((NU32) 0))); LA27_: ;
|
|
if (!T26_) goto LA28_;
|
|
|
|
#line 403 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
{
|
|
#line 403 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 403 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 403 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if (!!(((NU32)(pevents & ((NU32) 16)) == ((NU32) 0)))) goto LA32_;
|
|
|
|
#line 404 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
rkey.errorCode = ((NI32) 104); }
|
|
goto LA30_;
|
|
LA32_: ;
|
|
{ int error; socklen_t size; error = (int)0;
|
|
#line 408 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
size = ((socklen_t) 4);
|
|
#line 409 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
{ int T37_;
|
|
#line 410 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 409 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if ((fdi) < ((int) (-2147483647 -1)) || (fdi) > ((int) 2147483647)){ raiseRangeErrorI(fdi, ((int) (-2147483647 -1)), ((int) 2147483647)); }
|
|
#line 409 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
T37_ = (int)0; T37_ = getsockopt(((int) (fdi)), ((int) 1), ((int) 4), ((void*) ((&error))), (&size)); if (!(T37_ == ((NI32) 0))) goto LA38_;
|
|
|
|
#line 411 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
rkey.errorCode = error; }
|
|
LA38_: ;
|
|
}
|
|
LA30_: ;
|
|
|
|
#line 413 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
rkey.events |= ((NU32)1)<<((((tyEnum_Event__nI40bZzTyYVrl763dZ9aHDg) 7)) & 31);
|
|
}
|
|
LA28_: ;
|
|
|
|
#line 414 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
{
|
|
#line 414 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 414 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 414 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if (!!(((NU32)(pevents & ((NU32) 4)) == ((NU32) 0)))) goto LA42_;
|
|
|
|
#line 415 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
rkey.events |= ((NU32)1)<<((((tyEnum_Event__nI40bZzTyYVrl763dZ9aHDg) 1)) & 31);
|
|
}
|
|
LA42_: ;
|
|
|
|
#line 417 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
{
|
|
#line 417 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 417 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 417 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if (!!(((NU32)(pevents & ((NU32) 1)) == ((NU32) 0)))) goto LA46_;
|
|
|
|
#line 418 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
{
|
|
#line 418 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if (!(((*pkey).events &(1U<<((NU)(((tyEnum_Event__nI40bZzTyYVrl763dZ9aHDg) 0))&31U)))!=0)) goto LA50_;
|
|
|
|
#line 419 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
rkey.events |= ((NU32)1)<<((((tyEnum_Event__nI40bZzTyYVrl763dZ9aHDg) 0)) & 31);
|
|
}
|
|
goto LA48_;
|
|
LA50_: ;
|
|
{ NU64 data;
|
|
#line 420 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if (!(((*pkey).events &(1U<<((NU)(((tyEnum_Event__nI40bZzTyYVrl763dZ9aHDg) 2))&31U)))!=0)) goto LA53_;
|
|
|
|
#line 421 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
data = 0ULL;
|
|
#line 422 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
{ NI T57_; NI32 T60_;
|
|
#line 423 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 423 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 422 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if ((fdi) < ((int) (-2147483647 -1)) || (fdi) > ((int) 2147483647)){ raiseRangeErrorI(fdi, ((int) (-2147483647 -1)), ((int) 2147483647)); }
|
|
#line 422 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
T57_ = (NI)0; T57_ = read(((int) (fdi)), ((void*) ((&data))), ((NI) 8)); if (!!((T57_ == ((NI) 8)))) goto LA58_;
|
|
|
|
#line 424 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 424 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 424 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
T60_ = (NI32)0; T60_ = osLastError__9bUWNxbcGnToMWA9b79aTXLIw();
|
|
#line 424 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
raiseIOSelectorsError__E2YyF3Q0SipazWf0jnjh7w(T60_);
|
|
}
|
|
LA58_: ;
|
|
|
|
#line 425 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
rkey.events |= ((NU32)1)<<((((tyEnum_Event__nI40bZzTyYVrl763dZ9aHDg) 2)) & 31);
|
|
}
|
|
goto LA48_;
|
|
LA53_: ;
|
|
{ struct signalfd_siginfo data_2;
|
|
#line 426 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if (!(((*pkey).events &(1U<<((NU)(((tyEnum_Event__nI40bZzTyYVrl763dZ9aHDg) 3))&31U)))!=0)) goto LA62_;
|
|
|
|
#line 427 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
chckNil((void*)(&data_2)); nimZeroMem((void*)(&data_2), sizeof(struct signalfd_siginfo));
|
|
#line 428 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
{ NI T66_; NI32 T69_;
|
|
#line 429 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 429 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 428 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if ((fdi) < ((int) (-2147483647 -1)) || (fdi) > ((int) 2147483647)){ raiseRangeErrorI(fdi, ((int) (-2147483647 -1)), ((int) 2147483647)); }
|
|
#line 429 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 428 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
T66_ = (NI)0; T66_ = read(((int) (fdi)), ((void*) ((&data_2))), ((NI)sizeof(struct signalfd_siginfo)));
|
|
#line 429 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if (!!((T66_ == ((NI)sizeof(struct signalfd_siginfo))))) goto LA67_;
|
|
|
|
#line 430 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 430 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 430 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
T69_ = (NI32)0; T69_ = osLastError__9bUWNxbcGnToMWA9b79aTXLIw();
|
|
#line 430 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
raiseIOSelectorsError__E2YyF3Q0SipazWf0jnjh7w(T69_);
|
|
}
|
|
LA67_: ;
|
|
|
|
#line 431 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
rkey.events |= ((NU32)1)<<((((tyEnum_Event__nI40bZzTyYVrl763dZ9aHDg) 3)) & 31);
|
|
}
|
|
goto LA48_;
|
|
LA62_: ;
|
|
{ struct signalfd_siginfo data_3;
|
|
#line 432 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if (!(((*pkey).events &(1U<<((NU)(((tyEnum_Event__nI40bZzTyYVrl763dZ9aHDg) 4))&31U)))!=0)) goto LA71_;
|
|
|
|
#line 433 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
chckNil((void*)(&data_3)); nimZeroMem((void*)(&data_3), sizeof(struct signalfd_siginfo));
|
|
#line 434 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
{ NI T75_; NI32 T78_;
|
|
#line 435 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 435 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 434 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if ((fdi) < ((int) (-2147483647 -1)) || (fdi) > ((int) 2147483647)){ raiseRangeErrorI(fdi, ((int) (-2147483647 -1)), ((int) 2147483647)); }
|
|
#line 435 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 434 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
T75_ = (NI)0; T75_ = read(((int) (fdi)), ((void*) ((&data_3))), ((NI)sizeof(struct signalfd_siginfo)));
|
|
#line 435 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if (!!((T75_ == ((NI)sizeof(struct signalfd_siginfo))))) goto LA76_;
|
|
|
|
#line 436 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 436 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 436 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
T78_ = (NI32)0; T78_ = osLastError__9bUWNxbcGnToMWA9b79aTXLIw();
|
|
#line 436 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
raiseIOSelectorsError__E2YyF3Q0SipazWf0jnjh7w(T78_);
|
|
}
|
|
LA76_: ;
|
|
|
|
#line 437 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
{
|
|
#line 437 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if (!(((NI) (data_3.ssi_pid)) == (*pkey).param)) goto LA81_;
|
|
|
|
#line 438 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
rkey.events |= ((NU32)1)<<((((tyEnum_Event__nI40bZzTyYVrl763dZ9aHDg) 4)) & 31);
|
|
}
|
|
goto LA79_;
|
|
LA81_: ;
|
|
{ NI TM__ln5vuDpFyDrAqQbYD2g52Q_14;
|
|
#line 440 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if (nimAddInt(i, ((NI) 1), &TM__ln5vuDpFyDrAqQbYD2g52Q_14)) { raiseOverflow(); }; i = (NI)(TM__ln5vuDpFyDrAqQbYD2g52Q_14);
|
|
#line 441 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
goto LA19;
|
|
}
|
|
LA79_: ;
|
|
}
|
|
goto LA48_;
|
|
LA71_: ;
|
|
{ NU64 data_4;
|
|
#line 442 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if (!(((*pkey).events &(1U<<((NU)(((tyEnum_Event__nI40bZzTyYVrl763dZ9aHDg) 6))&31U)))!=0)) goto LA85_;
|
|
|
|
#line 443 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
data_4 = 0ULL;
|
|
#line 444 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
{ NI T89_; NI32 err_2;
|
|
#line 445 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 445 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 444 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if ((fdi) < ((int) (-2147483647 -1)) || (fdi) > ((int) 2147483647)){ raiseRangeErrorI(fdi, ((int) (-2147483647 -1)), ((int) 2147483647)); }
|
|
#line 444 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
T89_ = (NI)0; T89_ = read(((int) (fdi)), ((void*) ((&data_4))), ((NI) 8)); if (!!((T89_ == ((NI) 8)))) goto LA90_;
|
|
|
|
#line 446 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 446 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
err_2 = osLastError__9bUWNxbcGnToMWA9b79aTXLIw();
|
|
#line 447 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
{ NI TM__ln5vuDpFyDrAqQbYD2g52Q_15;
|
|
#line 447 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if (!(err_2 == ((NI32) 11))) goto LA94_;
|
|
|
|
#line 448 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if (nimAddInt(i, ((NI) 1), &TM__ln5vuDpFyDrAqQbYD2g52Q_15)) { raiseOverflow(); }; i = (NI)(TM__ln5vuDpFyDrAqQbYD2g52Q_15);
|
|
#line 449 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
goto LA19;
|
|
}
|
|
goto LA92_;
|
|
LA94_: ;
|
|
{
|
|
#line 451 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 451 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
raiseIOSelectorsError__E2YyF3Q0SipazWf0jnjh7w(err_2);
|
|
}
|
|
LA92_: ;
|
|
}
|
|
LA90_: ;
|
|
|
|
#line 452 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
rkey.events |= ((NU32)1)<<((((tyEnum_Event__nI40bZzTyYVrl763dZ9aHDg) 6)) & 31);
|
|
}
|
|
goto LA48_;
|
|
LA85_: ;
|
|
LA48_: ;
|
|
}
|
|
LA46_: ;
|
|
|
|
#line 475 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
{ struct epoll_event epv; NI TM__ln5vuDpFyDrAqQbYD2g52Q_16;
|
|
#line 475 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if (!(((*pkey).events &(1U<<((NU)(((tyEnum_Event__nI40bZzTyYVrl763dZ9aHDg) 8))&31U)))!=0)) goto LA99_;
|
|
|
|
#line 476 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
chckNil((void*)(&epv)); nimZeroMem((void*)(&epv), sizeof(struct epoll_event));
|
|
#line 477 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
{ int T103_; NI32 T106_;
|
|
#line 477 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 477 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 477 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if ((fdi) < ((int) (-2147483647 -1)) || (fdi) > ((int) 2147483647)){ raiseRangeErrorI(fdi, ((int) (-2147483647 -1)), ((int) 2147483647)); }
|
|
#line 477 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
T103_ = (int)0; T103_ = epoll_ctl((*s).epollFD, ((int) 2), ((int) (fdi)), (&epv)); if (!!((T103_ == ((NI32) 0)))) goto LA104_;
|
|
|
|
#line 478 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 478 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 478 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
T106_ = (NI32)0; T106_ = osLastError__9bUWNxbcGnToMWA9b79aTXLIw();
|
|
#line 478 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
raiseIOSelectorsError__E2YyF3Q0SipazWf0jnjh7w(T106_);
|
|
}
|
|
LA104_: ;
|
|
|
|
#line 482 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if (nimSubInt((*s).count, ((NI) 1), &TM__ln5vuDpFyDrAqQbYD2g52Q_16)) { raiseOverflow(); }; (*s).count = (NI)(TM__ln5vuDpFyDrAqQbYD2g52Q_16);
|
|
#line 484 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
(*pkey).events |= ((NU32)1)<<((((tyEnum_Event__nI40bZzTyYVrl763dZ9aHDg) 9)) & 31);
|
|
}
|
|
LA99_: ;
|
|
if ((NU)(k) >= (NU)(resultsLen_0)){ raiseIndexError2(k,resultsLen_0-1); }
|
|
#line 486 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
results[k] = rkey;
|
|
#line 487 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if (nimAddInt(k, ((NI) 1), &TM__ln5vuDpFyDrAqQbYD2g52Q_17)) { raiseOverflow(); }; k = (NI)(TM__ln5vuDpFyDrAqQbYD2g52Q_17);
|
|
#line 488 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if (nimAddInt(i, ((NI) 1), &TM__ln5vuDpFyDrAqQbYD2g52Q_18)) { raiseOverflow(); }; i = (NI)(TM__ln5vuDpFyDrAqQbYD2g52Q_18); } LA19: ;
|
|
} LA18: ;
|
|
}
|
|
|
|
#line 489 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
result = k; }
|
|
LA5_: ;
|
|
return result;}
|
|
|
|
#line 271 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/selectors.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(void, raiseIOSelectorsError__DsOWi00vXgEmCXwnjpsJhw)(NimStringDesc* message) { NimStringDesc* msg; tyObject_IOSelectorsException__QyK3XdhgwEegLQs5Yj3Vew* err; tyObject_IOSelectorsException__QyK3XdhgwEegLQs5Yj3Vew* T1_; NimStringDesc* T2_;
|
|
#line 272 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/selectors.nim"
|
|
msg = ((NimStringDesc*) NIM_NIL);
|
|
#line 274 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/selectors.nim"
|
|
msg = resizeString(msg, (message ? message->Sup.len : 0) + 0);appendString(msg, message);
|
|
#line 279 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/selectors.nim"
|
|
T1_ = (tyObject_IOSelectorsException__QyK3XdhgwEegLQs5Yj3Vew*)0; T1_ = (tyObject_IOSelectorsException__QyK3XdhgwEegLQs5Yj3Vew*) newObj((&NTI__AwXiAVUXPdcLyQW5mY84tA_), sizeof(tyObject_IOSelectorsException__QyK3XdhgwEegLQs5Yj3Vew)); (*T1_).Sup.Sup.m_type = (&NTI__QyK3XdhgwEegLQs5Yj3Vew_); (*T1_).Sup.name = "IOSelectorsException"; T2_ = (NimStringDesc*)0; T2_ = (*T1_).Sup.message; (*T1_).Sup.message = copyStringRC1(msg); if (T2_) nimGCunrefNoCycle(T2_); asgnRef((void**) (&(*T1_).Sup.parent), NIM_NIL); err = T1_;
|
|
#line 280 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/selectors.nim"
|
|
raiseExceptionEx((Exception*)err, "IOSelectorsException", "raiseIOSelectorsError", "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/"
|
|
"vendor/Nim/lib/pure/selectors.nim", 280);}
|
|
|
|
#line 496 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
static N_INLINE(void, stareq___ogcC1Md4c289bEhAZWpmZUwsystem)(NI* x, NI y) { NI TM__ln5vuDpFyDrAqQbYD2g52Q_20;
|
|
#line 499 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
|
|
#line 499 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/arithmetics.nim"
|
|
if (nimMulInt((*x), y, &TM__ln5vuDpFyDrAqQbYD2g52Q_20)) { raiseOverflow(); }; (*x) = (NI)(TM__ln5vuDpFyDrAqQbYD2g52Q_20);}
|
|
|
|
#line 499 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
static N_INLINE(NIM_BOOL, contains__OZFzGZer6mx0buZiLTnhyQselectors)(tyObject_SelectorImpl__g9a4S3yH20afsjHZx9aezm9bA* s, NI fd) { NIM_BOOL result;{ result = (NIM_BOOL)0;
|
|
#line 500 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 500 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 500 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 500 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if ((NU)(fd) >= (NU)((*s).fds ? (*s).fds->Sup.len : 0)){ raiseIndexError2(fd,((*s).fds ? (*s).fds->Sup.len : 0)-1); } result = !(((*s).fds->data[fd].ident == ((NI) -1))); goto BeforeRet_;
|
|
}BeforeRet_: ;
|
|
return result;}
|
|
|
|
#line 502 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
N_LIB_PRIVATE N_NIMCALL(tyObject_SelectorData__bCtwor9caPGFc9ccCxVlW5Ww*, getData__eQNlkfRqy3U9bSizZjte5dQ)(tyObject_SelectorImpl__g9a4S3yH20afsjHZx9aezm9bA* s, NI fd) { tyObject_SelectorData__bCtwor9caPGFc9ccCxVlW5Ww* result; NI fdi; result = (tyObject_SelectorData__bCtwor9caPGFc9ccCxVlW5Ww*)0;
|
|
#line 503 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
fdi = fd;
|
|
#line 134 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
{
|
|
#line 134 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if (!((*s).maxFD <= fdi)) goto LA3_;
|
|
|
|
#line 135 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 135 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
raiseIOSelectorsError__DsOWi00vXgEmCXwnjpsJhw(((NimStringDesc*) &TM__ln5vuDpFyDrAqQbYD2g52Q_19));
|
|
}
|
|
LA3_: ;
|
|
|
|
#line 504 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
{ NI numFDX60gensym21440281_;
|
|
#line 136 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if (!((*s).numFD <= fdi)) goto LA7_;
|
|
|
|
#line 137 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
numFDX60gensym21440281_ = (*s).numFD; {
|
|
#line 138 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
while (1) {
|
|
#line 138 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if (!(numFDX60gensym21440281_ <= fdi)) goto LA10;
|
|
|
|
#line 138 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 138 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
stareq___ogcC1Md4c289bEhAZWpmZUwsystem((&numFDX60gensym21440281_), ((NI) 2));
|
|
} LA10: ;
|
|
}
|
|
|
|
#line 142 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if ((numFDX60gensym21440281_) < ((NI) 0) || (numFDX60gensym21440281_) > ((NI) IL64(9223372036854775807))){ raiseRangeErrorI(numFDX60gensym21440281_, ((NI) 0), ((NI) IL64(9223372036854775807))); } asgnRef((void**) (&(*s).fds), (tySequence__iPL3rW9a9bV9cIzaXekL6AsDg*) setLengthSeqV2(&((*s).fds)->Sup, (&NTI__iPL3rW9a9bV9cIzaXekL6AsDg_), ((NI) (numFDX60gensym21440281_)))); { NI iX60gensym21440282_; NI i; iX60gensym21440282_ = (NI)0;
|
|
#line 106 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
i = (*s).numFD; {
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
while (1) { NI TM__ln5vuDpFyDrAqQbYD2g52Q_21;
|
|
#line 107 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (!(i < numFDX60gensym21440281_)) goto LA13;
|
|
|
|
#line 143 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
iX60gensym21440282_ = i; if ((NU)(iX60gensym21440282_) >= (NU)((*s).fds ? (*s).fds->Sup.len : 0)){ raiseIndexError2(iX60gensym21440282_,((*s).fds ? (*s).fds->Sup.len : 0)-1); }
|
|
#line 144 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
(*s).fds->data[iX60gensym21440282_].ident = ((NI) -1);
|
|
#line 109 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/system/iterators_1.nim"
|
|
if (nimAddInt(i, ((NI) 1), &TM__ln5vuDpFyDrAqQbYD2g52Q_21)) { raiseOverflow(); }; i = (NI)(TM__ln5vuDpFyDrAqQbYD2g52Q_21); } LA13: ;
|
|
}
|
|
}
|
|
|
|
#line 145 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
(*s).numFD = numFDX60gensym21440281_; }
|
|
LA7_: ;
|
|
|
|
#line 505 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
{ NIM_BOOL T16_;
|
|
#line 505 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
|
|
#line 505 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
T16_ = (NIM_BOOL)0; T16_ = contains__OZFzGZer6mx0buZiLTnhyQselectors(s, fdi); if (!T16_) goto LA17_;
|
|
|
|
#line 506 "/home/runner/work/nim-waku/nim-waku/vendor/nimbus-build-system/vendor/Nim/lib/pure/ioselects/ioselectors_epoll.nim"
|
|
if ((NU)(fdi) >= (NU)((*s).fds ? (*s).fds->Sup.len : 0)){ raiseIndexError2(fdi,((*s).fds ? (*s).fds->Sup.len : 0)-1); } result = (&(*s).fds->data[fdi].data); }
|
|
LA17_: ;
|
|
return result;}
|
|
N_LIB_PRIVATE N_NIMCALL(void, stdlib_selectorsDatInit000)(void) {
|
|
|
|
#line 999999 "generated_not_to_break_here"
|
|
static TNimNode* TM__ln5vuDpFyDrAqQbYD2g52Q_2_5[5];
|
|
static TNimNode* TM__ln5vuDpFyDrAqQbYD2g52Q_3_4[4];
|
|
static TNimNode* TM__ln5vuDpFyDrAqQbYD2g52Q_4_17[17];
|
|
NI TM__ln5vuDpFyDrAqQbYD2g52Q_6;
|
|
static char* NIM_CONST TM__ln5vuDpFyDrAqQbYD2g52Q_5[17] = {
|
|
"Read",
|
|
"Write",
|
|
"Timer",
|
|
"Signal",
|
|
"Process",
|
|
"Vnode",
|
|
"User",
|
|
"Error",
|
|
"Oneshot",
|
|
"Finished",
|
|
"VnodeWrite",
|
|
"VnodeDelete",
|
|
"VnodeExtend",
|
|
"VnodeAttrib",
|
|
"VnodeLink",
|
|
"VnodeRename",
|
|
"VnodeRevoke"};
|
|
static TNimNode* TM__ln5vuDpFyDrAqQbYD2g52Q_7_3[3];
|
|
static TNimNode TM__ln5vuDpFyDrAqQbYD2g52Q_0[35];NTI__g9a4S3yH20afsjHZx9aezm9bA_.size = sizeof(tyObject_SelectorImpl__g9a4S3yH20afsjHZx9aezm9bA);
|
|
NTI__g9a4S3yH20afsjHZx9aezm9bA_.kind = 18;
|
|
NTI__g9a4S3yH20afsjHZx9aezm9bA_.base = 0;
|
|
NTI__g9a4S3yH20afsjHZx9aezm9bA_.name = "SelectorImpl[asyncloop.SelectorData]";
|
|
NTI__g9a4S3yH20afsjHZx9aezm9bA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__g9a4S3yH20afsjHZx9aezm9bA_;
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_2_5[0] = &TM__ln5vuDpFyDrAqQbYD2g52Q_0[1];
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[1].kind = 1;
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[1].offset = offsetof(tyObject_SelectorImpl__g9a4S3yH20afsjHZx9aezm9bA, epollFD);
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[1].typ = (&NTI__nlCscttRCss70IBTyuBqnA_);
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[1].name = "epollFD";
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_2_5[1] = &TM__ln5vuDpFyDrAqQbYD2g52Q_0[2];
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[2].kind = 1;
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[2].offset = offsetof(tyObject_SelectorImpl__g9a4S3yH20afsjHZx9aezm9bA, maxFD);
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[2].typ = (&NTI__rR5Bzr1D5krxoo1NcNyeMA_);
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[2].name = "maxFD";
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_2_5[2] = &TM__ln5vuDpFyDrAqQbYD2g52Q_0[3];
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[3].kind = 1;
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[3].offset = offsetof(tyObject_SelectorImpl__g9a4S3yH20afsjHZx9aezm9bA, numFD);
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[3].typ = (&NTI__rR5Bzr1D5krxoo1NcNyeMA_);
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[3].name = "numFD";
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_2_5[3] = &TM__ln5vuDpFyDrAqQbYD2g52Q_0[4];
|
|
NTI__s8WfktWY9bd6XxYsLizlOtg_.size = sizeof(tyObject_SelectorKey__s8WfktWY9bd6XxYsLizlOtg);
|
|
NTI__s8WfktWY9bd6XxYsLizlOtg_.kind = 18;
|
|
NTI__s8WfktWY9bd6XxYsLizlOtg_.base = 0;
|
|
NTI__s8WfktWY9bd6XxYsLizlOtg_.name = "SelectorKey[asyncloop.SelectorData]";
|
|
NTI__s8WfktWY9bd6XxYsLizlOtg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__s8WfktWY9bd6XxYsLizlOtg_;
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_3_4[0] = &TM__ln5vuDpFyDrAqQbYD2g52Q_0[6];
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[6].kind = 1;
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[6].offset = offsetof(tyObject_SelectorKey__s8WfktWY9bd6XxYsLizlOtg, ident);
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[6].typ = (&NTI__rR5Bzr1D5krxoo1NcNyeMA_);
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[6].name = "ident";
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_3_4[1] = &TM__ln5vuDpFyDrAqQbYD2g52Q_0[7];
|
|
NTI__nI40bZzTyYVrl763dZ9aHDg_.size = sizeof(tyEnum_Event__nI40bZzTyYVrl763dZ9aHDg);
|
|
NTI__nI40bZzTyYVrl763dZ9aHDg_.kind = 14;
|
|
NTI__nI40bZzTyYVrl763dZ9aHDg_.base = 0;
|
|
NTI__nI40bZzTyYVrl763dZ9aHDg_.flags = 3;
|
|
NTI__nI40bZzTyYVrl763dZ9aHDg_.name = "Event";
|
|
NTI__nI40bZzTyYVrl763dZ9aHDg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__nI40bZzTyYVrl763dZ9aHDg_;
|
|
for (TM__ln5vuDpFyDrAqQbYD2g52Q_6 = 0; TM__ln5vuDpFyDrAqQbYD2g52Q_6 < 17; TM__ln5vuDpFyDrAqQbYD2g52Q_6++) {
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[TM__ln5vuDpFyDrAqQbYD2g52Q_6+8].kind = 1;
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[TM__ln5vuDpFyDrAqQbYD2g52Q_6+8].offset = TM__ln5vuDpFyDrAqQbYD2g52Q_6;
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[TM__ln5vuDpFyDrAqQbYD2g52Q_6+8].name = TM__ln5vuDpFyDrAqQbYD2g52Q_5[TM__ln5vuDpFyDrAqQbYD2g52Q_6];
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_4_17[TM__ln5vuDpFyDrAqQbYD2g52Q_6] = &TM__ln5vuDpFyDrAqQbYD2g52Q_0[TM__ln5vuDpFyDrAqQbYD2g52Q_6+8];
|
|
}
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[25].len = 17; TM__ln5vuDpFyDrAqQbYD2g52Q_0[25].kind = 2; TM__ln5vuDpFyDrAqQbYD2g52Q_0[25].sons = &TM__ln5vuDpFyDrAqQbYD2g52Q_4_17[0];
|
|
NTI__nI40bZzTyYVrl763dZ9aHDg_.node = &TM__ln5vuDpFyDrAqQbYD2g52Q_0[25];
|
|
NTI__YIRsZrDT89buh37M5yeUgng_.size = sizeof(tySet_tyEnum_Event__nI40bZzTyYVrl763dZ9aHDg);
|
|
NTI__YIRsZrDT89buh37M5yeUgng_.kind = 19;
|
|
NTI__YIRsZrDT89buh37M5yeUgng_.base = (&NTI__nI40bZzTyYVrl763dZ9aHDg_);
|
|
NTI__YIRsZrDT89buh37M5yeUgng_.flags = 3;
|
|
NTI__YIRsZrDT89buh37M5yeUgng_.name = "set[Event]";
|
|
NTI__YIRsZrDT89buh37M5yeUgng_.nextType = nimTypeRoot; nimTypeRoot=&NTI__YIRsZrDT89buh37M5yeUgng_;
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[26].len = 0; TM__ln5vuDpFyDrAqQbYD2g52Q_0[26].kind = 0;
|
|
NTI__YIRsZrDT89buh37M5yeUgng_.node = &TM__ln5vuDpFyDrAqQbYD2g52Q_0[26];
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[7].kind = 1;
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[7].offset = offsetof(tyObject_SelectorKey__s8WfktWY9bd6XxYsLizlOtg, events);
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[7].typ = (&NTI__YIRsZrDT89buh37M5yeUgng_);
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[7].name = "events";
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_3_4[2] = &TM__ln5vuDpFyDrAqQbYD2g52Q_0[27];
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[27].kind = 1;
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[27].offset = offsetof(tyObject_SelectorKey__s8WfktWY9bd6XxYsLizlOtg, param);
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[27].typ = (&NTI__rR5Bzr1D5krxoo1NcNyeMA_);
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[27].name = "param";
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_3_4[3] = &TM__ln5vuDpFyDrAqQbYD2g52Q_0[28];
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[28].kind = 1;
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[28].offset = offsetof(tyObject_SelectorKey__s8WfktWY9bd6XxYsLizlOtg, data);
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[28].typ = (&NTI__bCtwor9caPGFc9ccCxVlW5Ww_);
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[28].name = "data";
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[5].len = 4; TM__ln5vuDpFyDrAqQbYD2g52Q_0[5].kind = 2; TM__ln5vuDpFyDrAqQbYD2g52Q_0[5].sons = &TM__ln5vuDpFyDrAqQbYD2g52Q_3_4[0];
|
|
NTI__s8WfktWY9bd6XxYsLizlOtg_.node = &TM__ln5vuDpFyDrAqQbYD2g52Q_0[5];
|
|
NTI__iPL3rW9a9bV9cIzaXekL6AsDg_.size = sizeof(tySequence__iPL3rW9a9bV9cIzaXekL6AsDg*);
|
|
NTI__iPL3rW9a9bV9cIzaXekL6AsDg_.kind = 24;
|
|
NTI__iPL3rW9a9bV9cIzaXekL6AsDg_.base = (&NTI__s8WfktWY9bd6XxYsLizlOtg_);
|
|
NTI__iPL3rW9a9bV9cIzaXekL6AsDg_.name = "seq[SelectorKey[asyncloop.SelectorData]]";
|
|
NTI__iPL3rW9a9bV9cIzaXekL6AsDg_.nextType = nimTypeRoot; nimTypeRoot=&NTI__iPL3rW9a9bV9cIzaXekL6AsDg_;
|
|
NTI__iPL3rW9a9bV9cIzaXekL6AsDg_.marker = Marker_tySequence__iPL3rW9a9bV9cIzaXekL6AsDg;
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[4].kind = 1;
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[4].offset = offsetof(tyObject_SelectorImpl__g9a4S3yH20afsjHZx9aezm9bA, fds);
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[4].typ = (&NTI__iPL3rW9a9bV9cIzaXekL6AsDg_);
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[4].name = "fds";
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_2_5[4] = &TM__ln5vuDpFyDrAqQbYD2g52Q_0[29];
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[29].kind = 1;
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[29].offset = offsetof(tyObject_SelectorImpl__g9a4S3yH20afsjHZx9aezm9bA, count);
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[29].typ = (&NTI__rR5Bzr1D5krxoo1NcNyeMA_);
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[29].name = "count";
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[0].len = 5; TM__ln5vuDpFyDrAqQbYD2g52Q_0[0].kind = 2; TM__ln5vuDpFyDrAqQbYD2g52Q_0[0].sons = &TM__ln5vuDpFyDrAqQbYD2g52Q_2_5[0];
|
|
NTI__g9a4S3yH20afsjHZx9aezm9bA_.node = &TM__ln5vuDpFyDrAqQbYD2g52Q_0[0];
|
|
NTI__HhFgDyQdqUwF69cxqPVsT8w_.size = sizeof(tyObject_SelectorImpl__g9a4S3yH20afsjHZx9aezm9bA*);
|
|
NTI__HhFgDyQdqUwF69cxqPVsT8w_.kind = 22;
|
|
NTI__HhFgDyQdqUwF69cxqPVsT8w_.base = (&NTI__g9a4S3yH20afsjHZx9aezm9bA_);
|
|
NTI__HhFgDyQdqUwF69cxqPVsT8w_.name = "Selector[asyncloop.SelectorData]";
|
|
NTI__HhFgDyQdqUwF69cxqPVsT8w_.nextType = nimTypeRoot; nimTypeRoot=&NTI__HhFgDyQdqUwF69cxqPVsT8w_;
|
|
NTI__HhFgDyQdqUwF69cxqPVsT8w_.marker = Marker_tyRef__HhFgDyQdqUwF69cxqPVsT8w;
|
|
NTI__vOvPQEijZeFv1xAgbh5rNw_.size = sizeof(tyObject_ReadyKey__vOvPQEijZeFv1xAgbh5rNw);
|
|
NTI__vOvPQEijZeFv1xAgbh5rNw_.kind = 18;
|
|
NTI__vOvPQEijZeFv1xAgbh5rNw_.base = 0;
|
|
NTI__vOvPQEijZeFv1xAgbh5rNw_.flags = 3;
|
|
NTI__vOvPQEijZeFv1xAgbh5rNw_.name = "ReadyKey";
|
|
NTI__vOvPQEijZeFv1xAgbh5rNw_.nextType = nimTypeRoot; nimTypeRoot=&NTI__vOvPQEijZeFv1xAgbh5rNw_;
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_7_3[0] = &TM__ln5vuDpFyDrAqQbYD2g52Q_0[31];
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[31].kind = 1;
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[31].offset = offsetof(tyObject_ReadyKey__vOvPQEijZeFv1xAgbh5rNw, fd);
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[31].typ = (&NTI__rR5Bzr1D5krxoo1NcNyeMA_);
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[31].name = "fd";
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_7_3[1] = &TM__ln5vuDpFyDrAqQbYD2g52Q_0[32];
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[32].kind = 1;
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[32].offset = offsetof(tyObject_ReadyKey__vOvPQEijZeFv1xAgbh5rNw, events);
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[32].typ = (&NTI__YIRsZrDT89buh37M5yeUgng_);
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[32].name = "events";
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_7_3[2] = &TM__ln5vuDpFyDrAqQbYD2g52Q_0[33];
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[33].kind = 1;
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[33].offset = offsetof(tyObject_ReadyKey__vOvPQEijZeFv1xAgbh5rNw, errorCode);
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[33].typ = (&NTI__sVg18TP9cLifHyygRe9cro9aA_);
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[33].name = "errorCode";
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[30].len = 3; TM__ln5vuDpFyDrAqQbYD2g52Q_0[30].kind = 2; TM__ln5vuDpFyDrAqQbYD2g52Q_0[30].sons = &TM__ln5vuDpFyDrAqQbYD2g52Q_7_3[0];
|
|
NTI__vOvPQEijZeFv1xAgbh5rNw_.node = &TM__ln5vuDpFyDrAqQbYD2g52Q_0[30];
|
|
NTI__QyK3XdhgwEegLQs5Yj3Vew_.size = sizeof(tyObject_IOSelectorsException__QyK3XdhgwEegLQs5Yj3Vew);
|
|
NTI__QyK3XdhgwEegLQs5Yj3Vew_.kind = 17;
|
|
NTI__QyK3XdhgwEegLQs5Yj3Vew_.base = (&NTI__XEycrCsme5C8CVWAYEcdBQ_);
|
|
NTI__QyK3XdhgwEegLQs5Yj3Vew_.name = "IOSelectorsException";
|
|
NTI__QyK3XdhgwEegLQs5Yj3Vew_.nextType = nimTypeRoot; nimTypeRoot=&NTI__QyK3XdhgwEegLQs5Yj3Vew_;
|
|
TM__ln5vuDpFyDrAqQbYD2g52Q_0[34].len = 0; TM__ln5vuDpFyDrAqQbYD2g52Q_0[34].kind = 2;
|
|
NTI__QyK3XdhgwEegLQs5Yj3Vew_.node = &TM__ln5vuDpFyDrAqQbYD2g52Q_0[34];
|
|
NTI__AwXiAVUXPdcLyQW5mY84tA_.size = sizeof(tyObject_IOSelectorsException__QyK3XdhgwEegLQs5Yj3Vew*);
|
|
NTI__AwXiAVUXPdcLyQW5mY84tA_.kind = 22;
|
|
NTI__AwXiAVUXPdcLyQW5mY84tA_.base = (&NTI__QyK3XdhgwEegLQs5Yj3Vew_);
|
|
NTI__AwXiAVUXPdcLyQW5mY84tA_.name = "ref IOSelectorsException";
|
|
NTI__AwXiAVUXPdcLyQW5mY84tA_.nextType = nimTypeRoot; nimTypeRoot=&NTI__AwXiAVUXPdcLyQW5mY84tA_;
|
|
NTI__AwXiAVUXPdcLyQW5mY84tA_.marker = Marker_tyRef__AwXiAVUXPdcLyQW5mY84tA;
|
|
}
|
|
|