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

1234567

/osnet-11/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;
/osnet-11/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;
/osnet-11/usr/src/lib/libc/port/stdio/
H A Dfpos.c37 fgetpos64(FILE *stream, fpos64_t *pos) argument
39 if ((*pos = (fpos64_t)ftello64(stream)) == (fpos64_t)-1)
45 fsetpos64(FILE *stream, const fpos64_t *pos) argument
47 if (fseeko64(stream, (off64_t)*pos, SEEK_SET) != 0)
55 fgetpos(FILE *stream, fpos_t *pos) argument
57 if ((*pos = (fpos_t)ftello(stream)) == (fpos_t)-1)
63 fsetpos(FILE *stream, const fpos_t *pos) argument
65 if (fseeko(stream, (off_t)*pos, SEEK_SET) != 0)
/osnet-11/usr/src/grub/grub2/grub-core/kern/
H A Drescue_reader.c36 int pos = 0; local
46 if (pos < GRUB_RESCUE_BUF_SIZE - 1)
50 linebuf[pos++] = c;
56 if (pos > 0)
62 linebuf[--pos] = 0;
/osnet-11/usr/src/grub/grub2/grub-core/lib/
H A Dhexdump.c27 int pos; local
34 pos = grub_snprintf (line, sizeof (line), "%08lx ", bse);
41 pos += grub_snprintf (&line[pos], sizeof (line) - pos,
44 line[pos++] = ' ';
49 pos += grub_snprintf (&line[pos], sizeof (line) - pos, " ");
51 line[pos
[all...]
/osnet-11/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 = &empty;
56 pos
87 hashnext(register Hash_position_t* pos) argument
131 hashdone(register Hash_position_t* pos) argument
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/commands/
H A Dcmp.c36 grub_off_t pos; local
59 pos = 0;
82 (unsigned long long) (i + pos), buf1[i],
87 pos += BUFFER_SIZE;
H A Dsleep.c37 static grub_uint16_t *pos; variable
42 grub_term_restore_pos (pos);
80 pos = grub_term_save_pos ();
H A Dtestload.c41 grub_off_t pos; local
80 for (pos = 0; pos < size; pos += GRUB_DISK_SECTOR_SIZE)
88 if (grub_memcmp (sector, buf + pos, GRUB_DISK_SECTOR_SIZE) != 0)
90 grub_printf ("\nDiffers in %lld\n", (unsigned long long) pos);
98 pos = size;
99 while (pos > 0)
103 pos -= GRUB_DISK_SECTOR_SIZE;
105 grub_file_seek (file, pos);
[all...]
/osnet-11/usr/src/cmd/sendmail/src/
H A Dconvtime.c50 bool pos = true; local
57 pos = false;
101 return pos ? r : -r;
/osnet-11/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;
/osnet-11/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);
/osnet-11/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))
/osnet-11/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]);
/osnet-11/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);
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/crypto/
H A Daead.h96 struct iov_block_state *pos)
98 const krb5_crypto_iov *iov = &data[pos->iov_pos];
101 if (pos->iov_pos < num_data && iov->data.length - pos->data_pos >= len) {
103 block = (unsigned char *) iov->data.data + pos->data_pos;
104 pos->data_pos += len;
108 if (krb5int_c_iov_get_block(storage, len, data, num_data, pos))
120 struct iov_block_state *pos)
124 krb5int_c_iov_put_block(data, num_data, storage, len, pos);
127 pos
94 iov_next_block(unsigned char *storage, size_t len, const krb5_crypto_iov *data, size_t num_data, struct iov_block_state *pos) argument
118 iov_store_block(const krb5_crypto_iov *data, size_t num_data, unsigned char *block, unsigned char *storage, size_t len, struct iov_block_state *pos) argument
[all...]
/osnet-11/usr/src/grub/grub2/include/grub/
H A Dpciutils.h47 int pos; member in struct:grub_pci_address
56 pci_device_cfg_read_u32 (addr.dev, &ret, addr.pos);
64 pci_device_cfg_read_u16 (addr.dev, &ret, addr.pos);
72 pci_device_cfg_read_u8 (addr.dev, &ret, addr.pos);
79 pci_device_cfg_write_u32 (addr.dev, data, addr.pos);
85 pci_device_cfg_write_u16 (addr.dev, data, addr.pos);
91 pci_device_cfg_write_u8 (addr.dev, data, addr.pos);
/osnet-11/usr/src/lib/libsoftcrypto/common/
H A Dmechstr.c100 int i = 0, pos; local
107 pos = snprintf(s, MAXSTRLEN, "%d:", max);
109 pos += snprintf(s + pos, MAXSTRLEN - pos, "%s,%d;",
112 (void) snprintf(s + pos, MAXSTRLEN - pos, "\0");
113 pos++; /* Need to count the NULL */
115 return (pos);
/osnet-11/usr/src/lib/libnsl/rpc/
H A Dxdr_sizeof.c74 x_setpostn(XDR *xdrs, uint_t pos) argument
H A Dxdr_stdio.c161 xdrstdio_setpos(XDR *xdrs, uint_t pos) argument
165 (int)pos, 0) < 0) ? FALSE : TRUE);
/osnet-11/usr/src/lib/libpkg/common/
H A Dpkgerr.c121 *pkgerr_get(PKG_ERR *err, int pos) argument
123 if (pos < 0 || pos > (err->nerrs - 1)) {
127 return (err->msgs[pos]);
/osnet-11/usr/src/lib/libdiskmgt/common/
H A Dbus.c169 int pos; local
193 pos = 0;
196 buses[pos++] = allbuses[i];
200 buses[pos++] = allbuses[i];
206 buses[pos] = NULL;
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/ccache/
H A Dscc.h86 long pos; member in struct:_krb5_scc_cursor

Completed in 28 milliseconds

1234567