/openbsd-current/usr.bin/tmux/ |
H A D | cmd-rotate-window.c | 51 struct window_pane *wp, *wp2; local 58 wp = TAILQ_LAST(&w->panes, window_panes); 59 TAILQ_REMOVE(&w->panes, wp, entry); 60 TAILQ_INSERT_HEAD(&w->panes, wp, entry); 62 lc = wp->layout_cell; 63 xoff = wp->xoff; yoff = wp->yoff; 64 sx = wp->sx; sy = wp->sy; 65 TAILQ_FOREACH(wp, [all...] |
H A D | window.c | 68 u_int wp; member in struct:window_pane_input_data 370 window_pane_destroy_ready(struct window_pane *wp) argument 374 if (wp->pipe_fd != -1) { 375 if (EVBUFFER_LENGTH(wp->pipe_event->output) != 0) 377 if (ioctl(wp->fd, FIONREAD, &n) != -1 && n > 0) 381 if (~wp->flags & PANE_EXITED) 431 window_pane_send_resize(struct window_pane *wp, u_int sx, u_int sy) argument 433 struct window *w = wp->window; 436 if (wp->fd == -1) 439 log_debug("%s: %%%u resize to %u,%u", __func__, wp 451 window_has_pane(struct window *w, struct window_pane *wp) argument 472 window_pane_update_focus(struct window_pane *wp) argument 509 window_set_active_pane(struct window *w, struct window_pane *wp, int notify) argument 539 window_pane_get_palette(struct window_pane *wp, int c) argument 547 window_redraw_active_switch(struct window *w, struct window_pane *wp) argument 585 struct window_pane *wp; local 641 window_zoom(struct window_pane *wp) argument 671 struct window_pane *wp; local 719 struct window_pane *wp; local 745 window_lost_pane(struct window *w, struct window_pane *wp) argument 770 window_remove_pane(struct window *w, struct window_pane *wp) argument 781 struct window_pane *wp; local 794 window_pane_next_by_number(struct window *w, struct window_pane *wp, u_int n) argument 805 window_pane_previous_by_number(struct window *w, struct window_pane *wp, u_int n) argument 817 window_pane_index(struct window_pane *wp, u_int *i) argument 836 struct window_pane *wp; local 848 struct window_pane *wp; local 909 struct window_pane wp; local 918 struct window_pane *wp; local 956 window_pane_destroy(struct window_pane *wp) argument 1000 struct window_pane *wp = data; local 1029 struct window_pane *wp = data; local 1039 window_pane_set_event(struct window_pane *wp) argument 1053 window_pane_resize(struct window_pane *wp, u_int sx, u_int sy) argument 1080 window_pane_set_mode(struct window_pane *wp, struct window_pane *swp, const struct window_mode *mode, struct cmd_find_state *fs, struct args *args) argument 1117 window_pane_reset_mode(struct window_pane *wp) argument 1148 window_pane_reset_mode_all(struct window_pane *wp) argument 1155 window_pane_copy_key(struct window_pane *wp, key_code key) argument 1171 window_pane_key(struct window_pane *wp, struct client *c, struct session *s, struct winlink *wl, key_code key, struct mouse_event *m) argument 1202 window_pane_visible(struct window_pane *wp) argument 1210 window_pane_exited(struct window_pane *wp) argument 1216 window_pane_search(struct window_pane *wp, const char *term, int regex, int ignore) argument 1287 window_pane_find_up(struct window_pane *wp) argument 1344 window_pane_find_down(struct window_pane *wp) argument 1401 window_pane_find_left(struct window_pane *wp) argument 1449 window_pane_find_right(struct window_pane *wp) argument 1496 window_pane_stack_push(struct window_panes *stack, struct window_pane *wp) argument 1506 window_pane_stack_remove(struct window_panes *stack, struct window_pane *wp) argument 1566 struct window_pane *wp; local 1587 window_pane_start_input(struct window_pane *wp, struct cmdq_item *item, char **cause) argument 1612 window_pane_get_new_data(struct window_pane *wp, struct window_pane_offset *wpo, size_t *size) argument 1622 window_pane_update_used_data(struct window_pane *wp, struct window_pane_offset *wpo, size_t size) argument 1650 window_pane_default_cursor(struct window_pane *wp) argument [all...] |
H A D | screen-redraw.c | 50 screen_redraw_border_set(struct window *w, struct window_pane *wp, argument 68 if (wp != NULL && window_pane_index(wp, &idx) == 0) 96 struct window_pane *wp; local 98 wp = TAILQ_NEXT(TAILQ_FIRST(&w->panes), entry); 99 if (wp == NULL) 101 if (TAILQ_NEXT(wp, entry) != NULL) 103 if (direction == 0 && wp->xoff == 0) 105 if (direction == 1 && wp->yoff == 0) 112 screen_redraw_pane_border(struct window_pane *wp, u_in argument 195 struct window_pane *wp; local 302 struct window_pane *wp, *active; local 363 screen_redraw_check_is(u_int px, u_int py, int pane_status, struct window_pane *wp) argument 376 screen_redraw_make_pane_status(struct client *c, struct window_pane *wp, struct screen_redraw_ctx *rctx, enum pane_lines pane_lines) argument 444 struct window_pane *wp; local 503 struct window_pane *wp; local 608 screen_redraw_pane(struct client *c, struct window_pane *wp) argument 626 screen_redraw_draw_borders_style(struct screen_redraw_ctx *ctx, u_int x, u_int y, struct window_pane *wp) argument 660 struct window_pane *wp, *active = server_client_get_pane(c); local 753 struct window_pane *wp; local 773 struct window_pane *wp; local 807 screen_redraw_draw_pane(struct screen_redraw_ctx *ctx, struct window_pane *wp) argument [all...] |
H A D | cmd-pipe-pane.c | 62 struct window_pane *wp = target->wp; local 65 struct window_pane_offset *wpo = &wp->pipe_offset; 72 if (window_pane_exited(wp)) { 78 old_fd = wp->pipe_fd; 79 if (wp->pipe_fd != -1) { 80 bufferevent_free(wp->pipe_event); 81 close(wp->pipe_fd); 82 wp->pipe_fd = -1; 84 if (window_pane_destroy_ready(wp)) { 192 struct window_pane *wp = data; local 209 struct window_pane *wp = data; local 221 struct window_pane *wp = data; local [all...] |
H A D | cmd-copy-mode.c | 65 struct window_pane *wp = target->wp, *swp; local 68 window_pane_reset_mode_all(wp); 73 if ((wp = cmd_mouse_pane(&event->m, &s, NULL)) == NULL) 80 window_pane_set_mode(wp, NULL, &window_clock_mode, NULL, NULL); 85 swp = source->wp; 87 swp = wp; 88 if (!window_pane_set_mode(wp, swp, &window_copy_mode, NULL, args)) { 93 window_copy_pageup(wp, 0);
|
H A D | cmd-display-panes.c | 60 struct window_pane *wp) 66 struct window *w = wp->window; 73 if (wp->xoff + wp->sx <= ctx->ox || 74 wp->xoff >= ctx->ox + ctx->sx || 75 wp->yoff + wp->sy <= ctx->oy || 76 wp->yoff >= ctx->oy + ctx->sy) 79 if (wp->xoff >= ctx->ox && wp 59 cmd_display_panes_draw_pane(struct screen_redraw_ctx *ctx, struct window_pane *wp) argument 202 struct window_pane *wp; local 231 struct window_pane *wp; local [all...] |
H A D | cmd-paste-buffer.c | 52 struct window_pane *wp = target->wp; local 58 if (window_pane_exited(wp)) { 77 if (pb != NULL && ~wp->flags & PANE_INPUTOFF) { 87 if (bracket && (wp->screen->mode & MODE_BRACKETPASTE)) 88 bufferevent_write(wp->event, "\033[200~", 6); 98 bufferevent_write(wp->event, bufdata, line - bufdata); 99 bufferevent_write(wp->event, sepstr, seplen); 104 bufferevent_write(wp->event, bufdata, bufend - bufdata); 106 if (bracket && (wp [all...] |
H A D | cmd-select-pane.c | 94 struct window_pane *wp = target->wp, *activewp, *lastwp, *markedwp; local 95 struct options *oo = wp->options; 138 if (args_has(args, 'm') && !window_pane_visible(wp)) 141 lastwp = marked_pane.wp; 145 if (args_has(args, 'M') || server_is_marked(s, wl, wp)) 148 server_set_marked(s, wl, wp); 149 markedwp = marked_pane.wp; 172 wp->flags |= (PANE_REDRAW|PANE_STYLECHANGED); 181 wp [all...] |
H A D | cmd-kill-pane.c | 50 struct window_pane *loopwp, *tmpwp, *wp = target->wp; local 55 if (loopwp == wp) 65 server_kill_pane(wp);
|
H A D | cmd-break-pane.c | 59 struct window_pane *wp = source->wp; local 95 TAILQ_REMOVE(&w->panes, wp, entry); 96 server_client_remove_pane(wp); 97 window_lost_pane(w, wp); 98 layout_close_pane(wp); 100 w = wp->window = window_create(w->sx, w->sy, w->xpixel, w->ypixel); 101 options_set_parent(wp->options, w->options); 102 wp->flags |= PANE_STYLECHANGED; 103 TAILQ_INSERT_HEAD(&w->panes, wp, entr [all...] |
H A D | cmd-respawn-pane.c | 55 struct window_pane *wp = target->wp; local 63 sc.wp0 = wp; 90 wp->flags |= PANE_REDRAW; 91 server_redraw_window_borders(wp->window); 92 server_status_window(wp->window);
|
/openbsd-current/games/hack/ |
H A D | hack.worn.c | 86 struct worn *wp; local 89 for(wp = worn; wp->w_mask; wp++) if(wp->w_mask & mask) { 90 oobj = *(wp->w_obj); 91 if(oobj && !(oobj->owornmask & wp->w_mask)) 92 impossible("Setworn: mask = %ld.", wp->w_mask); 93 if(oobj) oobj->owornmask &= ~wp->w_mask; 94 if(obj && oobj && wp 114 struct worn *wp; local [all...] |
/openbsd-current/usr.bin/mg/ |
H A D | window.c | 19 struct mgwin *wp; local 21 wp = calloc(1, sizeof(struct mgwin)); 22 if (wp == NULL) 25 wp->w_bufp = bp; 26 wp->w_dotp = NULL; 27 wp->w_doto = 0; 28 wp->w_markp = NULL; 29 wp->w_marko = 0; 30 wp->w_rflag = 0; 31 wp 77 struct mgwin *wp; local 112 struct mgwin *wp; local 153 struct mgwin *wp; local 207 struct mgwin *wp, *wp1, *wp2; local 403 struct mgwin *wp, *nwp; local [all...] |
H A D | line.c | 91 struct mgwin *wp; local 93 for (wp = wheadp; wp != NULL; wp = wp->w_wndp) { 94 if (wp->w_linep == lp) 95 wp->w_linep = lp->l_fp; 96 if (wp->w_dotp == lp) { 97 wp->w_dotp = lp->l_fp; 98 wp 133 struct mgwin *wp; local 162 struct mgwin *wp; local 258 struct mgwin *wp; local 359 struct mgwin *wp; local 452 struct mgwin *wp; local [all...] |
H A D | display.c | 311 vtputc(int c, struct mgwin *wp) argument 322 target = ntabstop(vtcol, wp->w_bufp->b_tabw); 324 vtputc(' ', wp); 327 vtputc('^', wp); 328 vtputc(CCHR(c), wp); local 335 vtputs(bf, wp); 345 vtpute(int c, struct mgwin *wp) argument 356 target = ntabstop(vtcol + lbound, wp->w_bufp->b_tabw); 358 vtpute(' ', wp); 361 vtpute('^', wp); 362 vtpute(CCHR(c), wp); local 404 struct mgwin *wp; local 483 vtputc(lgetc(lp, j), wp); local 493 vtputc(lgetc(lp, j), wp); local 551 vtputc(lgetc(lp, j), wp); local 787 modeline(struct mgwin *wp, int modelinecolor) argument 860 vtputs(const char *s, struct mgwin *wp) argument [all...] |
H A D | log.c | 128 struct mgwin *wp; local 131 for (wp = wheadp, i = 0; wp != NULL; wp = wp->w_wndp, ++i) { 137 wp, 138 &wp->w_list, 139 wp->w_bufp, 140 wp->w_linep, 141 wp [all...] |
H A D | buffer.c | 161 struct mgwin *wp; local 181 if ((wp = popbuf(bp, WNONE)) == NULL) 184 curwp = wp; 222 struct mgwin *wp; local 242 for (wp = wheadp; bp->b_nwnd > 0; wp = wp->w_wndp) { 243 if (wp->w_bufp == bp) { 245 if (showbuffer(bp1, wp, WFMODE | WFFRAME | WFFULL)) 337 struct mgwin *wp; local 431 struct mgwin *wp; local 672 showbuffer(struct buffer *bp, struct mgwin *wp, int flags) argument 753 struct mgwin *wp; local 851 struct mgwin *wp; local 870 struct mgwin *wp; local [all...] |
/openbsd-current/bin/ksh/ |
H A D | c_sh.c | 26 c_label(char **wp) argument 28 return wp[0][0] == 'f' ? 1 : 0; 32 c_shift(char **wp) argument 39 if (ksh_getopt(wp, &builtin_opt, null) == '?') 41 arg = wp[builtin_opt.optind]; 63 c_umask(char **wp) argument 71 while ((optc = ksh_getopt(wp, &builtin_opt, "S")) != -1) 79 cp = wp[builtin_opt.optind]; 190 c_dot(char **wp) argument 198 if (ksh_getopt(wp, 228 c_wait(char **wp) argument 250 c_read(char **wp) argument 424 c_eval(char **wp) argument 473 c_trap(char **wp) argument 516 c_exitreturn(char **wp) argument 558 c_brkcont(char **wp) argument 612 c_set(char **wp) argument 647 c_unset(char **wp) argument 706 c_times(char **wp) argument 794 char **wp = *app; local 826 c_exec(char **wp) argument 850 c_suspend(char **wp) argument 871 c_builtin(char **wp) argument [all...] |
H A D | c_ksh.c | 17 c_cd(char **wp) argument 32 while ((optc = ksh_getopt(wp, &builtin_opt, "LP")) != -1) 43 wp += builtin_opt.optind; 53 if (!wp[0]) { 59 } else if (!wp[1]) { 61 dir = wp[0]; 70 } else if (!wp[2]) { 84 if ((cp = strstr(current_wd, wp[0])) == NULL) { 89 olen = strlen(wp[0]); 90 nlen = strlen(wp[ 164 c_pwd(char **wp) argument 205 c_print(char **wp) argument 406 c_whence(char **wp) argument 541 c_command(char **wp) argument 550 c_type(char **wp) argument 558 c_typeset(char **wp) argument 853 c_alias(char **wp) argument 988 c_unalias(char **wp) argument 1040 c_let(char **wp) argument 1058 c_jobs(char **wp) argument 1095 c_fgbg(char **wp) argument 1146 c_kill(char **wp) argument 1268 c_getopts(char **wp) argument 1366 c_bind(char **wp) argument [all...] |
H A D | c_ulimit.c | 44 c_ulimit(char **wp) argument 65 while ((optc = ksh_getopt(wp, &builtin_opt, options)) != -1) 82 if (wp[builtin_opt.optind] != NULL) { 89 while ((optc = ksh_getopt(wp, &builtin_opt, options)) != -1) 112 wp += builtin_opt.optind; 122 if (wp[0] != NULL) { 123 if (set_ulimit(l, wp[0], how)) 125 wp++;
|
/openbsd-current/games/hangman/ |
H A D | getword.c | 50 char *wp, *gp; local 73 for (wp = Word; *wp; wp++) 74 if (!islower((unsigned char)*wp)) 86 wp = Word; 87 while (*wp) { 89 wp++;
|
/openbsd-current/games/battlestar/ |
H A D | parse.c | 73 struct wlist *wp; local 75 for (wp = hashtab[hash(s)]; wp != NULL; wp = wp->next) 76 if (*s == *wp->string && strcmp(s, wp->string) == 0) 77 return wp; 82 install(struct wlist *wp) argument 86 if (lookup(wp 97 struct wlist *wp; local [all...] |
/openbsd-current/lib/libcurses/base/ |
H A D | lib_window.c | 101 WINDOW *wp; local 105 for (wp = win; wp->_parent; wp = wp->_parent) { 107 WINDOW *pp = wp->_parent; 109 assert((wp->_pary <= pp->_maxy) && 110 ((wp->_pary + wp->_maxy) <= pp->_maxy)); 112 for (y = 0; y <= wp 170 WINDOW *wp; local [all...] |
/openbsd-current/regress/sys/kern/pipe/ |
H A D | test-ping-pong.c | 39 int pip[2][2], rp, wp; local 56 wp = pip[1][1]; 70 n = write(wp, pong, sizeof(pong)); 86 n = write(wp, pong, sizeof(pong)); 99 wp = pip[0][1]; 103 n = write(wp, ping, sizeof(ping)); 124 close(wp);
|
/openbsd-current/gnu/lib/libreadline/ |
H A D | nls.c | 134 char *wp, *retval; local 155 wp = retval; 159 *wp++ = 'i'; 160 *wp++ = 's'; 161 *wp++ = 'o'; 166 *wp++ = _rl_to_lower (codeset[i]); 168 *wp++ = codeset[i]; 169 *wp = '\0';
|