2 Proprietary Rand Corporation
, 1981.
3 Further distribution of
this software
4 subject to the terms of the Rand
9 #include "../h/errors.h"
11 char *SRHLIST
[] { /* upper case!! */
19 char **srhlist SRHLIST
;
24 return(excvsrh(argv
[0], argv
));
31 register char **r1
, *r2
, *r3
;
32 static char command
[50];
34 for (r1
= srhlist
; r2
= *r1
++; ) {
37 r2
= getpath(getruid()&0377);
42 while (*r3
++ = *r2
++);
45 while (*r3
++ = *r2
++);
46 if (execvsh(command
, argv
) != 0) break;
48 errtype(prog
, errno
==E2BIG
?"arg list too long":"not found");
51 execlsrh(arg1
,arg2
,arg3
)
52 char *arg1
,*arg2
,*arg3
;
54 return(excvsrh(arg1
, &arg1
));
57 exclsrh(prog
, arg1
, arg2
)
58 char *prog
, *arg1
, *arg2
;
60 return(excvsrh(prog
, &arg1
));