summaryrefslogtreecommitdiff
path: root/usr/src/cmd/csh/sh.sem.c
diff options
context:
space:
mode:
authormuffin <none@none>2005-08-16 15:17:39 -0700
committermuffin <none@none>2005-08-16 15:17:39 -0700
commit6c02b4a4b46fecc2fa6bf1ab6b5e3255ad1d0767 (patch)
tree24ed65b701d7f36e2c718a6008c5e878675c6e50 /usr/src/cmd/csh/sh.sem.c
parent27423228d6fbc16bf4059248b329a127c31147ef (diff)
downloadillumos-joyent-6c02b4a4b46fecc2fa6bf1ab6b5e3255ad1d0767.tar.gz
6268990 cmd/csh and gcc don't get along
--HG-- rename : usr/src/cmd/csh/stubs.c => deleted_files/usr/src/cmd/csh/stubs.c
Diffstat (limited to 'usr/src/cmd/csh/sh.sem.c')
-rw-r--r--usr/src/cmd/csh/sh.sem.c30
1 files changed, 17 insertions, 13 deletions
diff --git a/usr/src/cmd/csh/sh.sem.c b/usr/src/cmd/csh/sh.sem.c
index e55a747e12..1cec053ba5 100644
--- a/usr/src/cmd/csh/sh.sem.c
+++ b/usr/src/cmd/csh/sh.sem.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -24,6 +24,10 @@
* C shell
*/
+void doio(struct command *, int *, int *);
+void mypipe(int *);
+void chkclob(tchar *);
+
/*
* Return true if there is a back-quote (`) anywhere in the argument list.
* Its presence would cause glob() to be invoked in the child process
@@ -45,8 +49,9 @@ AnyBquote(struct command *t)
}
/*VARARGS 1*/
+void
execute(t, wanttty, pipein, pipeout)
- register struct command *t;
+ struct command *t;
int wanttty, *pipein, *pipeout;
{
bool forked = 0;
@@ -382,9 +387,9 @@ execute(t, wanttty, pipein, pipeout)
#ifdef VFORK
void
-vffree()
+vffree(void)
{
- register tchar **v;
+ tchar **v;
#ifdef TRACE
tprintf("TRACE- vffree()\n");
@@ -401,12 +406,11 @@ vffree()
* Perform io redirection.
* We may or maynot be forked here.
*/
-doio(t, pipein, pipeout)
- register struct command *t;
- int *pipein, *pipeout;
+void
+doio(struct command *t, int *pipein, int *pipeout)
{
- register tchar *cp, *dp;
- register int flags = t->t_dflg;
+ tchar *cp, *dp;
+ int flags = t->t_dflg;
int fd;
#ifdef TRACE
@@ -485,8 +489,8 @@ doio(t, pipein, pipeout)
didfds = 1;
}
-mypipe(pv)
- register int *pv;
+void
+mypipe(int *pv)
{
#ifdef TRACE
@@ -505,8 +509,8 @@ oops:
error("Can't make pipe");
}
-chkclob(cp)
- register tchar *cp;
+void
+chkclob(tchar *cp)
{
struct stat stb;
unsigned short type;