Searched refs:siz (Results 1 - 25 of 31) sorted by relevance

12

/illumos-gate/usr/src/lib/libast/common/string/
H A Dstrsearch.c33 * size siz where the first member of each
40 strsearch(const void* tab, size_t num, size_t siz, Strcmp_f comparf, const char* name, void* context) argument
43 register char* hi = lo + (num - 1) * siz;
49 mid = lo + (((hi - lo) / siz) / 2) * siz;
53 lo = mid + siz;
54 else hi = mid - siz;
H A Dstrlook.c31 * return pointer to name in tab with element size siz
40 strlook(const void* tab, size_t siz, register const char* name) argument
46 for (; s = *((char**)t); t += siz)
H A Dstrpsearch.c41 * size siz where the first member of each
53 strpsearch(const void* tab, size_t num, size_t siz, const char* name, char** next) argument
56 register char* hi = lo + (num - 1) * siz;
73 mid = lo + (sequential ? 0 : (((hi - lo) / siz) / 2) * siz);
99 while ((mid -= siz) >= lo && (s = *((unsigned char**)mid)) && ((c == MAP(m, *s)) || *s == '[' && c == MAP(m, *(s + 1))));
120 lo = mid + siz;
122 hi = mid - siz;
H A Dstropt.c32 * parse option expression in s using options in tab with element size siz
56 stropt(const char* as, const void* tab, int siz, int(*f)(void*, const void*, int, const char*), void* a) argument
91 for (p = (char**)tab; t = *p; p = (char**)((char*)p + siz))
/illumos-gate/usr/src/lib/libast/common/path/
H A Dpathnative.c27 * convert path to native fs representation in <buf,siz>
29 * if return length >= siz then buf is indeterminate, but another call
30 * with siz=length+1 would work
41 pathnative(const char* path, char* buf, size_t siz) argument
43 return uwin_path(path, buf, siz);
53 pathnative(const char* path, char* buf, size_t siz) argument
57 if (!buf || siz < PATH_MAX)
62 if ((n = strlen(tmp)) < siz && buf)
75 pathnative(const char* path, char* buf, size_t siz) argument
80 if (!_fullpath(buf, path, siz))
98 pathnative(const char* path, char* buf, size_t siz) argument
111 pathnative(const char* path, char* buf, size_t siz) argument
[all...]
H A Dpathposix.c27 * convert native path to posix fs representation in <buf,siz>
29 * if return length >= siz then buf is indeterminate, but another call
30 * with siz=length+1 would work
41 pathposix(const char* path, char* buf, size_t siz) argument
43 return uwin_unpath(path, buf, siz);
53 pathposix(const char* path, char* buf, size_t siz) argument
57 if (!buf || siz < PATH_MAX)
62 if ((n = strlen(tmp)) < siz && buf)
75 pathposix(const char* path, char* buf, size_t siz) argument
80 if (!_posixpath(buf, path, siz))
98 pathposix(const char* path, char *buf, size_t siz) argument
113 pathposix(const char* path, char* buf, size_t siz) argument
[all...]
H A Dpathgetlink.c42 pathgetlink(const char* name, char* buf, int siz) argument
46 if ((n = readlink(name, buf, siz)) < 0) return(-1);
47 if (n >= siz)
/illumos-gate/usr/src/lib/libast/common/comp/
H A Dreadlink.c41 readlink(const char* path, char* buf, int siz)
46 if (siz > sizeof(FAKELINK_MAGIC))
50 if (read(fd, buf, sizeof(FAKELINK_MAGIC)) == sizeof(FAKELINK_MAGIC) && !strcmp(buf, FAKELINK_MAGIC) && (n = read(fd, buf, siz)) > 0 && !buf[n - 1])
H A Dsetlocale.c92 native_locale(const char* locale, char* buf, size_t siz) argument
135 sfsprintf(buf, siz, "%s_%s.%s", lbuf, cbuf, lc->charset->ms);
137 sfsprintf(buf, siz, "%s_%s", lbuf, cbuf);
/illumos-gate/usr/src/lib/libast/common/disc/
H A Dsfstrtmp.c48 sfstrtmp(register Sfio_t* f, int mode, void* buf, size_t siz)
57 f->_endw = f->_endr = f->_endb = f->_data + siz;
58 f->_size = siz;
/illumos-gate/usr/src/lib/libast/common/dir/
H A Dgetdents.c52 getdents(int fd, void* buf, size_t siz)
56 if (siz < DIRBLKSIZ)
74 return(getdirentries(fd, buf, siz, &off));
86 m = (siz * 6) / 10;
88 sp = (char*)buf + siz - m - 1;
94 while (sp < (char*)buf + siz - m + n)
116 return(read(fd, buf, siz));
135 n = (siz / MAXREC) * sizeof(struct direct);
139 if ((n = read(fd, (char*)buf + siz - m, m)) <= 0) break;
140 sp = (struct direct*)((char*)buf + siz
[all...]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelEmulate.c190 int siz = ulPartLen < bufp->buf_len ? local
194 bufp->buf = realloc(bufp->buf, siz);
200 bufp->buf_len = siz;
/illumos-gate/usr/src/lib/print/mod_ipp/
H A Dmod_ipp.c115 read_data(void *fd, void *buf, size_t siz) argument
120 len_read = ap_get_client_block(ap_r, buf, siz);
127 fd, buf, siz, len_read);
138 write_data(void *fd, void *buf, size_t siz) argument
147 dump_buffer(stderr, "write_data:", buf, siz);
149 len_written = ap_rwrite(buf, siz, ap_r);
/illumos-gate/usr/src/lib/libresolv2/common/nameser/
H A Dns_print.c575 unsigned int siz; local
585 siz = (edata-rdata)*4/3 + 4; /* "+4" accounts for trailing \0 */
586 if (siz > sizeof(base64_cert) * 3/4) {
591 len = b64_ntop(rdata, edata-rdata, base64_cert, siz);
872 unsigned int siz; local
876 siz = (edata-rdata)*4/3 + 4; /* "+4" accounts for trailing \0 */
877 if (siz > sizeof(base64_dhcid) * 3/4) {
881 len = b64_ntop(rdata, edata-rdata, base64_dhcid, siz);
907 unsigned int siz; local
967 siz
999 unsigned int siz; local
[all...]
/illumos-gate/usr/src/lib/libsum/common/
H A Dsumlib.c308 sumblock(Sum_t* p, const void* buf, size_t siz) argument
310 p->size += siz;
311 return (*p->method->block)(p, buf, siz);
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_subr.c1478 int siz, pos; local
1485 for (siz = 1; siz < fs->fs_frag; siz++) {
1486 if ((inblk & (1 << (siz + (fs->fs_frag % NBBY)))) == 0)
1488 field = around[siz];
1489 subfield = inside[siz];
1490 for (pos = siz; pos <= fs->fs_frag; pos++) {
1492 fraglist[siz] += cnt;
1493 ASSERT(fraglist[siz] >
1495 field <<= siz; local
1496 subfield <<= siz; local
[all...]
/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_query.c403 res_hostalias(const res_state statp, const char *name, char *dst, size_t siz) { argument
430 strncpy(dst, cp1, siz - 1);
431 dst[siz - 1] = '\0';
H A Dres_debug.c950 u_int8_t siz = 0x12; /*%< default = 1e2 cm = 1.00m */ local
1009 siz = precsize_aton(&cp);
1037 *bcp++ = siz;
/illumos-gate/usr/src/lib/libshell/common/tests/
H A Dsubshell.sh402 siz=$(printf $'%#i' $exp)
404 cmd=${cmd//\$tmp\/buf/$siz.buf}
405 cmd=${cmd//\$tmp\/lin/$siz.lin}
/illumos-gate/usr/src/cmd/backup/dump/
H A Ddumptape.c2026 int siz; /* bytes written (block) */ local
2079 siz = rmtwrite(tp, writesize);
2080 else if ((siz = rmtread(rbuf, writesize)) ==
2082 siz = -1;
2085 siz = write(to, tp, writesize);
2086 else if ((siz = read(to, rbuf, writesize)) ==
2088 siz = -1;
2089 if (siz < 0 && diskette && errno == ENOSPC)
2090 siz = 0; /* really EOF */
2093 if (siz <
[all...]
/illumos-gate/usr/src/lib/libast/common/port/
H A Dlc.c257 canonical(const Lc_language_t* lp, const Lc_territory_t* tp, const Lc_charset_t* cp, const Lc_attribute_list_t* ap, unsigned long flags, char* buf, size_t siz) argument
268 e = &buf[siz - 3];
348 lccanon(Lc_t* lc, unsigned long flags, char* buf, size_t siz) argument
364 return sfsprintf(buf, siz, "%s_%s", lang, ctry);
366 return sfsprintf(buf, siz, "%s_%s.%s", lang, ctry, code);
368 return sfsprintf(buf, siz, "%s_%s.%s,%s", lang, ctry, code, lc->charset->ms);
375 return canonical(lc->language, lc->territory, lc->charset, lc->attributes, flags, buf, siz);
H A Dastlicense.c92 #define USE(b) ((b)->siz=(b)->nxt-(b)->buf,(b)->nxt=(b)->buf,(b)->siz)
105 int siz; member in struct:Buffer_s
/illumos-gate/usr/src/lib/libast/common/misc/
H A Dmime.c726 * parse mime headers in strsearch(tab,num,siz) from s
731 mimehead(Mime_t* mp, void* tab, size_t num, size_t siz, register char* s) argument
744 if ((p = strsearch(tab, num, siz, (Strcmp_f)mimecmp, s, &e)) && *e == ':')
753 (p = strsearch(tab, num, siz, (Strcmp_f)mimecmp, pp.name.data, &e)) &&
H A Dmagic.c282 * return pointer to data at offset off and size siz
286 getdata(register Magic_t* mp, register long off, register int siz) argument
292 if (off + siz <= mp->fbsz)
294 if (off < mp->xoff || off + siz > mp->xoff + mp->xbsz)
296 if (off + siz > mp->fbmx)
309 if (off + siz > mp->xoff + mp->xbsz)
/illumos-gate/usr/src/lib/libpp/common/
H A Dppsearch.c182 unsigned long siz; local
273 siz = strtol(s + VDB_SIZE, NiL, 10);
276 if (!(s = sfreserve(sp, siz + 1, 0)))
278 s[siz] = 0;

Completed in 115 milliseconds

12