summaryrefslogtreecommitdiff
path: root/ucspi-tcp-0.88/argv0.1
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2012-07-26 11:00:48 -0700
committerJohn Denker <jsd@av8n.com>2012-07-29 15:32:37 -0700
commit01ef1d365e5776b130e8b65772a80b6adcb0ed46 (patch)
treef0e7d3e161f82180e834a6368d41b79272ab013a /ucspi-tcp-0.88/argv0.1
parent9aa998757a8736cef02fd92050eacbb2a6fb5180 (diff)
files added by IPv6 patch
Diffstat (limited to 'ucspi-tcp-0.88/argv0.1')
-rw-r--r--ucspi-tcp-0.88/argv0.147
1 files changed, 47 insertions, 0 deletions
diff --git a/ucspi-tcp-0.88/argv0.1 b/ucspi-tcp-0.88/argv0.1
new file mode 100644
index 0000000..ad9634d
--- /dev/null
+++ b/ucspi-tcp-0.88/argv0.1
@@ -0,0 +1,47 @@
+.TH argv0 1
+.SH NAME
+argv0 \- run a program with a specified 0th argument
+.SH SYNOPSIS
+.B argv0
+.I realname
+.I zero
+[
+.I arg ...
+]
+.SH DESCRIPTION
+.B argv0
+runs
+the program stored as
+.I realname
+on disk,
+with the given
+arguments.
+It sets the 0th argument of
+the program to
+.IR zero .
+
+For example,
+
+.EX
+ argv0 /bin/csh -bin/csh
+.EE
+
+runs
+.B /bin/csh
+with a 0th argument of
+.BR -bin/csh .
+.B csh
+will think it is a login shell
+and behave accordingly.
+
+.B argv0
+can be used to run some
+.B inetd
+wrappers under
+.BR tcpserver .
+.SH "SEE ALSO"
+csh(1),
+tcpserver(1),
+execve(2),
+execvp(3),
+inetd(8)