HomeSort by: relevance | last modified time | path
    Searched defs:editor (Results 1 - 15 of 15) sorted by relevancy

  /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/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.
  /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/external/bsd/nvi/dist/common/
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.
  /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/external/bsd/less/dist/
main.c 44 #if EDITOR
45 public char * editor; variable
173 #if EDITOR
174 editor = lgetenv("VISUAL");
175 if (editor == NULL || *editor == '\0')
177 editor = lgetenv("EDITOR");
178 if (isnullenv(editor))
179 editor = EDIT_PGM
    [all...]
  /src/external/bsd/nvi/dist/motif/
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
  /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/lib/libedit/
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/external/bsd/cron/dist/
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, ' '))
    [all...]
  /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/external/bsd/tmux/dist/
popup.c 837 const char *editor; local
840 editor = options_get_string(global_options, "editor");
841 if (*editor == '\0')
866 xasprintf(&cmd, "%s %s", editor, path);
  /src/external/gpl2/xcvs/dist/src/
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)
  /src/external/gpl3/gdb/dist/gdb/cli/
cli-cmds.c 965 const char *editor;
1056 if ((editor = getenv ("EDITOR")) == NULL)
1057 editor = "/bin/ex";
1064 = xstrprintf ("%s +%d \"%s\"", editor, sal.line, fn);
2818 Uses EDITOR environment variable contents as editor (or ex as default)."));
960 const char *editor; local
  /src/external/gpl3/gdb.old/dist/gdb/cli/
cli-cmds.c 984 const char *editor;
1067 if ((editor = getenv ("EDITOR")) == NULL)
1068 editor = "/bin/ex";
1075 = xstrprintf ("%s +%d \"%s\"", editor, sal.line, fn);
2824 Uses EDITOR environment variable contents as editor (or ex as default)."));
979 const char *editor; local

Completed in 72 milliseconds