mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
e466dd0553
This change hardens the code for opening /zip/ files using the system call interface. Thread safety and signal safety has been improved for file descriptors in general. We now document fixed addresses that are needed for low level allocations.
20 lines
1.1 KiB
C
20 lines
1.1 KiB
C
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:4;tab-width:8;coding:utf-8 -*-│
|
|
│vi: set net ft=c ts=4 sts=4 sw=4 fenc=utf-8 :vi│
|
|
╞══════════════════════════════════════════════════════════════════════════════╡
|
|
│ Python 3 │
|
|
│ https://docs.python.org/3/license.html │
|
|
╚─────────────────────────────────────────────────────────────────────────────*/
|
|
#include "libc/log/log.h"
|
|
#include "libc/runtime/runtime.h"
|
|
#include "third_party/python/Include/yoink.h"
|
|
#include "third_party/python/runpythonmodule.h"
|
|
#include "tool/args/args.h"
|
|
// clang-format off
|
|
|
|
int
|
|
main(int argc, char **argv)
|
|
{
|
|
LoadZipArgs(&argc, &argv);
|
|
__nosync = 0x5453455454534146;
|
|
return RunPythonModule(argc, argv);
|
|
}
|