Gavin Hayes
Gavin Hayes
This adds free automated test building and running to the project on Windows and Linux hosts using github actions. If this is added, whenever a push or pull request is...
Not sure if this is desired at all, but curious if there's interest in supporting these files. Definitely needs some cleanup before it could be merged. All tests pass for...
None of the test executables appear to run on Windows 7 now. Used `make -j4 MODE= o//test/libc/calls` to build. ```cmd Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All...
- [x] Get fexecve test running and passing on x86_64 linux again - [x] Make fexecve test possibly work on other architectures - [x] On Linux require `/proc` for fexecve_test...
Fix malformed address from being returned from `recvfrom` on connection oriented sockets: pass through `addrsize` when it's 0. Additionally, set `addrsize` to 0 when it is unchanged as win32 `recvfrom`...
```c #include #include int main(void) { printf("%lld\n", llrintl(0)); printf("%p\n", &llround); printf("%p\n", &llroundl); } ``` ``` x86_64-unknown-cosmo-cc -o try llrint_friends.c /home/sample/repos/cosmopolitan/cosmocc/bin/../libexec/gcc/x86_64-linux-cosmo/12.3.0/ld.bfd: /tmp/cc9fqpwc.o: in function `main': llrint_friends.c:(.text+0x21): undefined reference to `llrintl' /home/sample/repos/cosmopolitan/cosmocc/bin/../libexec/gcc/x86_64-linux-cosmo/12.3.0/ld.bfd:...
Resolves #1001 Uses `ProcessPrng` as `getrandom` does. When feature detection fails software often falls back to `/dev/urandom`, this is a problem as development with cosmo is often done on Linux...
The second two tests in https://github.com/jart/cosmopolitan/pull/1152/files#diff-3632bcaa658a0d21e73a19862a8d1f9ae84c4585b2c5c2a900377f26e35f28bf send `SIGUSR1` to a parent process running `readv`. If run one of them with `--strace`, no `readv` (or subsequent calls) appears in the output...
Taking `\0` terminated strings is convenient for C development using the `str` functions in libc, but is not optimal for other use cases. It causes extra work in implementation of...
We can ensure our libraries are compatible with a broader set of linux systems by linking against old libcs/compiler libs. The [manylinux/musllinux](https://github.com/pypa/manylinux) [containers](https://quay.io/organization/pypa) may be used to do so. It...