/
crast.pxd
3128 lines (1934 loc) · 74.8 KB
/
crast.pxd
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
# This code was automatically generated by CWrap version 0.0.0
cdef extern from "grass/raster.h":
int CELL_TYPE = 0
int FCELL_TYPE = 1
int DCELL_TYPE = 2
ctypedef unsigned char __u_char
ctypedef unsigned short __u_short
ctypedef unsigned int __u_int
ctypedef unsigned long __u_long
ctypedef signed char __int8_t
ctypedef unsigned char __uint8_t
ctypedef short __int16_t
ctypedef unsigned short __uint16_t
ctypedef int __int32_t
ctypedef unsigned int __uint32_t
ctypedef long __int64_t
ctypedef unsigned long __uint64_t
ctypedef long __quad_t
ctypedef unsigned long __u_quad_t
ctypedef unsigned long __dev_t
ctypedef unsigned int __uid_t
ctypedef unsigned int __gid_t
ctypedef unsigned long __ino_t
ctypedef unsigned long __ino64_t
ctypedef unsigned int __mode_t
ctypedef unsigned long __nlink_t
ctypedef long __off_t
ctypedef long __off64_t
ctypedef int __pid_t
ctypedef struct __fsid_t:
int __val[2]
ctypedef long __clock_t
ctypedef unsigned long __rlim_t
ctypedef unsigned long __rlim64_t
ctypedef unsigned int __id_t
ctypedef long __time_t
ctypedef unsigned int __useconds_t
ctypedef long __suseconds_t
ctypedef int __daddr_t
ctypedef int __key_t
ctypedef int __clockid_t
ctypedef void *__timer_t
ctypedef long __blksize_t
ctypedef long __blkcnt_t
ctypedef long __blkcnt64_t
ctypedef unsigned long __fsblkcnt_t
ctypedef unsigned long __fsblkcnt64_t
ctypedef unsigned long __fsfilcnt_t
ctypedef unsigned long __fsfilcnt64_t
ctypedef long __fsword_t
ctypedef long __ssize_t
ctypedef long __syscall_slong_t
ctypedef unsigned long __syscall_ulong_t
ctypedef __off64_t __loff_t
ctypedef __quad_t *__qaddr_t
ctypedef char *__caddr_t
ctypedef long __intptr_t
ctypedef unsigned int __socklen_t
cdef struct _IO_FILE:
pass
ctypedef _IO_FILE FILE
ctypedef _IO_FILE __FILE
cdef union ____mbstate_t___value:
unsigned int __wch
char __wchb[4]
ctypedef ____mbstate_t___value ____mbstate_t___value_t
ctypedef struct __mbstate_t:
int __count
____mbstate_t___value_t __value
ctypedef struct _G_fpos_t:
__off_t __pos
__mbstate_t __state
ctypedef struct _G_fpos64_t:
__off64_t __pos
__mbstate_t __state
cdef struct _IO_jump_t:
pass
cdef struct _IO_FILE:
pass
ctypedef void _IO_lock_t
cdef struct _IO_marker:
_IO_marker *_next
_IO_FILE *_sbuf
int _pos
cdef enum __codecvt_result:
__codecvt_ok
__codecvt_partial
__codecvt_error
__codecvt_noconv
cdef struct _IO_FILE:
int _flags
char *_IO_read_ptr
char *_IO_read_end
char *_IO_read_base
char *_IO_write_base
char *_IO_write_ptr
char *_IO_write_end
char *_IO_buf_base
char *_IO_buf_end
char *_IO_save_base
char *_IO_backup_base
char *_IO_save_end
_IO_marker *_markers
_IO_FILE *_chain
int _fileno
int _flags2
__off_t _old_offset
unsigned short _cur_column
signed char _vtable_offset
char _shortbuf[1]
_IO_lock_t *_lock
__off64_t _offset
void *__pad1
void *__pad2
void *__pad3
void *__pad4
int __pad5
int _mode
char _unused2
cdef struct _IO_FILE_plus:
pass
_IO_FILE_plus _IO_2_1_stdin_
_IO_FILE_plus _IO_2_1_stdout_
_IO_FILE_plus _IO_2_1_stderr_
# ctypedef __ssize_t (__io_read_fn)(void *, char *, int)
#
# ctypedef __ssize_t (__io_write_fn)(void *, const char *, int)
#
# ctypedef int (__io_seek_fn)(void *, __off64_t *, int)
#
# ctypedef int (__io_close_fn)(void *)
int __underflow(_IO_FILE *)
int __uflow(_IO_FILE *)
int __overflow(_IO_FILE *, int)
int _IO_getc(_IO_FILE *__fp)
int _IO_putc(int __c, _IO_FILE *__fp)
int _IO_feof(_IO_FILE *__fp)
int _IO_ferror(_IO_FILE *__fp)
int _IO_peekc_locked(_IO_FILE *__fp)
void _IO_flockfile(_IO_FILE *)
void _IO_funlockfile(_IO_FILE *)
int _IO_ftrylockfile(_IO_FILE *)
int _IO_vfscanf(_IO_FILE *, const char *, int __gnuc_va_list, int *)
int _IO_vfprintf(_IO_FILE *, const char *, int __gnuc_va_list)
__ssize_t _IO_padn(_IO_FILE *, int, __ssize_t)
int _IO_sgetn(_IO_FILE *, void *, int size_t)
__off64_t _IO_seekoff(_IO_FILE *, __off64_t, int, int)
__off64_t _IO_seekpos(_IO_FILE *, __off64_t, int)
void _IO_free_backup_area(_IO_FILE *)
ctypedef int va_list
ctypedef __off_t off_t
ctypedef __ssize_t ssize_t
ctypedef _G_fpos_t fpos_t
_IO_FILE *stdin
_IO_FILE *stdout
_IO_FILE *stderr
int remove(const char *__filename)
int rename(const char *__old, const char *__new)
int renameat(int __oldfd, const char *__old, int __newfd, const char *__new)
FILE *tmpfile()
char *tmpnam(char *__s)
char *tmpnam_r(char *__s)
char *tempnam(const char *__dir, const char *__pfx)
int fclose(FILE *__stream)
int fflush(FILE *__stream)
int fflush_unlocked(FILE *__stream)
FILE *fopen(const char *__filename, const char *__modes)
FILE *freopen(const char *__filename, const char *__modes, FILE *__stream)
FILE *fdopen(int __fd, const char *__modes)
FILE *fmemopen(void *__s, int __len, const char *__modes)
FILE *open_memstream(char **__bufloc, int *__sizeloc)
void setbuf(FILE *__stream, char *__buf)
int setvbuf(FILE *__stream, char *__buf, int __modes, int __n)
void setbuffer(FILE *__stream, char *__buf, int __size)
void setlinebuf(FILE *__stream)
int fprintf(FILE *__stream, const char *__format)
int printf(const char *__format)
int sprintf(char *__s, const char *__format)
int vdprintf(int __fd, const char *__fmt, int __arg)
int dprintf(int __fd, const char *__fmt)
int fscanf(FILE *__stream, const char *__format)
int scanf(const char *__format)
int sscanf(const char *__s, const char *__format)
int fscanf(FILE *__stream, const char *__format)
int scanf(const char *__format)
int sscanf(const char *__s, const char *__format)
int fgetc(FILE *__stream)
int getc(FILE *__stream)
int getchar()
int getc_unlocked(FILE *__stream)
int getchar_unlocked()
int fgetc_unlocked(FILE *__stream)
int fputc(int __c, FILE *__stream)
int putc(int __c, FILE *__stream)
int putchar(int __c)
int fputc_unlocked(int __c, FILE *__stream)
int putc_unlocked(int __c, FILE *__stream)
int putchar_unlocked(int __c)
int getw(FILE *__stream)
int putw(int __w, FILE *__stream)
char *fgets(char *__s, int __n, FILE *__stream)
char *gets(char *__s)
__ssize_t __getdelim(char **__lineptr, int *__n, int __delimiter, FILE *__stream)
__ssize_t getdelim(char **__lineptr, int *__n, int __delimiter, FILE *__stream)
__ssize_t getline(char **__lineptr, int *__n, FILE *__stream)
int fputs(const char *__s, FILE *__stream)
int puts(const char *__s)
int ungetc(int __c, FILE *__stream)
int fread(void *__ptr, int __size, int __n, FILE *__stream)
int fwrite(const void *__ptr, int __size, int __n, FILE *__s)
int fread_unlocked(void *__ptr, int __size, int __n, FILE *__stream)
int fwrite_unlocked(const void *__ptr, int __size, int __n, FILE *__stream)
int fseek(FILE *__stream, long __off, int __whence)
long ftell(FILE *__stream)
void rewind(FILE *__stream)
int fseeko(FILE *__stream, __off_t __off, int __whence)
__off_t ftello(FILE *__stream)
int fgetpos(FILE *__stream, fpos_t *__pos)
int fsetpos(FILE *__stream, const fpos_t *__pos)
void clearerr(FILE *__stream)
int feof(FILE *__stream)
int ferror(FILE *__stream)
void clearerr_unlocked(FILE *__stream)
int feof_unlocked(FILE *__stream)
int ferror_unlocked(FILE *__stream)
void perror(const char *__s)
int sys_nerr
# unexposed_type sys_errlist
int fileno(FILE *__stream)
int fileno_unlocked(FILE *__stream)
FILE *popen(const char *__command, const char *__modes)
int pclose(FILE *__stream)
char *ctermid(char *__s)
void flockfile(FILE *__stream)
int ftrylockfile(FILE *__stream)
void funlockfile(FILE *__stream)
cdef struct stat:
pass
ctypedef stat STRUCT_STAT
# cdef struct DateTime:
# int mode
# int from
# int to
# int fracsec
# int year
# int month
# int day
# int hour
# int minute
# double second
# int positive
# int tz
int datetime_is_between(int x, int a, int b)
# int datetime_change_from_to(DateTime *dt, int from, int to, int round)
#
# void datetime_copy(DateTime *src, const DateTime *dst)
#
# int datetime_difference(const DateTime *a, const DateTime *b, DateTime *result)
int datetime_error(int code, char *msg)
int datetime_error_code()
char *datetime_error_msg()
void datetime_clear_error()
# int datetime_format(const DateTime *dt, char *buf)
#
# int datetime_increment(DateTime *src, DateTime *incr)
# int datetime_is_valid_increment(const DateTime *src, const DateTime *incr)
# int datetime_check_increment(const DateTime *src, const DateTime *incr)
# int datetime_get_increment_type(const DateTime *dt, int *mode, int *from, int *to, int *fracsec)
#
# int datetime_set_increment_type(const DateTime *src, DateTime *incr)
int datetime_get_local_timezone(int *minutes)
# void datetime_get_local_time(DateTime *dt)
int datetime_days_in_month(int year, int month, int ad)
int datetime_is_leap_year(int year, int ad)
int datetime_days_in_year(int year, int ad)
# int datetime_is_same(const DateTime *src, const DateTime *dst)
# int datetime_scan(DateTime *dt, const char *buf)
# int datetime_is_positive(const DateTime *dt)
#
# int datetime_is_negative(const DateTime *dt)
#
# void datetime_set_positive(DateTime *dt)
#
# void datetime_set_negative(DateTime *dt)
#
# void datetime_invert_sign(DateTime *dt)
# int datetime_set_type(DateTime *dt, int mode, int from, int to, int fracsec)
# int datetime_get_type(const DateTime *dt, int *mode, int *from, int *to, int *fracsec)
# int datetime_is_valid_type(const DateTime *dt)
#
# int datetime_check_type(const DateTime *dt)
int datetime_in_interval_year_month(int x)
int datetime_in_interval_day_second(int x)
# int datetime_is_absolute(const DateTime *dt)
#
# int datetime_is_relative(const DateTime *dt)
#
# int datetime_check_timezone(const DateTime *dt, int minutes)
#
# int datetime_get_timezone(const DateTime *dt, int *minutes)
#
# int datetime_set_timezone(DateTime *dt, int minutes)
#
# int datetime_unset_timezone(DateTime *dt)
#
# int datetime_is_valid_timezone(int minutes)
#
# int datetime_change_timezone(DateTime *dt, int minutes)
#
# int datetime_change_to_utc(DateTime *dt)
#
# void datetime_decompose_timezone(int tz, int *hours, int *minutes)
#
# int datetime_check_year(const DateTime *dt, int year)
#
# int datetime_check_month(const DateTime *dt, int month)
#
# int datetime_check_day(const DateTime *dt, int day)
#
# int datetime_check_hour(const DateTime *dt, int hour)
#
# int datetime_check_minute(const DateTime *dt, int minute)
#
# int datetime_check_second(const DateTime *dt, double second)
#
# int datetime_check_fracsec(const DateTime *dt, int fracsec)
#
# int datetime_get_year(const DateTime *dt, int *year)
#
# int datetime_set_year(DateTime *dt, int year)
#
# int datetime_get_month(const DateTime *dt, int *month)
#
# int datetime_set_month(DateTime *dt, int month)
#
# int datetime_get_day(const DateTime *dt, int *day)
#
# int datetime_set_day(DateTime *dt, int day)
#
# int datetime_get_hour(const DateTime *dt, int *hour)
#
# int datetime_set_hour(DateTime *dt, int hour)
#
# int datetime_get_minute(const DateTime *dt, int *minute)
#
# int datetime_set_minute(DateTime *dt, int minute)
#
# int datetime_get_second(const DateTime *dt, double *second)
#
# int datetime_set_second(DateTime *dt, double second)
#
# int datetime_get_fracsec(const DateTime *dt, int *fracsec)
#
# int datetime_set_fracsec(DateTime *dt, int fracsec)
const char *GRASS_copyright
ctypedef enum STD_OPT:
G_OPT_UNDEFINED
G_OPT_DB_SQL
G_OPT_DB_WHERE
G_OPT_DB_TABLE
G_OPT_DB_DRIVER
G_OPT_DB_DATABASE
G_OPT_DB_SCHEMA
G_OPT_DB_COLUMN
G_OPT_DB_COLUMNS
G_OPT_DB_KEYCOLUMN
G_OPT_I_GROUP
G_OPT_I_SUBGROUP
G_OPT_R_INPUT
G_OPT_R_INPUTS
G_OPT_R_OUTPUT
G_OPT_R_MAP
G_OPT_R_MAPS
G_OPT_R_BASE
G_OPT_R_COVER
G_OPT_R_ELEV
G_OPT_R_ELEVS
G_OPT_R3_INPUT
G_OPT_R3_INPUTS
G_OPT_R3_OUTPUT
G_OPT_R3_MAP
G_OPT_R3_MAPS
G_OPT_R3_TYPE
G_OPT_R3_PRECISION
G_OPT_R3_TILE_DIMENSION
G_OPT_R3_COMPRESSION
G_OPT_V_INPUT
G_OPT_V_INPUTS
G_OPT_V_OUTPUT
G_OPT_V_MAP
G_OPT_V_MAPS
G_OPT_V_TYPE
G_OPT_V3_TYPE
G_OPT_V_FIELD
G_OPT_V_FIELD_ALL
G_OPT_V_CAT
G_OPT_V_CATS
G_OPT_V_ID
G_OPT_V_IDS
G_OPT_F_INPUT
G_OPT_F_OUTPUT
G_OPT_F_SEP
G_OPT_C_FG
G_OPT_C_BG
G_OPT_M_UNITS
G_OPT_M_DATATYPE
G_OPT_M_MAPSET
G_OPT_M_COORDS
G_OPT_M_COLR
G_OPT_M_DIR
G_OPT_STDS_INPUT
G_OPT_STDS_INPUTS
G_OPT_STDS_OUTPUT
G_OPT_STRDS_INPUT
G_OPT_STRDS_INPUTS
G_OPT_STRDS_OUTPUT
G_OPT_STR3DS_INPUT
G_OPT_STR3DS_INPUTS
G_OPT_STR3DS_OUTPUT
G_OPT_STVDS_INPUT
G_OPT_STVDS_INPUTS
G_OPT_STVDS_OUTPUT
G_OPT_MAP_INPUT
G_OPT_MAP_INPUTS
G_OPT_STDS_TYPE
G_OPT_MAP_TYPE
G_OPT_T_TYPE
G_OPT_T_WHERE
G_OPT_T_SAMPLE
ctypedef enum STD_FLG:
G_FLG_UNDEFINED
G_FLG_V_TABLE
G_FLG_V_TOPO
cdef enum:
G_ELEMENT_RASTER
G_ELEMENT_RASTER3D
G_ELEMENT_VECTOR
G_ELEMENT_OLDVECTOR
G_ELEMENT_ASCIIVECTOR
G_ELEMENT_ICON
G_ELEMENT_LABEL
G_ELEMENT_SITE
G_ELEMENT_REGION
G_ELEMENT_REGION3D
G_ELEMENT_GROUP
G_ELEMENT_3DVIEW
cdef struct Cell_head:
int format
int compressed
int rows
int rows3
int cols
int cols3
int depths
int proj
int zone
double ew_res
double ew_res3
double ns_res
double ns_res3
double tb_res
double north
double south
double east
double west
double top
double bottom
cdef struct G_3dview:
char pgm_id[40]
float from_to[2][3]
float fov
float twist
float exag
int mesh_freq
int poly_freq
int display_type
int lightson
int dozero
int colorgrid
int shading
int fringe
int surfonly
int doavg
char grid_col[40]
char bg_col[40]
char other_col[40]
float lightpos[4]
float lightcol[3]
float ambient
float shine
Cell_head vwin
cdef struct Key_Value:
int nitems
int nalloc
char **key
char **value
# cdef struct Option:
# const char *key
# int type
# int required
# int multiple
# const char *options
# const char **opts
# const char *key_desc
# const char *label
# const char *description
# const char *descriptions
# const char **descs
# char *answer
# const char *def
# char **answers
# Option *next_opt
# const char *gisprompt
# const char *guisection
# const char *guidependency
# int (*checker)(const char *)
# int count
cdef struct Flag:
char key
char answer
char suppress_required
const char *label
const char *description
const char *guisection
Flag *next_flag
cdef struct GModule:
const char *label
const char *description
const char **keywords
int overwrite
int verbose
# cdef struct TimeStamp:
# DateTime dt[2]
# int count
cdef struct Counter:
int value
cdef struct Popen:
FILE *fp
int pid
ctypedef int CELL
ctypedef double DCELL
ctypedef float FCELL
cdef struct _Color_Value_:
DCELL value
unsigned char red
unsigned char grn
unsigned char blu
cdef struct _Color_Rule_:
_Color_Value_ low
_Color_Value_ high
_Color_Rule_ *next
_Color_Rule_ *prev
cdef struct ___Color_Info__lookup:
unsigned char *red
unsigned char *grn
unsigned char *blu
unsigned char *set
int nalloc
int active
ctypedef ___Color_Info__lookup ___Color_Info__lookup_t
cdef struct ___Color_Info__fp_lookup:
DCELL *vals
_Color_Rule_ **rules
int nalloc
int active
ctypedef ___Color_Info__fp_lookup ___Color_Info__fp_lookup_t
cdef struct _Color_Info_:
_Color_Rule_ *rules
int n_rules
___Color_Info__lookup_t lookup
___Color_Info__fp_lookup_t fp_lookup
DCELL min
DCELL max
cdef struct Colors:
int version
DCELL shift
int invert
int is_float
int null_set
unsigned char null_red
unsigned char null_grn
unsigned char null_blu
int undef_set
unsigned char undef_red
unsigned char undef_grn
unsigned char undef_blu
_Color_Info_ fixed
_Color_Info_ modular
DCELL cmin
DCELL cmax
int organizing
cdef struct ilist:
int *value
int n_values
int alloc_values
ctypedef __u_char u_char
ctypedef __u_short u_short
ctypedef __u_int u_int
ctypedef __u_long u_long
ctypedef __quad_t quad_t
ctypedef __u_quad_t u_quad_t
ctypedef __fsid_t fsid_t
ctypedef __loff_t loff_t
ctypedef __ino_t ino_t
ctypedef __dev_t dev_t
ctypedef __gid_t gid_t
ctypedef __mode_t mode_t
ctypedef __nlink_t nlink_t
ctypedef __uid_t uid_t
ctypedef __pid_t pid_t
ctypedef __id_t id_t
ctypedef __daddr_t daddr_t
ctypedef __caddr_t caddr_t
ctypedef __key_t key_t
ctypedef __clock_t clock_t
ctypedef __time_t time_t
ctypedef __clockid_t clockid_t
ctypedef __timer_t timer_t
ctypedef unsigned long ulong
ctypedef unsigned short ushort
ctypedef unsigned int uint
ctypedef signed char int8_t
ctypedef short int16_t
ctypedef int int32_t
ctypedef long int64_t
ctypedef unsigned char u_int8_t
ctypedef unsigned short u_int16_t
ctypedef unsigned int u_int32_t
ctypedef unsigned long u_int64_t
ctypedef long register_t
ctypedef int __sig_atomic_t
ctypedef struct __sigset_t:
unsigned long __val[16]
ctypedef __sigset_t sigset_t
cdef struct timespec:
__time_t tv_sec
__syscall_slong_t tv_nsec
cdef struct timeval:
__time_t tv_sec
__suseconds_t tv_usec
ctypedef __suseconds_t suseconds_t
ctypedef long __fd_mask
ctypedef struct fd_set:
__fd_mask __fds_bits[16]
ctypedef __fd_mask fd_mask
int select(int __nfds, fd_set *__readfds, fd_set *__writefds, fd_set *__exceptfds, timeval *__timeout)
int pselect(int __nfds, fd_set *__readfds, fd_set *__writefds, fd_set *__exceptfds, timespec *__timeout, const __sigset_t *__sigmask)
unsigned int gnu_dev_major(unsigned long long __dev)
unsigned int gnu_dev_minor(unsigned long long __dev)
unsigned long long gnu_dev_makedev(unsigned int __major, unsigned int __minor)
ctypedef __blksize_t blksize_t
ctypedef __blkcnt_t blkcnt_t
ctypedef __fsblkcnt_t fsblkcnt_t
ctypedef __fsfilcnt_t fsfilcnt_t
ctypedef unsigned long pthread_t
cdef union pthread_attr_t:
char __size[56]
long __align
cdef struct __pthread_internal_list:
__pthread_internal_list *__prev
__pthread_internal_list *__next
ctypedef __pthread_internal_list __pthread_list_t
cdef struct __pthread_mutex_t___pthread_mutex_s:
int __lock
unsigned int __count
int __owner
unsigned int __nusers
int __kind
int __spins
__pthread_list_t __list
ctypedef __pthread_mutex_t___pthread_mutex_s __pthread_mutex_t___pthread_mutex_s_t
ctypedef union pthread_mutex_t:
__pthread_mutex_t___pthread_mutex_s_t __data
char __size[40]
long __align
ctypedef union pthread_mutexattr_t:
char __size[4]
int __align
cdef struct __pthread_cond_t___data:
int __lock
unsigned int __futex
unsigned long long __total_seq
unsigned long long __wakeup_seq
unsigned long long __woken_seq
void *__mutex
unsigned int __nwaiters
unsigned int __broadcast_seq
ctypedef __pthread_cond_t___data __pthread_cond_t___data_t
ctypedef union pthread_cond_t:
__pthread_cond_t___data_t __data
char __size[48]
long long __align
ctypedef union pthread_condattr_t:
char __size[4]
int __align
ctypedef unsigned int pthread_key_t
ctypedef int pthread_once_t
cdef struct __pthread_rwlock_t___data:
int __lock