29 Commits (05a7b0f460c663f87025c3924f3c2c1261a34d19)
 

Author SHA1 Message Date
Avril 05a7b0f460 Started adding func-ptr based argument definition & parsing structure and functions based around it.
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.
3 years ago
Avril f12c1fffdd
view: added `sv_copy_to()`: copy a `view_t` to a nul-terminated buffer. (`snprintf()` for `view_t`)
3 years ago
Avril ac7ec87484
Start: string_view for C
3 years ago
Avril 4589eaa292
TODO: add short options for controlling envp passthrough: `-p`, `-P`.
3 years ago
Avril 090474ff17
TODO: Added format for specific `envp` replace: `--env=<key>=<value>` and `--env <file>`.
3 years ago
Avril fc81dd4b74
Added `pargs_t.env_pass`: Pass all, none, or specific (allocated) environment vars.
3 years ago
Avril 9d71fa7aee
arg parsing: rework error handling to return optional extra information with error code.
3 years ago
Avril f2d6ee51fb
Makefile: Added `-pipe` to COMMON_FLAGS
3 years ago
Avril c64f3f7499
Started rudimentary argument struct + parsing function prototypes
3 years ago
Avril 5d1daa98e4
Removed redundant unused old code block comment.
3 years ago
Avril c03f2e39d3
Moved argument TODO to Markdown and added some extra TODO info.
3 years ago
Avril b38c91a8ee
TODO: Added short `-<char...>` arguments convention
3 years ago
Avril 0ed7cb86cf
Updated all uses of features to the new `#if FEATURE_HAS_FLAG()` method.
3 years ago
Avril 9a50132e90
Updated README.md to show how `FEATURE` flags are defined and used now.
3 years ago
Avril eba77a5d85
Added `FEATURES` make env-var for build features.
3 years ago
Avril d47761c709
Added feature flags instead of raw -D compiler flags.
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.
3 years ago
Avril 872fefd275
Added CLOEXEC stderr clone for parent use of stderr.
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`)
3 years ago
Avril abe427d931
Fix README.md formatting
3 years ago
Avril ee7c1553f8
Fixed `REPLACE_STDERR` compiler warnings.
3 years ago
Avril e1aa693e75
Fixed `NO_ENV` passing bad `envp` to `execve()`. Fixed `NO_SEARCH_PATH` compiler warnings.
3 years ago
Avril 6eb20eeb46
Added PATH lookup for program argument in sink.
3 years ago
Avril e20df37d9b
Added README
3 years ago
Avril dca529daf7
Added `install` and `uninstall` targets. Added documentation to Makefile
3 years ago
Avril 2b81bf74ba
Added sink program and Makefile
3 years ago