-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlibc_linux_amd64.go
More file actions
2135 lines (1452 loc) · 73 KB
/
Copy pathlibc_linux_amd64.go
File metadata and controls
2135 lines (1452 loc) · 73 KB
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
//go:build linux && amd64 && go1.25
// Code generated by c2go-bind. DO NOT EDIT.
// Licensing follows the translated input and its third-party provenance; see
// the c2go-libc NOTICE, provenance inventory, and bundled license texts.
package libc
import (
"unsafe"
)
// ─── Types ──────────────────────────────────────────────────
type cookie_io_functions_t struct {
read uintptr
write uintptr
seek uintptr
close uintptr
}
type div_t struct {
quot int32
rem int32
}
type entry struct {
key *byte
data unsafe.Pointer
}
type imaxdiv_t struct {
quot int64
rem int64
}
type ldiv_t struct {
quot int64
rem int64
}
type lldiv_t struct {
quot int64
rem int64
}
// ─── Forward-only opaque types ───────────────────
// Types declared in C as `typedef struct X X;` without a
// matching definition in any c2go-compiled TU. Emitted as
// zero-size opaque structs; pointers to them remain valid
// handles but contents are inaccessible from Go-side code.
type __dirstream struct{}
type __locale_struct struct{}
type __mbstate_t struct{}
type __va_list_tag struct{}
type dirent struct{}
type glob_t struct{}
type hsearch_data struct{}
type iovec struct{}
type lconv struct{}
type option struct{}
type pthread_condattr_t struct{}
type pthread_mutexattr_t struct{}
type pthread_rwlockattr_t struct{}
type re_pattern_buffer struct{}
type regmatch_t struct{}
type rlimit struct{}
type rusage struct{}
type sigaction struct{}
type stat struct{}
type termios struct{}
type timespec struct{}
type timeval struct{}
type tm struct{}
type tre_mem_struct struct{}
type utsname struct{}
type winsize struct{}
// ─── Function declarations ──────────────────────────────────
// Bodies provided by clang-emitted Plan 9 .s with TEXT ·<name>(SB)
// at ABI0. Go compiler auto-generates the ABIInternal wrapper.
func SnprintfProbe(buf *byte, n int32, depth int32) int32
//go:linkname AssertFail github.com/c2gohq/c2go_libc.__assert_fail
func AssertFail(expr *byte, file *byte, line int32, fn *byte)
//go:linkname C2goFileRawClose github.com/c2gohq/c2go_libc.__c2go_file_raw_close
func C2goFileRawClose(f *FILE) int32
//go:linkname C2goFileRawFdopen github.com/c2gohq/c2go_libc.__c2go_file_raw_fdopen
func C2goFileRawFdopen(f *FILE, fd int32, mode *byte, storage *byte, storage_size uint64) int32
//go:linkname C2goFileRawFgetwc github.com/c2gohq/c2go_libc.__c2go_file_raw_fgetwc
func C2goFileRawFgetwc(f *FILE) uint32
//go:linkname C2goFileRawFgetws github.com/c2gohq/c2go_libc.__c2go_file_raw_fgetws
func C2goFileRawFgetws(s *int32, n int32, f *FILE) *int32
//go:linkname C2goFileRawFmemopen github.com/c2gohq/c2go_libc.__c2go_file_raw_fmemopen
func C2goFileRawFmemopen(f *FILE, cookie_storage unsafe.Pointer, cookie_storage_size uint64, storage *byte, storage_size uint64, buf unsafe.Pointer, size uint64, mode *byte) int32
//go:linkname C2goFileRawFputwc github.com/c2gohq/c2go_libc.__c2go_file_raw_fputwc
func C2goFileRawFputwc(c int32, f *FILE) uint32
//go:linkname C2goFileRawFputws github.com/c2gohq/c2go_libc.__c2go_file_raw_fputws
func C2goFileRawFputws(ws *int32, f *FILE) int32
//go:linkname C2goFileRawFwide github.com/c2gohq/c2go_libc.__c2go_file_raw_fwide
func C2goFileRawFwide(f *FILE, mode int32) int32
//go:linkname C2goFileRawGetdelimManaged github.com/c2gohq/c2go_libc.__c2go_file_raw_getdelim_managed
func C2goFileRawGetdelimManaged(s *unsafe.Pointer, n *uint64, delim int32, f *FILE) int64
//go:linkname C2goFileRawOpen github.com/c2gohq/c2go_libc.__c2go_file_raw_open
func C2goFileRawOpen(f *FILE, filename *byte, mode *byte, storage *byte, storage_size uint64) int32
//go:linkname C2goFileRawStdinit github.com/c2gohq/c2go_libc.__c2go_file_raw_stdinit
func C2goFileRawStdinit(f *FILE, which int32, storage *byte, storage_size uint64) int32
//go:linkname C2goFileRawUngetwc github.com/c2gohq/c2go_libc.__c2go_file_raw_ungetwc
func C2goFileRawUngetwc(c uint32, f *FILE) uint32
//go:linkname C2goFileRawVfscanfManaged github.com/c2gohq/c2go_libc.__c2go_file_raw_vfscanf_managed
func C2goFileRawVfscanfManaged(f *FILE, fmt *byte, ap *__va_list_tag) int32
//go:linkname C2goFileRawVfwprintf github.com/c2gohq/c2go_libc.__c2go_file_raw_vfwprintf
func C2goFileRawVfwprintf(f *FILE, fmt *int32, ap *__va_list_tag) int32
//go:linkname C2goFileRawVfwscanfManaged github.com/c2gohq/c2go_libc.__c2go_file_raw_vfwscanf_managed
func C2goFileRawVfwscanfManaged(f *FILE, fmt *int32, ap *__va_list_tag) int32
//go:linkname C2goFinalize github.com/c2gohq/c2go_libc.__c2go_finalize
func C2goFinalize()
//go:linkname C2goPthreadRun github.com/c2gohq/c2go_libc.__c2go_pthread_run
func C2goPthreadRun(start uintptr, arg unsafe.Pointer) unsafe.Pointer
//go:linkname C2goPthreadRunDtor github.com/c2gohq/c2go_libc.__c2go_pthread_run_dtor
func C2goPthreadRunDtor(fn uintptr, arg unsafe.Pointer)
//go:linkname C2goPthreadRunVoid github.com/c2gohq/c2go_libc.__c2go_pthread_run_void
func C2goPthreadRunVoid(fn uintptr)
func __c2go_signal_dispatch_abort()
//go:linkname C2goSignalRun github.com/c2gohq/c2go_libc.__c2go_signal_run
func C2goSignalRun(sig int32, h uint64)
//go:linkname C2goStdfile github.com/c2gohq/c2go_libc.__c2go_stdfile
func C2goStdfile(which int32) *FILE
//go:linkname C2goVsscanfManaged github.com/c2gohq/c2go_libc.__c2go_vsscanf_managed
func C2goVsscanfManaged(s *byte, fmt *byte, ap *__va_list_tag) int32
//go:linkname C2goVswscanfManaged github.com/c2gohq/c2go_libc.__c2go_vswscanf_managed
func C2goVswscanfManaged(s *int32, fmt *int32, ap *__va_list_tag) int32
func __cos(x float64, y float64) float64
func __cosdf(x float64) float32
//go:linkname CtypeGetMbCurMax github.com/c2gohq/c2go_libc.__ctype_get_mb_cur_max
func CtypeGetMbCurMax() uint64
//go:linkname EnvironSync github.com/c2gohq/c2go_libc.__environ_sync
func EnvironSync()
func __expo2(x float64, sign float64) float64
func __expo2f(x float32, sign float32) float32
func __fesetround(r int32) int32
func __getopt_msg(a *byte, b *byte, c *byte, l uint64)
func __lgamma_r(x float64, signgamp *int32) float64
func __lgammaf_r(x float32, signgamp *int32) float32
func __mbrtoc32(pc *uint32, src *byte, n uint64, st *__mbstate_t) uint64
func __qsort_r(base unsafe.Pointer, nel uint64, width uint64, cmp uintptr, arg unsafe.Pointer)
func __rand48_step(xi *uint16, lc *uint16) uint64
func __rem_pio2(x float64, y *float64) int32
func __rem_pio2_large(x *float64, y *float64, e0 int32, nx int32, prec int32) int32
func __rem_pio2f(x float32, y *float64) int32
func __sin(x float64, y float64, iy int32) float64
func __sindf(x float64) float32
func __strcoll_l(l *byte, r *byte, loc *__locale_struct) int32
func __strxfrm_l(dest *byte, src *byte, n uint64, loc *__locale_struct) uint64
//go:linkname SurrogateToUtf8 github.com/c2gohq/c2go_libc.__surrogate_to_utf8
func SurrogateToUtf8(s *byte, hi uint32, lo uint32) uint64
func __tan(x float64, y float64, odd int32) float64
func __tandf(x float64, odd int32) float32
func __tre_mem_alloc_impl(mem *tre_mem_struct, provided int32, provided_block unsafe.Pointer, zero int32, size uint64) unsafe.Pointer
func __tre_mem_destroy(mem *tre_mem_struct)
func __tre_mem_new_impl(provided int32, provided_block unsafe.Pointer) *tre_mem_struct
func __tsearch_balance(p *unsafe.Pointer) int32
func __wcscoll_l(l *int32, r *int32, locale *__locale_struct) int32
func __wcsxfrm_l(dest *int32, src *int32, n uint64, loc *__locale_struct) uint64
//go:linkname A64l github.com/c2gohq/c2go_libc.a64l
func A64l(s *byte) int64
//go:linkname Abort github.com/c2gohq/c2go_libc.abort
func Abort()
//go:linkname Abs github.com/c2gohq/c2go_libc.abs
func Abs(a int32) int32
//go:linkname Access github.com/c2gohq/c2go_libc.access
func Access(path *byte, amode int32) int32
//go:linkname Acos github.com/c2gohq/c2go_libc.acos
func Acos(x float64) float64
//go:linkname Acosf github.com/c2gohq/c2go_libc.acosf
func Acosf(x float32) float32
//go:linkname Acosh github.com/c2gohq/c2go_libc.acosh
func Acosh(x float64) float64
//go:linkname Acoshf github.com/c2gohq/c2go_libc.acoshf
func Acoshf(x float32) float32
//go:linkname Alphasort github.com/c2gohq/c2go_libc.alphasort
func Alphasort(a **dirent, b **dirent) int32
//go:linkname Asctime github.com/c2gohq/c2go_libc.asctime
func Asctime(tm *tm) *byte
//go:linkname AsctimeR github.com/c2gohq/c2go_libc.asctime_r
func AsctimeR(tm *tm, buf *byte) *byte
//go:linkname Asin github.com/c2gohq/c2go_libc.asin
func Asin(x float64) float64
//go:linkname Asinf github.com/c2gohq/c2go_libc.asinf
func Asinf(x float32) float32
//go:linkname Asinh github.com/c2gohq/c2go_libc.asinh
func Asinh(x float64) float64
//go:linkname Asinhf github.com/c2gohq/c2go_libc.asinhf
func Asinhf(x float32) float32
//go:linkname Asprintf github.com/c2gohq/c2go_libc.asprintf
func Asprintf(s **byte, fmt *byte, argptrs unsafe.Pointer) int32
//go:linkname AtQuickExit github.com/c2gohq/c2go_libc.at_quick_exit
func AtQuickExit(f uintptr) int32
//go:linkname Atan github.com/c2gohq/c2go_libc.atan
func Atan(x float64) float64
//go:linkname Atan2 github.com/c2gohq/c2go_libc.atan2
func Atan2(y float64, x float64) float64
//go:linkname Atan2f github.com/c2gohq/c2go_libc.atan2f
func Atan2f(y float32, x float32) float32
//go:linkname Atanf github.com/c2gohq/c2go_libc.atanf
func Atanf(x float32) float32
//go:linkname Atanh github.com/c2gohq/c2go_libc.atanh
func Atanh(x float64) float64
//go:linkname Atanhf github.com/c2gohq/c2go_libc.atanhf
func Atanhf(x float32) float32
//go:linkname Atexit github.com/c2gohq/c2go_libc.atexit
func Atexit(f uintptr) int32
//go:linkname Atof github.com/c2gohq/c2go_libc.atof
func Atof(s *byte) float64
//go:linkname Atoi github.com/c2gohq/c2go_libc.atoi
func Atoi(s *byte) int32
//go:linkname Atol github.com/c2gohq/c2go_libc.atol
func Atol(s *byte) int64
//go:linkname Atoll github.com/c2gohq/c2go_libc.atoll
func Atoll(s *byte) int64
//go:linkname Basename github.com/c2gohq/c2go_libc.basename
func Basename(s *byte) *byte
//go:linkname BindTextdomainCodeset github.com/c2gohq/c2go_libc.bind_textdomain_codeset
func BindTextdomainCodeset(domainname *byte, codeset *byte) *byte
//go:linkname Bindtextdomain github.com/c2gohq/c2go_libc.bindtextdomain
func Bindtextdomain(domainname *byte, dirname *byte) *byte
//go:linkname Bsearch github.com/c2gohq/c2go_libc.bsearch
func Bsearch(key unsafe.Pointer, base unsafe.Pointer, nel uint64, width uint64, cmp uintptr) unsafe.Pointer
//go:linkname Btowc github.com/c2gohq/c2go_libc.btowc
func Btowc(c int32) uint32
//go:linkname Bzero github.com/c2gohq/c2go_libc.bzero
func Bzero(s unsafe.Pointer, n uint64)
//go:linkname C16rtomb github.com/c2gohq/c2go_libc.c16rtomb
func C16rtomb(s *byte, c16 uint16, ps *__mbstate_t) uint64
//go:linkname C32rtomb github.com/c2gohq/c2go_libc.c32rtomb
func C32rtomb(s *byte, c32 uint32, ps *__mbstate_t) uint64
//go:linkname Cbrt github.com/c2gohq/c2go_libc.cbrt
func Cbrt(x float64) float64
//go:linkname Cbrtf github.com/c2gohq/c2go_libc.cbrtf
func Cbrtf(x float32) float32
//go:linkname Ceil github.com/c2gohq/c2go_libc.ceil
func Ceil(x float64) float64
//go:linkname Ceilf github.com/c2gohq/c2go_libc.ceilf
func Ceilf(x float32) float32
//go:linkname Cfgetispeed github.com/c2gohq/c2go_libc.cfgetispeed
func Cfgetispeed(tio *termios) uint32
//go:linkname Cfgetospeed github.com/c2gohq/c2go_libc.cfgetospeed
func Cfgetospeed(tio *termios) uint32
//go:linkname Cfmakeraw github.com/c2gohq/c2go_libc.cfmakeraw
func Cfmakeraw(t *termios)
//go:linkname Cfsetispeed github.com/c2gohq/c2go_libc.cfsetispeed
func Cfsetispeed(tio *termios, speed uint32) int32
//go:linkname Cfsetospeed github.com/c2gohq/c2go_libc.cfsetospeed
func Cfsetospeed(tio *termios, speed uint32) int32
//go:linkname Cfsetspeed github.com/c2gohq/c2go_libc.cfsetspeed
func Cfsetspeed(tio *termios, speed uint32) int32
//go:linkname Chdir github.com/c2gohq/c2go_libc.chdir
func Chdir(path *byte) int32
//go:linkname Chmod github.com/c2gohq/c2go_libc.chmod
func Chmod(path *byte, mode uint32) int32
//go:linkname Chown github.com/c2gohq/c2go_libc.chown
func Chown(path *byte, uid uint32, gid uint32) int32
//go:linkname Clearenv github.com/c2gohq/c2go_libc.clearenv
func Clearenv() int32
//go:linkname Clearerr github.com/c2gohq/c2go_libc.clearerr
func Clearerr(f *FILE)
//go:linkname Clock github.com/c2gohq/c2go_libc.clock
func Clock() int64
//go:linkname ClockGetres github.com/c2gohq/c2go_libc.clock_getres
func ClockGetres(id int32, ts *timespec) int32
//go:linkname ClockGettime github.com/c2gohq/c2go_libc.clock_gettime
func ClockGettime(id int32, ts *timespec) int32
//go:linkname Close github.com/c2gohq/c2go_libc.close
func Close(fd int32) int32
//go:linkname Closedir github.com/c2gohq/c2go_libc.closedir
func Closedir(d *__dirstream) int32
//go:linkname Copysign github.com/c2gohq/c2go_libc.copysign
func Copysign(x float64, y float64) float64
//go:linkname Copysignf github.com/c2gohq/c2go_libc.copysignf
func Copysignf(x float32, y float32) float32
//go:linkname Cos github.com/c2gohq/c2go_libc.cos
func Cos(x float64) float64
//go:linkname Cosf github.com/c2gohq/c2go_libc.cosf
func Cosf(x float32) float32
//go:linkname Cosh github.com/c2gohq/c2go_libc.cosh
func Cosh(x float64) float64
//go:linkname Coshf github.com/c2gohq/c2go_libc.coshf
func Coshf(x float32) float32
//go:linkname Creat github.com/c2gohq/c2go_libc.creat
func Creat(path *byte, mode uint32) int32
//go:linkname Ctime github.com/c2gohq/c2go_libc.ctime
func Ctime(t *int64) *byte
//go:linkname CtimeR github.com/c2gohq/c2go_libc.ctime_r
func CtimeR(t *int64, buf *byte) *byte
//go:linkname Dcgettext github.com/c2gohq/c2go_libc.dcgettext
func Dcgettext(domainname *byte, msgid *byte, category int32) *byte
//go:linkname Dcngettext github.com/c2gohq/c2go_libc.dcngettext
func Dcngettext(domainname *byte, msgid1 *byte, msgid2 *byte, n uint64, category int32) *byte
//go:linkname Dgettext github.com/c2gohq/c2go_libc.dgettext
func Dgettext(domainname *byte, msgid *byte) *byte
//go:linkname Difftime github.com/c2gohq/c2go_libc.difftime
func Difftime(t1 int64, t0 int64) float64
//go:linkname Dirfd github.com/c2gohq/c2go_libc.dirfd
func Dirfd(d *__dirstream) int32
//go:linkname Dirname github.com/c2gohq/c2go_libc.dirname
func Dirname(s *byte) *byte
//go:linkname Div github.com/c2gohq/c2go_libc.div
func Div(num int32, den int32) (int32, int32)
//go:linkname Dngettext github.com/c2gohq/c2go_libc.dngettext
func Dngettext(domainname *byte, msgid1 *byte, msgid2 *byte, n uint64) *byte
//go:linkname Dprintf github.com/c2gohq/c2go_libc.dprintf
func Dprintf(fd int32, fmt *byte, argptrs unsafe.Pointer) int32
//go:linkname Drand48 github.com/c2gohq/c2go_libc.drand48
func Drand48() float64
//go:linkname Dup github.com/c2gohq/c2go_libc.dup
func Dup(fd int32) int32
//go:linkname Dup2 github.com/c2gohq/c2go_libc.dup2
func Dup2(oldfd int32, newfd int32) int32
//go:linkname Dup3 github.com/c2gohq/c2go_libc.dup3
func Dup3(oldfd int32, newfd int32, flags int32) int32
//go:linkname Duplocale github.com/c2gohq/c2go_libc.duplocale
func Duplocale(loc *__locale_struct) *__locale_struct
//go:linkname Erand48 github.com/c2gohq/c2go_libc.erand48
func Erand48(s *uint16) float64
//go:linkname Erf github.com/c2gohq/c2go_libc.erf
func Erf(x float64) float64
//go:linkname Erfc github.com/c2gohq/c2go_libc.erfc
func Erfc(x float64) float64
//go:linkname Erfcf github.com/c2gohq/c2go_libc.erfcf
func Erfcf(x float32) float32
//go:linkname Erff github.com/c2gohq/c2go_libc.erff
func Erff(x float32) float32
//go:linkname Err github.com/c2gohq/c2go_libc.err
func Err(status int32, fmt *byte, argptrs unsafe.Pointer)
//go:linkname Errx github.com/c2gohq/c2go_libc.errx
func Errx(status int32, fmt *byte, argptrs unsafe.Pointer)
//go:linkname Exit github.com/c2gohq/c2go_libc.exit
func Exit(code int32)
//go:linkname Exp github.com/c2gohq/c2go_libc.exp
func Exp(x float64) float64
//go:linkname Exp10 github.com/c2gohq/c2go_libc.exp10
func Exp10(x float64) float64
//go:linkname Exp2 github.com/c2gohq/c2go_libc.exp2
func Exp2(x float64) float64
//go:linkname Exp2f github.com/c2gohq/c2go_libc.exp2f
func Exp2f(x float32) float32
//go:linkname Expf github.com/c2gohq/c2go_libc.expf
func Expf(x float32) float32
//go:linkname ExplicitBzero github.com/c2gohq/c2go_libc.explicit_bzero
func ExplicitBzero(d unsafe.Pointer, n uint64)
//go:linkname Expm1 github.com/c2gohq/c2go_libc.expm1
func Expm1(x float64) float64
//go:linkname Expm1f github.com/c2gohq/c2go_libc.expm1f
func Expm1f(x float32) float32
//go:linkname Fabs github.com/c2gohq/c2go_libc.fabs
func Fabs(x float64) float64
//go:linkname Fabsf github.com/c2gohq/c2go_libc.fabsf
func Fabsf(x float32) float32
//go:linkname Fchdir github.com/c2gohq/c2go_libc.fchdir
func Fchdir(fd int32) int32
//go:linkname Fchmod github.com/c2gohq/c2go_libc.fchmod
func Fchmod(fd int32, mode uint32) int32
//go:linkname Fchown github.com/c2gohq/c2go_libc.fchown
func Fchown(fd int32, uid uint32, gid uint32) int32
//go:linkname Fclose github.com/c2gohq/c2go_libc.fclose
func Fclose(f *FILE) int32
//go:linkname Fcntl github.com/c2gohq/c2go_libc.fcntl
func Fcntl(fd int32, cmd int32, argptrs unsafe.Pointer) int32
//go:linkname Fdatasync github.com/c2gohq/c2go_libc.fdatasync
func Fdatasync(fd int32) int32
//go:linkname Fdim github.com/c2gohq/c2go_libc.fdim
func Fdim(x float64, y float64) float64
//go:linkname Fdimf github.com/c2gohq/c2go_libc.fdimf
func Fdimf(x float32, y float32) float32
//go:linkname Fdopen github.com/c2gohq/c2go_libc.fdopen
func Fdopen(fd int32, mode *byte) *FILE
//go:linkname Fdopendir github.com/c2gohq/c2go_libc.fdopendir
func Fdopendir(fd int32) *__dirstream
//go:linkname Feclearexcept github.com/c2gohq/c2go_libc.feclearexcept
func Feclearexcept(mask int32) int32
//go:linkname Fegetenv github.com/c2gohq/c2go_libc.fegetenv
func Fegetenv(envp *uint32) int32
//go:linkname Fegetround github.com/c2gohq/c2go_libc.fegetround
func Fegetround() int32
//go:linkname Feof github.com/c2gohq/c2go_libc.feof
func Feof(f *FILE) int32
//go:linkname Feraiseexcept github.com/c2gohq/c2go_libc.feraiseexcept
func Feraiseexcept(mask int32) int32
//go:linkname Ferror github.com/c2gohq/c2go_libc.ferror
func Ferror(f *FILE) int32
//go:linkname Fesetenv github.com/c2gohq/c2go_libc.fesetenv
func Fesetenv(envp *uint32) int32
//go:linkname Fesetround github.com/c2gohq/c2go_libc.fesetround
func Fesetround(r int32) int32
//go:linkname Fetestexcept github.com/c2gohq/c2go_libc.fetestexcept
func Fetestexcept(mask int32) int32
//go:linkname Fflush github.com/c2gohq/c2go_libc.fflush
func Fflush(f *FILE) int32
//go:linkname Ffs github.com/c2gohq/c2go_libc.ffs
func Ffs(i int32) int32
//go:linkname Ffsl github.com/c2gohq/c2go_libc.ffsl
func Ffsl(i int64) int32
//go:linkname Ffsll github.com/c2gohq/c2go_libc.ffsll
func Ffsll(i int64) int32
//go:linkname Fgetc github.com/c2gohq/c2go_libc.fgetc
func Fgetc(f *FILE) int32
//go:linkname Fgetpos github.com/c2gohq/c2go_libc.fgetpos
func Fgetpos(f *FILE, pos *int64) int32
//go:linkname Fgets github.com/c2gohq/c2go_libc.fgets
func Fgets(s *byte, n int32, f *FILE) *byte
//go:linkname Fgetwc github.com/c2gohq/c2go_libc.fgetwc
func Fgetwc(f *FILE) uint32
//go:linkname Fgetws github.com/c2gohq/c2go_libc.fgetws
func Fgetws(s *int32, n int32, f *FILE) *int32
//go:linkname Fileno github.com/c2gohq/c2go_libc.fileno
func Fileno(f *FILE) int32
//go:linkname Flock github.com/c2gohq/c2go_libc.flock
func Flock(fd int32, op int32) int32
//go:linkname Flockfile github.com/c2gohq/c2go_libc.flockfile
func Flockfile(f *FILE)
//go:linkname Floor github.com/c2gohq/c2go_libc.floor
func Floor(x float64) float64
//go:linkname Floorf github.com/c2gohq/c2go_libc.floorf
func Floorf(x float32) float32
//go:linkname Fma github.com/c2gohq/c2go_libc.fma
func Fma(x float64, y float64, z float64) float64
//go:linkname Fmaf github.com/c2gohq/c2go_libc.fmaf
func Fmaf(x float32, y float32, z float32) float32
//go:linkname Fmax github.com/c2gohq/c2go_libc.fmax
func Fmax(x float64, y float64) float64
//go:linkname Fmaxf github.com/c2gohq/c2go_libc.fmaxf
func Fmaxf(x float32, y float32) float32
//go:linkname Fmemopen github.com/c2gohq/c2go_libc.fmemopen
func Fmemopen(buf unsafe.Pointer, size uint64, mode *byte) *FILE
//go:linkname Fmin github.com/c2gohq/c2go_libc.fmin
func Fmin(x float64, y float64) float64
//go:linkname Fminf github.com/c2gohq/c2go_libc.fminf
func Fminf(x float32, y float32) float32
//go:linkname Fmod github.com/c2gohq/c2go_libc.fmod
func Fmod(x float64, y float64) float64
//go:linkname Fmodf github.com/c2gohq/c2go_libc.fmodf
func Fmodf(x float32, y float32) float32
//go:linkname Fnmatch github.com/c2gohq/c2go_libc.fnmatch
func Fnmatch(pat *byte, str *byte, flags int32) int32
//go:linkname Fopen github.com/c2gohq/c2go_libc.fopen
func Fopen(filename *byte, mode *byte) *FILE
//go:linkname Fopencookie github.com/c2gohq/c2go_libc.fopencookie
func Fopencookie(cookie unsafe.Pointer, mode *byte, iofuncs cookie_io_functions_t) *FILE
//go:linkname Fprintf github.com/c2gohq/c2go_libc.fprintf
func Fprintf(f *FILE, fmt *byte, argptrs unsafe.Pointer) int32
//go:linkname Fputc github.com/c2gohq/c2go_libc.fputc
func Fputc(c int32, f *FILE) int32
//go:linkname Fputs github.com/c2gohq/c2go_libc.fputs
func Fputs(s *byte, f *FILE) int32
//go:linkname Fputwc github.com/c2gohq/c2go_libc.fputwc
func Fputwc(c int32, f *FILE) uint32
//go:linkname Fputws github.com/c2gohq/c2go_libc.fputws
func Fputws(ws *int32, f *FILE) int32
//go:linkname Fread github.com/c2gohq/c2go_libc.fread
func Fread(destv unsafe.Pointer, size uint64, nmemb uint64, f *FILE) uint64
//go:linkname Freelocale github.com/c2gohq/c2go_libc.freelocale
func Freelocale(loc *__locale_struct)
//go:linkname Freopen github.com/c2gohq/c2go_libc.freopen
func Freopen(filename *byte, mode *byte, f *FILE) *FILE
//go:linkname Frexp github.com/c2gohq/c2go_libc.frexp
func Frexp(x float64, e *int32) float64
//go:linkname Frexpf github.com/c2gohq/c2go_libc.frexpf
func Frexpf(x float32, e *int32) float32
//go:linkname Fscanf github.com/c2gohq/c2go_libc.fscanf
func Fscanf(f *FILE, fmt *byte, argptrs unsafe.Pointer) int32
//go:linkname Fseek github.com/c2gohq/c2go_libc.fseek
func Fseek(f *FILE, off int64, whence int32) int32
//go:linkname Fseeko github.com/c2gohq/c2go_libc.fseeko
func Fseeko(f *FILE, off int64, whence int32) int32
//go:linkname Fsetpos github.com/c2gohq/c2go_libc.fsetpos
func Fsetpos(f *FILE, pos *int64) int32
//go:linkname Fstat github.com/c2gohq/c2go_libc.fstat
func Fstat(fd int32, buf *stat) int32
//go:linkname Fstatat github.com/c2gohq/c2go_libc.fstatat
func Fstatat(dirfd int32, path *byte, st *stat, flags int32) int32
//go:linkname Fsync github.com/c2gohq/c2go_libc.fsync
func Fsync(fd int32) int32
//go:linkname Ftell github.com/c2gohq/c2go_libc.ftell
func Ftell(f *FILE) int64
//go:linkname Ftello github.com/c2gohq/c2go_libc.ftello
func Ftello(f *FILE) int64
//go:linkname Ftruncate github.com/c2gohq/c2go_libc.ftruncate
func Ftruncate(fd int32, len int64) int32
//go:linkname Ftrylockfile github.com/c2gohq/c2go_libc.ftrylockfile
func Ftrylockfile(f *FILE) int32
//go:linkname Ftw github.com/c2gohq/c2go_libc.ftw
func Ftw(path *byte, fn uintptr, fd_limit int32) int32
//go:linkname Funlockfile github.com/c2gohq/c2go_libc.funlockfile
func Funlockfile(f *FILE)
//go:linkname Futimens github.com/c2gohq/c2go_libc.futimens
func Futimens(fd int32, times *timespec) int32
//go:linkname Fwide github.com/c2gohq/c2go_libc.fwide
func Fwide(f *FILE, mode int32) int32
//go:linkname Fwprintf github.com/c2gohq/c2go_libc.fwprintf
func Fwprintf(f *FILE, fmt *int32, argptrs unsafe.Pointer) int32
//go:linkname Fwrite github.com/c2gohq/c2go_libc.fwrite
func Fwrite(src unsafe.Pointer, size uint64, nmemb uint64, f *FILE) uint64
//go:linkname Fwscanf github.com/c2gohq/c2go_libc.fwscanf
func Fwscanf(f *FILE, fmt *int32, argptrs unsafe.Pointer) int32
//go:linkname Getc github.com/c2gohq/c2go_libc.getc
func Getc(f *FILE) int32
//go:linkname Getchar github.com/c2gohq/c2go_libc.getchar
func Getchar() int32
//go:linkname Getcwd github.com/c2gohq/c2go_libc.getcwd
func Getcwd(buf *byte, size uint64) *byte
//go:linkname Getdelim github.com/c2gohq/c2go_libc.getdelim
func Getdelim(s **byte, n *uint64, delim int32, f *FILE) int64
//go:linkname Getentropy github.com/c2gohq/c2go_libc.getentropy
func Getentropy(buf unsafe.Pointer, n uint64) int32
//go:linkname Gethostname github.com/c2gohq/c2go_libc.gethostname
func Gethostname(buf *byte, n uint64) int32
//go:linkname Getline github.com/c2gohq/c2go_libc.getline
func Getline(s **byte, n *uint64, f *FILE) int64
//go:linkname Getopt github.com/c2gohq/c2go_libc.getopt
func Getopt(argc int32, argv **byte, optstring *byte) int32
//go:linkname GetoptLong github.com/c2gohq/c2go_libc.getopt_long
func GetoptLong(argc int32, argv **byte, optstring *byte, longopts *option, idx *int32) int32
//go:linkname GetoptLongOnly github.com/c2gohq/c2go_libc.getopt_long_only
func GetoptLongOnly(argc int32, argv **byte, optstring *byte, longopts *option, idx *int32) int32
//go:linkname Getpagesize github.com/c2gohq/c2go_libc.getpagesize
func Getpagesize() int32
//go:linkname Getrlimit github.com/c2gohq/c2go_libc.getrlimit
func Getrlimit(resource int32, rlim *rlimit) int32
//go:linkname Getrusage github.com/c2gohq/c2go_libc.getrusage
func Getrusage(who int32, ru *rusage) int32
//go:linkname Getsubopt github.com/c2gohq/c2go_libc.getsubopt
func Getsubopt(opt **byte, keys **byte, val **byte) int32
//go:linkname Gettext github.com/c2gohq/c2go_libc.gettext
func Gettext(msgid *byte) *byte
//go:linkname Gettimeofday github.com/c2gohq/c2go_libc.gettimeofday
func Gettimeofday(tv *timeval, tz unsafe.Pointer) int32
//go:linkname Getw github.com/c2gohq/c2go_libc.getw
func Getw(f *FILE) int32
//go:linkname Getwc github.com/c2gohq/c2go_libc.getwc
func Getwc(f *FILE) uint32
//go:linkname Getwchar github.com/c2gohq/c2go_libc.getwchar
func Getwchar() uint32
//go:linkname Glob github.com/c2gohq/c2go_libc.glob
func Glob(pat *byte, flags int32, errfunc uintptr, g *glob_t) int32
//go:linkname Globfree github.com/c2gohq/c2go_libc.globfree
func Globfree(g *glob_t)
//go:linkname Gmtime github.com/c2gohq/c2go_libc.gmtime
func Gmtime(t *int64) *tm
//go:linkname GmtimeR github.com/c2gohq/c2go_libc.gmtime_r
func GmtimeR(t *int64, tm *tm) *tm
//go:linkname Hcreate github.com/c2gohq/c2go_libc.hcreate
func Hcreate(nel uint64) int32
//go:linkname HcreateR github.com/c2gohq/c2go_libc.hcreate_r
func HcreateR(nel uint64, htab *hsearch_data) int32
//go:linkname Hdestroy github.com/c2gohq/c2go_libc.hdestroy
func Hdestroy()
//go:linkname HdestroyR github.com/c2gohq/c2go_libc.hdestroy_r
func HdestroyR(htab *hsearch_data)
//go:linkname Hsearch github.com/c2gohq/c2go_libc.hsearch
func Hsearch(item entry, action uintptr) *entry
//go:linkname HsearchR github.com/c2gohq/c2go_libc.hsearch_r
func HsearchR(item entry, action uintptr, retval **entry, htab *hsearch_data) int32
//go:linkname Hypot github.com/c2gohq/c2go_libc.hypot
func Hypot(x float64, y float64) float64
//go:linkname Hypotf github.com/c2gohq/c2go_libc.hypotf
func Hypotf(x float32, y float32) float32
func iconv(cd unsafe.Pointer, in **byte, inleft *uint64, out **byte, outleft *uint64) uint64
func iconv_close(cd unsafe.Pointer) int32
func iconv_open(to *byte, from *byte) unsafe.Pointer
//go:linkname Ilogb github.com/c2gohq/c2go_libc.ilogb
func Ilogb(x float64) int32
//go:linkname Ilogbf github.com/c2gohq/c2go_libc.ilogbf
func Ilogbf(x float32) int32
//go:linkname Imaxabs github.com/c2gohq/c2go_libc.imaxabs
func Imaxabs(a int64) int64
//go:linkname Imaxdiv github.com/c2gohq/c2go_libc.imaxdiv
func Imaxdiv(num int64, den int64) (int64, int64)
//go:linkname Initstate github.com/c2gohq/c2go_libc.initstate
func Initstate(seed uint32, state *byte, size uint64) *byte
//go:linkname Insque github.com/c2gohq/c2go_libc.insque
func Insque(element unsafe.Pointer, pred unsafe.Pointer)
//go:linkname Ioctl github.com/c2gohq/c2go_libc.ioctl
func Ioctl(fd int32, req int32, argptrs unsafe.Pointer) int32
//go:linkname Isalnum github.com/c2gohq/c2go_libc.isalnum
func Isalnum(c int32) int32
//go:linkname IsalnumL github.com/c2gohq/c2go_libc.isalnum_l
func IsalnumL(c int32, l *__locale_struct) int32
//go:linkname Isalpha github.com/c2gohq/c2go_libc.isalpha
func Isalpha(c int32) int32
//go:linkname IsalphaL github.com/c2gohq/c2go_libc.isalpha_l
func IsalphaL(c int32, l *__locale_struct) int32
//go:linkname Isascii github.com/c2gohq/c2go_libc.isascii
func Isascii(c int32) int32
//go:linkname Isatty github.com/c2gohq/c2go_libc.isatty
func Isatty(fd int32) int32
//go:linkname Isblank github.com/c2gohq/c2go_libc.isblank
func Isblank(c int32) int32
//go:linkname IsblankL github.com/c2gohq/c2go_libc.isblank_l
func IsblankL(c int32, l *__locale_struct) int32
//go:linkname Iscntrl github.com/c2gohq/c2go_libc.iscntrl
func Iscntrl(c int32) int32
//go:linkname IscntrlL github.com/c2gohq/c2go_libc.iscntrl_l
func IscntrlL(c int32, l *__locale_struct) int32
//go:linkname Isdigit github.com/c2gohq/c2go_libc.isdigit
func Isdigit(c int32) int32
//go:linkname IsdigitL github.com/c2gohq/c2go_libc.isdigit_l
func IsdigitL(c int32, l *__locale_struct) int32
//go:linkname Isgraph github.com/c2gohq/c2go_libc.isgraph
func Isgraph(c int32) int32
//go:linkname IsgraphL github.com/c2gohq/c2go_libc.isgraph_l
func IsgraphL(c int32, l *__locale_struct) int32
//go:linkname Islower github.com/c2gohq/c2go_libc.islower
func Islower(c int32) int32
//go:linkname IslowerL github.com/c2gohq/c2go_libc.islower_l
func IslowerL(c int32, l *__locale_struct) int32
//go:linkname Isprint github.com/c2gohq/c2go_libc.isprint
func Isprint(c int32) int32
//go:linkname IsprintL github.com/c2gohq/c2go_libc.isprint_l
func IsprintL(c int32, l *__locale_struct) int32
//go:linkname Ispunct github.com/c2gohq/c2go_libc.ispunct
func Ispunct(c int32) int32
//go:linkname IspunctL github.com/c2gohq/c2go_libc.ispunct_l
func IspunctL(c int32, l *__locale_struct) int32
//go:linkname Isspace github.com/c2gohq/c2go_libc.isspace
func Isspace(c int32) int32
//go:linkname IsspaceL github.com/c2gohq/c2go_libc.isspace_l
func IsspaceL(c int32, l *__locale_struct) int32
//go:linkname Isupper github.com/c2gohq/c2go_libc.isupper
func Isupper(c int32) int32
//go:linkname IsupperL github.com/c2gohq/c2go_libc.isupper_l
func IsupperL(c int32, l *__locale_struct) int32
//go:linkname Iswalnum github.com/c2gohq/c2go_libc.iswalnum
func Iswalnum(wc uint32) int32
//go:linkname IswalnumL github.com/c2gohq/c2go_libc.iswalnum_l
func IswalnumL(c uint32, l *__locale_struct) int32
//go:linkname Iswalpha github.com/c2gohq/c2go_libc.iswalpha
func Iswalpha(wc uint32) int32
//go:linkname IswalphaL github.com/c2gohq/c2go_libc.iswalpha_l
func IswalphaL(c uint32, l *__locale_struct) int32
//go:linkname Iswblank github.com/c2gohq/c2go_libc.iswblank
func Iswblank(wc uint32) int32
//go:linkname IswblankL github.com/c2gohq/c2go_libc.iswblank_l
func IswblankL(c uint32, l *__locale_struct) int32
//go:linkname Iswcntrl github.com/c2gohq/c2go_libc.iswcntrl
func Iswcntrl(wc uint32) int32
//go:linkname IswcntrlL github.com/c2gohq/c2go_libc.iswcntrl_l
func IswcntrlL(c uint32, l *__locale_struct) int32
//go:linkname Iswctype github.com/c2gohq/c2go_libc.iswctype
func Iswctype(wc uint32, t uint64) int32
//go:linkname IswctypeL github.com/c2gohq/c2go_libc.iswctype_l
func IswctypeL(c uint32, t uint64, l *__locale_struct) int32
//go:linkname Iswdigit github.com/c2gohq/c2go_libc.iswdigit
func Iswdigit(wc uint32) int32
//go:linkname IswdigitL github.com/c2gohq/c2go_libc.iswdigit_l
func IswdigitL(c uint32, l *__locale_struct) int32
//go:linkname Iswgraph github.com/c2gohq/c2go_libc.iswgraph
func Iswgraph(wc uint32) int32
//go:linkname IswgraphL github.com/c2gohq/c2go_libc.iswgraph_l
func IswgraphL(c uint32, l *__locale_struct) int32
//go:linkname Iswlower github.com/c2gohq/c2go_libc.iswlower
func Iswlower(wc uint32) int32
//go:linkname IswlowerL github.com/c2gohq/c2go_libc.iswlower_l
func IswlowerL(c uint32, l *__locale_struct) int32
//go:linkname Iswprint github.com/c2gohq/c2go_libc.iswprint
func Iswprint(wc uint32) int32
//go:linkname IswprintL github.com/c2gohq/c2go_libc.iswprint_l
func IswprintL(c uint32, l *__locale_struct) int32
//go:linkname Iswpunct github.com/c2gohq/c2go_libc.iswpunct
func Iswpunct(wc uint32) int32
//go:linkname IswpunctL github.com/c2gohq/c2go_libc.iswpunct_l
func IswpunctL(c uint32, l *__locale_struct) int32
//go:linkname Iswspace github.com/c2gohq/c2go_libc.iswspace
func Iswspace(wc uint32) int32
//go:linkname IswspaceL github.com/c2gohq/c2go_libc.iswspace_l
func IswspaceL(c uint32, l *__locale_struct) int32
//go:linkname Iswupper github.com/c2gohq/c2go_libc.iswupper
func Iswupper(wc uint32) int32
//go:linkname IswupperL github.com/c2gohq/c2go_libc.iswupper_l
func IswupperL(c uint32, l *__locale_struct) int32
//go:linkname Iswxdigit github.com/c2gohq/c2go_libc.iswxdigit
func Iswxdigit(wc uint32) int32
//go:linkname IswxdigitL github.com/c2gohq/c2go_libc.iswxdigit_l
func IswxdigitL(c uint32, l *__locale_struct) int32
//go:linkname Isxdigit github.com/c2gohq/c2go_libc.isxdigit
func Isxdigit(c int32) int32
//go:linkname IsxdigitL github.com/c2gohq/c2go_libc.isxdigit_l
func IsxdigitL(c int32, l *__locale_struct) int32
//go:linkname J0 github.com/c2gohq/c2go_libc.j0
func J0(x float64) float64
//go:linkname J1 github.com/c2gohq/c2go_libc.j1
func J1(x float64) float64
//go:linkname Jn github.com/c2gohq/c2go_libc.jn
func Jn(n int32, x float64) float64
//go:linkname Jrand48 github.com/c2gohq/c2go_libc.jrand48
func Jrand48(s *uint16) int64
//go:linkname L64a github.com/c2gohq/c2go_libc.l64a
func L64a(x0 int64) *byte
//go:linkname Labs github.com/c2gohq/c2go_libc.labs
func Labs(a int64) int64
//go:linkname Lchown github.com/c2gohq/c2go_libc.lchown
func Lchown(path *byte, uid uint32, gid uint32) int32
//go:linkname Lcong48 github.com/c2gohq/c2go_libc.lcong48
func Lcong48(p *uint16)
//go:linkname Ldexp github.com/c2gohq/c2go_libc.ldexp
func Ldexp(x float64, n int32) float64
//go:linkname Ldexpf github.com/c2gohq/c2go_libc.ldexpf
func Ldexpf(x float32, n int32) float32
//go:linkname Ldiv github.com/c2gohq/c2go_libc.ldiv