#include "spice.h"
#include "cpdefs.h"
#include "scedio.h"
Go to the source code of this file.
bool is_exec |
( |
char * |
file, |
|
|
char * |
dir |
|
) |
| |
Definition at line 79 of file exec.c.
98 (void)sprintf(buf,
"%s%c%s",dir,DIR_TERM,file);
99 if (stat(buf,&stbuf) < 0)
101 if (!(stbuf.st_mode & S_IFREG) || !(stbuf.st_mode & S_IXUSR))
104 (void)sprintf(buf,
"%s%c%s",dir,DIR_TERM,file);
static char buf[MAXPROMPT]
int access(char *pth, int m)
char * index(char *s, char c) const
bool tryexec |
( |
char * |
name, |
|
|
argv |
|
|
) |
| |
Definition at line 24 of file exec.c.
33 RETSIGTYPE (*svint)( ), (*svquit)( ), (*svtstp)( );
38 (void) execv(name, argv);
43 svint = signal(SIGINT, SIG_DFL);
44 svquit = signal(SIGQUIT, SIG_DFL);
45 svtstp = signal(SIGTSTP, SIG_DFL);
49 (void) signal(SIGINT, svint);
50 (void) signal(SIGQUIT, svquit);
51 (void) signal(SIGTSTP, svtstp);
53 if (WIFEXITED(status) && WEXITSTATUS(status) == 120)
struct wordlist * wl_prev
struct wordlist * wl_next