1、regex_t
type = struct re_pattern_buffer {
unsigned char *buffer;
long unsigned int allocated;
long unsigned int used;
reg_syntax_t syntax;
char *fastmap;
unsigned char *translate;
size_t re_nsub;
unsigned int can_be_null : 1;
unsigned int regs_allocated : 2;
unsigned int fastmap_accurate : 1;
unsigned int no_sub : 1;
unsigned int not_bol : 1;
unsigned int not_eol : 1;
unsigned int newline_anchor : 1;
}
2、reg_syntax_t
type = long unsigned int
3、regmatch_t
type = struct {
regoff_t rm_so;
regoff_t rm_eo;
}
(gdb) ptype regoff_t
type = int