Searched defs:pos (Results 1 - 25 of 324) 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/boot/lib/libstand/
H A Dtwiddle.c50 static u_int callercnt, globalcnt, pos; local
60 putchar("|/-\\"[pos++ & 3]);
/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/cmd/sendmail/src/
H A Dconvtime.c50 bool pos = true; local
57 pos = false;
101 return pos ? r : -r;
/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/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/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/cmd/mandoc/
H A Dtbl_data.c41 int ln, const char *p, int *pos)
50 while (cp != NULL && cp->pos == TBL_CELL_SPAN)
60 ln, *pos, p + *pos);
62 while (p[*pos])
63 (*pos)++;
69 dat->pos = TBL_DATA_NONE;
72 if (cp->pos == TBL_CELL_SPAN)
83 sv = *pos;
84 while (p[*pos]
40 getdata(struct tbl_node *tbl, struct tbl_span *dp, int ln, const char *p, int *pos) argument
123 tbl_cdata(struct tbl_node *tbl, int ln, const char *p, int pos) argument
185 tbl_data(struct tbl_node *tbl, int ln, const char *p, int pos) argument
[all...]
H A Dtbl.c35 tbl_read(struct tbl_node *tbl, int ln, const char *p, int pos) argument
49 for (cp = p + pos; *cp != '\0'; cp++) {
67 tbl_option(tbl, ln, p, &pos);
68 if (p[pos] == '\0')
77 tbl_layout(tbl, ln, p, pos);
80 return tbl_cdata(tbl, ln, p, pos) ? ROFF_TBL : ROFF_IGN;
85 tbl_data(tbl, ln, p, pos);
90 tbl_alloc(int pos, int line, struct mparse *parse) argument
96 tbl->pos = pos;
137 tbl_restart(int line, int pos, struct tbl_node *tbl) argument
[all...]
H A Dtbl_layout.c62 int ln, const char *p, int *pos)
67 while (p[*pos] == ' ' || p[*pos] == '\t')
68 (*pos)++;
72 if (strchr(".,-=^_ACLNRSaclnrs", p[*pos]) != NULL)
77 if ('(' == p[*pos]) {
78 (*pos)++;
79 while (p[*pos] && ')' != p[*pos])
80 (*pos)
61 mods(struct tbl_node *tbl, struct tbl_cell *cp, int ln, const char *p, int *pos) argument
188 cell(struct tbl_node *tbl, struct tbl_row *rp, int ln, const char *p, int *pos) argument
249 tbl_layout(struct tbl_node *tbl, int ln, const char *p, int pos) argument
337 cell_alloc(struct tbl_node *tbl, struct tbl_row *rp, enum tbl_cellt pos) argument
[all...]
H A Dtbl_opts.c65 arg(struct tbl_node *tbl, int ln, const char *p, int *pos, int key) argument
69 while (p[*pos] == ' ' || p[*pos] == '\t')
70 (*pos)++;
75 if (p[*pos] == '(') {
76 (*pos)++;
77 while (p[*pos + len] != ')')
84 ln, *pos, "%.*s", len, p + *pos);
90 tbl->opts.tab = p[*pos];
125 int i, pos, len; local
[all...]
/illumos-gate/usr/src/lib/libpkg/common/
H A Dpkgerr.c111 *pkgerr_get(PKG_ERR *err, int pos) argument
113 if (pos < 0 || pos > (err->nerrs - 1)) {
117 return (err->msgs[pos]);
/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Dbase64.c218 char *pos; local
230 pos = strchr(Base64, ch);
231 if (pos == 0) /*%< A non-base64 character. */
239 target[tarindex] = (pos - Base64) << 2;
247 target[tarindex] |= (pos - Base64) >> 4;
248 target[tarindex+1] = ((pos - Base64) & 0x0f)
258 target[tarindex] |= (pos - Base64) >> 2;
259 target[tarindex+1] = ((pos - Base64) & 0x03)
269 target[tarindex] |= (pos - Base64);
/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/common/smbsrv/
H A Dsmb_token_xdr.c46 uint32_t pos, len; local
52 pos = xdr_getpos(xdrs);
60 rc = xdr_setpos(xdrs, pos);
130 uint32_t pos, len; local
135 pos = xdr_getpos(xdrs);
143 rc = xdr_setpos(xdrs, pos);
/illumos-gate/usr/src/boot/sys/boot/ofw/libofw/
H A Dofw_disk.c90 daddr_t pos; local
105 pos = dblk * 512;
107 if (OF_seek(dp->d_handle, pos) < 0)

Completed in 68 milliseconds

1234567891011>>