mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-23 11:00:31 +00:00
Prepend getcwd to exename early in init (#1048)
This commit is contained in:
parent
2f89c2482a
commit
68dbe5312f
5 changed files with 70 additions and 22 deletions
|
@ -172,6 +172,9 @@ wontreturn textstartup void cosmo(long *sp, struct Syslib *m1, char *exename,
|
|||
// initialize file system
|
||||
__init_fds(argc, argv, envp);
|
||||
|
||||
// prepend cwd to executable path
|
||||
__init_program_executable_name();
|
||||
|
||||
__enable_tls();
|
||||
|
||||
#if 0
|
||||
|
|
|
@ -47,6 +47,7 @@ void *__mmap_unlocked(void *, size_t, int, int, int, int64_t);
|
|||
int __munmap_unlocked(char *, size_t);
|
||||
void __on_arithmetic_overflow(void);
|
||||
void __init_fds(int, char **, char **);
|
||||
void __init_program_executable_name(void);
|
||||
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* ANSI */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue