cosmopolitan icon indicating copy to clipboard operation
cosmopolitan copied to clipboard

build-once run-anywhere c library

Results 238 cosmopolitan issues
Sort by recently updated
recently updated
newest added

I am getting the following error when building on `master`. ``` $ git rev-parse --verify HEAD d6a039821f927cc81b71e11f21599ff93e1fed62 $ make -j2 ♥cosmo 1,324,747⏰ 254,103⏳ 9,504k 96,104iop build/bootstrap/mkdeps.com -o o//depend -r o//...

Hello I build a docker image with: ```sh docker build -t cosmopolitan . ``` and builded: ```sh docker run --rm -v$PWD:/workdir cosmopolitan sh -c 'cd workdir; make MODE=ansi -j8 -O...

contributions welcome

Hi, would it be possible to use Luau for Redbean? Luau has Sandboxing. https://luau-lang.org https://github.com/Roblox/luau https://news.ycombinator.com/item?id=29097692 Are there other programming languages available for Redbean, other than Lua? Tcl has SafeTCL,...

contributions welcome

Following the directions for the hello.com program in the README.md produces an error "run-detectors: unable to find an interpreter for ./hello.com" (base) alex@alex-Z490-AORUS-PRO-AX ~/down/cosmo $ gcc -g -Os -static -nostdlib...

Trying to run a compiled program (hello.com) in WSL, execution stops (__NR_exit_group) near _init_systemfive_stack+108. It appears WSL does not support MAP_GROWSDOWN. https://github.com/jart/cosmopolitan/blob/d6a039821f927cc81b71e11f21599ff93e1fed62/libc/sysv/systemfive.S#L340-L350 rax = -95 (Operation not supported ?)

mkdir_test.com fails when compiling cosmopolitan, in TearDownTmpDir > rmrf > rmrfdir, when compiling on filesystem 'shfs', which does not support dirent > d_type field, from `getdents()` `rmrfdir()` should fall back...

I've uploaded a repo with my work so far at https://github.com/jacereda/cosmogfx I'll send a PR with my changes to this repo in a while.

lua (in redbean.c) seems to return variable string-lengths for: ```lua popen("somecmd","r") print( read("*a") )` ``` After some digging: fread() seems to return partial (buffered?) output when indirectly called by lua-code...

TLDR: opening and using dynamic libraries from statically linked executable. Use case: I have a `.so` library that does not require any function from my executable. It may require loading...

Looks like the sources for this object aren't present in the repo. https://github.com/jart/cosmopolitan/blob/67b5200a0b8b42f1b06d43ac91161e9c19853e9a/libc/runtime/runtime.mk#L67

contributions welcome
hacktoberfest