#include "spice.h"
#include "cpdefs.h"
#include "scedio.h"
#include <sys/types.h>
Go to the source code of this file.
static void add_dir |
( |
char * |
dir, |
|
|
bool |
docc, |
|
|
void ** |
htab |
|
) |
| |
|
static |
Definition at line 186 of file unixcom.c.
198 if (!(wdir = opendir(dir)))
return;
199 while (de = readdir(wdir)) {
bool is_exec(char *file, char *dir)
void cp_rehash |
( |
char * |
pathlist, |
|
|
bool |
docc |
|
) |
| |
Definition at line 50 of file unixcom.c.
78 while (pathlist && *pathlist) {
80 while (*pathlist && *pathlist !=
';' && *pathlist !=
':')
81 buf[i++] = *pathlist++;
82 while (*pathlist ==
';' || *pathlist ==
':')
85 if (!strcmp(buf,
".")) {
static char buf[MAXPROMPT]
Definition at line 128 of file unixcom.c.
150 printf(
"name: %s, argv: ", name);
154 if (strchr(name, DIR_TERM)) {
160 (void) sprintf(buf,
"%s%c%s",path,DIR_TERM,name);
166 (void) sprintf(buf,
"%s",name);
172 (void) sprintf(buf,
"%s%c%s",path,DIR_TERM,name);
178 for (i = 0; argv[i]; i++)
static char buf[MAXPROMPT]
bool tryexec(char *name, argv)
void ShowPrompt(char *str)
static void upd_hash |
( |
bool |
docc | ) |
|
|
static |
Definition at line 104 of file unixcom.c.
struct wordlist * wl_next