Home
last modified time | relevance | path

Searched refs:sp (Results 76 – 100 of 705) sorted by relevance

12345678910>>...29

/dragonfly/contrib/nvi2/common/
H A Drecover.c171 rcv_init(SCR *sp) in rcv_init() argument
176 ep = sp->ep; in rcv_init()
199 sp->gp->scr_busy(sp, in rcv_init()
204 sp->gp->scr_busy(sp, NULL, BUSY_OFF); in rcv_init()
207 sp->gp->scr_busy(sp, NULL, BUSY_OFF); in rcv_init()
240 ep = sp->ep; in rcv_sync()
285 sp->gp->scr_busy(sp, in rcv_sync()
294 sp->gp->scr_busy(sp, NULL, BUSY_OFF); in rcv_sync()
336 gp = sp->gp; in rcv_mailfile()
367 ep = sp->ep; in rcv_mailfile()
[all …]
H A Doptions.h27 (sp)->gp->opts[(sp)->opts[(o)].o_cur.val].fld : \
54 #define O_CLR(sp, o) o_set(sp, o, 0, NULL, 0) argument
55 #define O_SET(sp, o) o_set(sp, o, 0, NULL, 1) argument
56 #define O_STR(sp, o) O_V(sp, o, o_cur.str) argument
57 #define O_VAL(sp, o) O_V(sp, o, o_cur.val) argument
58 #define O_ISSET(sp, o) O_VAL(sp, o) argument
64 #define O_D_CLR(sp, o) o_set(sp, o, OS_DEF, NULL, 0) argument
65 #define O_D_SET(sp, o) o_set(sp, o, OS_DEF, NULL, 1) argument
66 #define O_D_STR(sp, o) O_V(sp, o, o_def.str) argument
67 #define O_D_VAL(sp, o) O_V(sp, o, o_def.val) argument
[all …]
H A Dput.c44 cbp = sp->gp->dcbp; in put()
46 msgq(sp, M_ERR, in put()
52 CBNAME(sp, cbp, name); in put()
55 KEY_NAME(sp, name)); in put()
77 if (db_last(sp, &lno)) in put()
165 sp->rptlchange = lno; in put()
166 ++sp->rptlines[L_CHANGED]; in put()
202 sp->rptlchange = lno; in put()
203 ++sp->rptlines[L_CHANGED]; in put()
214 ++sp->rptlines[L_ADDED]; in put()
[all …]
/dragonfly/contrib/nvi2/ex/
H A Dex_global.c40 return (ex_g_setup(sp, in ex_global()
51 ex_v(SCR *sp, EXCMD *cmdp) in ex_v() argument
75 NEEDFILE(sp, cmdp); in ex_g_setup()
125 if (sp->re == NULL) { in ex_g_setup()
132 re_compile(sp, sp->re, sp->re_len, in ex_g_setup()
137 if (re_compile(sp, ptrn, t - ptrn, &sp->re, in ex_g_setup()
138 &sp->re_len, &sp->re_c, RE_C_SEARCH)) in ex_g_setup()
147 re = &sp->re_c; in ex_g_setup()
150 abs.lno = sp->lno; in ex_g_setup()
151 abs.cno = sp->cno; in ex_g_setup()
[all …]
H A Dex_argv.c47 exp = EXP(sp); in argv_init()
49 argv_alloc(sp, 1); in argv_init()
67 exp = EXP(sp); in argv_exp0()
95 exp = EXP(sp); in argv_exp1()
162 if (opts_empty(sp, O_SHELL, 1) || opts_empty(sp, O_SHELLMETA, 1)) in argv_exp2()
286 exp = EXP(sp); in argv_flt_ex()
320 exp = EXP(sp); in argv_flt_user()
372 exp = EXP(sp); in argv_fexp()
468 exp = EXP(sp); in argv_alloc()
527 exp = EXP(sp); in argv_free()
[all …]
H A Dex_filter.c57 if (opts_empty(sp, O_SHELL, 0)) in ex_filter()
80 msgq(sp, M_SYSERR, "pipe"); in ex_filter()
86 msgq(sp, M_SYSERR, "pipe"); in ex_filter()
97 msgq(sp, M_SYSERR, "vfork"); in ex_filter()
134 name = O_STR(sp, O_SHELL); in ex_filter()
140 msgq_str(sp, M_SYSERR, O_STR(sp, O_SHELL), "execl: %s"); in ex_filter()
215 F_SET(sp->ep, F_MULTILOCK); in ex_filter()
255 if (proc_wait(sp, in ex_filter()
262 del(sp, fm, tm, 1))) { in ex_filter()
276 F_CLR(sp->ep, F_MULTILOCK); in ex_filter()
[all …]
H A Dex_display.c47 return (bdisplay(sp)); in ex_display()
55 return (ex_sdisplay(sp)); in ex_display()
82 bdisplay(SCR *sp) in bdisplay() argument
86 if (SLIST_EMPTY(sp->gp->cutq) && sp->gp->dcbp == NULL) { in bdisplay()
96 db(sp, cbp, NULL); in bdisplay()
97 if (INTERRUPTED(sp)) in bdisplay()
105 db(sp, cbp, NULL); in bdisplay()
106 if (INTERRUPTED(sp)) in bdisplay()
127 gp = sp->gp; in db()
133 (void)ex_puts(sp, KEY_NAME(sp, *p)); in db()
[all …]
H A Dex_edit.c45 ex_edit(SCR *sp, EXCMD *cmdp) in ex_edit() argument
61 frp = sp->frp; in ex_edit()
77 set_alt_name(sp, np); in ex_edit()
100 F_SET(sp, SC_FSWITCH); in ex_edit()
114 if (screen_init(sp->gp, sp, &new)) in ex_N_edit()
125 new->ep = sp->ep; in ex_N_edit()
129 new->frp->flags = sp->frp->flags; in ex_N_edit()
131 new->lno = sp->lno; in ex_N_edit()
132 new->cno = sp->cno; in ex_N_edit()
151 sp->nextdisp = new; in ex_N_edit()
[all …]
H A Dex_move.c31 ex_copy(SCR *sp, EXCMD *cmdp) in ex_copy() argument
40 NEEDFILE(sp, cmdp); in ex_copy()
69 sp->lno = m.lno + (cnt - 1); in ex_copy()
70 sp->cno = 0; in ex_copy()
83 ex_move(SCR *sp, EXCMD *cmdp) in ex_move() argument
93 NEEDFILE(sp, cmdp); in ex_move()
127 (void)log_mark(sp, lmp); in ex_move()
150 if (db_delete(sp, fl)) in ex_move()
169 if (db_delete(sp, fl)) in ex_move()
173 FREE_SPACEW(sp, bp, blen); in ex_move()
[all …]
/dragonfly/contrib/nvi2/vi/
H A Dvi.h280 #define SIZE_HMAP(sp) (VIP(sp)->srows + 1) argument
289 #define _HMAP(sp) (VIP(sp)->h_smap) argument
291 #define _TMAP(sp) (VIP(sp)->t_smap) argument
322 ((O_ISSET(sp, O_NUMBER) ? (sp)->cols - O_NUMBER_LENGTH : (sp)->cols))
330 ((sp)->t_maxrows < (sp)->rows ? (sp)->t_maxrows : (sp)->rows - 1)
336 #define IS_SMALL(sp) ((sp)->t_minrows != (sp)->t_maxrows) argument
337 #define IS_ONELINE(sp) ((sp)->rows == 1) argument
340 ((sp)->t_rows == 1 ? 1 : (sp)->t_rows / 2)
358 ((sp)->rows != O_VAL(sp, O_LINES))
361 ((sp)->cols != O_VAL(sp, O_COLUMNS))
[all …]
H A Dv_util.c34 v_eof(SCR *sp, MARK *mp) in v_eof() argument
39 v_emsg(sp, NULL, VIM_EOF); in v_eof()
41 if (db_last(sp, &lno)) in v_eof()
44 v_emsg(sp, NULL, VIM_EOF); in v_eof()
57 v_eol(SCR *sp, MARK *mp) in v_eol() argument
62 v_emsg(sp, NULL, VIM_EOL); in v_eol()
80 v_nomove(SCR *sp) in v_nomove() argument
92 v_sof(SCR *sp, MARK *mp) in v_sof() argument
107 v_sol(SCR *sp) in v_sol() argument
138 msgq(sp, M_ERR, in v_emsg()
[all …]
H A Dv_word.c107 if (cs_init(sp, &cs)) in fword()
127 if (cs_fblank(sp, &cs)) in fword()
141 if (cs_next(sp, &cs)) in fword()
173 if (cs_next(sp, &cs)) in fword()
267 if (cs_init(sp, &cs)) in eword()
277 if (cs_next(sp, &cs)) in eword()
282 if (cs_fblank(sp, &cs)) in eword()
294 if (cs_next(sp, &cs)) in eword()
413 if (cs_init(sp, &cs)) in bword()
424 if (cs_prev(sp, &cs)) in bword()
[all …]
/dragonfly/contrib/nvi2/cl/
H A Dcl_screen.c51 gp = sp->gp; in cl_screen()
52 clp = CLP(sp); in cl_screen()
53 win = CLSP(sp) ? CLSP(sp) : stdscr; in cl_screen()
58 resizeterm(O_VAL(sp, O_LINES), O_VAL(sp, O_COLUMNS))) && in cl_screen()
95 (void)wmove(win, RLNO(sp, sp->rows), 0); in cl_screen()
98 (void)wmove(win, RLNO(sp, sp->rows) - 1, 0); in cl_screen()
187 gp = sp->gp; in cl_vi_init()
188 clp = CLP(sp); in cl_vi_init()
196 msgq(sp, M_ERR, in cl_vi_init()
262 (void)sig_init(sp->gp, sp); in cl_vi_init()
[all …]
H A Dcl_term.c84 cl_term_init(SCR *sp) in cl_term_init() argument
212 if (F_ISSET(sp, SC_VI) && !F_ISSET(sp, SC_SCR_VI)) in cl_fmap()
214 if (F_ISSET(sp, SC_EX) && !F_ISSET(sp, SC_SCR_EX)) in cl_fmap()
265 clp = CLP(sp); in cl_optchange()
290 if (sp->frp != NULL && sp->frp->name != NULL) in cl_optchange()
291 (void)cl_rename(sp, sp->frp->name, 1); in cl_optchange()
316 if (sp != NULL) in cl_omesg()
321 if (sp != NULL) in cl_omesg()
333 if (sp != NULL) in cl_omesg()
340 if (sp != NULL) in cl_omesg()
[all …]
/dragonfly/games/tetris/
H A Dscores.c164 for (i = 0, sp = &scores[0]; i < nscores; i++, sp++) { in savescore()
165 if (sp->hs_level != level || strcmp(sp->hs_name, me) != 0) in savescore()
170 sp->hs_score * sp->hs_level); in savescore()
183 strlcpy(sp->hs_name, me, sizeof sp->hs_name); in savescore()
324 i++, sp++; in checkscores()
361 for (i = 0, sp = scores; i < nscores; i++, sp++) { in showscores()
363 sp->hs_time = 0; in showscores()
373 for (i = 0, sp = scores; i < nscores; sp += n) { in showscores()
407 sp = &hs[row]; in printem()
411 sp->hs_score * sp->hs_level, in printem()
[all …]
/dragonfly/usr.bin/ctags/
H A DC.c93 *sp = EOS; in c_entries()
95 sp = tok; in c_entries()
229 sp = tok; in c_entries()
242 sp = tok; in c_entries()
336 *sp = EOS; in hash_entry()
338 *sp++ = c; in hash_entry()
340 *sp = EOS; in hash_entry()
352 *sp = EOS; in hash_entry()
364 *sp = EOS; in hash_entry()
407 --sp; in str_entry()
[all …]
/dragonfly/contrib/gcc-8.0/libgomp/
H A Dsplay-tree.c72 if (sp->root == NULL) in splay_tree_splay()
79 n = sp->root; in splay_tree_splay()
141 if (sp->root) in splay_tree_insert()
153 node->left = sp->root; in splay_tree_insert()
159 node->right = sp->root; in splay_tree_insert()
164 sp->root = node; in splay_tree_insert()
175 if (sp->root && splay_compare (&sp->root->key, key) == 0) in splay_tree_remove()
186 sp->root = left; in splay_tree_remove()
198 sp->root = right; in splay_tree_remove()
210 if (sp->root && splay_compare (&sp->root->key, key) == 0) in splay_tree_lookup()
[all …]
/dragonfly/contrib/ncurses/ncurses/base/
H A Dnew_pair.c71 prev_len(SCREEN *sp, int pair) in prev_len() argument
84 next_len(SCREEN *sp, int pair) in next_len() argument
120 next_len(sp, 0), in dumpit()
121 prev_len(sp, 0), in dumpit()
124 if (next_len(sp, 0) != prev_len(sp, 0)) { in dumpit()
152 if (sp != 0 && in _nc_find_color_pair()
184 if (sp && sp->_ordered_pairs && sp->_pair_alloc) { in _nc_free_ordered_pairs()
187 tdelete(&sp->_color_pairs[n], &sp->_ordered_pairs, compare_data); in _nc_free_ordered_pairs()
201 ReservePairs(sp, pair); in _nc_reset_color_pair()
227 sp->_pairs_used++; in _nc_set_color_pair()
[all …]
/dragonfly/contrib/gmp/
H A Dnextprime.c63 sp = ps->s + d; in gmp_nextprime()
64 while (*sp != 0) in gmp_nextprime()
65 sp++; in gmp_nextprime()
83 for (sp = ps->s; sp < ps->s + SIEVESIZE; sp++) in gmp_nextprime()
84 *sp = 0; in gmp_nextprime()
100 sp = ps->s + pi; in gmp_nextprime()
103 *sp = 1, sp += 3; in gmp_nextprime()
111 sp = ps->s + pi; in gmp_nextprime()
114 *sp = 1, sp += 5; in gmp_nextprime()
125 *sp = 1, sp += 7; in gmp_nextprime()
[all …]
/dragonfly/games/sail/
H A Ddr_2.c68 foreachship(sp) { in thinkofgrapples()
69 if (sp->file->captain[0] || sp->file->dir == 0) in thinkofgrapples()
74 if (sp->file->struck || sp->file->captured != 0) in thinkofgrapples()
84 grap(sp, sq); in thinkofgrapples()
99 foreachship(sp) { in checkup()
113 send_dir(sp, 0); in checkup()
114 if (snagged(sp)) in checkup()
134 struct ship *sp; in prizecheck() local
136 foreachship(sp) { in prizecheck()
139 if (sp->file->struck || sp->file->dir == 0) in prizecheck()
[all …]
/dragonfly/usr.sbin/installer/dfuibe_installer/
H A Dfn_subpart_hammer.c98 struct subpartition *sp; in create_subpartitions() local
166 sp != NULL; sp = subpartition_next(sp)) { in create_subpartitions()
178 sp != NULL; sp = subpartition_next(sp)) { in create_subpartitions()
230 sp != NULL; sp = subpartition_next(sp)) { in create_subpartitions()
241 sp != NULL; sp = subpartition_next(sp)) { in create_subpartitions()
409 struct subpartition *sp; in check_capacity() local
418 sp != NULL; sp = subpartition_next(sp)) { in check_capacity()
424 sp != NULL; sp = subpartition_next(sp)) { in check_capacity()
620 struct subpartition *sp; in populate_create_subpartitions_form() local
631 sp != NULL; sp = subpartition_next(sp)) { in populate_create_subpartitions_form()
[all …]
H A Dfn_subpart_ufs.c96 struct subpartition *sp; in create_subpartitions() local
148 sp != NULL; sp = subpartition_next(sp)) { in create_subpartitions()
160 sp != NULL; sp = subpartition_next(sp)) { in create_subpartitions()
164 if (subpartition_is_swap(sp)) { in create_subpartitions()
201 sp != NULL; sp = subpartition_next(sp)) { in create_subpartitions()
212 sp != NULL; sp = subpartition_next(sp)) { in create_subpartitions()
213 if (subpartition_is_swap(sp) || subpartition_is_tmpfsbacked(sp)) { in create_subpartitions()
366 struct subpartition *sp; in check_capacity() local
371 sp != NULL; sp = subpartition_next(sp)) { in check_capacity()
569 struct subpartition *sp; in populate_create_subpartitions_form() local
[all …]
/dragonfly/sys/kern/
H A Dsubr_diskslice.c101 struct diskslice *sp; in dscheck() local
205 ops = sp->ds_ops; in dscheck()
324 struct diskslice *sp; in dsclose() local
388 lp = sp->ds_label; in dsioctl()
590 if (sp->ds_label.opaque && sp->ds_ops != ops) in dsioctl()
667 ops = sp->ds_ops; in dsioctl()
670 error = ops->op_writedisklabel(dev, ssp, sp, sp->ds_label); in dsioctl()
743 bzero(sp, nslices * sizeof *sp); in dsmakeslicestruct()
879 lp = sp->ds_label; in free_ds_label()
893 sp->ds_label = lp; in set_ds_label()
[all …]
/dragonfly/sys/dev/disk/iscsi/initiator/
H A Discsi_subr.c99 sdebug(1, "npdu_max=%d npdu_alloc=%d", sp->isc->npdu_max, sp->isc->npdu_alloc); in iscsi_r2t()
264 pdu_free(sp->isc, pq); in iscsi_requeue()
278 pdu_free(sp->isc, pq); in i_pdu_flush()
282 pdu_free(sp->isc, pq); in i_pdu_flush()
286 pdu_free(sp->isc, pq); in i_pdu_flush()
290 pdu_free(sp->isc, pq); in i_pdu_flush()
325 wakeup(&sp->rsp); in iscsi_cleanup()
431 sp->target_lun[sp->target_nluns++] = lun; in dwl()
445 isc_session_t *sp; in scsi_encap() local
459 sp->isc->npdu_max, sp->isc->npdu_alloc); in scsi_encap()
[all …]
/dragonfly/games/mille/
H A Dsave.c60 char *sp; in save() local
68 sp = NULL; in save()
77 sp = buf; in save()
83 sp = buf; in save()
97 ++sp; in save()
101 *sp = '\0'; in save()
126 for (sp = buf; *sp != '\n'; sp++) in save()
128 *sp = '\0'; in save()
144 char *sp; in rest_f() local
160 for (sp = buf; *sp != '\n'; sp++) in rest_f()
[all …]

12345678910>>...29