mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 14:58:30 +00:00
Make cli commands yoinkable into cosmo shell
This lets our system() and popen() commands function sort of like BusyBox and ToyBox. By default the Cosmopolitan Shell is lightweight. But if you use STATIC_YOINK then you can pull the individual commands you want into the linkage, and they'll be included in a single binary. For example the demo binary embeds `tr` and `sed` and ends up ~140kb.
This commit is contained in:
parent
5af19b7eed
commit
3d2d04b25e
32 changed files with 897 additions and 276 deletions
2
third_party/sed/extern.h
vendored
2
third_party/sed/extern.h
vendored
|
@ -10,7 +10,7 @@ COSMOPOLITAN_C_START_
|
|||
|
||||
extern struct s_command *prog;
|
||||
extern struct s_appends *appends;
|
||||
extern regmatch_t *match;
|
||||
extern regmatch_t *g_match;
|
||||
extern size_t maxnsub;
|
||||
extern u_long linenum;
|
||||
extern size_t appendnum;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue