cosmopolitan/libc/stdio
Justine Tunney b420ed8248 Undiamond Python headers
This change gets the Python codebase into a state where it conforms to
the conventions of this codebase. It's now possible to include headers
from Python, without worrying about ordering. Python has traditionally
solved that problem by "diamonding" everything in Python.h, but that's
problematic since it means any change to any Python header invalidates
all the build artifacts. Lastly it makes tooling not work. Since it is
hard to explain to Emacs when I press C-c C-h to add an import line it
shouldn't add the header that actually defines the symbol, and instead
do follow the nonstandard Python convention.

Progress has been made on letting Python load source code from the zip
executable structure via the standard C library APIs. System calss now
recognizes zip!FILENAME alternative URIs as equivalent to zip:FILENAME
since Python uses colon as its delimiter.

Some progress has been made on embedding the notice license terms into
the Python object code. This is easier said than done since Python has
an extremely complicated ownership story.

- Some termios APIs have been added
- Implement rewinddir() dirstream API
- GetCpuCount() API added to Cosmopolitan Libc
- More bugs in Cosmopolitan Libc have been fixed
- zipobj.com now has flags for mangling the path
- Fixed bug a priori with sendfile() on certain BSDs
- Polyfill F_DUPFD and F_DUPFD_CLOEXEC across platforms
- FIOCLEX / FIONCLEX now polyfilled for fast O_CLOEXEC changes
- APE now supports a hybrid solution to no-self-modify for builds
- Many BSD-only magnums added, e.g. O_SEARCH, O_SHLOCK, SF_NODISKIO
2021-08-12 14:07:40 -07:00
..
unlocked Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
append.internal.h Fix bugs and make improvements to redbean 2021-08-06 14:18:34 -07:00
appendd.c Add function for creating hex string literals 2021-08-07 07:05:19 -07:00
appendf.c Add function for creating hex string literals 2021-08-07 07:05:19 -07:00
appendr.c Add function for creating hex string literals 2021-08-07 07:05:19 -07:00
appends.c Add function for creating hex string literals 2021-08-07 07:05:19 -07:00
appendw.c Add function for creating hex string literals 2021-08-07 07:05:19 -07:00
appendz.c Add function for creating hex string literals 2021-08-07 07:05:19 -07:00
clearerr.c Change license 2020-12-27 17:18:44 -08:00
dirstream.c Undiamond Python headers 2021-08-12 14:07:40 -07:00
dtoa.c Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
dumphexc.c Add function for creating hex string literals 2021-08-07 07:05:19 -07:00
fbufsize.c Work towards improving signals and processes 2021-01-27 19:34:02 -08:00
fclose.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
fclose_s.c Change license 2020-12-27 17:18:44 -08:00
fdopen.c Make major improvements to stdio 2021-03-26 22:31:41 -07:00
feof.c Change license 2020-12-27 17:18:44 -08:00
ferror.c Change license 2020-12-27 17:18:44 -08:00
fflush.c Add /statusz page to redbean plus other enhancements 2021-04-23 18:53:57 -07:00
fflush.internal.h Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
fflushimpl.c Add /statusz page to redbean plus other enhancements 2021-04-23 18:53:57 -07:00
fgetc.c Fix popen_test in MODE=dbg 2021-05-01 17:13:48 -07:00
fgetpos.c Change license 2020-12-27 17:18:44 -08:00
fgets.c Change license 2020-12-27 17:18:44 -08:00
fgetwc.c Make major improvements to stdio 2021-03-26 22:31:41 -07:00
fgetws.c Make major improvements to stdio 2021-03-26 22:31:41 -07:00
fileno.c Change license 2020-12-27 17:18:44 -08:00
flbf.c Work towards improving signals and processes 2021-01-27 19:34:02 -08:00
flockfile.c Add more POSIX function stubs 2021-03-02 03:27:55 -08:00
flushers.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
flushlbf.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
fmemopen.c Make major improvements to stdio 2021-03-26 22:31:41 -07:00
fopen.c Change license 2020-12-27 17:18:44 -08:00
fopenflags.c Fix issues with stdio needed for Lua 2021-03-06 19:04:26 -08:00
fpending.c Work towards improving signals and processes 2021-01-27 19:34:02 -08:00
fprintf.c Change license 2020-12-27 17:18:44 -08:00
fpurge.c Work towards improving signals and processes 2021-01-27 19:34:02 -08:00
fputc.c Make major improvements to stdio 2021-03-26 22:31:41 -07:00
fputs.c Make major improvements to stdio 2021-03-26 22:31:41 -07:00
fputwc.c Make major improvements to stdio 2021-03-26 22:31:41 -07:00
fputws.c Change license 2020-12-27 17:18:44 -08:00
fread.c Make major improvements to stdio 2021-03-26 22:31:41 -07:00
freadable.c Work towards improving signals and processes 2021-01-27 19:34:02 -08:00
freading.c Work towards improving signals and processes 2021-01-27 19:34:02 -08:00
freopen.c Fix freopen so it resets stream buffer (#61) 2021-03-07 12:12:02 -08:00
fscanf.c Change license 2020-12-27 17:18:44 -08:00
fseek.c Make major improvements to stdio 2021-03-26 22:31:41 -07:00
fseeko.c Add /statusz page to redbean plus other enhancements 2021-04-23 18:53:57 -07:00
fsetlocking.c Work towards improving signals and processes 2021-01-27 19:34:02 -08:00
fsetpos.c Change license 2020-12-27 17:18:44 -08:00
ftell.c Make major improvements to stdio 2021-03-26 22:31:41 -07:00
ftello.c Add /statusz page to redbean plus other enhancements 2021-04-23 18:53:57 -07:00
fwritable.c Work towards improving signals and processes 2021-01-27 19:34:02 -08:00
fwrite.c Improve performance of printf functions 2021-04-24 13:58:50 -07:00
fwriting.c Work towards improving signals and processes 2021-01-27 19:34:02 -08:00
get_current_dir_name.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
getc.c Make major improvements to stdio 2021-03-26 22:31:41 -07:00
getchar.c Make major improvements to stdio 2021-03-26 22:31:41 -07:00
getdelim.c Improve backwards compatibility with GNU Make 2021-05-02 07:48:59 -07:00
getline.c Change license 2020-12-27 17:18:44 -08:00
gets.c Change license 2020-12-27 17:18:44 -08:00
getwc.c Make major improvements to stdio 2021-03-26 22:31:41 -07:00
getwchar.c Make major improvements to stdio 2021-03-26 22:31:41 -07:00
hex.internal.h Add function for creating hex string literals 2021-08-07 07:05:19 -07:00
internal.h Add /statusz page to redbean plus other enhancements 2021-04-23 18:53:57 -07:00
mkostemp.c Change license 2020-12-27 17:18:44 -08:00
mkostemps.c Change license 2020-12-27 17:18:44 -08:00
mkostempsm.c Change license 2020-12-27 17:18:44 -08:00
mkstemp.c Change license 2020-12-27 17:18:44 -08:00
mkstemps.c Change license 2020-12-27 17:18:44 -08:00
mktemp.c Change license 2020-12-27 17:18:44 -08:00
pclose.c Work towards improving signals and processes 2021-01-27 19:34:02 -08:00
popen.c Fix popen_test in MODE=dbg 2021-05-01 17:13:48 -07:00
printf.c Support proper %g, %f, and %a float formatting 2021-03-05 10:31:16 -08:00
putc.c Make major improvements to stdio 2021-03-26 22:31:41 -07:00
putchar.c Change license 2020-12-27 17:18:44 -08:00
puts.c Make major improvements to stdio 2021-03-26 22:31:41 -07:00
putwc.c Make major improvements to stdio 2021-03-26 22:31:41 -07:00
putwchar.c Make major improvements to stdio 2021-03-26 22:31:41 -07:00
rewind.c Make major improvements to stdio 2021-03-26 22:31:41 -07:00
scanf.c Change license 2020-12-27 17:18:44 -08:00
setbuf.c Make major improvements to stdio 2021-03-26 22:31:41 -07:00
setbuffer.c Make major improvements to stdio 2021-03-26 22:31:41 -07:00
setlinebuf.c Make major improvements to stdio 2021-03-26 22:31:41 -07:00
setvbuf.c Make major improvements to stdio 2021-03-26 22:31:41 -07:00
spawn.c Improve system call polyfills 2021-03-08 10:07:02 -08:00
spawn.h Improve system call polyfills 2021-03-08 10:07:02 -08:00
spawna.c Add posix_spawn (#114) 2021-03-07 20:14:07 -08:00
spawna.internal.h Add posix_spawn (#114) 2021-03-07 20:14:07 -08:00
spawnf.c Improve LLVM compatibility a little bit 2021-05-16 20:34:46 -07:00
spawnp.c Add posix_spawn (#114) 2021-03-07 20:14:07 -08:00
stdbuf.c Make major improvements to stdio 2021-03-26 22:31:41 -07:00
stderr-init.S Make major improvements to stdio 2021-03-26 22:31:41 -07:00
stderr.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
stdin-init.S Make major improvements to stdio 2021-03-26 22:31:41 -07:00
stdin.c Remove more nonstandard stuff from cosmopolitan.h 2021-03-01 00:18:23 -08:00
stdio.h Fix popen_test in MODE=dbg 2021-05-01 17:13:48 -07:00
stdio.mk Add function for creating hex string literals 2021-08-07 07:05:19 -07:00
stdio_ext.h Work towards improving signals and processes 2021-01-27 19:34:02 -08:00
stdout-init.S Make major improvements to stdio 2021-03-26 22:31:41 -07:00
stdout.c Add SNI support to redbean and improve SSL perf 2021-07-23 13:56:13 -07:00
system.c Make major improvements to redbean and libraries 2021-04-18 12:34:15 -07:00
systemexec.c Make major improvements to redbean and libraries 2021-04-18 12:34:15 -07:00
temp.h Add x86_64-linux-gnu emulator 2020-08-25 04:43:42 -07:00
tmpfile.c Improve LLVM compatibility a little bit 2021-05-16 20:34:46 -07:00
ungetc.c Make major improvements to stdio 2021-03-26 22:31:41 -07:00
ungetwc.c Make major improvements to stdio 2021-03-26 22:31:41 -07:00
unlocked.h Add more POSIX function stubs 2021-03-02 03:27:55 -08:00
vappendf.c Add function for creating hex string literals 2021-08-07 07:05:19 -07:00
vfprintf.c Improve performance of printf functions 2021-04-24 13:58:50 -07:00
vfscanf.c Change license 2020-12-27 17:18:44 -08:00
vprintf.c Change license 2020-12-27 17:18:44 -08:00
vscanf.c Change license 2020-12-27 17:18:44 -08:00