31 Commits (args)
 

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