| /src/usr.bin/m4/lib/ | 
| ohash_enum.c | 23 ohash_first(struct ohash *h, unsigned int *pos) 25 	*pos = 0;
 26 	return ohash_next(h, pos);
 30 ohash_next(struct ohash *h, unsigned int *pos)
 32 	for (; *pos < h->size; (*pos)++)
 33 		if (h->t[*pos].p != DELETED && h->t[*pos].p != NULL)
 34 			return __UNCONST(h->t[(*pos)++].p);
 
 | 
| /src/sys/arch/amiga/stand/bootblock/boot/ | 
| twiddle.c | 43 	static short int pos;  local in function:twiddle 45 	putchar(chars[pos++ & 3]);
 
 | 
| /src/sys/external/bsd/drm2/dist/drm/nouveau/include/nvif/ | 
| list.h | 300  * Loop through the list given by head and set pos to struct in the list. 311  * @param pos Iterator variable of the type of the list elements.
 316 #define list_for_each_entry(pos, head, member)				\
 317     for (pos = __container_of((head)->next, pos, member);		\
 318 	 &pos->member != (head);					\
 319 	 pos = __container_of(pos->member.next, pos, member))
 328 #define list_for_each_entry_safe(pos, tmp, head, member)
 [all...]
 | 
| /src/sys/lib/libsa/ | 
| twiddle.c | 54 	static unsigned int pos;  local in function:twiddle 57 		if ((pos & TWIDDLE_MASK) == 0) {
 58 			putchar(TWIDDLE_CHARS[(pos >> TWIDDLE_DELAY) & 3]);
 61 		pos++;
 
 | 
| loadfile_ecoff.c | 57 	paddr_t minp = ~0, maxp = 0, pos;  local in function:loadfile_coff 88 			pos = coff->a.text_start;
 89 			if (minp > pos)
 90 				minp = pos;
 91 			pos += coff->a.tsize;
 92 			if (maxp < pos)
 93 				maxp = pos;
 113 			pos = coff->a.data_start;
 114 			if (minp > pos)
 115 				minp = pos;
 [all...]
 | 
| /src/lib/libc/stdio/ | 
| ftell.c | 56 	off_t pos;  local in function:ftell 73 		pos = fp->_offset;
 75 		pos = (*fp->_seek)(fp->_cookie, (off_t)0, SEEK_CUR);
 76 		if (pos == -1L) {
 78 			return (long)pos;
 87 		pos -= fp->_r;
 89 			pos -= fp->_ur;
 96 		pos += fp->_p - fp->_bf._base;
 100 	if (__long_overflow(pos)) {
 105 	return (long)pos;
 [all...]
 | 
| ftello.c | 57 	off_t pos;  local in function:__weak_alias 74 		pos = fp->_offset;
 76 		pos = (*fp->_seek)(fp->_cookie, (off_t)0, SEEK_CUR);
 77 		if (pos == (off_t)-1) {
 79 			return pos;
 88 		pos -= fp->_r;
 90 			pos -= fp->_ur;
 97 		pos += fp->_p - fp->_bf._base;
 100 	return pos;
 
 | 
| fgetpos.c | 52 fgetpos(FILE * __restrict fp, fpos_t * __restrict pos) 57 	_DIAGASSERT(pos != NULL);
 62 			pos->_mbstate_in  = wcio->wcio_mbstate_in;
 64 			pos->_mbstate_out = wcio->wcio_mbstate_out;
 66 	return (pos->_pos = ftello(fp)) == (off_t)-1;
 
 | 
| fsetpos.c | 55 fsetpos(FILE * __restrict fp, const fpos_t * __restrict pos) 60 	_DIAGASSERT(pos != NULL);
 65 			wcio->wcio_mbstate_in  = pos->_mbstate_in;
 67 			wcio->wcio_mbstate_out = pos->_mbstate_out;
 69 	return fseeko(fp, pos->_pos, SEEK_SET) == (off_t)-1;
 
 | 
| /src/distrib/utils/more/ | 
| prim.c | 71 	off_t pos;  local in function:eof_check 80 	pos = position(BOTTOM_PLUS_ONE);
 81 	if (pos == NULL_POSITION || pos == ch_length())
 102  * Display n lines, scrolling forward, starting at position pos in the
 107 forw(n, pos, only_last)
 110 	off_t pos;
 144 		if (pos != position(BOTTOM_PLUS_ONE)) {
 146 			add_forw_pos(pos);
 159 		pos = forw_line(pos)
 259  off_t pos;  local in function:forward
 289  off_t pos;  local in function:backward
 337  off_t pos;  local in function:jump_forw
 407  off_t pos, len;  local in function:jump_percent
 571  off_t pos;  local in function:gomark
 617  off_t pos, linepos;  local in function:search
 [all...]
 | 
| linenum.c | 81 	off_t pos;			/* File position */  member in struct:linenum 131 	anchor.pos = (off_t)0;
 150 	p->gap = p->next->pos - p->prev->pos;
 155  * The specified position (pos) should be the file position of the
 159 add_lnum(line, pos)
 161 	off_t pos;
 173 	for (p = anchor.next;  p != &anchor && p->pos < pos;  p = p->next)
 204 	new->pos = pos
 387  off_t pos;  local in function:currline
 [all...]
 | 
| position.c | 92 add_forw_pos(pos) 93 	off_t pos;
 102 	table[sc_height - 1] = pos;
 109 add_back_pos(pos)
 110 	off_t pos;
 119 	table[0] = pos;
 160 onscreen(pos)
 161 	off_t pos;
 165 	if (pos < table[0])
 168 		if (pos < table[i]
 [all...]
 | 
| /src/games/robots/ | 
| rnd_pos.c | 54 	static COORD pos;  local in function:rnd_pos 58 		pos.y = arc4random_uniform(Y_FIELDSIZE - 1) + 1;
 59 		pos.x = arc4random_uniform(X_FIELDSIZE - 1) + 1;
 61 	} while (Field[pos.y][pos.x] != 0);
 63 	return &pos;
 
 | 
| /src/usr.bin/nc/ | 
| atomicio.c | 44 	size_t pos = 0;  local in function:atomicio 50 	while (n > pos) {
 51 		res = (f) (fd, s + pos, n - pos);
 63 			return pos;
 65 			pos += (size_t)res;
 68 	return (pos);
 
 | 
| /src/games/tetris/ | 
| shapes.c | 82 fits_in(const struct shape *shape, int pos) 86 	if (board[pos] || board[pos + *o++] || board[pos + *o++] ||
 87 	    board[pos + *o])
 97 place(const struct shape *shape, int pos, int onoff)
 102 	board[pos] = onoff;
 103 	board[pos + *o++] = onoff;
 104 	board[pos + *o++] = onoff;
 105 	board[pos + *o] = onoff
 [all...]
 | 
| /src/usr.sbin/ypserv/revnetgroup/ | 
| parse_netgroup.c | 184 	char *pos, *gpos;  local in function:parse_netgrp 212 	pos = lp->l_line;
 214 	while (pos != NULL && *pos != '\0') {
 215 		if (*pos == '(') {
 220 			pos++;
 221 			gpos = strsep(&pos, ")");
 274 			spos = strsep(&pos, ", \t");
 279 		if (pos != NULL)
 280 			while (*pos == ' ' || *pos == ',' || *pos == '\t'
 293  char *pos, *spos, *linep = NULL, *olinep = NULL;  local in function:read_for_group
 [all...]
 | 
| /src/lib/libc/compat/stdio/ | 
| compat_fgetpos.c | 58 fgetpos(FILE * __restrict fp, off_t * __restrict pos) 61 	_DIAGASSERT(pos != NULL);
 63 	return (*pos = ftello(fp)) == (off_t)-1;
 
 | 
| compat_fsetpos.c | 62 fsetpos(FILE * __restrict iop, const off_t * __restrict pos) 65 	_DIAGASSERT(pos != NULL);
 67 	return fseeko(iop, *pos, SEEK_SET) == (off_t)-1;
 
 | 
| /src/sys/miscfs/procfs/ | 
| procfs_limit.c | 91 	size_t bufsize, pos, i;  local in function:procfs_dolimit 107 	pos = 0;
 109 		pos += snprintf(buffer + pos, bufsize - pos, "%20.20s ",
 111 		pos += prl(buffer + pos, bufsize - pos, rl[i].rlim_cur, ' ');
 112 		pos += prl(buffer + pos, bufsize - pos, rl[i].rlim_max, '\n')
 134  size_t bufsize, pos;  local in function:procfs_dolimits
 [all...]
 | 
| /src/lib/libc/citrus/ | 
| citrus_region.h | 70 _citrus_region_offset(const struct _citrus_region *r, size_t pos) 72 	return (void *)((uint8_t *)r->r_head + pos);
 76 _citrus_region_peek8(const struct _citrus_region *r, size_t pos)
 78 	return *(uint8_t *)_citrus_region_offset(r, pos);
 82 _citrus_region_peek16(const struct _citrus_region *r, size_t pos)
 85 	memcpy(&val, _citrus_region_offset(r, pos), (size_t)2);
 90 _citrus_region_peek32(const struct _citrus_region *r, size_t pos)
 93 	memcpy(&val, _citrus_region_offset(r, pos), (size_t)4);
 
 | 
| /src/sys/fs/ntfs/ | 
| ntfs_compr.c | 54 	int pos, cpos;  local in function:ntfs_uncompblock 70 	pos = 0;
 71 	while ((cpos < len + 3) && (pos < NTFS_COMPBLOCK_SIZE)) {
 73 		for (i = 0; (i < 8) && (pos < NTFS_COMPBLOCK_SIZE); i++) {
 75 				for (j = pos - 1, lmask = 0xFFF, dshift = 12;
 82 				for (j = 0; (j < blen) && (pos < NTFS_COMPBLOCK_SIZE); j++) {
 83 					dbuf[pos] = dbuf[pos + boff];
 84 					pos++;
 88 				dbuf[pos++] = cbuf[cpos++]
 [all...]
 | 
| /src/usr.bin/sort/ | 
| files.c | 93 	u_char *pos;  local in function:makeline 96 	pos = recbuf->data;
 108 		pos += osz;
 112 	while (pos < bufend) {
 115 			if (pos == recbuf->data) {
 122 		*pos++ = c;
 125 			recbuf->length = pos - recbuf->data;
 134 		osz = pos - recbuf->data;
 178 	u_char *end, *pos;  local in function:seq
 191 	pos = buf
 [all...]
 | 
| fields.c | 75 #define NEXTCOL(pos) {						\ 77 		while (BLANK & l_d_mask[*(++pos)]);		\
 78 	while ((*(pos+1) != '\0') && !((FLD_D | REC_D_F) & l_d_mask[*++pos]));\
 98 	u_char *lineend, *pos;  local in function:enterkey
 106 	pos = line_data - 1;
 112 		for (; (col < clpos->num) && (pos < lineend); col++) {
 113 			NEXTCOL(pos);
 115 		if (pos >= lineend)
 117 		clpos->start = SEP_FLAG ? pos + 1 : pos
 [all...]
 | 
| /src/games/hangman/ | 
| getword.c | 52 	long pos;  local in function:getword 56 		pos = (double) rand() / (RAND_MAX + 1.0) * (double) Dict_size;
 57 		fseek(inf, pos, SEEK_SET);
 
 | 
| /src/sys/external/bsd/drm2/dist/drm/amd/display/dc/inc/ | 
| vm_helper.h | 44 void vm_helper_mark_vmid_used(struct vm_helper *vm_helper, unsigned int pos, uint8_t hubp_idx); 
 |