Lines Matching +full:sig +full:- +full:dir
3 /*-
70 static void sig(int);
82 sig(int i) in sig() function
90 DIR *dd = opendir("."); in complete()
100 for (ptr = lf->cursor - 1; in complete()
101 !isspace((unsigned char)*ptr) && ptr > lf->buffer; ptr--) in complete()
103 len = lf->cursor - ++ptr; in complete()
106 if (len > strlen(dp->d_name)) in complete()
108 if (strncmp(dp->d_name, ptr, len) == 0) { in complete()
109 if (el_insertstr(el, &dp->d_name[len]) == -1) in complete()
136 (void) signal(SIGINT, sig); in main()
137 (void) signal(SIGQUIT, sig); in main()
138 (void) signal(SIGHUP, sig); in main()
139 (void) signal(SIGTERM, sig); in main()
157 /* Add a user-defined function */ in main()
158 el_set(el, EL_ADDFN, "ed-complete", "Complete argument", complete); in main()
161 el_set(el, EL_BIND, "^I", "ed-complete", NULL); in main()
167 el_set(el, EL_BIND, "-a", "k", "ed-prev-line", NULL); in main()
168 el_set(el, EL_BIND, "-a", "j", "ed-next-line", NULL); in main()
186 (li->cursor - li->buffer), li->buffer, in main()
187 (li->lastchar - 1 - li->cursor), in main()
188 (li->cursor >= li->lastchar) ? "" : li->cursor); in main()
217 if (history(hist, &ev, H_SET, lastevent) == -1) in main()
249 for (rv = history(hist, &ev, H_LAST); rv != -1; in main()
275 } else if (el_parse(el, ac, av) == -1) { in main()
284 case -1: in main()
289 if (wait(&num) == -1) in main()