Searched refs:siz (Results 1 - 25 of 30) 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 char* hi = lo + (num - 1) * siz;
50 mid = lo + (((hi - lo) / siz) / 2) * siz;
54 lo = mid + siz;
55 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/libresolv2/common/nameser/
H A Dns_print.c570 unsigned int siz; local
580 siz = (edata-rdata)*4/3 + 4; /* "+4" accounts for trailing \0 */
581 if (siz > sizeof(base64_cert) * 3/4) {
586 len = b64_ntop(rdata, edata-rdata, base64_cert, siz);
867 unsigned int siz; local
871 siz = (edata-rdata)*4/3 + 4; /* "+4" accounts for trailing \0 */
872 if (siz > sizeof(base64_dhcid) * 3/4) {
876 len = b64_ntop(rdata, edata-rdata, base64_dhcid, siz);
903 unsigned int siz; local
963 siz
996 unsigned int siz; local
[all...]
/illumos-gate/usr/src/lib/libsum/common/
H A Dsumlib.c306 sumblock(Sum_t* p, const void* buf, size_t siz) argument
308 p->size += siz;
309 return (*p->method->block)(p, buf, siz);
/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_query.c398 res_hostalias(const res_state statp, const char *name, char *dst, size_t siz) { argument
425 strncpy(dst, cp1, siz - 1);
426 dst[siz - 1] = '\0';
H A Dres_debug.c945 u_int8_t siz = 0x12; /*%< default = 1e2 cm = 1.00m */ local
1004 siz = precsize_aton(&cp);
1032 *bcp++ = 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/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.c732 * parse mime headers in strsearch(tab,num,siz) from s
737 mimehead(Mime_t* mp, void* tab, size_t num, size_t siz, char* s) argument
750 if ((p = strsearch(tab, num, siz, _mimecmp, s, &e)) && *e == ':')
759 (p = strsearch(tab, num, siz, _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;
/illumos-gate/usr/src/lib/libast/common/regex/
H A Dregnexec.c144 #define vector(t,v,i) (((i)<(v)->max)?(t*)((v)->vec+(i)*(v)->siz):(t*)vecseek(&(v),i))
147 vecopen(int inc, int siz) argument
156 if (!(v = (Vector_t*)stkseek(sp, sizeof(Vector_t) + inc * siz)))
164 v->siz = siz;
177 if (!(v = (Vector_t*)stkseek(v->stk, sizeof(Vector_t) + v->max * v->siz)))
182 return v->vec + index * v->siz;

Completed in 109 milliseconds

12