/dragonfly/contrib/less/ |
H A D | linenum.c | 264 POSITION cpos; in find_linenum() local 314 for (linenum = p->line, cpos = p->pos; cpos < pos; linenum++) in find_linenum() 319 cpos = forw_raw_line(cpos, (char **)NULL, (int *)NULL); in find_linenum() 331 add_lnum(linenum, cpos); in find_linenum() 336 if (cpos > pos) in find_linenum() 345 for (linenum = p->line, cpos = p->pos; cpos > pos; linenum--) in find_linenum() 350 cpos = back_raw_line(cpos, (char **)NULL, (int *)NULL); in find_linenum() 375 POSITION cpos; in find_pos() local 406 cpos = forw_raw_line(cpos, (char **)NULL, (int *)NULL); in find_pos() 424 cpos = back_raw_line(cpos, (char **)NULL, (int *)NULL); in find_pos() [all …]
|
H A D | screen.c | 1531 COORD cpos; in _settextposition() local 1535 cpos.X = csbi.srWindow.Left + (col - 1); in _settextposition() 1536 cpos.Y = csbi.srWindow.Top + (row - 1); in _settextposition() 1537 SetConsoleCursorPosition(con_out, cpos); in _settextposition() 2373 COORD cpos; in clear_eol() 2379 cpos.X = scr.dwCursorPosition.X; in clear_eol() 2380 cpos.Y = scr.dwCursorPosition.Y; in clear_eol() 2383 scr.dwSize.X - cpos.X, cpos, &nchars); in clear_eol() 2385 scr.dwSize.X - cpos.X, cpos, &nchars); in clear_eol()
|
/dragonfly/sys/vfs/ntfs/ |
H A D | ntfs_compr.c | 53 int pos, cpos; in ntfs_uncompblock() local 68 cpos = 2; in ntfs_uncompblock() 70 while ((cpos < len + 3) && (pos < NTFS_COMPBLOCK_SIZE)) { in ntfs_uncompblock() 71 ctag = cbuf[cpos++]; in ntfs_uncompblock() 79 boff = -1 - (GET_UINT16(cbuf + cpos) >> dshift); in ntfs_uncompblock() 80 blen = 3 + (GET_UINT16(cbuf + cpos) & lmask); in ntfs_uncompblock() 85 cpos += 2; in ntfs_uncompblock() 87 buf[pos++] = cbuf[cpos++]; in ntfs_uncompblock()
|
/dragonfly/libexec/ftpd/ |
H A D | ftpcmd.y | 1295 static int cpos; 1327 if (cpos == 0) 1328 cpos = 4; 1329 c = cbuf[cpos]; 1333 cbuf[cpos] = c; 1345 cpos++; 1351 c = cbuf[cpos]; 1379 cpos++; 1395 cpos += n - 1; 1410 cpos++; [all …]
|
/dragonfly/bin/pax/ |
H A D | ar_io.c | 443 off_t cpos; in ar_set_wr() local 462 (ftruncate(arfd, cpos) < 0)) { in ar_set_wr() 589 off_t cpos; in ar_write() local 622 cpos -= (off_t)res; in ar_write() 623 if (ftruncate(arfd, cpos) < 0) in ar_write() 707 off_t cpos; in ar_rdsync() local 792 off_t cpos; in ar_fow() local 825 *skipped = arsb.st_size - cpos; in ar_fow() 851 off_t cpos; in ar_rev() local 899 if ((cpos -= sksz) < (off_t)0L) { in ar_rev() [all …]
|
/dragonfly/usr.bin/sort/ |
H A D | coll.c | 261 size_t cpos = 0; in skip_fields_to_start() local 264 while (cpos < BWSLEN(s)) { in skip_fields_to_start() 267 isblank = iswblank(BWS_GET(s, cpos)); in skip_fields_to_start() 272 return (cpos); in skip_fields_to_start() 275 ++cpos; in skip_fields_to_start() 279 return (cpos); in skip_fields_to_start() 281 size_t cpos = 0; in skip_fields_to_start() local 283 while (cpos < BWSLEN(s)) { in skip_fields_to_start() 287 return (cpos + 1); in skip_fields_to_start() 289 ++cpos; in skip_fields_to_start() [all …]
|
/dragonfly/contrib/wpa_supplicant/src/eap_server/ |
H A D | eap_server_psk.c | 221 const u8 *cpos; in eap_psk_process_2() local 228 cpos = eap_hdr_validate(EAP_VENDOR_IETF, EAP_TYPE_PSK, respData, in eap_psk_process_2() 230 if (cpos == NULL || left < sizeof(*resp)) { in eap_psk_process_2() 234 resp = (const struct eap_psk_hdr_2 *) cpos; in eap_psk_process_2() 235 cpos = (const u8 *) (resp + 1); in eap_psk_process_2() 239 data->id_p = os_memdup(cpos, left); in eap_psk_process_2()
|
/dragonfly/games/backgammon/common_source/ |
H A D | fancy.c | 193 bsect(int b, int rpos, int cpos, int cnext) in bsect() argument 205 if (n < 6 && cpos < 54) /* position cursor at start */ in bsect() 206 curmove(rpos, cpos + 1); in bsect() 208 curmove(rpos, cpos); in bsect() 223 if (cpos == 54) { /* home pos */ in bsect() 229 if (cpos < 54) { /* not home */ in bsect()
|
/dragonfly/contrib/gdb-7/readline/ |
H A D | display.c | 1908 int cpos, dpos; /* current and desired cursor positions */ local 1912 cpos = _rl_last_c_pos; 1914 if (cpos == 0 && cpos == new) 1967 if (cpos == dpos) 1987 cpos = _rl_last_c_pos = 0; 1990 if (cpos < dpos) 2013 for (i = cpos; i < dpos; i++) 2024 for (i = cpos; i < new; i++) 2034 else if (cpos > dpos) 2035 _rl_backspace (cpos - dpos);
|
/dragonfly/contrib/wpa_supplicant/src/eap_peer/ |
H A D | eap_psk.c | 92 const u8 *cpos; in eap_psk_process_1() local 96 cpos = eap_hdr_validate(EAP_VENDOR_IETF, EAP_TYPE_PSK, reqData, &len); in eap_psk_process_1() 97 hdr1 = (const struct eap_psk_hdr_1 *) cpos; in eap_psk_process_1() 98 if (cpos == NULL || len < sizeof(*hdr1)) { in eap_psk_process_1()
|
/dragonfly/contrib/mdocml/ |
H A D | man_macro.c | 206 int cline, cpos, la, nrew, target; in blk_close() local 264 cpos = man->last->pos; in blk_close() 284 blk_imp(man, ctok, cline, cpos, pos, buf); in blk_close()
|
/dragonfly/sys/vfs/nfs/ |
H A D | nfs_bio.c | 426 caddr_t cpos, epos; in nfs_bioread() local 438 cpos = bp->b_data + boff; in nfs_bioread() 440 while (cpos < epos && error == 0 && uio->uio_resid > 0) { in nfs_bioread() 441 dp = (struct nfs_dirent *)cpos; in nfs_bioread() 442 error = nfs_check_dirent(dp, (int)(epos - cpos)); in nfs_bioread() 449 cpos += dp->nfs_reclen; in nfs_bioread() 453 uio->uio_offset = old_off + cpos - in nfs_bioread()
|
H A D | nfs_serv.c | 2935 char *cpos, *cend, *rbuf; in nfsrv_readdir() local 3101 cpos = rbuf; in nfsrv_readdir() 3103 dp = (struct dirent *)cpos; in nfsrv_readdir() 3116 cpos = (char *)dp; in nfsrv_readdir() 3120 if (cpos >= cend || ncookies == 0) { in nfsrv_readdir() 3201 cpos = (char *)dp; in nfsrv_readdir() 3242 char *cpos, *cend, *rbuf; in nfsrv_readdirplus() local 3388 cpos = rbuf; in nfsrv_readdirplus() 3390 dp = (struct dirent *)cpos; in nfsrv_readdirplus() 3403 cpos = (char *)dp; in nfsrv_readdirplus() [all …]
|
/dragonfly/contrib/wpa_supplicant/src/rsn_supp/ |
H A D | tdls.c | 1792 const u8 *cpos; in wpa_tdls_process_tpk_m1() local 1812 cpos = buf; in wpa_tdls_process_tpk_m1() 1813 cpos += 1 /* pkt_type */ + 1 /* Category */ + 1 /* Action */; in wpa_tdls_process_tpk_m1() 1816 dtoken = *cpos++; /* dialog token */ in wpa_tdls_process_tpk_m1() 1861 peer->capability = WPA_GET_LE16(cpos); in wpa_tdls_process_tpk_m1() 1862 cpos += 2; in wpa_tdls_process_tpk_m1() 1864 ielen = len - (cpos - buf); /* start of IE in buf */ in wpa_tdls_process_tpk_m1() 1871 if (wpa_supplicant_parse_ies(cpos, ielen, &kde) < 0) in wpa_tdls_process_tpk_m1()
|
/dragonfly/sys/dev/misc/syscons/ |
H A D | syscons.c | 2250 int cpos; in scrn_update() local 2286 cpos = scp->cursor_pos; in scrn_update() 2297 (cpos != copos) && in scrn_update() 2298 (and_region(&s, &e, cpos, cpos) in scrn_update() 2375 if (cpos != copos) { in scrn_update() 2381 if (s <= e && and_region(&s, &e, cpos, cpos)) { in scrn_update() 2386 (*scp->rndr->blink_cursor)(scp, cpos, in scrn_update() 2387 sc_inside_cutmark(scp, cpos)); in scrn_update()
|
/dragonfly/contrib/cvs-1.12/lib/ |
H A D | regexec.c | 1934 int cpos; in check_dst_limits_calc_pos_1() local 1959 cpos = in check_dst_limits_calc_pos_1() 1962 if (cpos == -1 /* && (boundaries & 1) */) in check_dst_limits_calc_pos_1() 1964 if (cpos == 0 && (boundaries & 2)) in check_dst_limits_calc_pos_1()
|
/dragonfly/contrib/diffutils/lib/ |
H A D | regexec.c | 1922 int cpos; in check_dst_limits_calc_pos_1() local 1947 cpos = in check_dst_limits_calc_pos_1() 1950 if (cpos == -1 /* && (boundaries & 1) */) in check_dst_limits_calc_pos_1() 1952 if (cpos == 0 && (boundaries & 2)) in check_dst_limits_calc_pos_1()
|
/dragonfly/contrib/grep/lib/ |
H A D | regexec.c | 1901 int cpos; in check_dst_limits_calc_pos_1() local 1926 cpos = in check_dst_limits_calc_pos_1() 1929 if (cpos == -1 /* && (boundaries & 1) */) in check_dst_limits_calc_pos_1() 1931 if (cpos == 0 && (boundaries & 2)) in check_dst_limits_calc_pos_1()
|