Changeset 2eadda9 in mainline for uspace/lib/c/generic/private/libc.h
- Timestamp:
- 2018-07-11T17:45:30Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 99d3123
- Parents:
- c2c4127
- git-author:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-11 17:08:12)
- git-committer:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-07-11 17:45:30)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/private/libc.h
rc2c4127 r2eadda9 36 36 #define LIBC_PRIVATE_LIBC_H_ 37 37 38 #include <types/common.h> 39 40 /* Type of the main C function. */ 41 typedef int (*main_fn_t)(int, char **); 42 38 43 /** 39 44 * Used for C++ constructors/destructors … … 43 48 typedef void (*fini_array_entry_t)(); 44 49 45 extern init_array_entry_t __init_array_start[]; 46 extern init_array_entry_t __init_array_end[]; 47 extern fini_array_entry_t __fini_array_start[]; 48 extern fini_array_entry_t __fini_array_end[]; 50 typedef struct { 51 main_fn_t main; 52 const void *elfstart; 53 const void *end; 54 init_array_entry_t *preinit_array; 55 int preinit_array_len; 56 init_array_entry_t *init_array; 57 int init_array_len; 58 fini_array_entry_t *fini_array; 59 int fini_array_len; 60 } progsymbols_t; 49 61 50 extern unsigned char _end[];62 extern progsymbols_t __progsymbols; 51 63 extern void __libc_main(void *) __attribute__((noreturn)); 52 64 extern void __libc_exit(int) __attribute__((noreturn)); 53 65 extern void __libc_abort(void) __attribute__((noreturn)); 54 extern int main(int, char *[]);55 66 56 67 #endif
Note:
See TracChangeset
for help on using the changeset viewer.