Searched refs:commandname (Results 1 - 9 of 9) sorted by relevance

/netbsd-6-1-5-RELEASE/bin/sh/
H A Deval.h37 extern const char *commandname; /* currently executing command */
H A Derror.c56 #include "eval.h" /* for commandname */
134 if (commandname)
135 outfmt(&errout, "%s: ", commandname);
H A Doptions.c114 commandname = argv[0];
117 commandname = arg0;
H A Deval.c98 const char *commandname; variable
985 savecmdname = commandname;
1007 commandname = argv[0];
1032 commandname = savecmdname;
H A Dmain.c385 commandname = fullname;
H A Dexec.c190 commandname = arg0 = savestr(argv[0]);
H A Dparser.c50 #include "eval.h" /* defines commandname */
1609 if (commandname)
1610 outfmt(&errout, "%s: %d: ", commandname, startlinno);
/netbsd-6-1-5-RELEASE/bin/sh/bltin/
H A Dbltin.h83 #define getprogname() commandname
92 #define INITARGS(argv) if ((commandname = argv[0]) == NULL) {fputs("Argc is zero\n", stderr); exit(2);} else
100 extern const char *commandname;
/netbsd-6-1-5-RELEASE/sys/kern/
H A Dkern_exec.c911 const char *commandname; local
1085 commandname = strrchr(data->ed_pack.ep_resolvedname, '/');
1086 if (commandname != NULL) {
1087 commandname++;
1089 commandname = data->ed_pack.ep_resolvedname;
1091 i = min(strlen(commandname), MAXCOMLEN);
1092 (void)memcpy(p->p_comm, commandname, i);

Completed in 189 milliseconds