nwaku/nimcache/release/example/@m..@s..@svendor@snim-chronos@schronos@ssendfile.nim.c

47 lines
3.2 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 -I/home/runner/work/nim-waku/nim-waku/vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc -I/home/runner/work/nim-waku/nim-waku/vendor/nim-nat-traversal/vendor/libnatpmp-upstream -DENABLE_STRNATPMPERR -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/examples/v1 -o nimcache/release/example/@m..@s..@svendor@snim-chronos@schronos@ssendfile.nim.c.o nimcache/release/example/@m..@s..@svendor@snim-chronos@schronos@ssendfile.nim.c */
#define NIM_INTBITS 64
#include "nimbase.h"
#include <sys/sendfile.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)
N_LIB_PRIVATE N_NOINLINE(void, raiseRangeErrorI)(NI64 i, NI64 a, NI64 b);
#line 44 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronos/chronos/sendfile.nim"
N_LIB_PRIVATE N_NIMCALL(NI, sendfile__Wk9bpuL27dOfTNXUzNsKp8A)(NI outfd, NI infd, NI offset, NI* count_0) { NI result; NI o; result = (NI)0;
#line 45 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronos/chronos/sendfile.nim"
o = offset;
#line 46 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronos/chronos/sendfile.nim"
if ((outfd) < ((int) (-2147483647 -1)) || (outfd) > ((int) 2147483647)){ raiseRangeErrorI(outfd, ((int) (-2147483647 -1)), ((int) 2147483647)); } if ((infd) < ((int) (-2147483647 -1)) || (infd) > ((int) 2147483647)){ raiseRangeErrorI(infd, ((int) (-2147483647 -1)), ((int) 2147483647)); }
#line 46 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronos/chronos/sendfile.nim"
result = sendfile(((int) (outfd)), ((int) (infd)), (&o), (*count_0));
#line 47 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronos/chronos/sendfile.nim"
{
#line 47 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronos/chronos/sendfile.nim"
if (!(((NI) 0) <= result)) goto LA3_;
#line 48 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronos/chronos/sendfile.nim"
(*count_0) = result;
#line 49 "/home/runner/work/nim-waku/nim-waku/vendor/nim-chronos/chronos/sendfile.nim"
result = ((NI) 0); }
LA3_: ;
return result;}