/original-bsd/usr.bin/window/ |
H A D | win.c | 60 w->ww_alt = w->ww_w; 100 if ((w = window[i]) != 0 && w != selwin && in findselwin() 181 if (w->ww_id >= 0 && w->ww_id < NWINDOW) 200 if (w->ww_back != (isfg(w) ? framewin : fgwin) && !wwvisible(w)) { 202 addwin(w, isfg(w)); 242 for (w = wwhead.ww_back; w != &wwhead; w = w->ww_back) in reframe() 278 if (w->ww_pty >= 0 && w->ww_ispty && wwstoptty(w->ww_pty) < 0) 287 if (w->ww_pty >= 0 && w->ww_ispty && wwstarttty(w->ww_pty) < 0) 298 w->ww_alt.nr = w->ww_w.nr; 299 w->ww_alt.nc = w->ww_w.nc; [all …]
|
H A D | wwwrite.c | 20 if (!w->ww_noupdate && w->ww_cur.r >= 0 && w->ww_cur.r < wwnrow && \ 75 wwinschar(w, w->ww_cur.r, w->ww_cur.c, 80 bp = &w->ww_buf[w->ww_cur.r][w->ww_cur.c]; 192 w->ww_buf -= w->ww_w.t - w->ww_b.t; 193 w->ww_b.t = w->ww_w.t; 194 w->ww_b.b = w->ww_b.t + w->ww_b.nr; 197 wwclreos(w, w->ww_w.t, w->ww_w.l); 205 wwclreos(w, w->ww_cur.r, w->ww_cur.c); 208 wwclreol(w, w->ww_cur.r, w->ww_cur.c); 218 wwdelchar(w, w->ww_cur.r, w->ww_cur.c); [all …]
|
H A D | wwopen.c | 61 w->ww_i.t = MAX(w->ww_w.t, 0); in wwopen() 63 w->ww_i.l = MAX(w->ww_w.l, 0); in wwopen() 65 w->ww_i.nr = w->ww_i.b - w->ww_i.t; in wwopen() 66 w->ww_i.nc = w->ww_i.r - w->ww_i.l; in wwopen() 68 w->ww_cur.r = w->ww_w.t; in wwopen() 69 w->ww_cur.c = w->ww_w.l; in wwopen() 91 w->ww_obe = w->ww_ob + 512; in wwopen() 92 w->ww_obp = w->ww_obq = w->ww_ob; in wwopen() 97 w->ww_win = wwalloc(w->ww_w.t, w->ww_w.l, in wwopen() 114 w->ww_fmap = wwalloc(w->ww_w.t, w->ww_w.l, in wwopen() [all …]
|
H A D | wwiomux.c | 53 for (w = wwhead.ww_forw; w != &wwhead; w = w->ww_forw) { in wwiomux() 56 if (w->ww_obq < w->ww_obe) { in wwiomux() 61 if (w->ww_obq > w->ww_obp && !w->ww_stopped) in wwiomux() 103 for (w = wwhead.ww_forw; w != &wwhead; w = w->ww_forw) { in wwiomux() 159 w->ww_obq > w->ww_obp && !w->ww_stopped) { in wwiomux() 160 n = wwwrite(w, w->ww_obp, w->ww_obq - w->ww_obp); in wwiomux() 162 w->ww_obq = w->ww_obp = w->ww_ob; in wwiomux() 166 for (w = wwhead.ww_forw; w != &wwhead; w = w->ww_forw) in wwiomux() 167 if (w->ww_pty >= 0 && w->ww_obq > w->ww_obp && in wwiomux() 170 w->ww_obq - w->ww_obp); in wwiomux() [all …]
|
H A D | wwsize.c | 81 wwfree((char **)w->ww_win, w->ww_w.t); 97 w->ww_w.b = w->ww_w.t + nrow; 98 w->ww_w.r = w->ww_w.l + ncol; 103 w->ww_b.b = w->ww_b.t + nline; 104 w->ww_b.r = w->ww_b.l + ncol; 109 if ((i = w->ww_b.b - w->ww_w.b) < 0 || 117 w->ww_i.b = MIN(w->ww_w.b, wwnrow); 118 w->ww_i.r = MIN(w->ww_w.r, wwncol); 119 w->ww_i.nr = w->ww_i.b - w->ww_i.t; 120 w->ww_i.nc = w->ww_i.r - w->ww_i.l; [all …]
|
H A D | wwmove.c | 29 w->ww_w.t += dr; 39 w->ww_i.t = MAX(w->ww_w.t, 0); 40 w->ww_i.b = MIN(w->ww_w.b, wwnrow); 41 w->ww_i.nr = w->ww_i.b - w->ww_i.t; 42 w->ww_i.l = MAX(w->ww_w.l, 0); 43 w->ww_i.r = MIN(w->ww_w.r, wwncol); 44 w->ww_i.nc = w->ww_i.r - w->ww_i.l; 50 for (i = w->ww_w.t; i < w->ww_w.b; i++) 54 for (i = w->ww_w.t; i < w->ww_w.b; i++) 58 for (i = w->ww_i.t; i < w->ww_i.b; i++) { [all …]
|
H A D | wwcursor.c | 17 wwcursor(w, on) in wwcursor() argument 18 register struct ww *w; in wwcursor() 32 win = &w->ww_win[w->ww_cur.r][w->ww_cur.c]; 34 if (w->ww_cur.r < w->ww_i.t || w->ww_cur.r >= w->ww_i.b 35 || w->ww_cur.c < w->ww_i.l || w->ww_cur.c >= w->ww_i.r) 37 if (wwsmap[w->ww_cur.r][w->ww_cur.c] == w->ww_index) { 39 w->ww_nvis[w->ww_cur.r]++; 41 w->ww_nvis[w->ww_cur.r]--; 42 wwns[w->ww_cur.r][w->ww_cur.c].c_m ^= wwcursormodes; 60 wwcursor(w, 0); [all …]
|
H A D | wwdelete.c | 20 wwdelete(w) in wwdelete() argument 21 register struct ww *w; in wwdelete() 25 for (i = w->ww_i.t; i < w->ww_i.b; i++) { 31 for (j = w->ww_i.l; j < w->ww_i.r; j++) 50 w->ww_i.t, w->ww_i.b, w->ww_i.l, w->ww_i.r); 52 w->ww_back->ww_forw = w->ww_forw; 53 w->ww_forw->ww_back = w->ww_back; 54 w->ww_forw = w->ww_back = 0; 58 register struct ww *w; in wwdelete1() 71 if ((w = w->ww_forw) == &wwhead) [all …]
|
H A D | wwclose.c | 17 wwclose(w) in wwclose() argument 18 register struct ww *w; in wwclose() 21 if (w->ww_pty >= 0) 25 wwfree((char **)w->ww_win, w->ww_w.t); 26 wwfree((char **)w->ww_buf, w->ww_b.t); 27 if (w->ww_fmap != 0) 28 wwfree((char **)w->ww_fmap, w->ww_w.t); 29 free((char *)(w->ww_nvis + w->ww_w.t)); 30 if (w->ww_ob != 0) 31 free(w->ww_ob); [all …]
|
H A D | wwmisc.c | 22 wwvisible(w) in wwvisible() argument 23 register struct ww *w; in wwvisible() 28 for (i = w->ww_i.t; i < w->ww_i.b; i++) 29 nvis += w->ww_nvis[i]; 30 if (w->ww_hascursor 31 && w->ww_cur.r >= w->ww_i.t && w->ww_cur.r < w->ww_i.b 32 && w->ww_cur.c >= w->ww_i.l && w->ww_cur.c < w->ww_i.r 33 && wwsmap[w->ww_cur.r][w->ww_cur.c] == w->ww_index) 35 return nvis == w->ww_i.nr * w->ww_i.nc;
|
H A D | lcmd2.c | 68 waitnl(w); 69 closeiwin(w); 121 waitnl(w); 122 closeiwin(w); 183 waitnl(w); 184 closeiwin(w); 199 waitnl(w); 200 closeiwin(w); 203 printvar(w, r) in printvar() argument 282 waitnl(w); [all …]
|
H A D | cmd.c | 90 c_move(w); in docmd() 94 movewin(w, w->ww_alt.t, w->ww_alt.l); in docmd() 98 c_size(w); in docmd() 102 sizewin(w, w->ww_alt.nr, w->ww_alt.nc); in docmd() 201 w = cmdwin; in getwin() 205 w = boxwin; in getwin() 209 w = selwin; in getwin() 212 if (w == 0) in getwin() 216 return w; in getwin() 219 checkproc(w) [all …]
|
H A D | wwpty.c | 21 wwgetpty(w) in wwgetpty() argument 22 register struct ww *w; in wwgetpty() 34 w->ww_ttyname[_PT] = 'p'; 35 w->ww_ttyname[_PQRS] = c; 36 w->ww_ttyname[_0_9] = '0'; 40 w->ww_ttyname[_PT] = 'p'; 41 w->ww_ttyname[_0_9] = *p; 42 if ((w->ww_pty = open(w->ww_ttyname, 2)) < 0) 44 w->ww_ttyname[_PT] = 't'; 46 (void) close(w->ww_pty); [all …]
|
H A D | wwunframe.c | 17 wwunframe(w) in wwunframe() argument 18 register struct ww *w; in wwunframe() 22 for (i = w->ww_i.t; i < w->ww_i.b; i++) { 24 register char *win = w->ww_win[i]; 25 register char *fmap = w->ww_fmap ? w->ww_fmap[i] : 0; 30 for (j = w->ww_i.l; j < w->ww_i.r; j++) { 36 if (smap[j] == w->ww_index) { 44 w->ww_nvis[i] = 0; 47 if (w->ww_forw != &wwhead) 48 wwdelete1(w->ww_forw, [all …]
|
H A D | cmd2.c | 79 register struct ww *w; in c_help() local 81 if ((w = openiwin(wwnrow - 3, "Help")) == 0) { in c_help() 89 closeiwin(w); in c_help() 92 help_print(w, name, list) in help_print() argument 93 register struct ww *w; in help_print() 97 wwprintf(w, "%s:\n\n", name); 99 switch (more(w, 0)) { 101 wwputs(*list++, w); 102 wwputc('\n', w); 105 wwprintf(w, "%s: (continued)\n\n", name); [all …]
|
H A D | cmd7.c | 22 c_size(w) in c_size() argument 33 wwbox(boxwin, w->ww_w.t - 1, w->ww_w.l - 1, 34 row - w->ww_w.t + 3, col - w->ww_w.l + 3); 38 switch (getpos(&row, &col, w->ww_w.t, w->ww_w.l, 58 sizewin(w, row - w->ww_w.t + 1, col - w->ww_w.l + 1); 81 wwcursor(w, 0); in c_yank() 88 switch (getpos(&row1, &col1, w->ww_i.t, w->ww_i.l, in c_yank() 89 w->ww_i.b - 1, w->ww_i.r - 1)) { in c_yank() 110 switch (getpos(&row2, &col2, w->ww_i.t, w->ww_i.l, in c_yank() 111 w->ww_i.b - 1, w->ww_i.r - 1)) { in c_yank() [all …]
|
/original-bsd/sys/netinet/ |
H A D | in_cksum.c | 28 register u_short *w; local 57 w = (u_short *)((char *)w + 1); 72 w = (u_short *)((char *)w + 1); 81 sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3]; 82 sum += w[4]; sum += w[5]; sum += w[6]; sum += w[7]; 83 sum += w[8]; sum += w[9]; sum += w[10]; sum += w[11]; 84 sum += w[12]; sum += w[13]; sum += w[14]; sum += w[15]; 85 w += 16; 89 sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3]; 90 w += 4; [all …]
|
/original-bsd/lib/libc/stdio/ |
H A D | fvwrite.c | 66 p += w; 67 len -= w; 93 COPY(w); 100 w = (*fp->_write)(fp->_cookie, p, w); 105 w = len; 106 COPY(w); 110 p += w; 111 len -= w; 139 w = (*fp->_write)(fp->_cookie, p, w); 143 w = s; [all …]
|
/original-bsd/old/roff/common_source/ |
H A D | n8.c | 191 w--; in suffix() 201 w--; in suffix() 243 int *w; in chkvow() 245 while(--w >= wdstart)if(vowel(*w & CMASK))return(w); 260 w--; in digram() 261 while((++w < hyend) && (w < (wdend-1))) { in digram() 263 if (w == wdstart)val *= dilook('a',*w,bxh); in digram() 264 else if(w == wdstart+1)val *= dilook(*(w-1),*w,bxxh); in digram() 265 else val *= dilook(*(w-1),*w,xxh); in digram() 266 val *= dilook(*w, *(w+1), xhx); in digram() [all …]
|
/original-bsd/sys/i386/stand/ |
H A D | dlbl.c | 21 struct disklabel w; member 34 xx.w.dk_magic = 0xabc; in main() 35 xx.w.dk_type = 1; in main() 36 xx.w.dk_secsize = 512; in main() 37 xx.w.dk_nsectors = 17; in main() 38 xx.w.dk_ntracks = 8; in main() 49 xx.w.dk_name[0]= 'a'; in main() 50 xx.w.dk_name[1]= 'b'; in main() 51 xx.w.dk_name[2]= 'c'; in main() 52 xx.w.dk_name[3]= '\0'; in main() [all …]
|
/original-bsd/usr.bin/f77/libF77/ |
H A D | bit.c | 18 long bis_(n, w) in bis_() argument 19 long *n, *w; in bis_() 22 *w |= (1L << (*n)); 25 long bic_(n, w) in bic_() argument 26 long *n, *w; in bic_() 32 long bit_(n, w) in bit_() argument 33 long *n, *w; in bit_() 40 setbit_(n, w, s) in setbit_() argument 41 long *n, *w, *s; in setbit_() 44 bis_(n, w); [all …]
|
/original-bsd/usr.bin/struct/struct/ |
H A D | 2.head.c | 18 #define ANC(v,w) (ntobef[v] <= ntobef[w] && ntoaft[v] <= ntoaft[w]) /* reflexive ancestor */ argument 58 if (DEFINED(w)) 59 merge(w,v,head); 78 VERT w,y, *head; in merge() 81 if (w == y) return; 90 t = w; 91 w = head[w]; 96 if (ANC(w,y)) 103 min = w; 104 w = head[w]; [all …]
|
H A D | 4.brace.c | 18 VERT w; local 25 for (w = LCHILD(v,i); DEFINED(w); w = RSIB(w)) 26 endif = ndbrace(w); 46 VERT w; local 47 w = LCHILD(v,ch); 48 if (!DEFINED(w)) 50 if (NTYPE(w) == ITERVX) 53 if (LABEL(NXT(w))) 56 return(compound(w,0)); 58 else if (DEFINED(RSIB(w))) [all …]
|
/original-bsd/usr.bin/finger/ |
H A D | sprint.c | 36 register WHERE *w; in sflag_print() local 68 for (w = pn->whead; w != NULL; w = w->next) { in sflag_print() 72 if (!w->loginat) { in sflag_print() 76 (void)putchar(w->info == LOGGEDIN && !w->writable ? in sflag_print() 78 if (*w->tty) in sflag_print() 80 w->tty[0] != 't' || w->tty[1] != 't' || in sflag_print() 81 w->tty[2] != 'y' ? w->tty : w->tty + 3); in sflag_print() 85 stimeprint(w); in sflag_print() 89 p = ctime(&w->loginat); in sflag_print() 108 stimeprint(w) in stimeprint() argument [all …]
|
/original-bsd/sys/netns/ |
H A D | ns_cksum.c | 57 w = (u_short *)(1 + (char *)w); 78 sum += w[0]; sum += sum; sum += w[1]; sum += sum; 79 sum += w[2]; sum += sum; sum += w[3]; sum += sum; 80 sum += w[4]; sum += sum; sum += w[5]; sum += sum; 81 sum += w[6]; sum += sum; sum += w[7]; sum += sum; 83 sum += w[8]; sum += sum; sum += w[9]; sum += sum; 88 w += 16; 93 sum += w[0]; sum += sum; sum += w[1]; sum += sum; 94 sum += w[2]; sum += sum; sum += w[3]; sum += sum; 96 w += 4; [all …]
|