| /src/usr.bin/sdiff/ |
| edit.c | 25 * Takes the name of a file and opens it with an editor. 32 const char *editor; local 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/bin/sh/ |
| histedit.c | 76 #define DEFEDITOR "ed" /* default editor *should* be $EDITOR */ 608 const char * volatile editor = NULL; local 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/distrib/utils/more/ |
| command.c | 516 case A_VISUAL: /* invoke the editor */ 580 static char *editor; local 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 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/bin/ksh/ |
| history.c | 84 char *p, *editor = (char *) 0; local 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} $_");
|
| /src/lib/libedit/ |
| map.c | 45 * map.c: Editor function definitions 951 * Free the space taken by the editor maps 1098 * Set the editor 1101 map_set_editor(EditLine *el, wchar_t *editor) 1104 if (wcscmp(editor, L"emacs") == 0) { 1108 if (wcscmp(editor, L"vi") == 0) { 1117 * Retrieve the editor 1120 map_get_editor(EditLine *el, const wchar_t **editor) 1123 if (editor == NULL) 1127 *editor = L"emacs" [all...] |
| vi.c | 1011 const char *editor; local 1018 if ((editor = (el->el_getenv)("EDITOR")) == NULL) 1019 editor = "vi"; 1044 execlp(editor, editor, tempfile, (char *)NULL);
|
| /src/distrib/hp300/miniroot/ |
| install.md | 145 label can be placed on disk for editing. When the disklabel editor appears, 151 Note that the disklabel editor will be run twice; once to set the size of 238 echo "The disklabel editor will now start. During this phase, you" 368 # disklabel editor. 376 # the disklabel editor.
|
| /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 237 * Invoke the visual editor on a message list.
|
| extern.h | 151 int editor(void *);
|
| cmdtab.c | 122 { "edit", editor, 0, CMP(n) I|MSGLIST, 0, MMNORM },
|
| /src/distrib/mvme68k/miniroot/ |
| install.md | 130 echo -n "Do you want to create one with the disklabel editor? [y]" 134 echo -n "Do you want to try and repair the damage using the disklabel editor? [y]" 148 you have entered the disklabel editor. Disk partition sizes and offsets
|
| /src/usr.sbin/sysinst/ |
| msg.mi.en | 174 {You can use a simple editor to set the sizes of the NetBSD partitions, 188 use a simple editor to set the sizes of the NetBSD partitions,
|
| msg.mi.es | 176 {You can use a simple editor to set the sizes of the NetBSD partitions, 190 use a simple editor to set the sizes of the NetBSD partitions,
|