2.1.1
版本发布时间: 2022-10-09 01:13:30
jart/cosmopolitan最新发布版本:3.8.0(2024-08-31 11:52:21)
Cosmopolitan Libc makes C/C++ a build-once run-anywhere language, like Java, except it doesn't need an interpreter or virtual machine. Instead, it reconfigures stock GCC to output a POSIX-approved polyglot format that runs natively on Linux + Mac + Windows + FreeBSD + OpenBSD + NetBSD + BIOS or UEFI with the best possible performance and the tiniest footprint imaginable.
This release fixes bugs and makes system call wrapper improvements:
- Fix corner case in Linux stack mappings 3b4fcd8575e2048987721fda130e501877607dfa
- Implement clock_nanosleep() across platforms and refactor sleeping code to use it.
- Polyfill futexes on unsupported platforms by polling memory with exponential backoff
- Imported *NSYNC unit tests and confirmed we're passing them (except for cancellations on Windows)
- system() now uses our builtin cocmd interpreter which offers a subset of bourne that works on windows and is fast
- sched_setaffinty() is now explicitly for processes since we now have pthread_setaffinity_np() for threads
- Numerous improvements to system call documentation, especially when it comes to possible errno results
- Change accept type to
struct sockaddr *
(#630) - Rewrite brk() and sbrk() 5005f2e44651c8be30b5730398c232c4cdadefce which can be used by tiny apps that don't want to link mmap() and would rather have 4096-byte memory granularity, with the tradeoff of not working on Windows
We're working to make every Cosmopolitan binary a true operating system by introducing features like VGA support:
- Fix sys_mmap_metal() for non-MAP_FIXED case (#651)
- Show "screen of death" on VGA console upon program crash (#650)
- Add basic character output for VGA graphics mode console (#649
Other changes:
- Add imaxdiv, wcscoll, getdtablesize (#639)
- Fix wcsdup malloc size (#641)
- Add utime to utime.h (#648)
1、 cosmopolitan-2.1.1.tar.gz 61.68MB
2、 cosmopolitan-amalgamation-2.1.1.zip 7.2MB
3、 cosmopolitan-amalgamation-dbg-2.1.1.zip 11.54MB
4、 cosmopolitan-amalgamation-rel-2.1.1.zip 7.14MB
5、 cosmopolitan-amalgamation-tiny-2.1.1.zip 2.59MB