| /src/usr.bin/sort/ |
| append.c | 77 RECHEADER **cpos, **lastkey; local 82 for (cpos = lastkey; cpos-- > keylist;) { 83 crec = *cpos; 88 for (cpos = keylist; cpos < lastkey; cpos++) { 89 crec = *cpos;
|
| /src/external/bsd/less/dist/ |
| linenum.c | 266 POSITION cpos; local 316 for (linenum = p->line, cpos = p->pos; cpos < pos; linenum++) 321 cpos = forw_raw_line(cpos, (char **)NULL, (int *)NULL); 326 if (cpos == NULL_POSITION) 333 add_lnum(linenum, cpos); 338 if (cpos > pos) 347 for (linenum = p->line, cpos = p->pos; cpos > pos; linenum-- 377 POSITION cpos; local [all...] |
| screen.c | 1544 COORD cpos; local 1548 cpos.X = csbi.srWindow.Left + (col - 1); 1549 cpos.Y = csbi.srWindow.Top + (row - 1); 1550 SetConsoleCursorPosition(con_out, cpos); 2386 COORD cpos; 2392 cpos.X = scr.dwCursorPosition.X; 2393 cpos.Y = scr.dwCursorPosition.Y; 2396 scr.dwSize.X - cpos.X, cpos, &nchars); 2398 scr.dwSize.X - cpos.X, cpos, &nchars) [all...] |
| /src/sys/fs/ntfs/ |
| ntfs_compr.c | 54 int pos, cpos; local 69 cpos = 2; 71 while ((cpos < len + 3) && (pos < NTFS_COMPBLOCK_SIZE)) { 72 ctag = cbuf[cpos++]; 80 boff = -1 - (GET_UINT16(cbuf + cpos) >> dshift); 81 blen = 3 + (GET_UINT16(cbuf + cpos) & lmask); 86 cpos += 2; 88 dbuf[pos++] = cbuf[cpos++];
|
| /src/distrib/utils/more/ |
| linenum.c | 269 off_t cpos; local 319 for (lno = p->line, cpos = p->pos; cpos < pos; lno++) 324 cpos = forw_raw_line(cpos); 325 if (sigs || cpos == NULL_POSITION) 341 if (cpos > pos) 351 for (lno = p->line, cpos = p->pos; cpos > pos; lno--) 356 cpos = back_raw_line(cpos) [all...] |
| /src/libexec/ftpd/ |
| ftpcmd.y | 1502 static int cpos, state; 1523 cpos = cp - cmdp; 1524 if (cpos == 0) 1525 cpos = 4; 1526 c = cmdp[cpos]; 1527 cmdp[cpos] = '\0'; 1529 cmdp[cpos] = c; 1547 if (cmdp[cpos] == ' ') { 1548 cpos++; 1551 cp = &cmdp[cpos]; [all...] |
| /src/bin/pax/ |
| ar_io.c | 522 off_t cpos; local 540 if (((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0) || 541 (ftruncate(arfd, cpos) < 0)) { 819 off_t cpos; local 850 if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0) 852 cpos -= (off_t)res; 853 if (ftruncate(arfd, cpos) < 0) 947 off_t cpos; local 1014 if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0) 1016 mpos = fsbz - (cpos % (off_t)fsbz) 1050 off_t cpos; local 1116 off_t cpos; local [all...] |
| /src/sys/dev/isa/ |
| pcdisplay.c | 186 int cpos; local 207 cpos = pcdisplay_6845_read(ph, cursorh) << 8; 208 cpos |= pcdisplay_6845_read(ph, cursorl); 211 if (cpos < 0 || cpos >= pcdisplay_scr.nrows * pcdisplay_scr.ncols) 212 cpos = 0; 216 dc->pcs.cursorrow = cpos / pcdisplay_scr.ncols; 217 dc->pcs.cursorcol = cpos % pcdisplay_scr.ncols;
|
| ega.c | 338 int cpos; local 349 cpos = vga_6845_read(&vc->hdl, cursorh) << 8; 350 cpos |= vga_6845_read(&vc->hdl, cursorl); 353 if (cpos < 0 || cpos >= type->nrows * type->ncols) 354 cpos = 0; 364 cpos = 0; 368 scr->pcs.cursorrow = cpos / type->ncols; 369 scr->pcs.cursorcol = cpos % type->ncols;
|
| /src/external/gpl2/xcvs/dist/src/ |
| admin.c | 235 size_t clen = 1024, wlen = 1024, len, cpos = 0, i; local 247 if (clen - cpos < len + 2) { 251 memcpy(&cmd[cpos], word, len); 252 cpos += len; 253 cmd[cpos++] = ' '; 255 if (cpos != 0) 256 cmd[cpos - 1] = '\0'; 258 cmd[cpos] = '\0';
|
| /src/sys/arch/atari/dev/ |
| ite_et.c | 453 u_long cpos; local 468 cpos = RCrt(ba, CRT_ID_START_ADDR_LOW) & 0xff; 469 cpos |= (RCrt(ba, CRT_ID_START_ADDR_HIGH) & 0xff) << 8; 470 cpos += ip->curx + ip->cury * ip->cols; 471 WCrt(ba, CRT_ID_CURSOR_LOC_LOW, cpos & 0xff); 472 WCrt(ba, CRT_ID_CURSOR_LOC_HIGH, (cpos >> 8) & 0xff); 473 WCrt(ba, CTR_ID_EXT_START, (cpos >> (16-2)) & 0x0c);
|
| /src/games/backgammon/common_source/ |
| fancy.c | 196 * bsect (b,rpos,cpos,cnext) 198 * position, "rpos" is the row to start printing, "cpos" is the column to 200 * and negative if it starts at the bottom. The value of "cpos" is checked 205 bsect(int b, int rpos, int cpos, int cnext) 217 if (n < 6 && cpos < 54) /* position cursor at start */ 218 curmove(rpos, cpos + 1); 220 curmove(rpos, cpos); 235 if (cpos == 54) { /* home pos */ 241 if (cpos < 54) { /* not home */
|
| /src/external/bsd/wpa/dist/src/eap_server/ |
| eap_server_psk.c | 221 const u8 *cpos; local 228 cpos = eap_hdr_validate(EAP_VENDOR_IETF, EAP_TYPE_PSK, respData, 230 if (cpos == NULL || left < sizeof(*resp)) { 234 resp = (const struct eap_psk_hdr_2 *) cpos; 235 cpos = (const u8 *) (resp + 1); 239 data->id_p = os_memdup(cpos, left);
|
| /src/sys/kern/ |
| vfs_getcwd.c | 202 char *cpos; local 205 cpos = dirbuf; 211 dp = (struct dirent *) cpos; 240 cpos += reclen;
|
| /src/external/gpl3/binutils/dist/gas/config/ |
| tc-mmix.h | 61 #define md_parse_name(name, exp, mode, cpos) \
|
| /src/external/gpl3/binutils.old/dist/gas/config/ |
| tc-mmix.h | 61 #define md_parse_name(name, exp, mode, cpos) \
|
| /src/sys/arch/arm/samsung/ |
| exynos_soc.c | 247 char *cpos; local 252 cpos = sysctl_cpu_freqs_txt; 255 snprintf(cpos, 6, "%d ", val); 256 cpos += (val < 1000) ? 4 : 5; 258 *cpos = 0;
|
| /src/external/bsd/mdocml/dist/ |
| man_macro.c | 206 int cline, cpos, la, nrew, target; local 264 cpos = man->last->pos; 284 blk_imp(man, ctok, cline, cpos, pos, buf);
|
| /src/external/bsd/wpa/dist/src/eap_peer/ |
| eap_psk.c | 92 const u8 *cpos; local 96 cpos = eap_hdr_validate(EAP_VENDOR_IETF, EAP_TYPE_PSK, reqData, &len); 97 hdr1 = (const struct eap_psk_hdr_1 *) cpos; 98 if (cpos == NULL || len < sizeof(*hdr1)) {
|
| /src/sys/fs/nfs/server/ |
| nfs_nfsdport.c | 1578 char *cpos, *cend, *rbuf; local 1710 cpos = rbuf; 1712 dp = (struct dirent *)cpos; 1722 while (cpos < cend && ncookies > 0 && 1725 cpos += dp->d_reclen; 1726 dp = (struct dirent *)cpos; 1730 if (cpos >= cend || ncookies == 0) { 1753 while (cpos < cend && ncookies > 0) { 1787 cpos += dp->d_reclen; 1788 dp = (struct dirent *)cpos; 1822 char *cpos, *cend, *rbuf; local [all...] |
| /src/sys/dev/ic/ |
| vga.c | 444 int cpos; local 460 cpos = vga_6845_read(&vc->hdl, cursorh) << 8; 461 cpos |= vga_6845_read(&vc->hdl, cursorl); 464 if (cpos < 0 || cpos >= type->nrows * type->ncols) 465 cpos = 0; 480 cpos = 0; 487 scr->pcs.cursorrow = cpos / type->ncols; 488 scr->pcs.cursorcol = cpos % type->ncols;
|
| vga_raster.c | 441 int cpos; local 459 cpos = vga_6845_read(vh, cursorh) << 8; 460 cpos |= vga_6845_read(vh, cursorl); 463 if (cpos < 0 || cpos >= type->nrows * type->ncols) 464 cpos = 0; 495 cpos = 0; 501 scr->cursorrow = cpos / type->ncols; 502 scr->cursorcol = cpos % type->ncols;
|
| /src/sys/nfs/ |
| nfs_serv.c | 2682 char *cpos, *cend, *cp2, *rbuf; local 2813 cpos = rbuf; 2815 dp = (struct dirent *)cpos; 2818 while (cpos < cend && ncookies > 0 && 2820 cpos += dp->d_reclen; 2821 dp = (struct dirent *)cpos; 2825 if (cpos >= cend || ncookies == 0) { 2845 while (cpos < cend && ncookies > 0) { 2905 cpos += dp->d_reclen; 2906 dp = (struct dirent *)cpos; 2945 char *cpos, *cend, *cp2, *rbuf; local [all...] |
| /src/external/bsd/wpa/dist/src/rsn_supp/ |
| tdls.c | 1949 const u8 *cpos; local 1970 cpos = buf; 1971 cpos += 1 /* pkt_type */ + 1 /* Category */ + 1 /* Action */; 1974 dtoken = *cpos++; /* dialog token */ 2019 peer->capability = WPA_GET_LE16(cpos); 2020 cpos += 2; 2022 ielen = len - (cpos - buf); /* start of IE in buf */ 2029 if (wpa_supplicant_parse_ies(cpos, ielen, &kde) < 0)
|
| /src/lib/libform/ |
| internals.c | 1504 unsigned int tab, cpos, len; local 1637 for (i = 0, cpos = cur->start_char; i < min(slen, flen); 1638 i++, str++, cpos++) 1643 cpos + cur->start_char, c); 1646 tab = add_tab(form, row, cpos, 1655 tab = add_tab(form, row, cpos, ' '); 1660 tab = add_tab(form, row, cpos, ' ');
|