Home
last modified time | relevance | path

Searched refs:w (Results 1 – 25 of 1372) sorted by relevance

12345678910>>...55

/titanic_44/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dnewwin.c72 WINDOW *w; in __m_newwin() local
127 w = (WINDOW *) calloc(1, sizeof (*w)); in __m_newwin()
128 if (w == NULL) in __m_newwin()
131 w->_first = (short *) calloc((size_t) (nlines + nlines), in __m_newwin()
132 sizeof (*w->_first)); in __m_newwin()
133 if (w->_first == NULL) in __m_newwin()
136 w->_last = &w->_first[nlines]; in __m_newwin()
138 w->_line = (cchar_t **) calloc((size_t) nlines, sizeof (*w->_line)); in __m_newwin()
139 if (w->_line == NULL) in __m_newwin()
143 (void) setcchar(&w->_bg, L" ", WA_NORMAL, 0, (void *) 0); in __m_newwin()
[all …]
H A Dwscrl.c57 wscrl(WINDOW *w, int n) in wscrl() argument
61 if (!(w->_flags & W_CAN_SCROLL)) in wscrl()
67 if (w->_parent) { in wscrl()
74 for (row = w->_top; row < w->_bottom; row++) { in wscrl()
75 if (row < w->_bottom - n) { in wscrl()
76 if (!w->_line[row+n][0]._f) { in wscrl()
81 (void) __m_cc_erase(w, row + n, in wscrl()
88 first = __m_cc_first(w, row + n, in wscrl()
89 w->_maxx - 1); in wscrl()
90 save = w->_line[row + n][first]; in wscrl()
[all …]
H A Dwinsdel.c62 winsdelln(WINDOW *w, int n) in winsdelln() argument
67 if (w->_maxy < w->_cury + abs(n)) in winsdelln()
68 n = (w->_maxy - w->_cury + 1) * (n < 0 ? -1 : 1); in winsdelln()
73 (void) __m_ptr_move((void **) w->_line, w->_maxy, in winsdelln()
74 w->_cury, w->_cury - (n + 1), w->_maxy); in winsdelln()
77 row = w->_maxy + n; in winsdelln()
80 (void) __m_ptr_move((void **) w->_line, w->_maxy, in winsdelln()
81 w->_maxy - n, w->_maxy - 1, w->_cury); in winsdelln()
84 row = w->_cury; in winsdelln()
88 (void) __m_cc_erase(w, row, 0, row + abs(n) - 1, w->_maxx - 1); in winsdelln()
[all …]
H A Dgetwin.c54 get_cc(WINDOW *w, char *mbs, FILE *fp) in get_cc() argument
66 if (wattr_set(w, at, co, (void *) 0) == ERR) in get_cc()
69 if (mvwaddstr(w, y, x, mbs) == ERR) in get_cc()
72 (void) wstandend(w); in get_cc()
81 WINDOW *w; in getwin() local
92 if ((w = newwin(my, mx, by, bx)) == NULL) in getwin()
98 &w->_top, &w->_bottom, &w->_vmin, &w->_vtime, &flags, in getwin()
99 &w->_fg._at, &w->_fg._co); in getwin()
103 w->_flags &= ~W_CONFIG_MASK; in getwin()
104 w->_flags |= flags; in getwin()
[all …]
H A Dwbrdr_st.c56 wborder_set(WINDOW *w, const cchar_t *ls, const cchar_t *rs, in wborder_set() argument
64 x = w->_curx; in wborder_set()
65 y = w->_cury; in wborder_set()
67 oflags = w->_flags & (W_FLUSH | W_SYNC_UP); in wborder_set()
68 w->_flags &= ~(W_FLUSH | W_SYNC_UP); in wborder_set()
71 (void) wmove(w, 0, 0); in wborder_set()
72 (void) wvline_set(w, ls, w->_maxy); in wborder_set()
73 (void) wmove(w, 0, w->_maxx-1); in wborder_set()
74 (void) wvline_set(w, rs, w->_maxy); in wborder_set()
77 (void) wmove(w, 0, 1); in wborder_set()
[all …]
H A Dwrefresh.c58 wrefresh(WINDOW *w) in wrefresh() argument
62 if (w == curscr) in wrefresh()
65 value = wnoutrefresh(w); in wrefresh()
80 wnoutrefresh(WINDOW *w) in wnoutrefresh() argument
86 if (w == stdscr) in wnoutrefresh()
89 value = (w->_flags & W_IS_PAD) ? ERR : OK; in wnoutrefresh()
97 for (wy = 0, ny = w->_begy; wy < w->_maxy; ++wy, ++ny) { in wnoutrefresh()
99 if (w->_last[wy] <= w->_first[wy]) in wnoutrefresh()
102 wx = w->_first[wy]; in wnoutrefresh()
103 nx = w->_begx + wx; in wnoutrefresh()
[all …]
H A Dwins_wch.c58 __m_cc_ins(WINDOW *w, int y, int x, const cchar_t *cc) in __m_cc_ins() argument
63 if ((width = __m_cc_width(cc)) <= 0 || w->_maxx < x + width) in __m_cc_ins()
66 x = __m_cc_first(w, y, x); in __m_cc_ins()
72 (void) __m_cc_erase(w, y, w->_maxx - width, y, w->_maxx - 1); in __m_cc_ins()
75 (void) memmove(&w->_line[y][x + width], &w->_line[y][x], in __m_cc_ins()
76 (w->_maxx - x - width) * sizeof (**w->_line)); in __m_cc_ins()
79 if (__m_cc_replace(w, y, x, cc, 0) != width) in __m_cc_ins()
83 if (x < w->_first[y]) in __m_cc_ins()
84 w->_first[y] = (short) x; in __m_cc_ins()
85 w->_last[y] = w->_maxx; in __m_cc_ins()
[all …]
H A Dwsyncup.c50 syncok(WINDOW *w, bool bf) in syncok() argument
52 w->_flags &= ~W_SYNC_UP; in syncok()
54 w->_flags |= W_SYNC_UP; in syncok()
60 wsyncup(WINDOW *w) in wsyncup() argument
65 for (p = w->_parent; p != NULL; w = p, p = w->_parent) { in wsyncup()
67 for (py = w->_begy - p->_begy, y = 0; y < w->_maxy; ++y, ++py) { in wsyncup()
68 if (0 <= w->_last[y]) { in wsyncup()
69 p->_first[py] = w->_begx + w->_first[y]; in wsyncup()
70 p->_last[py] = w->_begx + w->_last[y]; in wsyncup()
77 wcursyncup(WINDOW *w) in wcursyncup() argument
[all …]
H A Dm_cc.c144 __m_touch_locs(WINDOW *w, int row, int firstCol, int lastCol) in __m_touch_locs() argument
146 if (w) { in __m_touch_locs()
147 if (firstCol < w->_first[row]) in __m_touch_locs()
148 w->_first[row] = (short)firstCol; in __m_touch_locs()
149 if (lastCol > w->_last[row]) in __m_touch_locs()
150 w->_last[row] = (short)lastCol; in __m_touch_locs()
464 __m_cc_first(WINDOW *w, int y, int x) in __m_cc_first() argument
468 for (lp = w->_line[y]; 0 < x; --x) { in __m_cc_first()
480 __m_cc_next(WINDOW *w, int y, int x) in __m_cc_next() argument
484 for (lp = w->_line[y]; ++x < w->_maxx; ) { in __m_cc_next()
[all …]
/titanic_44/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dnewwin.c66 WINDOW *w; local
118 w = (WINDOW *) calloc(1, sizeof *w);
119 if (w == (WINDOW *) 0)
122 w->_first = (short *) calloc(
123 (size_t) (nlines + nlines), sizeof *w->_first
125 if (w->_first == (short *) 0)
128 w->_last = &w->_first[nlines];
130 w->_line = (cchar_t **) calloc((size_t) nlines, sizeof *w->_line);
131 if (w->_line == (cchar_t **) 0)
136 &w->_bg, M_MB_L(" "), WA_NORMAL, 0, (void *) 0
[all …]
H A Dwinsdel.c57 winsdelln(w, n) in winsdelln() argument
58 WINDOW *w; in winsdelln()
64 __m_trace("winsdelln(%p, %d)", w, n);
68 if (w->_maxy < w->_cury + abs(n))
69 n = (w->_maxy - w->_cury + 1) * (n < 0 ? -1 : 1);
75 (void **) w->_line, w->_maxy,
76 w->_cury, w->_cury - (n+1), w->_maxy
80 row = w->_maxy + n;
84 (void **) w->_line, w->_maxy,
85 w->_maxy - n, w->_maxy-1, w->_cury
[all …]
H A Dgetwin.c48 get_cc(w, mbs, fp) in get_cc() argument
49 WINDOW *w; in get_cc()
63 if (wattr_set(w, at, co, (void *) 0) == ERR)
66 if (mvwaddstr(w, y, x, mbs) == ERR)
69 (void) wstandend(w);
79 WINDOW *w; local
94 if ((w = newwin(my, mx, by, bx)) == (WINDOW *) 0)
100 &w->_top, &w->_bottom, &w->_vmin, &w->_vtime, &flags,
101 &w->_fg._at, &w->_fg._co
106 w->_flags &= ~W_CONFIG_MASK;
[all …]
H A Dwbrdr_st.c53 wborder_set(w, ls, rs, ts, bs, tl, tr, bl, br) in wborder_set() argument
54 WINDOW *w; in wborder_set()
63 w, ls, rs, ts, bs, tl, tr, bl, br
68 x = w->_curx;
69 y = w->_cury;
71 oflags = w->_flags & (W_FLUSH | W_SYNC_UP);
72 w->_flags &= ~(W_FLUSH | W_SYNC_UP);
75 (void) wmove(w, 0, 0);
76 (void) wvline_set(w, ls, w->_maxy);
77 (void) wmove(w, 0, w->_maxx-1);
[all …]
H A Dwrefresh.c53 wrefresh(w) in wrefresh() argument
54 WINDOW *w; in wrefresh()
59 __m_trace("wrefresh(%p)", w);
61 if (w == curscr)
64 value = wnoutrefresh(w);
79 wnoutrefresh(w) in wnoutrefresh() argument
80 WINDOW *w; in wnoutrefresh()
86 __m_trace("wnoutrefresh(%p)", w);
89 value = (w->_flags & W_IS_PAD) ? ERR : OK;
96 for (wy = 0, ny = w->_begy; wy < w->_maxy; ++wy, ++ny) {
[all …]
H A Dwins_wch.c52 __m_cc_ins(w, y, x, cc) in __m_cc_ins() argument
53 WINDOW *w; in __m_cc_ins()
61 if ((width = __m_cc_width(cc)) <= 0 || w->_maxx < x + width)
64 x = __m_cc_first(w, y, x);
68 &w->_line[y][x + width], &w->_line[y][x],
69 (w->_maxx - x - width) * sizeof **w->_line
73 if (__m_cc_replace(w, y, x, cc, 0) != width)
77 if (x < w->_first[y])
78 w->_first[y] = x;
79 w->_last[y] = w->_maxx;
[all …]
H A Dwsyncup.c47 syncok(WINDOW *w, bool bf) in syncok() argument
50 __m_trace("syncok(%p, %d)", w, bf); in syncok()
53 w->_flags &= ~W_SYNC_UP; in syncok()
55 w->_flags |= W_SYNC_UP; in syncok()
61 wsyncup(WINDOW *w) in wsyncup() argument
67 __m_trace("wsyncup(%p)", w); in wsyncup()
70 for (p = w->_parent; p != (WINDOW *) 0; w = p, p = w->_parent) { in wsyncup()
72 for (py = w->_begy - p->_begy, y = 0; y < w->_maxy; ++y, ++py) { in wsyncup()
73 if (0 <= w->_last[y]) { in wsyncup()
74 p->_first[py] = w->_begx + w->_first[y]; in wsyncup()
[all …]
H A Dwdelch.c53 wdelch(w) in wdelch() argument
54 WINDOW *w; in wdelch()
60 __m_trace("wdelch(%p) at (%d,%d)", w, w->_cury, w->_curx);
63 y = w->_cury;
64 x = w->_curx;
66 next = __m_cc_next(w, y, x);
67 x = __m_cc_first(w, y, x);
70 width = __m_cc_width(&w->_line[y][x]);
74 &w->_line[y][x], &w->_line[y][next],
75 (w->_maxx - next) * sizeof **w->_line
[all …]
H A Dwscrl.c52 wscrl(w, n) in wscrl() argument
53 WINDOW *w; in wscrl()
59 __m_trace("wscrl(%p, %d)", w, n);
70 start = w->_top;
71 finish = w->_top + n - 1;
72 to = w->_bottom;
74 start = w->_bottom + n;
75 finish = w->_bottom - 1;
76 to = w->_top;
80 if (__m_cc_erase(w, start, 0, finish, w->_maxx-1) == -1)
[all …]
H A Dwhln_st.c47 whline_set(w, h, n) in whline_set() argument
48 WINDOW *w; in whline_set()
55 __m_trace("whline_set(%p, %p, %d)", w, h, n);
61 n += w->_curx;
62 if (w->_maxx < n)
63 n = w->_maxx;
65 for (x = w->_curx; x < n; x += width)
66 if ((width = __m_cc_replace(w, w->_cury, x, h, 0)) == -1)
69 WSYNC(w);
71 return __m_return_code("whline_set", WFLUSH(w));
[all …]
/titanic_44/usr/src/cmd/sendmail/libsm/
H A Dfvwrite.c66 register int w, s; variable
95 w = (*fp->f_write)(fp, p, SM_MIN(len, SM_IO_BUFSIZ));
96 if (w <= 0)
98 if (w == 0 && errno == 0)
100 if (IS_IO_ERROR(fd, w, timeout))
105 w = 0;
109 p += w;
110 len -= w;
112 } while ((uio->uio_resid -= w) != 0);
158 w = fp->f_w;
[all …]
/titanic_44/usr/src/common/mpi/
H A Dmp_gf2m-priv.h63 #define gf2m_SQR1(w) \ argument
64 mp_gf2m_sqr_tb[(w) >> 28 & 0xF] << 24 | mp_gf2m_sqr_tb[(w) >> 24 & 0xF] << 16 | \
65 mp_gf2m_sqr_tb[(w) >> 20 & 0xF] << 8 | mp_gf2m_sqr_tb[(w) >> 16 & 0xF]
66 #define gf2m_SQR0(w) \ argument
67 mp_gf2m_sqr_tb[(w) >> 12 & 0xF] << 24 | mp_gf2m_sqr_tb[(w) >> 8 & 0xF] << 16 | \
68 mp_gf2m_sqr_tb[(w) >> 4 & 0xF] << 8 | mp_gf2m_sqr_tb[(w) & 0xF]
70 #define gf2m_SQR1(w) \ argument
71 mp_gf2m_sqr_tb[(w) >> 60 & 0xF] << 56 | mp_gf2m_sqr_tb[(w) >> 56 & 0xF] << 48 | \
72 mp_gf2m_sqr_tb[(w) >> 52 & 0xF] << 40 | mp_gf2m_sqr_tb[(w) >> 48 & 0xF] << 32 | \
73 mp_gf2m_sqr_tb[(w) >> 44 & 0xF] << 24 | mp_gf2m_sqr_tb[(w) >> 40 & 0xF] << 16 | \
[all …]
/titanic_44/usr/src/cmd/mdb/common/mdb/
H A Dmdb_whatis.c73 mdb_whatis_search(mdb_whatis_t *w, uintptr_t base, size_t size) in mdb_whatis_search() argument
80 return (bsearch(range, w->w_addrs, w->w_naddrs, sizeof (*w->w_addrs), in mdb_whatis_search()
89 mdb_whatis_overlaps(mdb_whatis_t *w, uintptr_t base, size_t size) in mdb_whatis_overlaps() argument
94 if (whatis_debug && w->w_magic != WHATIS_MAGIC) { in mdb_whatis_overlaps()
100 if (w->w_done || size == 0) in mdb_whatis_overlaps()
109 f = mdb_whatis_search(w, base, size); in mdb_whatis_overlaps()
113 cur = offset = f - w->w_addrs; in mdb_whatis_overlaps()
120 if ((w->w_flags & WHATIS_ALL) || !w->w_addrfound[cur]) in mdb_whatis_overlaps()
127 if (w->w_addrs[cur] < base) in mdb_whatis_overlaps()
130 if (!w->w_addrfound[cur]) in mdb_whatis_overlaps()
[all …]
/titanic_44/usr/src/cmd/troff/
H A Dn8.c184 tchar *w; in exword() local
193 w = wdstart; in exword()
194 while (*e && w <= hyend && (*e & 0177) == maplow(cbits(*w))) { in exword()
196 w++; in exword()
199 if (w-1 == hyend || (w == wdend && maplow(cbits(*w)) == 's')) { in exword()
200 w = wdstart; in exword()
203 *hyp++ = w; in exword()
206 w++; in exword()
225 tchar *w; in suffix() local
242 w = hyend - 1; in suffix()
[all …]
/titanic_44/usr/src/lib/libm/common/C/
H A Dcosh.c67 double t, w; in cosh() local
69 w = fabs(x); in cosh()
70 if (!finite(w)) in cosh()
71 return (w * w); in cosh()
72 if (w < 0.3465) { in cosh()
73 t = expm1(w); in cosh()
74 w = 1.0 + t; in cosh()
75 if (w != 1.0) in cosh()
76 w = 1.0 + (t * t) / (w + w); in cosh()
77 return (w); in cosh()
[all …]
/titanic_44/usr/src/lib/libm/common/Q/
H A Dcoshl.c88 long double t, w; in coshl() local
90 w = fabsl(x); in coshl()
91 if (!finitel(w)) in coshl()
92 return (w + w); /* x is INF or NaN */ in coshl()
93 if (w < thr1) { in coshl()
94 t = w < tinyl ? w : expm1l(w); in coshl()
95 w = one + t; in coshl()
96 if (w != one) in coshl()
97 w = one + (t * t) / (w + w); in coshl()
98 return (w); in coshl()
[all …]

12345678910>>...55