Avril
02c055f2c8
Added `sprintf()`-like functions for `view_t` `sv_s[vn]?printf\(\)`
...
Fortune for sink's current commit: Curse − 凶
3 years ago
Avril
2d5840da8d
TODO: make `SHARED`"d default "yes" on `debug` builds only and have it have to be explicitly set to "no" to add `CFLAGS+=--static`. For release builds keep the default "no".
...
Fortune for sink's current commit: Future small blessing − 末小吉
3 years ago
Avril
05a7b0f460
Started adding func-ptr based argument definition & parsing structure and functions based around it.
...
view: Added more slicing / splitting related functions for arg parsing.
Fortune for sink's current commit: Future blessing − 末吉
3 years ago
Avril
2d040d5584
Included view in args.c: It will be useful for parsing envp files for `--env <file>` option, and more string related things.
...
Fortune for sink's current commit: Blessing − 吉
3 years ago
Avril
f12c1fffdd
view: added `sv_copy_to()`: copy a `view_t` to a nul-terminated buffer. (`snprintf()` for `view_t`)
...
Fortune for sink's current commit: Future small blessing − 末小吉
3 years ago
Avril
ac7ec87484
Start: string_view for C
...
Fortune for sink's current commit: Small curse − 小凶
3 years ago
Avril
4589eaa292
TODO: add short options for controlling envp passthrough: `-p`, `-P`.
...
Fortune for sink's current commit: Future small blessing − 末小吉
3 years ago
Avril
090474ff17
TODO: Added format for specific `envp` replace: `--env=<key>=<value>` and `--env <file>`.
...
TODO: TODO, add short options for controlling envp passthrough. -p,-P, maybe?
Fortune for sink's current commit: Blessing − 吉
3 years ago
Avril
fc81dd4b74
Added `pargs_t.env_pass`: Pass all, none, or specific (allocated) environment vars.
...
Fortune for sink's current commit: Curse − 凶
3 years ago
Avril
9d71fa7aee
arg parsing: rework error handling to return optional extra information with error code.
...
arg parsing: added freeing and cloning of internally allocated parts of `struct args_parsed` and `struct args_parse_error`.
Fortune for sink's current commit: Half blessing − 半吉
3 years ago
Avril
f2d6ee51fb
Makefile: Added `-pipe` to COMMON_FLAGS
...
Fortune for sink's current commit: Small blessing − 小吉
3 years ago
Avril
c64f3f7499
Started rudimentary argument struct + parsing function prototypes
...
Fortune for sink's current commit: Half blessing − 半吉
3 years ago
Avril
5d1daa98e4
Removed redundant unused old code block comment.
...
Fortune for sink's current commit: Future curse − 末凶
3 years ago
Avril
c03f2e39d3
Moved argument TODO to Markdown and added some extra TODO info.
...
Fortune for sink's current commit: Future blessing − 末吉
3 years ago
Avril
b38c91a8ee
TODO: Added short `-<char...>` arguments convention
...
Fortune for sink's current commit: Future blessing − 末吉
3 years ago
Avril
0ed7cb86cf
Updated all uses of features to the new `#if FEATURE_HAS_FLAG()` method.
...
Fortune for sink's current commit: Small blessing − 小吉
3 years ago
Avril
9a50132e90
Updated README.md to show how `FEATURE` flags are defined and used now.
...
Fortune for sink's current commit: Great curse − 大凶
3 years ago
Avril
eba77a5d85
Added `FEATURES` make env-var for build features.
...
Fortune for sink's current commit: Half blessing − 半吉
3 years ago
Avril
d47761c709
Added feature flags instead of raw -D compiler flags.
...
Fortune for sink's current commit: Blessing − 吉
3 years ago
Avril
5afab1f955
Merge branch 'master' of github.com:notflan/sink
3 years ago
Avril
9c8831e808
Made `REPLACE_STDERR` only replace execve()"d process" stderr; the parent now has its own, private stderr that is closed on exec so can properly report errors.
...
Fortune for sink's current commit: Half blessing − 半吉
3 years ago
Avril
872fefd275
Added CLOEXEC stderr clone for parent use of stderr.
...
Fortune for sink's current commit: Future small blessing − 末小吉
3 years ago
Avril
e559e758e3
Create LICENSE
3 years ago
Avril
587fe2832d
Added debug build splash screen and process info. (Splash can be disabled with `-DDEBUG_IGNORE_SPLASH`)
...
Fortune for sink's current commit: Half blessing − 半吉
3 years ago
Avril
abe427d931
Fix README.md formatting
...
Fortune for sink's current commit: Great curse − 大凶
3 years ago
Avril
ee7c1553f8
Fixed `REPLACE_STDERR` compiler warnings.
...
Fortune for sink's current commit: Curse − 凶
3 years ago
Avril
e1aa693e75
Fixed `NO_ENV` passing bad `envp` to `execve()`. Fixed `NO_SEARCH_PATH` compiler warnings.
...
Fortune for sink's current commit: Future small blessing − 末小吉
3 years ago
Avril
6eb20eeb46
Added PATH lookup for program argument in sink.
...
Fortune for sink's current commit: Half blessing − 半吉
3 years ago
Avril
e20df37d9b
Added README
...
Fortune for sink's current commit: Future curse − 末凶
3 years ago
Avril
dca529daf7
Added `install` and `uninstall` targets. Added documentation to Makefile
...
Fortune for sink's current commit: Blessing − 吉
3 years ago
Avril
2b81bf74ba
Added sink program and Makefile
...
Fortune for sink's current commit: Half blessing − 半吉
3 years ago