Home
last modified time | relevance | path

Searched refs:gl (Results 1 – 25 of 34) sorted by relevance

12

/illumos-gate/usr/src/lib/libtecla/common/
H A Dgetline.c291 static int gl_call_fd_handler(GetLine *gl, GlFdHandler *gfh, int fd,
294 static int gl_call_timeout_handler(GetLine *gl);
648 static int gl_check_caught_signal(GetLine *gl);
654 static void gl_suspend_process(int signo, GetLine *gl, int ngl);
677 static void gl_query_size(GetLine *gl, int *ncolumn, int *nline);
683 static int gl_override_signal_handlers(GetLine *gl);
689 static int gl_restore_signal_handlers(GetLine *gl);
695 static int gl_mask_signals(GetLine *gl, sigset_t *oldset);
701 static int gl_unmask_signals(GetLine *gl, sigset_t *oldset);
706 static int gl_catch_signals(GetLine *gl);
[all …]
H A Dkeytab.h56 #define KT_KEY_FN(fn) int (fn)(GetLine *gl, int count, void *data)
/illumos-gate/usr/src/lib/libtecla/
H A Dlibtecla.h94 GetLine *del_GetLine(GetLine *gl);
99 char *gl_get_line(GetLine *gl, const char *prompt, const char *start_line,
117 int gl_query_char(GetLine *gl, const char *prompt, char defchar);
131 int gl_read_char(GetLine *gl);
137 int gl_configure_getline(GetLine *gl, const char *app_string,
154 int gl_bind_keyseq(GetLine *gl, GlKeyOrigin origin, const char *keyseq,
462 int gl_customize_completion(GetLine *gl, void *data, CplMatchFn *match_fn);
495 int gl_completion_action(GetLine *gl, void *data, CplMatchFn *match_fn,
514 int gl_change_terminal(GetLine *gl, FILE *input_fp, FILE *output_fp,
538 int gl_save_history(GetLine *gl, const char *filename, const char *comment,
[all …]
/illumos-gate/usr/src/lib/krb5/ss/
H A Dlisten.c142 GetLine *gl; local
161 gl = new_GetLine(MAX_LINE_LEN, MAX_HIST_LEN);
162 if (gl == NULL) {
179 gl = del_GetLine(gl);
186 if (gl_customize_completion(gl, &commands, cmdmatch) != 0 ) {
191 gl = del_GetLine(gl);
229 if (gl_trap_signal(gl, SIGINT, GLS_DONT_FORWARD, GLS_ABORT, 0)) {
253 input = gl_get_line(gl, info->prompt, NULL, -1);
254 ret = gl_return_status(gl);
258 gl_abandon_line(gl);
[all …]
/illumos-gate/usr/src/cmd/ypcmd/revnetgroup/
H A Dgetgroup.c72 struct grouplist *gl; in freegrouplist() local
74 for (gl = grouplist; gl != NULL; gl = gl->gl_nxt) { in freegrouplist()
75 FREE(gl->gl_name); in freegrouplist()
76 FREE(gl->gl_domain); in freegrouplist()
77 FREE(gl->gl_machine); in freegrouplist()
78 FREE(gl); in freegrouplist()
/illumos-gate/usr/src/cmd/enhance/
H A Denhance.c115 static int pty_stop_parent(int waserr, int cntrl, GetLine *gl, char *rbuff);
417 GetLine *gl = NULL; /* The gl_get_line() resource object */ in pty_parent() local
423 gl = new_GetLine(PTY_MAX_LINE, PTY_HIST_SIZE); in pty_parent()
424 if(!gl) in pty_parent()
425 return pty_stop_parent(1, cntrl, gl, rbuff); in pty_parent()
432 return pty_stop_parent(1, cntrl, gl, rbuff); in pty_parent()
438 if(gl_watch_fd(gl, cntrl, GLFD_READ, pty_read_from_program, rbuff)) in pty_parent()
439 return pty_stop_parent(1, cntrl, gl, rbuff); in pty_parent()
444 while((line=gl_get_line(gl, rbuff, NULL, 0))) { in pty_parent()
446 return pty_stop_parent(1, cntrl, gl, rbuff); in pty_parent()
[all …]
/illumos-gate/usr/src/cmd/vtfontcvt/
H A Dvtfontcvt.c211 add_mapping(struct glyph *gl, unsigned int c, unsigned int map_idx) in add_mapping() argument
220 mp->m_glyph = gl; in add_mapping()
269 struct glyph *gl; in add_glyph() local
276 SLIST_FOREACH(gl, &glyph_hash[hash], g_hash) { in add_glyph()
277 if (memcmp(gl->g_data, bytes, wbytes * height) == 0) { in add_glyph()
279 return (gl); in add_glyph()
283 gl = xmalloc(sizeof (*gl)); in add_glyph()
284 gl->g_data = xmalloc(wbytes * height); in add_glyph()
285 memcpy(gl->g_data, bytes, wbytes * height); in add_glyph()
287 TAILQ_INSERT_HEAD(&glyphs[map_idx], gl, g_list); in add_glyph()
[all …]
/illumos-gate/usr/src/lib/nsswitch/nis/common/
H A Dgetnetgrent.c140 struct grouplist *gl; local
143 for (gl = be->all_members; gl != NULL; gl = next) {
146 next = gl->gl_nxt;
148 if (gl->triple[i] != 0) {
149 free(gl->triple[i]);
152 free(gl);
517 struct grouplist *gl; in save_triple() local
520 if ((gl = (struct grouplist *)malloc(sizeof (*gl))) == 0) { in save_triple()
528 gl->triple[i] = 0; in save_triple()
529 } else if ((gl->triple[i] = strdup(trippp[i])) == 0) { in save_triple()
[all …]
/illumos-gate/usr/src/lib/nsswitch/files/common/
H A Dgetnetgrent.c318 struct grouplist *gl; in getnetgr_end() local
321 for (gl = be->all_members; gl != NULL; gl = next) { in getnetgr_end()
324 next = gl->gl_nxt; in getnetgr_end()
326 free(gl->triple[i]); in getnetgr_end()
328 free(gl); in getnetgr_end()
667 struct grouplist *gl; in save_triple() local
678 if ((gl = malloc(sizeof (*gl))) == NULL) { in save_triple()
686 gl->triple[i] = NULL; in save_triple()
687 } else if ((gl->triple[i] = strdup(trippp[i])) == NULL) { in save_triple()
692 free(gl->triple[j]); in save_triple()
[all …]
/illumos-gate/usr/src/common/ficl/
H A Dmain.c92 GetLine *gl; in main() local
134 if ((gl = new_GetLine(LINELEN, HISTORY)) == NULL) { in main()
140 if ((buffer = gl_get_line(gl, prompt(), NULL, -1)) == NULL) in main()
145 gl = del_GetLine(gl); in main()
/illumos-gate/usr/src/lib/libc/port/regex/
H A Dglob.c1294 glob_t gl; in old_glob() local
1299 (void) memset(&gl, 0, sizeof (gl)); in old_glob()
1306 gl.gl_pathc = pglob->gl_pathc; in old_glob()
1307 gl.gl_pathv = pglob->gl_pathv; in old_glob()
1308 gl.gl_offs = pglob->gl_offs; in old_glob()
1309 gl.gl_pathp = pglob->gl_pathp; in old_glob()
1310 gl.gl_pathn = pglob->gl_pathn; in old_glob()
1312 rv = _glob_ext(pattern, flags, errfunc, &gl); in old_glob()
1318 pglob->gl_pathc = gl.gl_pathc; in old_glob()
1319 pglob->gl_pathv = gl.gl_pathv; in old_glob()
[all …]
H A Dengine.c194 const sopno gl = g->laststate; in matcher() local
295 endp = walk(m, start, stop, gf, gl, true); in matcher()
311 endp = walk(m, m->coldp, stop, gf, gl, false); in matcher()
333 dp = dissect(m, m->coldp, endp, gf, gl); in matcher()
344 dp = backref(m, m->coldp, endp, gf, gl, (sopno)0, 0); in matcher()
356 endp = walk(m, m->coldp, endp-1, gf, gl, false); in matcher()
367 dp = backref(m, m->coldp, endp, gf, gl, (sopno)0, 0); in matcher()
/illumos-gate/usr/src/lib/libppt/common/
H A Dlibppt.c190 glob_t gl; in ppt_list_assigned() local
193 bzero(&gl, sizeof (gl)); in ppt_list_assigned()
207 NULL, &gl)) != 0) { in ppt_list_assigned()
212 for (size_t i = 0; i < gl.gl_pathc; i++) { in ppt_list_assigned()
218 if (!S_ISLNK(gl.gl_statv[i]->st_mode)) in ppt_list_assigned()
221 if (realpath(gl.gl_pathv[i], fspath) == NULL) { in ppt_list_assigned()
239 info_nvl = dev_getinfo(di_node, db, gl.gl_pathv[i], path); in ppt_list_assigned()
258 globfree(&gl); in ppt_list_assigned()
/illumos-gate/usr/src/uts/sun4/brand/common/
H A Dbrand_solaris.S44 rdpr %gl, reg; \
45 wrpr reg, 1, %gl
52 wrpr reg, 0, %gl
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/tftp/
H A Dmain.c83 static GetLine *gl; variable
247 gl = new_GetLine(LINELEN, HISTORY); in main()
248 if (gl == NULL) { in main()
254 if (gl_ignore_signal(gl, SIGALRM) == 0) { in main()
255 if (gl_customize_completion(gl, cmdtab, cmdmatch) != 0) in main()
290 buf = gl_get_line(gl, p, NULL, -1); in prompt_for_arg()
772 buf = gl_get_line(gl, prompt, NULL, -1); in command()
/illumos-gate/usr/src/uts/sun4v/os/
H A Dmach_trap.c169 uint32_t gl, ccr, asi, cwp, pstate; in ptl1_showtrap() local
175 gl = (tstate >> TSTATE_GL_SHIFT) & TSTATE_GL_MASK; in ptl1_showtrap()
181 "%%pstate: %b\n", gl, ccr, asi, cwp, pstate, PSTATE_BITS); in ptl1_showtrap()
/illumos-gate/usr/src/uts/common/fs/zfs/lua/
H A Dlparser.c342 Labellist *gl = &ls->dyd->gt; in closegoto() local
343 Labeldesc *gt = &gl->arr[g]; in closegoto()
354 for (i = g; i < gl->n - 1; i++) in closegoto()
355 gl->arr[i] = gl->arr[i + 1]; in closegoto()
356 gl->n--; in closegoto()
402 Labellist *gl = &ls->dyd->gt; in findgotos() local
404 while (i < gl->n) { in findgotos()
405 if (luaS_eqstr(gl->arr[i].name, lb->name)) in findgotos()
421 Labellist *gl = &fs->ls->dyd->gt; in movegotosout() local
424 while (i < gl->n) { in movegotosout()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/
H A Dlc.tab64 gl galician
198 es spain es|ca|eu|gl
203 gl greenland kl
/illumos-gate/usr/src/uts/sun4v/sys/
H A Dtraptrace.h296 rdpr %gl, scr1; \
308 #define TRACE_SAVE_GL_VAL(addr, gl) \ argument
309 stba gl, [addr + TRAP_ENT_GL]%asi
/illumos-gate/usr/src/lib/libipsecutil/common/
H A Dipsec_util.c81 static GetLine *gl = NULL; /* for interactive mode */ variable
698 if (gl == NULL) { in init_interactive()
699 if ((gl = new_GetLine(MAX_LINE_LEN, in init_interactive()
704 if (gl_customize_completion(gl, NULL, in init_interactive()
706 (void) del_GetLine(gl); in init_interactive()
728 if (gl != NULL) in fini_interactive()
729 (void) del_GetLine(gl); in fini_interactive()
750 line = gl_get_line(gl, prompt, NULL, -1); in do_getstr()
751 if (gl_return_status(gl) == GLR_SIGNAL) { in do_getstr()
752 gl_abandon_line(gl); in do_getstr()
[all …]
/illumos-gate/usr/src/cmd/sgs/elfedit/common/
H A D_elfedit.h180 GetLine *gl; /* getline object */ member
H A Delfedit.c335 (void) gl_normal_io(state.input.gl); in elfedit_msg()
3150 gl_normal_io(state.input.gl); in cmd_match_fcn()
3195 (void) gl_normal_io(state.input.gl); in cmd_match_fcn()
3395 s = gl_get_line(state.input.gl, in read_cmd()
3405 (gl_return_status(state.input.gl) == GLR_ERROR)) { in read_cmd()
3407 gl_error_message(state.input.gl, NULL, 0)); in read_cmd()
3649 state.input.gl = new_GetLine(ELFEDIT_MAXCMD, in main()
3652 (void) gl_customize_completion(state.input.gl, in main()
3672 gl_abandon_line(state.input.gl); in main()
/illumos-gate/usr/src/uts/sun4v/ml/
H A Dtrap_table.S2204 wrpr %g0, 0, %gl
2206 wrpr %g0, 1, %gl
2207 ! cannot assume globals retained their values after increasing %gl
2215 wrpr %g0, 0, %gl
2217 wrpr %g0, 1, %gl
2218 ! cannot assume globals retained their values after increasing %gl
2320 wrpr %g0, 0, %gl
2322 wrpr %g0, 1, %gl
2332 wrpr %g0, 0, %gl
2335 wrpr %g0, 1, %gl
[all …]
H A Dmach_locore.S381 ! Assert gl == 1
382 rdpr %gl, %g5
974 wrpr %g0, 1, %gl
/illumos-gate/usr/src/uts/sun4v/vm/
H A Dmach_sfmmu.h94 wrpr %g0, 1, %gl; \
119 wrpr %g0, val, %gl

12