/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | getline.c | 2968 if((gl->insert || buff_curpos >= gl->ntotal) && gl->ntotal >= gl->linelen) in gl_add_char_to_line() 3159 memmove(gl->keybuf + gl->nread, gl->keybuf + gl->nread + 1, in gl_read_terminal() 4245 strlcpy(gl->cutbuf, gl->line, gl->linelen); in KT_KEY_FN() 4277 strlcpy(gl->cutbuf, gl->line + gl->buff_curpos, gl->linelen); in KT_KEY_FN() 4955 int old_mark = gl->buff_mark <= gl->ntotal ? gl->buff_mark : gl->ntotal; in KT_KEY_FN() 5018 mark = gl->buff_mark > gl->ntotal ? gl->ntotal : gl->buff_mark; in KT_KEY_FN() 5293 _glh_recall_line(gl->glh, gl->preload_id, gl->line, gl->linelen+1); in KT_KEY_FN() 7275 memcpy(gl->cutbuf, gl->line + gl->buff_curpos, gl->ntotal - gl->buff_curpos); in KT_KEY_FN() 7303 memcpy(gl->cutbuf, gl->line, gl->ntotal); in KT_KEY_FN() 9165 switch(gl->timer.fn(gl, gl->timer.data)) { [all …]
|
H A D | keytab.h | 56 #define KT_KEY_FN(fn) int (fn)(GetLine *gl, int count, void *data)
|
/illumos-gate/usr/src/lib/libtecla/ |
H A D | libtecla.h | 94 GetLine *del_GetLine(GetLine *gl); 131 int gl_read_char(GetLine *gl); 994 int gl_echo_mode(GetLine *gl, int enable); 1122 void gl_catch_blocked(GetLine *gl); 1175 int gl_last_signal(GetLine *gl); 1265 int gl_erase_terminal(GetLine *gl); 1349 int gl_io_mode(GetLine *gl, GlIOMode mode); 1369 int gl_raw_io(GetLine *gl); 1384 int gl_normal_io(GetLine *gl); 1397 void gl_abandon_line(GetLine *gl); [all …]
|
/illumos-gate/usr/src/lib/krb5/ss/ |
H A D | listen.c | 142 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 D | getgroup.c | 72 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 D | enhance.c | 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() 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() 449 return pty_stop_parent(0, cntrl, gl, rbuff); in pty_parent() 480 gl = del_GetLine(gl); in pty_stop_parent() [all …]
|
/illumos-gate/usr/src/cmd/vtfontcvt/ |
H A D | vtfontcvt.c | 220 mp->m_glyph = gl; in add_mapping() 269 struct glyph *gl; in add_glyph() local 279 return (gl); in add_glyph() 283 gl = xmalloc(sizeof (*gl)); in add_glyph() 293 return (gl); in add_glyph() 325 struct glyph *gl; in add_char() local 330 gl = add_glyph(bytes, 0, 1); in add_char() 337 if (add_mapping(gl, curchar, in add_char() 559 struct glyph *gl; in number_glyphs() local 564 gl->g_index = idx++; in number_glyphs() [all …]
|
/illumos-gate/usr/src/lib/nsswitch/nis/common/ |
H A D | getnetgrent.c | 140 struct grouplist *gl; local 143 for (gl = be->all_members; gl != NULL; gl = next) { 146 next = gl->gl_nxt; 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() 535 free(gl->triple[j]); in save_triple() 542 gl->gl_nxt = *headp; in save_triple() [all …]
|
/illumos-gate/usr/src/lib/nsswitch/files/common/ |
H A D | getnetgrent.c | 318 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() 694 free(gl); in save_triple() 699 gl->gl_nxt = *headp; in save_triple() [all …]
|
/illumos-gate/usr/src/common/ficl/ |
H A D | main.c | 92 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 D | glob.c | 1294 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() 1320 pglob->gl_offs = gl.gl_offs; in old_glob() 1331 glob_t gl; in old_globfree() local 1333 (void) memset(&gl, 0, sizeof (gl)); in old_globfree() 1342 gl.gl_offs = pglob->gl_offs; in old_globfree() 1346 _globfree_ext(&gl); in old_globfree() [all …]
|
H A D | engine.c | 194 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 D | libppt.c | 187 glob_t gl; in ppt_list_assigned() local 190 bzero(&gl, sizeof (gl)); in ppt_list_assigned() 204 NULL, &gl)) != 0) { in ppt_list_assigned() 209 for (size_t i = 0; i < gl.gl_pathc; i++) { in ppt_list_assigned() 215 if (!S_ISLNK(gl.gl_statv[i]->st_mode)) in ppt_list_assigned() 218 if (realpath(gl.gl_pathv[i], fspath) == NULL) { in ppt_list_assigned() 236 info_nvl = dev_getinfo(di_node, db, gl.gl_pathv[i], path); in ppt_list_assigned() 255 globfree(&gl); in ppt_list_assigned()
|
/illumos-gate/usr/src/uts/sun4/brand/common/ |
H A D | brand_solaris.S | 44 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 D | main.c | 83 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 D | mach_trap.c | 169 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 D | lparser.c | 342 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 D | lc.tab | 64 gl galician 198 es spain es|ca|eu|gl 203 gl greenland kl
|
/illumos-gate/usr/src/uts/sun4v/sys/ |
H A D | traptrace.h | 296 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 D | ipsec_util.c | 622 if (gl == NULL) { in init_interactive() 623 if ((gl = new_GetLine(MAX_LINE_LEN, in init_interactive() 628 if (gl_customize_completion(gl, NULL, in init_interactive() 630 (void) del_GetLine(gl); in init_interactive() 652 if (gl != NULL) in fini_interactive() 653 (void) del_GetLine(gl); in fini_interactive() 674 line = gl_get_line(gl, prompt, NULL, -1); in do_getstr() 675 if (gl_return_status(gl) == GLR_SIGNAL) { in do_getstr() 676 gl_abandon_line(gl); in do_getstr() 679 gl_abandon_line(gl); in do_getstr() [all …]
|
/illumos-gate/usr/src/cmd/sgs/elfedit/common/ |
H A D | _elfedit.h | 180 GetLine *gl; /* getline object */ member
|
H A D | elfedit.c | 335 (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 D | trap_table.S | 2204 wrpr %g0, 0, %gl 2206 wrpr %g0, 1, %gl 2215 wrpr %g0, 0, %gl 2217 wrpr %g0, 1, %gl 2320 wrpr %g0, 0, %gl 2322 wrpr %g0, 1, %gl 2332 wrpr %g0, 0, %gl 2335 wrpr %g0, 1, %gl 2350 wrpr %g0, 0, %gl 2352 wrpr %g0, 1, %gl [all …]
|
H A D | mach_locore.S | 381 ! Assert gl == 1 382 rdpr %gl, %g5 974 wrpr %g0, 1, %gl
|
/illumos-gate/usr/src/uts/sun4v/vm/ |
H A D | mach_sfmmu.h | 94 wrpr %g0, 1, %gl; \ 119 wrpr %g0, val, %gl
|