repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
mntent: unescape octal sequences
[musl.git]
/
crt
/
crt1.c
blob
8fe8ab5d8c3ea005ce9e0eb07e72cadb4747b0ab
1
#include <features.h>
2
#include
"libc.h"
3
4
#define START
"_start"
5
6
#include
"crt_arch.h"
7
8
int
main
();
9
weak
void
_init
();
10
weak
void
_fini
();
11
int
__libc_start_main
(
int
(*)(),
int
,
char
**,
12
void
(*)(),
void
(*)(),
void
(*)());
13
14
void
_start_c
(
long
*
p
)
15
{
16
int
argc
=
p
[
0
];
17
char
**
argv
= (
void
*)(
p
+
1
);
18
__libc_start_main
(
main
,
argc
,
argv
,
_init
,
_fini
,
0
);
19
}