/netbsd-current/usr.bin/sdiff/ |
H A D | 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, filenam [all...] |
/netbsd-current/external/gpl2/xcvs/dist/src/ |
H A D | edit.h | 35 extern void editor_set (const char *filename, const char *editor,
|
H A D | commit.c | 516 the user has the editor open (hours or days if the user 858 char *editor; local 1002 editor = NULL; 1035 editor = caller; 1042 if (check_valid_edit && editor == NULL)
|
/netbsd-current/bin/sh/ |
H A D | histedit.c | 71 #define DEFEDITOR "ed" /* default editor *should* be $EDITOR */ 305 const char * volatile editor = NULL; local 334 editor = optarg; 335 VTRACE(DBG_HISTORY, ("histcmd -e %s\n", editor)); 366 if (lflg == 0 || editor || sflg) { 393 * Set editor. 396 if (editor == NULL && 397 (editor = bltinlookup("FCEDIT", 1)) == NULL && 398 (editor = bltinlookup("EDITOR", 1)) == NULL) 399 editor [all...] |
/netbsd-current/external/bsd/less/dist/ |
H A D | main.c | 45 public char * editor; variable 174 editor = lgetenv("VISUAL"); 175 if (editor == NULL || *editor == '\0') 177 editor = lgetenv("EDITOR"); 178 if (isnullenv(editor)) 179 editor = EDIT_PGM;
|
H A D | prompt.c | 37 extern char *editor; 285 ap_str(editor);
|
/netbsd-current/distrib/utils/more/ |
H A D | 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);
|
/netbsd-current/external/bsd/cron/dist/ |
H A D | crontab.c | 362 const char *editor; local 447 if (((editor = getenv("VISUAL")) == NULL || *editor == '\0') && 448 ((editor = getenv("EDITOR")) == NULL || *editor == '\0')) { 449 editor = EDITOR; 455 * rather than by renaming. if some editor does not support this, 478 if (!glue_strings(q, sizeof q, editor, Filename, ' ')) { 479 errx(ERROR_EXIT, "editor command line too long"); 482 err(ERROR_EXIT, "cannot start `%s'", editor); [all...] |
/netbsd-current/external/bsd/nvi/dist/motif/ |
H A D | m_main.c | 174 Widget main_w, editor; 236 /* in the shell, we will stack a menubar an editor */ 247 editor = vi_create_editor( "editor", main_w, onexit ); 253 * If the editor is the only widget in the shell that accepts 258 XtSetKeyboardFocus( top_level, XtNameToWidget( editor, "*screen" ) ); 403 * Function called when the editor "quits". 172 Widget main_w, editor; local
|
/netbsd-current/lib/libutil/ |
H A D | 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);
|
/netbsd-current/bin/ksh/ |
H A D | 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} $_");
|
/netbsd-current/lib/libedit/ |
H A D | map.c | 950 * Free the space taken by the editor maps 1092 * Set the editor 1095 map_set_editor(EditLine *el, wchar_t *editor) argument 1098 if (wcscmp(editor, L"emacs") == 0) { 1102 if (wcscmp(editor, L"vi") == 0) { 1111 * Retrieve the editor 1114 map_get_editor(EditLine *el, const wchar_t **editor) argument 1117 if (editor == NULL) 1121 *editor = L"emacs"; 1124 *editor [all...] |
H A D | vi.c | 1011 const char *editor; local 1018 if ((editor = getenv("EDITOR")) == NULL) 1019 editor = "vi"; 1044 execlp(editor, editor, tempfile, (char *)NULL);
|
/netbsd-current/usr.bin/mail/ |
H A D | 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.
|
H A D | extern.h | 151 int editor(void *);
|
H A D | cmdtab.c | 122 { "edit", editor, 0, CMP(n) I|MSGLIST, 0, MMNORM },
|
/netbsd-current/distrib/hp300/miniroot/ |
H A D | 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.
|
/netbsd-current/external/gpl3/gcc.old/dist/gcc/ |
H A D | gdbhooks.py | 686 and opened in the text editor specified in the EDITOR environment variable. 711 editor = os.getenv("EDITOR", "") 712 if editor == "": 762 # Open file in editor, if necessary 765 (editor, filename, filename))
|
/netbsd-current/external/gpl3/gcc/dist/gcc/ |
H A D | gdbhooks.py | 686 and opened in the text editor specified in the EDITOR environment variable. 711 editor = os.getenv("EDITOR", "") 712 if editor == "": 762 # Open file in editor, if necessary 765 (editor, filename, filename))
|
/netbsd-current/distrib/mvme68k/miniroot/ |
H A D | 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
|
/netbsd-current/external/bsd/nvi/dist/ip/ |
H A D | ip_main.c | 48 * This is the main loop for the vi-as-library editor. 157 rval = editor(wp, ipp->argc, ipp->argv);
|
/netbsd-current/external/bsd/tmux/dist/ |
H A D | popup.c | 779 const char *editor; local 782 editor = options_get_string(global_options, "editor"); 783 if (*editor == '\0') 808 xasprintf(&cmd, "%s %s", editor, path);
|
/netbsd-current/external/bsd/nvi/dist/common/ |
H A D | main.c | 57 * editor -- 58 * Main editor routine. 60 * PUBLIC: int editor __P((WIN *, int, char *[])); 63 editor(WIN *wp, int argc, char **argv) function 333 * editor now, so that we position default files correctly, and 427 /* Switch into the right editor, regardless. */ 433 * here when switching editor modes or restarting the screen.
|
/netbsd-current/external/bsd/nvi/dist/cl/ |
H A D | cl_main.c | 54 * This is the main loop for the standalone curses editor. 134 rval = editor(wp, argc, argv);
|
/netbsd-current/external/gpl3/gdb.old/dist/gdb/cli/ |
H A D | cli-cmds.c | 932 const char *editor; 1015 if ((editor = getenv ("EDITOR")) == NULL) 1016 editor = "/bin/ex"; 1022 p = xstrprintf ("%s +%d \"%s\"", editor, sal.line, fn); 2496 Uses EDITOR environment variable contents as editor (or ex as default).")); 927 const char *editor; local
|