forked from borgo-lang/borgo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsyscall.brg
2488 lines (1728 loc) · 56.3 KB
/
syscall.brg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
fn Accept (fd: Handle) -> (Handle, Sockaddr, error) { EXT }
fn Accept (fd: Handle) -> (Handle, Sockaddr, error) { EXT }
fn Accept4 (fd: int, flags: int) -> (int, Sockaddr, error) { EXT }
fn AcceptEx (ls: Handle, as: Handle, buf: *byte, rxdatalen: uint32, laddrlen: uint32, raddrlen: uint32, recvd: *uint32, overlapped: *Overlapped) -> error { EXT }
fn Access (path: string, mode: uint32) -> error { EXT }
fn Acct (path: string) -> error { EXT }
fn Adjtime (delta: *Timeval, olddelta: *Timeval) -> error { EXT }
fn Adjtimex (buf: *Timex) -> Result<int> { EXT }
fn AllThreadsSyscall (trap: uintptr, a1: uintptr, a2: uintptr, a3: uintptr) -> (uintptr, Errno) { EXT }
fn AllThreadsSyscall6 (trap: uintptr, a1: uintptr, a2: uintptr, a3: uintptr, a4: uintptr, a5: uintptr, a6: uintptr) -> (uintptr, Errno) { EXT }
fn AttachLsf (fd: int, i: [SockFilter]) -> error { EXT }
fn Await (w: *Waitmsg) -> error { EXT }
fn Bind (fd: int, sa: Sockaddr) -> error { EXT }
fn BindToDevice (fd: int, device: string) -> error { EXT }
fn BpfBuflen (fd: int) -> Result<int> { EXT }
fn BpfDatalink (fd: int) -> Result<int> { EXT }
fn BpfHeadercmpl (fd: int) -> Result<int> { EXT }
fn BpfInterface (fd: int, name: string) -> Result<string> { EXT }
fn BpfJump (code: int, k: int, jt: int, jf: int) -> *BpfInsn { EXT }
fn BpfStats (fd: int) -> Result<*BpfStat> { EXT }
fn BpfStmt (code: int, k: int) -> *BpfInsn { EXT }
fn BpfTimeout (fd: int) -> Result<*Timeval> { EXT }
fn BytePtrFromString (s: string) -> Result<*byte> { EXT }
fn ByteSliceFromString (s: string) -> Result<[byte]> { EXT }
fn CancelIo (s: Handle) -> error { EXT }
fn CancelIoEx (s: Handle, o: *Overlapped) -> error { EXT }
fn CertAddCertificateContextToStore (store: Handle, certContext: *CertContext, addDisposition: uint32, storeContext: **CertContext) -> error { EXT }
fn CertCloseStore (store: Handle, flags: uint32) -> error { EXT }
fn CertCreateCertificateContext (certEncodingType: uint32, certEncoded: *byte, encodedLen: uint32) -> Result<*CertContext> { EXT }
fn CertEnumCertificatesInStore (store: Handle, prevContext: *CertContext) -> Result<*CertContext> { EXT }
fn CertFreeCertificateChain (ctx: *CertChainContext) -> () { EXT }
fn CertFreeCertificateContext (ctx: *CertContext) -> error { EXT }
fn CertGetCertificateChain (engine: Handle, leaf: *CertContext, time: *Filetime, additionalStore: Handle, para: *CertChainPara, flags: uint32, reserved: uintptr, chainCtx: **CertChainContext) -> error { EXT }
fn CertOpenStore (storeProvider: uintptr, msgAndCertEncodingType: uint32, cryptProv: uintptr, flags: uint32, para: uintptr) -> Result<Handle> { EXT }
fn CertOpenSystemStore (hprov: Handle, name: *uint16) -> Result<Handle> { EXT }
fn CertVerifyCertificateChainPolicy (policyOID: uintptr, chain: *CertChainContext, para: *CertChainPolicyPara, status: *CertChainPolicyStatus) -> error { EXT }
fn Chdir (path: string) -> error { EXT }
fn CheckBpfVersion (fd: int) -> error { EXT }
fn Chflags (path: string, flags: int) -> error { EXT }
fn Chmod (path: string, mode: uint32) -> error { EXT }
fn Chown (path: string, uid: int, gid: int) -> error { EXT }
fn Chroot (path: string) -> error { EXT }
fn Clearenv () -> () { EXT }
fn Close (fd: int) -> error { EXT }
fn CloseHandle (handle: Handle) -> error { EXT }
fn CloseOnExec (fd: int) -> () { EXT }
fn Closesocket (s: Handle) -> error { EXT }
fn CmsgLen (datalen: int) -> int { EXT }
fn CmsgSpace (datalen: int) -> int { EXT }
fn CommandLineToArgv (cmd: *uint16, argc: *int32) -> Result<*[*[uint16]]> { EXT }
fn ComputerName () -> Result<string> { EXT }
fn Connect (fd: int, sa: Sockaddr) -> error { EXT }
fn ConnectEx (fd: Handle, sa: Sockaddr, sendBuf: *byte, sendDataLen: uint32, bytesSent: *uint32, overlapped: *Overlapped) -> error { EXT }
fn ConvertSidToStringSid (sid: *SID, stringSid: **uint16) -> error { EXT }
fn ConvertStringSidToSid (stringSid: *uint16, sid: **SID) -> error { EXT }
fn CopySid (destSidLen: uint32, destSid: *SID, srcSid: *SID) -> error { EXT }
fn Creat (path: string, mode: uint32) -> Result<int> { EXT }
fn Create (path: string, mode: int, perm: uint32) -> Result<int> { EXT }
fn CreateDirectory (path: *uint16, sa: *SecurityAttributes) -> error { EXT }
fn CreateFile (name: *uint16, access: uint32, mode: uint32, sa: *SecurityAttributes, createmode: uint32, attrs: uint32, templatefile: int32) -> Result<Handle> { EXT }
fn CreateFileMapping (fhandle: Handle, sa: *SecurityAttributes, prot: uint32, maxSizeHigh: uint32, maxSizeLow: uint32, name: *uint16) -> Result<Handle> { EXT }
fn CreateHardLink (filename: *uint16, existingfilename: *uint16, reserved: uintptr) -> error { EXT }
fn CreateIoCompletionPort (filehandle: Handle, cphandle: Handle, key: uint32, threadcnt: uint32) -> Result<Handle> { EXT }
fn CreatePipe (readhandle: *Handle, writehandle: *Handle, sa: *SecurityAttributes, size: uint32) -> error { EXT }
fn CreateProcess (appName: *uint16, commandLine: *uint16, procSecurity: *SecurityAttributes, threadSecurity: *SecurityAttributes, inheritHandles: bool, creationFlags: uint32, env: *uint16, currentDir: *uint16, startupInfo: *StartupInfo, outProcInfo: *ProcessInformation) -> error { EXT }
fn CreateProcessAsUser (token: Token, appName: *uint16, commandLine: *uint16, procSecurity: *SecurityAttributes, threadSecurity: *SecurityAttributes, inheritHandles: bool, creationFlags: uint32, env: *uint16, currentDir: *uint16, startupInfo: *StartupInfo, outProcInfo: *ProcessInformation) -> error { EXT }
fn CreateSymbolicLink (symlinkfilename: *uint16, targetfilename: *uint16, flags: uint32) -> error { EXT }
fn CreateToolhelp32Snapshot (flags: uint32, processId: uint32) -> Result<Handle> { EXT }
fn CryptAcquireContext (provhandle: *Handle, container: *uint16, provider: *uint16, provtype: uint32, flags: uint32) -> error { EXT }
fn CryptGenRandom (provhandle: Handle, buflen: uint32, buf: *byte) -> error { EXT }
fn CryptReleaseContext (provhandle: Handle, flags: uint32) -> error { EXT }
fn DeleteFile (path: *uint16) -> error { EXT }
fn DetachLsf (fd: int) -> error { EXT }
fn DeviceIoControl (handle: Handle, ioControlCode: uint32, inBuffer: *byte, inBufferSize: uint32, outBuffer: *byte, outBufferSize: uint32, bytesReturned: *uint32, overlapped: *Overlapped) -> error { EXT }
fn DnsNameCompare (name1: *uint16, name2: *uint16) -> bool { EXT }
fn DnsQuery (name: string, qtype: uint16, options: uint32, extra: *byte, qrs: **DNSRecord, pr: *byte) -> error { EXT }
fn DnsRecordListFree (rl: *DNSRecord, freetype: uint32) -> () { EXT }
fn Dup (fd: int) -> Result<int> { EXT }
fn Dup2 (from: int, to: int) -> error { EXT }
fn Dup3 (oldfd: int, newfd: int, flags: int) -> error { EXT }
fn DuplicateHandle (hSourceProcessHandle: Handle, hSourceHandle: Handle, hTargetProcessHandle: Handle, lpTargetHandle: *Handle, dwDesiredAccess: uint32, bInheritHandle: bool, dwOptions: uint32) -> error { EXT }
fn Environ () -> [string] { EXT }
fn EpollCreate (size: int) -> Result<int> { EXT }
fn EpollCreate1 (flag: int) -> Result<int> { EXT }
fn EpollCtl (epfd: int, op: int, fd: int, event: *EpollEvent) -> error { EXT }
fn EpollWait (epfd: int, events: [EpollEvent], msec: int) -> Result<int> { EXT }
fn EscapeArg (s: string) -> string { EXT }
fn Exchangedata (path1: string, path2: string, options: int) -> error { EXT }
fn Exec (argv0: string, argv: [string], envv: [string]) -> error { EXT }
fn Exit (code: int) -> () { EXT }
fn ExitProcess (exitcode: uint32) -> () { EXT }
fn Faccessat (dirfd: int, path: string, mode: uint32, flags: int) -> error { EXT }
fn Fallocate (fd: int, mode: uint32, off: int64, len: int64) -> error { EXT }
fn Fchdir (fd: Handle) -> error { EXT }
fn Fchflags (fd: int, flags: int) -> error { EXT }
fn Fchmod (fd: int, mode: uint32) -> error { EXT }
fn Fchmodat (dirfd: int, path: string, mode: uint32, flags: int) -> error { EXT }
fn Fchown (fd: int, uid: int, gid: int) -> error { EXT }
fn Fchownat (dirfd: int, path: string, uid: int, gid: int, flags: int) -> error { EXT }
fn FcntlFlock (fd: uintptr, cmd: int, lk: *Flock_t) -> error { EXT }
fn Fd2path (fd: int) -> Result<string> { EXT }
fn Fdatasync (fd: int) -> error { EXT }
fn FindClose (handle: Handle) -> error { EXT }
fn FindFirstFile (name: *uint16, data: *Win32finddata) -> Result<Handle> { EXT }
fn FindNextFile (handle: Handle, data: *Win32finddata) -> error { EXT }
fn Fixwd () -> () { EXT }
fn Flock (fd: int, how: int) -> error { EXT }
fn FlushBpf (fd: int) -> error { EXT }
fn FlushFileBuffers (handle: Handle) -> error { EXT }
fn FlushViewOfFile (addr: uintptr, length: uintptr) -> error { EXT }
fn ForkExec (argv0: string, argv: [string], attr: *ProcAttr) -> Result<int> { EXT }
fn FormatMessage (flags: uint32, msgsrc: uint32, msgid: uint32, langid: uint32, buf: [uint16], args: *byte) -> Result<uint32> { EXT }
fn Fpathconf (fd: int, name: int) -> Result<int> { EXT }
fn FreeAddrInfoW (addrinfo: *AddrinfoW) -> () { EXT }
fn FreeEnvironmentStrings (envs: *uint16) -> error { EXT }
fn FreeLibrary (handle: Handle) -> error { EXT }
fn Fstat (fd: int, stat: *Stat_t) -> error { EXT }
fn Fstatat (fd: int, path: string, stat: *Stat_t, flags: int) -> error { EXT }
fn Fstatfs (fd: int, stat: *Statfs_t) -> error { EXT }
fn Fsync (fd: int) -> error { EXT }
fn Ftruncate (fd: int, length: int64) -> error { EXT }
fn FullPath (name: string) -> Result<string> { EXT }
fn Futimes (fd: int, tv: [Timeval]) -> error { EXT }
fn Futimesat (dirfd: int, path: string, tv: [Timeval]) -> error { EXT }
fn Fwstat (fd: int, edir: [byte]) -> error { EXT }
fn GetAcceptExSockaddrs (buf: *byte, rxdatalen: uint32, laddrlen: uint32, raddrlen: uint32, lrsa: **RawSockaddrAny, lrsalen: *int32, rrsa: **RawSockaddrAny, rrsalen: *int32) -> () { EXT }
fn GetAdaptersInfo (ai: *IpAdapterInfo, ol: *uint32) -> error { EXT }
fn GetAddrInfoW (nodename: *uint16, servicename: *uint16, hints: *AddrinfoW, result: **AddrinfoW) -> error { EXT }
fn GetCommandLine () -> *uint16 { EXT }
fn GetComputerName (buf: *uint16, n: *uint32) -> error { EXT }
fn GetConsoleMode (console: Handle, mode: *uint32) -> error { EXT }
fn GetCurrentDirectory (buflen: uint32, buf: *uint16) -> Result<uint32> { EXT }
fn GetCurrentProcess () -> Result<Handle> { EXT }
fn GetEnvironmentStrings () -> Result<*uint16> { EXT }
fn GetEnvironmentVariable (name: *uint16, buffer: *uint16, size: uint32) -> Result<uint32> { EXT }
fn GetExitCodeProcess (handle: Handle, exitcode: *uint32) -> error { EXT }
fn GetFileAttributes (name: *uint16) -> Result<uint32> { EXT }
fn GetFileAttributesEx (name: *uint16, level: uint32, info: *byte) -> error { EXT }
fn GetFileInformationByHandle (handle: Handle, data: *ByHandleFileInformation) -> error { EXT }
fn GetFileType (filehandle: Handle) -> Result<uint32> { EXT }
fn GetFullPathName (path: *uint16, buflen: uint32, buf: *uint16, fname: **uint16) -> Result<uint32> { EXT }
fn GetHostByName (name: string) -> Result<*Hostent> { EXT }
fn GetIfEntry (pIfRow: *MibIfRow) -> error { EXT }
fn GetLastError () -> error { EXT }
fn GetLengthSid (sid: *SID) -> uint32 { EXT }
fn GetLongPathName (path: *uint16, buf: *uint16, buflen: uint32) -> Result<uint32> { EXT }
fn GetProcAddress (module: Handle, procname: string) -> Result<uintptr> { EXT }
fn GetProcessTimes (handle: Handle, creationTime: *Filetime, exitTime: *Filetime, kernelTime: *Filetime, userTime: *Filetime) -> error { EXT }
fn GetProtoByName (name: string) -> Result<*Protoent> { EXT }
fn GetQueuedCompletionStatus (cphandle: Handle, qty: *uint32, key: *uint32, overlapped: **Overlapped, timeout: uint32) -> error { EXT }
fn GetServByName (name: string, proto: string) -> Result<*Servent> { EXT }
fn GetShortPathName (longpath: *uint16, shortpath: *uint16, buflen: uint32) -> Result<uint32> { EXT }
fn GetStartupInfo (startupInfo: *StartupInfo) -> error { EXT }
fn GetStdHandle (stdhandle: int) -> Result<Handle> { EXT }
fn GetSystemTimeAsFileTime (time: *Filetime) -> () { EXT }
fn GetTempPath (buflen: uint32, buf: *uint16) -> Result<uint32> { EXT }
fn GetTimeZoneInformation (tzi: *Timezoneinformation) -> Result<uint32> { EXT }
fn GetTokenInformation (t: Token, infoClass: uint32, info: *byte, infoLen: uint32, returnedLen: *uint32) -> error { EXT }
fn GetUserNameEx (nameFormat: uint32, nameBuffre: *uint16, nSize: *uint32) -> error { EXT }
fn GetUserProfileDirectory (t: Token, dir: *uint16, dirLen: *uint32) -> error { EXT }
fn GetVersion () -> Result<uint32> { EXT }
fn Getcwd (buf: [byte]) -> Result<int> { EXT }
fn Getdents (fd: int, buf: [byte]) -> Result<int> { EXT }
fn Getdirentries (fd: int, buf: [byte], basep: *uintptr) -> Result<int> { EXT }
fn Getdtablesize () -> int { EXT }
fn Getegid () -> int { EXT }
fn Getenv (key: string) -> Option<string> { EXT }
fn Geteuid () -> int { EXT }
fn Getexecname () -> Result<string> { EXT }
fn Getfsstat (buf: [Statfs_t], flags: int) -> Result<int> { EXT }
fn Getgid () -> int { EXT }
fn Getgroups () -> Result<[int]> { EXT }
fn Gethostname () -> Result<string> { EXT }
fn Getkerninfo (op: int32, where: uintptr, size: uintptr, arg: int64) -> Result<int32> { EXT }
fn Getpagesize () -> int { EXT }
fn Getpeername (fd: int) -> Result<Sockaddr> { EXT }
fn Getpgid (pid: int) -> Result<int> { EXT }
fn Getpgrp () -> int { EXT }
fn Getpid () -> int { EXT }
fn Getppid () -> int { EXT }
fn Getpriority (which: int, who: int) -> Result<int> { EXT }
fn Getrlimit (resource: int, rlim: *Rlimit) -> error { EXT }
fn Getrusage (who: int, rusage: *Rusage) -> error { EXT }
fn Getsid (pid: int) -> Result<int> { EXT }
fn Getsockname (fd: Handle) -> Result<Sockaddr> { EXT }
fn Getsockopt (s: Handle, level: int32, optname: int32, optval: *byte, optlen: *int32) -> error { EXT }
fn GetsockoptByte (fd: int, level: int, opt: int) -> Result<byte> { EXT }
fn GetsockoptICMPv6Filter (fd: int, level: int, opt: int) -> Result<*ICMPv6Filter> { EXT }
fn GetsockoptIPMreq (fd: int, level: int, opt: int) -> Result<*IPMreq> { EXT }
fn GetsockoptIPMreqn (fd: int, level: int, opt: int) -> Result<*IPMreqn> { EXT }
fn GetsockoptIPv6MTUInfo (fd: int, level: int, opt: int) -> Result<*IPv6MTUInfo> { EXT }
fn GetsockoptIPv6Mreq (fd: int, level: int, opt: int) -> Result<*IPv6Mreq> { EXT }
fn GetsockoptInet4Addr (fd: int, level: int, opt: int) -> Result<[byte]> { EXT }
fn GetsockoptInt (fd: int, level: int, opt: int) -> Result<int> { EXT }
fn GetsockoptUcred (fd: int, level: int, opt: int) -> Result<*Ucred> { EXT }
fn Gettid () -> int { EXT }
fn Gettimeofday (tp: *Timeval) -> error { EXT }
fn Getuid () -> int { EXT }
fn Getwd () -> Result<string> { EXT }
fn Getxattr (path: string, attr: string, dest: [byte]) -> Result<int> { EXT }
fn InotifyAddWatch (fd: int, pathname: string, mask: uint32) -> Result<int> { EXT }
fn InotifyInit () -> Result<int> { EXT }
fn InotifyInit1 (flags: int) -> Result<int> { EXT }
fn InotifyRmWatch (fd: int, watchdesc: uint32) -> Result<int> { EXT }
fn Ioperm (from: int, num: int, on: int) -> error { EXT }
fn Iopl (level: int) -> error { EXT }
fn Issetugid () -> bool { EXT }
fn Kevent (kq: int, changes: [Kevent_t], events: [Kevent_t], timeout: *Timespec) -> Result<int> { EXT }
fn Kill (pid: int, sig: Signal) -> error { EXT }
fn Klogctl (typ: int, buf: [byte]) -> Result<int> { EXT }
fn Kqueue () -> Result<int> { EXT }
fn Lchown (path: string, uid: int, gid: int) -> error { EXT }
fn Link (path: string, link: string) -> error { EXT }
fn Listen (s: int, backlog: int) -> error { EXT }
fn Listxattr (path: string, dest: [byte]) -> Result<int> { EXT }
fn LoadCancelIoEx () -> error { EXT }
fn LoadConnectEx () -> error { EXT }
fn LoadCreateSymbolicLink () -> error { EXT }
fn LoadDLL (name: string) -> Result<*DLL> { EXT }
fn LoadGetAddrInfo () -> error { EXT }
fn LoadLibrary (libname: string) -> Result<Handle> { EXT }
fn LoadSetFileCompletionNotificationModes () -> error { EXT }
fn LocalFree (hmem: Handle) -> Result<Handle> { EXT }
fn LookupAccountName (systemName: *uint16, accountName: *uint16, sid: *SID, sidLen: *uint32, refdDomainName: *uint16, refdDomainNameLen: *uint32, use_: *uint32) -> error { EXT }
fn LookupAccountSid (systemName: *uint16, sid: *SID, name: *uint16, nameLen: *uint32, refdDomainName: *uint16, refdDomainNameLen: *uint32, use_: *uint32) -> error { EXT }
fn LookupSID (system: string, account: string) -> (*SID, string, uint32, error) { EXT }
fn LsfJump (code: int, k: int, jt: int, jf: int) -> *SockFilter { EXT }
fn LsfSocket (ifindex: int, proto: int) -> Result<int> { EXT }
fn LsfStmt (code: int, k: int) -> *SockFilter { EXT }
fn Lstat (path: string, stat: *Stat_t) -> error { EXT }
fn Madvise (b: [byte], advice: int) -> error { EXT }
fn MapViewOfFile (handle: Handle, access: uint32, offsetHigh: uint32, offsetLow: uint32, length: uintptr) -> Result<uintptr> { EXT }
fn Mkdir (path: string, mode: uint32) -> error { EXT }
fn Mkdirat (dirfd: int, path: string, mode: uint32) -> error { EXT }
fn Mkfifo (path: string, mode: uint32) -> error { EXT }
fn Mknod (path: string, mode: uint32, dev: int) -> error { EXT }
fn Mknodat (dirfd: int, path: string, mode: uint32, dev: int) -> error { EXT }
fn Mlock (b: [byte]) -> error { EXT }
fn Mlockall (flags: int) -> error { EXT }
fn Mmap (fd: int, offset: int64, length: int, prot: int, flags: int) -> Result<[byte]> { EXT }
fn Mount (source: string, target: string, fstype: string, flags: uintptr, data: string) -> error { EXT }
fn MoveFile (from: *uint16, to: *uint16) -> error { EXT }
fn Mprotect (b: [byte], prot: int) -> error { EXT }
fn Munlock (b: [byte]) -> error { EXT }
fn Munlockall () -> error { EXT }
fn Munmap (b: [byte]) -> error { EXT }
fn MustLoadDLL (name: string) -> *DLL { EXT }
fn Nanosleep (time: *Timespec, leftover: *Timespec) -> error { EXT }
fn NetApiBufferFree (buf: *byte) -> error { EXT }
fn NetGetJoinInformation (server: *uint16, name: **uint16, bufType: *uint32) -> error { EXT }
fn NetUserGetInfo (serverName: *uint16, userName: *uint16, level: uint32, buf: **byte) -> error { EXT }
fn NetlinkRIB (proto: int, family: int) -> Result<[byte]> { EXT }
fn NewCallback (fn_: any) -> uintptr { EXT }
fn NewCallbackCDecl (fn_: any) -> uintptr { EXT }
fn NewError (s: string) -> error { EXT }
fn NewLazyDLL (name: string) -> *LazyDLL { EXT }
fn NsecToFiletime (nsec: int64) -> Filetime { EXT }
fn NsecToTimespec (nsec: int64) -> Timespec { EXT }
fn NsecToTimeval (nsec: int64) -> Timeval { EXT }
fn Ntohs (netshort: uint16) -> uint16 { EXT }
fn Open (path: string, mode: int, perm: uint32) -> Result<int> { EXT }
fn Open (path: string, mode: int, perm: uint32) -> Result<int> { EXT }
fn OpenCurrentProcessToken () -> Result<Token> { EXT }
fn OpenProcess (da: uint32, inheritHandle: bool, pid: uint32) -> Result<Handle> { EXT }
fn OpenProcessToken (h: Handle, access: uint32, token: *Token) -> error { EXT }
fn Openat (dirfd: int, path: string, flags: int, mode: uint32) -> Result<int> { EXT }
fn ParseDirent (buf: [byte], max: int, names: [string]) -> (int, int, [string]) { EXT }
fn ParseNetlinkMessage (b: [byte]) -> Result<[NetlinkMessage]> { EXT }
fn ParseNetlinkRouteAttr (m: *NetlinkMessage) -> Result<[NetlinkRouteAttr]> { EXT }
fn ParseRoutingMessage (b: [byte]) -> Result<[RoutingMessage]> { EXT }
fn ParseRoutingSockaddr (msg: RoutingMessage) -> Result<[Sockaddr]> { EXT }
fn ParseSocketControlMessage (b: [byte]) -> Result<[SocketControlMessage]> { EXT }
fn ParseUnixCredentials (m: *SocketControlMessage) -> Result<*Ucred> { EXT }
fn ParseUnixRights (m: *SocketControlMessage) -> Result<[int]> { EXT }
fn Pathconf (path: string, name: int) -> Result<int> { EXT }
fn Pause () -> error { EXT }
fn Pipe (p: [int]) -> error { EXT }
fn Pipe2 (p: [int], flags: int) -> error { EXT }
fn PivotRoot (newroot: string, putold: string) -> error { EXT }
fn PostQueuedCompletionStatus (cphandle: Handle, qty: uint32, key: uint32, overlapped: *Overlapped) -> error { EXT }
fn Pread (fd: int, p: [byte], offset: int64) -> Result<int> { EXT }
fn Process32First (snapshot: Handle, procEntry: *ProcessEntry32) -> error { EXT }
fn Process32Next (snapshot: Handle, procEntry: *ProcessEntry32) -> error { EXT }
fn PtraceAttach (pid: int) -> error { EXT }
fn PtraceCont (pid: int, signal: int) -> error { EXT }
fn PtraceDetach (pid: int) -> error { EXT }
fn PtraceGetEventMsg (pid: int) -> Result<uint> { EXT }
fn PtraceGetRegs (pid: int, regsout: *PtraceRegs) -> error { EXT }
fn PtracePeekData (pid: int, addr: uintptr, out: [byte]) -> Result<int> { EXT }
fn PtracePeekText (pid: int, addr: uintptr, out: [byte]) -> Result<int> { EXT }
fn PtracePokeData (pid: int, addr: uintptr, data: [byte]) -> Result<int> { EXT }
fn PtracePokeText (pid: int, addr: uintptr, data: [byte]) -> Result<int> { EXT }
fn PtraceSetOptions (pid: int, options: int) -> error { EXT }
fn PtraceSetRegs (pid: int, regs: *PtraceRegs) -> error { EXT }
fn PtraceSingleStep (pid: int) -> error { EXT }
fn PtraceSyscall (pid: int, signal: int) -> error { EXT }
fn Pwrite (fd: int, p: [byte], offset: int64) -> Result<int> { EXT }
fn RawSyscall (trap: uintptr, a1: uintptr, a2: uintptr, a3: uintptr) -> uintptr { EXT }
fn RawSyscall (trap: uintptr, a1: uintptr, a2: uintptr, a3: uintptr) -> uintptr { EXT }
fn RawSyscall6 (trap: uintptr, a1: uintptr, a2: uintptr, a3: uintptr, a4: uintptr, a5: uintptr, a6: uintptr) -> uintptr { EXT }
fn RawSyscall6 (trap: uintptr, a1: uintptr, a2: uintptr, a3: uintptr, a4: uintptr, a5: uintptr, a6: uintptr) -> uintptr { EXT }
fn Read (fd: int, p: [byte]) -> Result<int> { EXT }
fn ReadConsole (console: Handle, buf: *uint16, toread: uint32, read: *uint32, inputControl: *byte) -> error { EXT }
fn ReadDirectoryChanges (handle: Handle, buf: *byte, buflen: uint32, watchSubTree: bool, mask: uint32, retlen: *uint32, overlapped: *Overlapped, completionRoutine: uintptr) -> error { EXT }
fn ReadDirent (fd: int, buf: [byte]) -> Result<int> { EXT }
fn ReadFile (fd: Handle, p: [byte], done: *uint32, overlapped: *Overlapped) -> error { EXT }
fn Readlink (path: string, buf: [byte]) -> Result<int> { EXT }
fn Reboot (cmd: int) -> error { EXT }
fn Recvfrom (fd: int, p: [byte], flags: int) -> (int, Sockaddr, error) { EXT }
fn Recvmsg (fd: int, p: [byte], oob: [byte], flags: int) -> (int, int, Sockaddr, error) { EXT }
fn RegCloseKey (key: Handle) -> error { EXT }
fn RegEnumKeyEx (key: Handle, index: uint32, name: *uint16, nameLen: *uint32, reserved: *uint32, class: *uint16, classLen: *uint32, lastWriteTime: *Filetime) -> error { EXT }
fn RegOpenKeyEx (key: Handle, subkey: *uint16, options: uint32, desiredAccess: uint32, result: *Handle) -> error { EXT }
fn RegQueryInfoKey (key: Handle, class: *uint16, classLen: *uint32, reserved: *uint32, subkeysLen: *uint32, maxSubkeyLen: *uint32, maxClassLen: *uint32, valuesLen: *uint32, maxValueNameLen: *uint32, maxValueLen: *uint32, saLen: *uint32, lastWriteTime: *Filetime) -> error { EXT }
fn RegQueryValueEx (key: Handle, name: *uint16, reserved: *uint32, valtype: *uint32, buf: *byte, buflen: *uint32) -> error { EXT }
fn Remove (path: string) -> error { EXT }
fn RemoveDirectory (path: *uint16) -> error { EXT }
fn Removexattr (path: string, attr: string) -> error { EXT }
fn Rename (from: string, to: string) -> error { EXT }
fn Renameat (olddirfd: int, oldpath: string, newdirfd: int, newpath: string) -> error { EXT }
fn Revoke (path: string) -> error { EXT }
fn Rmdir (path: string) -> error { EXT }
fn RouteRIB (facility: int, param: int) -> Result<[byte]> { EXT }
fn Seek (fd: int, offset: int64, whence: int) -> Result<int64> { EXT }
fn Select (n: int, r: *FdSet, w: *FdSet, e: *FdSet, timeout: *Timeval) -> error { EXT }
fn Sendfile (outfd: int, infd: int, offset: *int64, count: int) -> Result<int> { EXT }
fn Sendmsg (fd: int, p: [byte], oob: [byte], to: Sockaddr, flags: int) -> error { EXT }
fn SendmsgN (fd: int, p: [byte], oob: [byte], to: Sockaddr, flags: int) -> Result<int> { EXT }
fn Sendto (fd: int, p: [byte], flags: int, to: Sockaddr) -> error { EXT }
fn SetBpf (fd: int, i: [BpfInsn]) -> error { EXT }
fn SetBpfBuflen (fd: int, l: int) -> Result<int> { EXT }
fn SetBpfDatalink (fd: int, t: int) -> Result<int> { EXT }
fn SetBpfHeadercmpl (fd: int, f: int) -> error { EXT }
fn SetBpfImmediate (fd: int, m: int) -> error { EXT }
fn SetBpfInterface (fd: int, name: string) -> error { EXT }
fn SetBpfPromisc (fd: int, m: int) -> error { EXT }
fn SetBpfTimeout (fd: int, tv: *Timeval) -> error { EXT }
fn SetCurrentDirectory (path: *uint16) -> error { EXT }
fn SetEndOfFile (handle: Handle) -> error { EXT }
fn SetEnvironmentVariable (name: *uint16, value: *uint16) -> error { EXT }
fn SetFileAttributes (name: *uint16, attrs: uint32) -> error { EXT }
fn SetFileCompletionNotificationModes (handle: Handle, flags: uint8) -> error { EXT }
fn SetFilePointer (handle: Handle, lowoffset: int32, highoffsetptr: *int32, whence: uint32) -> Result<uint32> { EXT }
fn SetFileTime (handle: Handle, ctime: *Filetime, atime: *Filetime, wtime: *Filetime) -> error { EXT }
fn SetHandleInformation (handle: Handle, mask: uint32, flags: uint32) -> error { EXT }
fn SetKevent (k: *Kevent_t, fd: int, mode: int, flags: int) -> () { EXT }
fn SetLsfPromisc (name: string, m: bool) -> error { EXT }
fn SetNonblock (fd: int, nonblocking: bool) -> error { EXT }
fn SetReadDeadline (fd: int, t: int64) -> error { EXT }
fn SetWriteDeadline (fd: int, t: int64) -> error { EXT }
fn Setdomainname (p: [byte]) -> error { EXT }
fn Setegid (egid: int) -> error { EXT }
fn Setenv (key: string, value: string) -> error { EXT }
fn Seteuid (euid: int) -> error { EXT }
fn Setfsgid (gid: int) -> error { EXT }
fn Setfsuid (uid: int) -> error { EXT }
fn Setgid (gid: int) -> error { EXT }
fn Setgroups (gids: [int]) -> error { EXT }
fn Sethostname (p: [byte]) -> error { EXT }
fn Setlogin (name: string) -> error { EXT }
fn Setpgid (pid: int, pgid: int) -> error { EXT }
fn Setpriority (which: int, who: int, prio: int) -> error { EXT }
fn Setprivexec (flag: int) -> error { EXT }
fn Setregid (rgid: int, egid: int) -> error { EXT }
fn Setresgid (rgid: int, egid: int, sgid: int) -> error { EXT }
fn Setresuid (ruid: int, euid: int, suid: int) -> error { EXT }
fn Setreuid (ruid: int, euid: int) -> error { EXT }
fn Setrlimit (resource: int, rlim: *Rlimit) -> error { EXT }
fn Setsid () -> Result<int> { EXT }
fn Setsockopt (s: Handle, level: int32, optname: int32, optval: *byte, optlen: int32) -> error { EXT }
fn SetsockoptByte (fd: int, level: int, opt: int, value: byte) -> error { EXT }
fn SetsockoptICMPv6Filter (fd: int, level: int, opt: int, filter: *ICMPv6Filter) -> error { EXT }
fn SetsockoptIPMreq (fd: int, level: int, opt: int, mreq: *IPMreq) -> error { EXT }
fn SetsockoptIPMreqn (fd: int, level: int, opt: int, mreq: *IPMreqn) -> error { EXT }
fn SetsockoptIPv6Mreq (fd: int, level: int, opt: int, mreq: *IPv6Mreq) -> error { EXT }
fn SetsockoptInet4Addr (fd: int, level: int, opt: int, value: [byte]) -> error { EXT }
fn SetsockoptInt (fd: int, level: int, opt: int, value: int) -> error { EXT }
fn SetsockoptLinger (fd: int, level: int, opt: int, l: *Linger) -> error { EXT }
fn SetsockoptString (fd: int, level: int, opt: int, s: string) -> error { EXT }
fn SetsockoptTimeval (fd: int, level: int, opt: int, tv: *Timeval) -> error { EXT }
fn Settimeofday (tp: *Timeval) -> error { EXT }
fn Setuid (uid: int) -> error { EXT }
fn Setxattr (path: string, attr: string, data: [byte], flags: int) -> error { EXT }
fn Shutdown (s: int, how: int) -> error { EXT }
fn SlicePtrFromStrings (ss: [string]) -> Result<[*byte]> { EXT }
fn Socket (domain: int, typ: int, proto: int) -> Result<int> { EXT }
fn Socket (domain: int, typ: int, proto: int) -> Result<int> { EXT }
fn Socketpair (domain: int, typ: int, proto: int) -> Result<[int]> { EXT }
fn Splice (rfd: int, roff: *int64, wfd: int, woff: *int64, len: int, flags: int) -> Result<int64> { EXT }
fn StartProcess (argv0: string, argv: [string], attr: *ProcAttr) -> (int, uintptr, error) { EXT }
fn Stat (path: string, stat: *Stat_t) -> error { EXT }
fn Statfs (path: string, stat: *Statfs_t) -> error { EXT }
fn StopIO (fd: int) -> error { EXT }
fn StringBytePtr (s: string) -> *byte { EXT }
fn StringByteSlice (s: string) -> [byte] { EXT }
fn StringSlicePtr (ss: [string]) -> [*byte] { EXT }
fn StringToSid (s: string) -> Result<*SID> { EXT }
fn StringToUTF16 (s: string) -> [uint16] { EXT }
fn StringToUTF16Ptr (s: string) -> *uint16 { EXT }
fn Symlink (path: string, link: string) -> error { EXT }
fn Sync () -> error { EXT }
fn SyncFileRange (fd: int, off: int64, n: int64, flags: int) -> error { EXT }
fn Syscall (trap: uintptr, a1: uintptr, a2: uintptr, a3: uintptr) -> (uintptr, ErrorString) { EXT }
fn Syscall (trap: uintptr, a1: uintptr, a2: uintptr, a3: uintptr) -> (uintptr, ErrorString) { EXT }
fn Syscall12 (trap: uintptr, nargs: uintptr, a1: uintptr, a2: uintptr, a3: uintptr, a4: uintptr, a5: uintptr, a6: uintptr, a7: uintptr, a8: uintptr, a9: uintptr, a10: uintptr, a11: uintptr, a12: uintptr) -> (uintptr, Errno) { EXT }
fn Syscall15 (trap: uintptr, nargs: uintptr, a1: uintptr, a2: uintptr, a3: uintptr, a4: uintptr, a5: uintptr, a6: uintptr, a7: uintptr, a8: uintptr, a9: uintptr, a10: uintptr, a11: uintptr, a12: uintptr, a13: uintptr, a14: uintptr, a15: uintptr) -> (uintptr, Errno) { EXT }
fn Syscall18 (trap: uintptr, nargs: uintptr, a1: uintptr, a2: uintptr, a3: uintptr, a4: uintptr, a5: uintptr, a6: uintptr, a7: uintptr, a8: uintptr, a9: uintptr, a10: uintptr, a11: uintptr, a12: uintptr, a13: uintptr, a14: uintptr, a15: uintptr, a16: uintptr, a17: uintptr, a18: uintptr) -> (uintptr, Errno) { EXT }
fn Syscall6 (trap: uintptr, a1: uintptr, a2: uintptr, a3: uintptr, a4: uintptr, a5: uintptr, a6: uintptr) -> (uintptr, ErrorString) { EXT }
fn Syscall6 (trap: uintptr, a1: uintptr, a2: uintptr, a3: uintptr, a4: uintptr, a5: uintptr, a6: uintptr) -> (uintptr, ErrorString) { EXT }
fn Syscall9 (trap: uintptr, nargs: uintptr, a1: uintptr, a2: uintptr, a3: uintptr, a4: uintptr, a5: uintptr, a6: uintptr, a7: uintptr, a8: uintptr, a9: uintptr) -> (uintptr, Errno) { EXT }
fn SyscallN (trap: uintptr, args: VarArgs<uintptr>) -> (uintptr, Errno) { EXT }
fn Sysctl (key: string) -> Result<string> { EXT }
fn SysctlUint32 (name: string) -> Result<uint32> { EXT }
fn Sysinfo (info: *Sysinfo_t) -> error { EXT }
fn Tee (rfd: int, wfd: int, len: int, flags: int) -> Result<int64> { EXT }
fn TerminateProcess (handle: Handle, exitcode: uint32) -> error { EXT }
fn Tgkill (tgid: int, tid: int, sig: Signal) -> error { EXT }
fn Time (t: *Time_t) -> Result<Time_t> { EXT }
fn Times (tms: *Tms) -> Result<uintptr> { EXT }
fn TimespecToNsec (ts: Timespec) -> int64 { EXT }
fn TimevalToNsec (tv: Timeval) -> int64 { EXT }
fn TranslateAccountName (username: string, from: uint32, to: uint32, initSize: int) -> Result<string> { EXT }
fn TranslateName (accName: *uint16, accNameFormat: uint32, desiredNameFormat: uint32, translatedName: *uint16, nSize: *uint32) -> error { EXT }
fn TransmitFile (s: Handle, handle: Handle, bytesToWrite: uint32, bytsPerSend: uint32, overlapped: *Overlapped, transmitFileBuf: *TransmitFileBuffers, flags: uint32) -> error { EXT }
fn Truncate (path: string, length: int64) -> error { EXT }
fn UTF16FromString (s: string) -> Result<[uint16]> { EXT }
fn UTF16PtrFromString (s: string) -> Result<*uint16> { EXT }
fn UTF16ToString (s: [uint16]) -> string { EXT }
fn Umask (newmask: int) -> int { EXT }
fn Uname (buf: *Utsname) -> error { EXT }
fn Undelete (path: string) -> error { EXT }
fn UnixCredentials (ucred: *Ucred) -> [byte] { EXT }
fn UnixRights (fds: VarArgs<int>) -> [byte] { EXT }
fn Unlink (path: string) -> error { EXT }
fn Unlinkat (dirfd: int, path: string) -> error { EXT }
fn UnmapViewOfFile (addr: uintptr) -> error { EXT }
fn UnmarshalDir (b: [byte]) -> Result<*Dir> { EXT }
fn Unmount (path: string, flags: int) -> error { EXT }
fn Unsetenv (key: string) -> error { EXT }
fn Unshare (flags: int) -> error { EXT }
fn Ustat (dev: int, ubuf: *Ustat_t) -> error { EXT }
fn Utime (path: string, buf: *Utimbuf) -> error { EXT }
fn Utimes (path: string, tv: [Timeval]) -> error { EXT }
fn UtimesNano (path: string, ts: [Timespec]) -> error { EXT }
fn VirtualLock (addr: uintptr, length: uintptr) -> error { EXT }
fn VirtualUnlock (addr: uintptr, length: uintptr) -> error { EXT }
fn WSACleanup () -> error { EXT }
fn WSAEnumProtocols (protocols: *int32, protocolBuffer: *WSAProtocolInfo, bufferLength: *uint32) -> Result<int32> { EXT }
fn WSAIoctl (s: Handle, iocc: uint32, inbuf: *byte, cbif: uint32, outbuf: *byte, cbob: uint32, cbbr: *uint32, overlapped: *Overlapped, completionRoutine: uintptr) -> error { EXT }
fn WSARecv (s: Handle, bufs: *WSABuf, bufcnt: uint32, recvd: *uint32, flags: *uint32, overlapped: *Overlapped, croutine: *byte) -> error { EXT }
fn WSARecvFrom (s: Handle, bufs: *WSABuf, bufcnt: uint32, recvd: *uint32, flags: *uint32, from: *RawSockaddrAny, fromlen: *int32, overlapped: *Overlapped, croutine: *byte) -> error { EXT }
fn WSASend (s: Handle, bufs: *WSABuf, bufcnt: uint32, sent: *uint32, flags: uint32, overlapped: *Overlapped, croutine: *byte) -> error { EXT }
fn WSASendTo (s: Handle, bufs: *WSABuf, bufcnt: uint32, sent: *uint32, flags: uint32, to: *RawSockaddrAny, tolen: int32, overlapped: *Overlapped, croutine: *byte) -> error { EXT }
fn WSASendto (s: Handle, bufs: *WSABuf, bufcnt: uint32, sent: *uint32, flags: uint32, to: Sockaddr, overlapped: *Overlapped, croutine: *byte) -> error { EXT }
fn WSAStartup (verreq: uint32, data: *WSAData) -> error { EXT }
fn Wait4 (pid: int, wstatus: *WaitStatus, options: int, rusage: *Rusage) -> Result<int> { EXT }
fn WaitForSingleObject (handle: Handle, waitMilliseconds: uint32) -> Result<uint32> { EXT }
fn WaitProcess (pid: int, w: *Waitmsg) -> error { EXT }
fn Write (fd: int, p: [byte]) -> Result<int> { EXT }
fn WriteConsole (console: Handle, buf: *uint16, towrite: uint32, written: *uint32, reserved: *byte) -> error { EXT }
fn WriteFile (fd: Handle, p: [byte], done: *uint32, overlapped: *Overlapped) -> error { EXT }
fn Wstat (path: string, edir: [byte]) -> error { EXT }
impl (self: Cmsghdr) {
fn SetLen (length: int) -> () { EXT }
}
impl (self: DLL) {
fn FindProc (name: string) -> Result<*Proc> { EXT }
fn MustFindProc (name: string) -> *Proc { EXT }
fn Release () -> error { EXT }
}
impl (self: DLLError) {
fn Error () -> string { EXT }
fn Unwrap () -> error { EXT }
}
impl (self: Dir) {
fn Marshal (b: [byte]) -> Result<int> { EXT }
fn Null () -> () { EXT }
}
impl (self: Errno) {
fn Error () -> string { EXT }
fn Is (target: error) -> bool { EXT }
fn Temporary () -> bool { EXT }
fn Timeout () -> bool { EXT }
}
impl (self: ErrorString) {
fn Error () -> string { EXT }
fn Is (target: error) -> bool { EXT }
fn Temporary () -> bool { EXT }
fn Timeout () -> bool { EXT }
}
impl (self: Filetime) {
fn Nanoseconds () -> int64 { EXT }
}
impl (self: Iovec) {
fn SetLen (length: int) -> () { EXT }
}
impl (self: LazyDLL) {
fn Handle () -> uintptr { EXT }
fn Load () -> error { EXT }
fn NewProc (name: string) -> *LazyProc { EXT }