Searched defs:pos (Results 1 - 25 of 359) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libc/port/stdio/
H A Dfpos.c38 fgetpos(FILE *stream, fpos_t *pos) argument
40 if ((*pos = (fpos_t)ftello(stream)) == (fpos_t)-1)
46 fsetpos(FILE *stream, const fpos_t *pos) argument
48 if (fseeko(stream, (off_t)*pos, SEEK_SET) != 0)
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dfpos.c76 register off_t pos; local
119 pos = fp->f_lseekoff;
123 pos = (*fp->f_seek)(fp, (off_t) 0, SM_IO_SEEK_CUR);
124 if (pos == -1L)
135 pos -= fp->f_r;
137 pos -= fp->f_ur;
147 pos += fp->f_p - fp->f_bf.smb_base;
154 return pos;
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dresetlexer.c6 long pos = 0; variable
14 pos = 0;
/illumos-gate/usr/src/lib/libast/common/stdio/
H A Dfgetpos.c31 fgetpos(Sfio_t* f, fpos_t* pos) argument
33 STDIO_INT(f, "fgetpos", int, (Sfio_t*, fpos_t*), (f, pos))
35 return (pos->_sf_offset = sfseek(f, (Sfoff_t)0, SEEK_CUR)) >= 0 ? 0 : -1;
41 fgetpos64(Sfio_t* f, fpos64_t* pos) argument
43 STDIO_INT(f, "fgetpos64", int, (Sfio_t*, fpos64_t*), (f, pos))
45 return (pos->_sf_offset = sfseek(f, (Sfoff_t)0, SEEK_CUR)) >= 0 ? 0 : -1;
H A Dfsetpos.c31 fsetpos(Sfio_t* f, const fpos_t* pos) argument
33 STDIO_INT(f, "fsetpos", int, (Sfio_t*, const fpos_t*), (f, pos))
35 return sfseek(f, (Sfoff_t)pos->_sf_offset, SF_PUBLIC) == (Sfoff_t)pos->_sf_offset ? 0 : -1;
41 fsetpos64(Sfio_t* f, const fpos64_t* pos) argument
43 STDIO_INT(f, "fsetpos64", int, (Sfio_t*, const fpos64_t*), (f, pos))
45 return sfseek(f, (Sfoff_t)pos->_sf_offset, SF_PUBLIC) == (Sfoff_t)pos->_sf_offset ? 0 : -1;
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/nc/
H A Datomicio.c47 size_t pos = 0; local
53 while (n > pos) {
54 res = (f) (fd, s + pos, n - pos);
66 return (pos);
68 pos += (size_t)res;
71 return (pos);
/illumos-gate/usr/src/uts/common/tnf/
H A Dtrace_init.c112 TNFW_B_POS *pos; local
124 pos = &ops->wcb.tnfw_w_tag_pos;
125 TNFW_B_COMMIT(pos);
126 pos = &ops->wcb.tnfw_w_pos;
127 TNFW_B_ROLLBACK(pos);
/illumos-gate/usr/src/lib/libast/common/hash/
H A Dhashwalk.c41 Hash_position_t* pos; local
43 if (!(pos = hashscan(tab, flags)))
46 while (b = hashnext(pos))
49 hashdone(pos);
H A Dhashscan.c35 * Hash_position_t* pos;
37 * pos = hashscan(tab, flags);
38 * while (b = hashnext(&pos)) ...;
39 * hashdone(pos);
43 * return pos for scan on table
49 register Hash_position_t* pos; local
53 if (!(pos = newof(0, Hash_position_t, 1, 0))) return(0);
54 pos->tab = tab->root->last.table = tab;
55 pos->bucket = ∅
56 pos
87 hashnext(register Hash_position_t* pos) argument
131 hashdone(register Hash_position_t* pos) argument
[all...]
/illumos-gate/usr/src/cmd/mandoc/
H A Dmandoc_xr.h23 int pos; member in struct:mandoc_xr
H A Dtbl_int.h38 int pos; /* Column number in input file. */ member in struct:tbl_node
H A Ddba_write.c59 long pos; local
61 if ((pos = ftell(ofp)) == -1)
63 if (pos >= INT32_MAX) {
65 err(1, "ftell = %ld", pos);
67 return pos;
71 dba_seek(int32_t pos) argument
73 if (fseek(ofp, pos, SEEK_SET) == -1)
74 err(1, "fseek(%d)", pos);
80 int32_t pos; local
82 pos
94 int32_t i, pos; local
[all...]
/illumos-gate/usr/src/boot/lib/libstand/
H A Dtwiddle.c50 static u_int callercnt, globalcnt, pos; local
60 putchar("|/-\\"[pos++ & 3]);
/illumos-gate/usr/src/test/libc-tests/tests/stdio/
H A Dftell_ungetc.c26 check_pos(FILE *f, long pos) argument
36 if (l != pos) {
38 "expected %ld", l, pos);
41 if (off != pos) {
43 "expected %ld", off, pos);
46 if (off64 != pos) {
48 "expected %ld", off64, pos);
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dconvtime.c50 bool pos = true; local
57 pos = false;
101 return pos ? r : -r;
/illumos-gate/usr/src/cmd/hal/hald-runner/
H A Dutils.c61 gsize pos; local
68 while (g_io_channel_read_line_string(io, str, &pos, NULL) == G_IO_STATUS_NORMAL && (i++ < 128)) {
72 g_string_erase(str, pos, 1);
/illumos-gate/usr/src/cmd/audio/utilities/
H A DAudioPipe.cc104 Double& pos) // start position (updated)
118 err = AudioUnixfile::ReadData((void*)tbuf, remain, pos);
122 (void) SetReadPosition(pos, Absolute);
143 Double& pos) // start position (updated)
148 err = AudioUnixfile::WriteData(buf, len, pos);
152 (void) SetWritePosition(pos, Absolute);
101 ReadData( void* buf, size_t& len, Double& pos) argument
140 WriteData( void* buf, size_t& len, Double& pos) argument
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/
H A Ddapl_ring_buffer_util.c205 DAPL_ATOMIC pos; local
208 pos = rbuf->head;
209 if (((pos + 1) & rbuf->lim) != rbuf->tail) {
210 rbuf->base[pos] = entry;
211 rbuf->head = (pos + 1) & rbuf->lim;
239 DAPL_ATOMIC pos; local
243 pos = rbuf->tail;
244 rbuf->tail = (pos + 1) & rbuf->lim;
246 return (rbuf->base[pos]);
/illumos-gate/usr/src/lib/libast/common/port/
H A Dastcopy.c55 off_t pos; local
67 if (!fstat(rfd, &st) && S_ISREG(st.st_mode) && (pos = lseek(rfd, (off_t)0, 1)) != ((off_t)-1))
69 if (pos >= st.st_size) return(0);
70 mapsize = st.st_size - pos;
72 if (mapsize >= BUFSIZ * 2 && (mapbuf = (char*)mmap(NiL, mapsize, PROT_READ, MAP_SHARED, rfd, pos)) != ((caddr_t)-1))
/illumos-gate/usr/src/tools/smatch/src/
H A Dcheck_macros.c22 static void match_inside(struct expression *expr, struct position pos) argument
27 if (positions_eq(expr->pos, pos))
29 if (positions_eq(expr->unop->pos, pos))
33 name = get_macro_name(pos);
39 static void match_one_side(struct expression *expr, struct position pos, int op) argument
46 if (positions_eq(expr->right->pos, pos))
48 if (positions_eq(expr->left->pos, po
[all...]
H A Dtoken_store.c33 struct position pos; member in struct:line
54 static void find_line(struct position pos) argument
58 if (pos.line == cursor->pos.line)
60 if (pos.line < cursor->pos.line) {
64 find_line(pos);
69 if (pos.line < cursor->next->pos.line)
72 find_line(pos);
136 first_token_from_line(struct position pos) argument
151 pos_get_token(struct position pos) argument
166 pos_ident(struct position pos) argument
[all...]
/illumos-gate/usr/src/cmd/powertop/common/
H A Dsuggestions.c68 sugg_t *new, *n, *pos = NULL; local
102 if (weight > n->weight && pos == NULL)
103 pos = n;
121 if (pos == NULL) {
132 if (pos == sugg) {
145 new->next = pos;
146 new->prev = pos->prev;
147 pos->prev->next = new;
148 pos->prev = new;
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb3_kdf.c104 int pos = 4; /* skip counter */ local
107 bcopy(label, &kdfbuf[pos], label_len);
108 pos += label_len;
110 kdfbuf[pos] = 0;
111 pos++;
113 bcopy(context, &kdfbuf[pos], context_len);
114 pos += context_len;
116 bcopy(L, &kdfbuf[pos], 4);
117 pos += 4;
128 if ((rc = smb2_hmac_update(hctx, kdfbuf, pos)) !
[all...]
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/
H A Dib_ring.c112 uint32_t *pos)
124 *pos = ring->w_alloc_ptr;
111 rdsv3_ib_ring_alloc(struct rdsv3_ib_work_ring *ring, uint32_t val, uint32_t *pos) argument
/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Dbase64.c214 char *pos; local
226 pos = strchr(Base64, ch);
227 if (pos == 0) /*%< A non-base64 character. */
235 target[tarindex] = (pos - Base64) << 2;
243 target[tarindex] |= (pos - Base64) >> 4;
244 target[tarindex+1] = ((pos - Base64) & 0x0f)
254 target[tarindex] |= (pos - Base64) >> 2;
255 target[tarindex+1] = ((pos - Base64) & 0x03)
265 target[tarindex] |= (pos - Base64);

Completed in 71 milliseconds

1234567891011>>