/src/usr.bin/sdiff/ |
edit.c | 25 * Takes the name of a file and opens it with an editor. 32 const char *editor; local in function:edit 34 editor = getenv("VISUAL"); 35 if (editor == NULL) 36 editor = getenv("EDITOR"); 37 if (editor == NULL) 38 editor = "vi"; 40 /* Start editor on temporary file. */ 44 execlp(editor, editor, filename, (void *)NULL) [all...] |
/src/usr.bin/mail/ |
edit.c | 53 * Run an editor on the file at "fpp" of "size" bytes, 119 * If in read only mode or file unchanged, just remove the editor 149 * (which should not exist) and forking an editor on it. 150 * We get the editor from the stuff above. 229 editor(void *v) function in typeref:typename:PUBLIC int 237 * Invoke the visual editor on a message list.
|
/src/distrib/utils/more/ |
command.c | 516 case A_VISUAL: /* invoke the editor */ 580 static char *editor; local in function:editfile 584 if (editor == NULL) { 585 editor = getenv("EDITOR"); 587 if (editor == NULL || *editor == '\0') { 588 editor = _PATH_VI; 595 (void)snprintf(buf, sizeof(buf), "%s +%d %s", editor, c, 598 (void)snprintf(buf, sizeof(buf), "%s %s", editor, current_file) [all...] |
/src/lib/libutil/ |
passwd.c | 239 const char * volatile editor; local in function:pw_edit 249 if ((editor = getenv("EDITOR")) == NULL) 250 editor = _PATH_VI; 252 p = malloc(strlen(editor) + 1 + strlen(filename) + 1); 256 sprintf(p, "%s %s", editor, filename); 277 pw_error(editor, 1, 1); 283 pw_error(editor, 1, 1);
|
/src/lib/libedit/ |
vi.c | 1011 const char *editor; local in function:vi_histedit 1018 if ((editor = getenv("EDITOR")) == NULL) 1019 editor = "vi"; 1044 execlp(editor, editor, tempfile, (char *)NULL);
|
/src/bin/sh/ |
histedit.c | 76 #define DEFEDITOR "ed" /* default editor *should* be $EDITOR */ 608 const char * volatile editor = NULL; local in function:histcmd 641 editor = optarg; 642 VTRACE(DBG_HISTORY, ("histcmd -e %s\n", editor)); 686 if (lflg == 0 || editor || sflg) { 713 * Set editor. 716 if (editor == NULL && 717 (editor = bltinlookup("FCEDIT", 1)) == NULL && 718 (editor = bltinlookup("EDITOR", 1)) == NULL [all...] |
/src/bin/ksh/ |
history.c | 84 char *p, *editor = (char *) 0; local in function:c_fc 103 editor = str_nsave(p, len, ATEMP); 104 strlcat(editor, " $_", len); 145 if (editor || lflag || nflag || rflag) { 173 if (editor && (lflag || nflag)) { 233 /* Run editor on selected lines, then run resulting commands */ 257 ret = command(editor ? editor : "${FCEDIT:-/bin/ed} $_");
|