diff options
Diffstat (limited to 'ucspi-tcp-0.88/argv0.c')
-rw-r--r-- | ucspi-tcp-0.88/argv0.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ucspi-tcp-0.88/argv0.c b/ucspi-tcp-0.88/argv0.c new file mode 100644 index 0000000..2a0e936 --- /dev/null +++ b/ucspi-tcp-0.88/argv0.c @@ -0,0 +1,10 @@ +#include "pathexec.h" +#include "strerr.h" + +main(int argc,char **argv,char **envp) +{ + if (argc < 3) + strerr_die1x(100,"argv0: usage: argv0 realname program [ arg ... ]"); + pathexec_run(argv[1],argv + 2,envp); + strerr_die4sys(111,"argv0: fatal: ","unable to run ",argv[1],": "); +} |