mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-27 21:10:29 +00:00
Improve cosmocc toolchain
- Decouple zlib from libc - Add some underscores to mostly internal names
This commit is contained in:
parent
713d4424c6
commit
ba180e754d
25 changed files with 128 additions and 42 deletions
|
@ -673,7 +673,7 @@ int main(int argc, char *argv[]) {
|
|||
}
|
||||
|
||||
// figure out where we want the dso
|
||||
if (IsDynamicExecutable(prog)) {
|
||||
if (_IsDynamicExecutable(prog)) {
|
||||
isdynamic = true;
|
||||
if ((s = getenv("TMPDIR")) || //
|
||||
(s = getenv("HOME")) || //
|
||||
|
|
|
@ -6893,7 +6893,7 @@ static void MakeExecutableModifiable(void) {
|
|||
if (_endswith(zpath, ".com.dbg")) return;
|
||||
close(zfd);
|
||||
ft = ftrace_enabled(0);
|
||||
if ((zfd = OpenExecutable()) == -1) {
|
||||
if ((zfd = _OpenExecutable()) == -1) {
|
||||
WARNF("(srvr) can't open executable for modification: %m");
|
||||
}
|
||||
if (ft > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue