| /openbsd/src/usr.bin/mandoc/ |
| D | term.h | 43 struct termp; 45 typedef void (*term_margin)(struct termp *, const struct roff_meta *); 62 struct termp { struct 113 void (*letter)(struct termp *, int); argument 114 void (*begin)(struct termp *); argument 115 void (*end)(struct termp *); argument 116 void (*endline)(struct termp *); argument 117 void (*advance)(struct termp *, size_t); argument 118 void (*setwidth)(struct termp *, int, int); argument 119 size_t (*width)(const struct termp *, int); argument [all …]
|
| D | term_ascii.c | 39 static struct termp *ascii_init(enum termenc, const struct manoutput *); 40 static int ascii_hspan(const struct termp *, 42 static size_t ascii_width(const struct termp *, int); 43 static void ascii_advance(struct termp *, size_t); 44 static void ascii_begin(struct termp *); 45 static void ascii_end(struct termp *); 46 static void ascii_endline(struct termp *); 47 static void ascii_letter(struct termp *, int); 48 static void ascii_setwidth(struct termp *, int, int); 50 static void locale_advance(struct termp *, size_t); [all …]
|
| D | term_ps.c | 92 static int ps_hspan(const struct termp *, 94 static size_t ps_width(const struct termp *, int); 95 static void ps_advance(struct termp *, size_t); 96 static void ps_begin(struct termp *); 97 static void ps_closepage(struct termp *); 98 static void ps_end(struct termp *); 99 static void ps_endline(struct termp *); 100 static void ps_growbuf(struct termp *, size_t); 101 static void ps_letter(struct termp *, int); 102 static void ps_pclose(struct termp *); [all …]
|
| D | term.c | 33 static size_t cond_width(const struct termp *, int, int *); 35 static void bufferc(struct termp *, char); 36 static void encode(struct termp *, const char *, size_t); 37 static void encode1(struct termp *, int); 38 static void endline(struct termp *); 39 static void term_field(struct termp *, size_t, size_t); 40 static void term_fill(struct termp *, size_t *, size_t *, 45 term_setcol(struct termp *p, size_t maxtcol) in term_setcol() 57 term_free(struct termp *p) in term_free() 68 term_begin(struct termp *p, term_margin head, in term_begin() [all …]
|
| D | tbl_term.c | 38 static void tbl_data(struct termp *, const struct tbl_opts *, 42 static void tbl_direct_border(struct termp *, int, size_t); 43 static void tbl_fill_border(struct termp *, int, size_t); 44 static void tbl_fill_char(struct termp *, char, size_t); 45 static void tbl_fill_string(struct termp *, const char *, size_t); 46 static void tbl_hrule(struct termp *, const struct tbl_span *, 49 static void tbl_literal(struct termp *, const struct tbl_dat *, 51 static void tbl_number(struct termp *, const struct tbl_opts *, 54 static void tbl_word(struct termp *, const struct tbl_dat *); 142 i = term_hen((const struct termp *)arg, su); in term_tbl_sulen() [all …]
|
| D | eqn_term.c | 38 static void eqn_box(struct termp *, const struct eqn_box *); 42 term_eqn(struct termp *p, const struct eqn_box *bp) in term_eqn() 50 eqn_box(struct termp *p, const struct eqn_box *bp) in eqn_box()
|
| D | man_term.c | 49 #define DECL_ARGS struct termp *p, \ 63 static void print_man_head(struct termp *, 65 static void print_man_foot(struct termp *, 67 static void print_bvspace(struct termp *, 152 struct termp *p; in terminal_man() 155 p = (struct termp *)arg; in terminal_man() 203 print_bvspace(struct termp *p, struct roff_node *n, int pardist) in print_bvspace() 1013 print_man_foot(struct termp *p, const struct roff_meta *meta) in print_man_foot() 1092 print_man_head(struct termp *p, const struct roff_meta *meta) in print_man_head()
|
| D | mdoc_term.c | 45 #define DECL_ARGS struct termp *p, \ 55 static int a2width(const struct termp *, const char *); 57 static void print_bvspace(struct termp *, 61 static void print_mdoc_head(struct termp *, const struct roff_meta *); 62 static void print_mdoc_foot(struct termp *, const struct roff_meta *); 63 static void synopsis_pre(struct termp *, struct roff_node *); 250 struct termp *p; in terminal_mdoc() 252 p = (struct termp *)arg; in terminal_mdoc() 440 print_mdoc_foot(struct termp *p, const struct roff_meta *meta) in print_mdoc_foot() 489 print_mdoc_head(struct termp *p, const struct roff_meta *meta) in print_mdoc_head() [all …]
|
| D | roff_term.c | 28 #define ROFF_TERM_ARGS struct termp *p, const struct roff_node *n 59 roff_term_pre(struct termp *p, const struct roff_node *n) in roff_term_pre()
|
| D | term_tab.c | 42 term_tab_set(const struct termp *p, const char *arg) in term_tab_set()
|
| /openbsd/src/lib/libcurses/tinfo/ |
| D | lib_cur_term.c | 49 #define CUR TerminalType(termp). 83 NCURSES_SP_NAME(set_curterm) (NCURSES_SP_DCLx TERMINAL *termp) in NCURSES_SP_NAME() 87 T((T_CALLED("set_curterm(%p)"), (void *) termp)); in NCURSES_SP_NAME() 92 SP_PARM->_term = termp; in NCURSES_SP_NAME() 94 CurTerm = termp; in NCURSES_SP_NAME() 96 cur_term = termp; in NCURSES_SP_NAME() 98 if (termp != 0) { in NCURSES_SP_NAME() 100 TERMINAL_CONTROL_BLOCK *TCB = (TERMINAL_CONTROL_BLOCK *) termp; in NCURSES_SP_NAME() 101 ospeed = (NCURSES_OSPEED) _nc_ospeed(termp->_baudrate); in NCURSES_SP_NAME() 104 TerminalType(termp).Strings) { in NCURSES_SP_NAME() [all …]
|
| D | lib_ttyflags.c | 52 TERMINAL *termp = TerminalOf(SP_PARM); in NCURSES_EXPORT() local 55 if (buf == 0 || termp == 0) { in NCURSES_EXPORT() 67 if (GET_TTY(termp->Filedes, buf) != 0) { in NCURSES_EXPORT() 77 termp ? termp->Filedes : -1, in NCURSES_EXPORT() 102 TERMINAL *termp = TerminalOf(SP_PARM); in NCURSES_SP_NAME() local 104 if (0 == termp) { in NCURSES_SP_NAME() 111 if ((SET_TTY(termp->Filedes, buf) != 0) in NCURSES_SP_NAME() 113 && !NC_ISATTY(termp->Filedes) in NCURSES_SP_NAME() 127 termp ? termp->Filedes : -1, in NCURSES_SP_NAME() 145 TERMINAL *termp = TerminalOf(SP_PARM); in NCURSES_SP_NAME() local [all …]
|
| D | lib_setup.c | 104 #define CUR TerminalType(termp). 119 TERMINAL *termp = TerminalOf(CURRENT_SCREEN); in NCURSES_EXPORT() local 120 if (termp != 0) { in NCURSES_EXPORT() 121 result = TerminalType(termp).term_names; in NCURSES_EXPORT() 280 TERMINAL *termp, in _nc_get_screensize() argument 289 assert(termp != 0 && linep != 0 && colp != 0); in _nc_get_screensize() 290 TCB = (TERMINAL_CONTROL_BLOCK *) termp; in _nc_get_screensize() 305 TERMINAL *termp = cur_term; in _nc_get_screensize() 419 #define OldNumber(termp,name) \ in _nc_get_screensize() 420 (termp)->type.Numbers[(&name - (termp)->type2.Numbers)] in _nc_get_screensize() [all …]
|
| D | lib_raw.c | 87 TERMINAL *termp; in NCURSES_EXPORT() local 90 if ((termp = TerminalOf(SP_PARM)) != 0) { in NCURSES_EXPORT() 96 buf = termp->Nttyb; in NCURSES_EXPORT() 124 termp->Nttyb = buf; in NCURSES_EXPORT() 143 TERMINAL *termp; in NCURSES_SP_NAME() local 146 if ((termp = TerminalOf(SP_PARM)) != 0) { in NCURSES_SP_NAME() 152 buf = termp->Nttyb; in NCURSES_SP_NAME() 170 termp->Nttyb = buf; in NCURSES_SP_NAME() 192 TERMINAL *termp; in NCURSES_SP_NAME() local 195 if ((termp = TerminalOf(SP_PARM)) != 0) { in NCURSES_SP_NAME() [all …]
|
| D | lib_kernel.c | 90 TERMINAL *termp = TerminalOf(SP_PARM); in NCURSES_SP_NAME() local 94 if (termp != 0) { in NCURSES_SP_NAME() 96 result = termp->Ottyb.c_cc[VERASE]; in NCURSES_SP_NAME() 102 result = termp->Ottyb.sg_erase; in NCURSES_SP_NAME() 127 TERMINAL *termp = TerminalOf(SP_PARM); in NCURSES_SP_NAME() local 131 if (termp != 0) { in NCURSES_SP_NAME() 133 result = termp->Ottyb.c_cc[VKILL]; in NCURSES_SP_NAME() 139 result = termp->Ottyb.sg_kill; in NCURSES_SP_NAME()
|
| D | tinfo_driver.c | 119 get_baudrate(TERMINAL *termp) in get_baudrate() argument 123 if (GET_TTY(termp->Filedes, &termp->Nttyb) == OK) { in get_baudrate() 125 termp->Nttyb.c_oflag &= (unsigned) (~OFLAGS_TABS); in get_baudrate() 129 termp->Nttyb.sg_flags &= (unsigned) (~XTABS); in get_baudrate() 133 result = (int) cfgetospeed(&(termp->Nttyb)); in get_baudrate() 137 my_ospeed = (NCURSES_OSPEED) cfgetospeed(&(termp->Nttyb)); in get_baudrate() 142 my_ospeed = (NCURSES_OSPEED) termp->Nttyb.sg_ospeed; in get_baudrate() 146 termp->_baudrate = result; in get_baudrate() 160 TERMINAL *termp; in drv_CanHandle() local 167 termp = (TERMINAL *) TCB; in drv_CanHandle() [all …]
|
| D | lib_termcap.c | 100 TERMINAL *termp = 0; in NCURSES_SP_NAME() local 106 TINFO_SETUP_TERM(&termp, name, STDOUT_FILENO, &rc, TRUE); in NCURSES_SP_NAME() 109 if (termp == 0 || in NCURSES_SP_NAME() 110 !((TERMINAL_CONTROL_BLOCK *) termp)->drv->isTerminfo) in NCURSES_SP_NAME() 404 _nc_tgetent_leak(const TERMINAL *const termp) in _nc_tgetent_leak() argument 406 if (termp != 0) { in _nc_tgetent_leak() 409 if (LAST_TRM == termp) { in _nc_tgetent_leak()
|
| D | lib_tparm.c | 176 _nc_free_tparm(TERMINAL *termp) in _nc_free_tparm() argument 178 TPARM_STATE *tps = get_tparm_state(termp); in _nc_free_tparm()
|
| /openbsd/src/lib/libutil/ |
| D | pty.c | 53 openpty(int *amaster, int *aslave, char *name, const struct termios *termp, in openpty() argument 60 if (fdopenpty(ptmfd, amaster, aslave, name, termp, winp) == -1) { in openpty() 70 const struct termios *termp, const struct winsize *winp) in fdopenpty() argument 92 if (termp) in fdopenpty() 93 (void) tcsetattr(slave, TCSAFLUSH, termp); in fdopenpty() 100 forkpty(int *amaster, char *name, const struct termios *termp, in forkpty() argument 108 if ((pid = fdforkpty(ptmfd, amaster, name, termp, winp)) == -1) { in forkpty() 117 fdforkpty(int ptmfd, int *amaster, char *name, const struct termios *termp, in fdforkpty() argument 123 if (fdopenpty(ptmfd, &master, &slave, name, termp, winp) == -1) in fdforkpty()
|
| /openbsd/src/lib/libcurses/base/ |
| D | lib_restart.c | 51 NCURSES_CONST char *termp, in NCURSES_EXPORT() 63 termp, in NCURSES_EXPORT() 67 if (TINFO_SETUP_TERM(&new_term, termp, filenum, errret, FALSE) != OK) { in NCURSES_EXPORT() 112 restartterm(NCURSES_CONST char *termp, int filenum, int *errret) in restartterm() argument 115 return NCURSES_SP_NAME(restartterm) (CURRENT_SCREEN, termp, filenum, errret); in restartterm()
|
| /openbsd/src/usr.bin/tset/ |
| D | tset.c | 381 const char *termp; in add_mapping() local 412 termp = mapp->porttype = 0; in add_mapping() 414 termp = base = arg; in add_mapping() 456 if (termp != 0) in add_mapping()
|
| /openbsd/src/gnu/llvm/llvm/lib/Support/Unix/ |
| D | Process.inc | 326 extern "C" struct term *set_curterm(struct term *termp); 327 extern "C" int del_curterm(struct term *termp); 384 struct term *termp = set_curterm(previous_term); 385 (void)del_curterm(termp); // Drop any errors here.
|
| /openbsd/src/gnu/llvm/compiler-rt/lib/msan/ |
| D | msan_interceptors.cpp | 1246 const void *termp, const void *winp) { in INTERCEPTOR() argument 1249 int res = REAL(openpty)(aparent, aworker, name, termp, winp); in INTERCEPTOR() 1264 INTERCEPTOR(int, forkpty, int *aparent, char *name, const void *termp, in INTERCEPTOR() argument 1268 int res = REAL(forkpty)(aparent, name, termp, winp); in INTERCEPTOR()
|
| /openbsd/src/lib/libcurses/ |
| D | curses.priv.h | 1924 #define save_ttytype(termp) \ argument 1925 if (TerminalType(termp).term_names != 0) { \ 1927 TerminalType(termp).term_names, \
|