HomeSort by: relevance | last modified time | path
    Searched refs:editor (Results 1 - 25 of 34) sorted by relevancy

1 2

  /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/external/gpl2/xcvs/dist/src/
edit.h 32 /* Set attributes to reflect the fact that EDITOR is editing FILENAME.
33 VAL is time+host+directory, or NULL if we are to say that EDITOR is
35 extern void editor_set (const char *filename, const char *editor,
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/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...]
prompt.c 36 #if EDITOR
37 extern char *editor;
283 #if EDITOR
284 case 'E': /* Editor name */
285 ap_str(editor);
510 #if EDITOR
  /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/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/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/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/external/gpl3/gcc/dist/gcc/
gdbhooks.py 703 and opened in the text editor specified in the EDITOR environment variable.
728 editor = os.getenv("EDITOR", "")
729 if editor == "":
730 print ("EDITOR environment variable not defined")
779 # Open file in editor, if necessary
782 (editor, filename, filename))
  /src/external/gpl3/gcc.old/dist/gcc/
gdbhooks.py 686 and opened in the text editor specified in the EDITOR environment variable.
711 editor = os.getenv("EDITOR", "")
712 if editor == "":
713 print ("EDITOR environment variable not defined")
762 # Open file in editor, if necessary
765 (editor, filename, filename))
  /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/external/bsd/nvi/dist/ip/
ip_main.c 48 * This is the main loop for the vi-as-library editor.
157 rval = editor(wp, ipp->argc, ipp->argv);
  /src/external/bsd/nvi/dist/cl/
cl_main.c 54 * This is the main loop for the standalone curses editor.
134 rval = editor(wp, argc, argv);
  /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/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/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

Completed in 39 milliseconds

1 2