Home
last modified time | relevance | path

Searched refs:siz (Results 1 – 25 of 40) sorted by relevance

12

/illumos-gate/usr/src/contrib/ast/src/lib/libast/path/
H A Dpathnative.c41 pathnative(const char* path, char* buf, size_t siz) in pathnative() argument
43 return uwin_path(path, buf, siz); in pathnative()
53 pathnative(const char* path, char* buf, size_t siz) in pathnative() argument
57 if (!buf || siz < PATH_MAX) in pathnative()
62 if ((n = strlen(tmp)) < siz && buf) in pathnative()
75 pathnative(const char* path, char* buf, size_t siz) in pathnative() argument
80 if (!_fullpath(buf, path, siz)) in pathnative()
86 else if ((n = strlen(path)) < siz && buf) in pathnative()
102 strlcpy(buf, path, siz); in pathnative()
104 unixpath2win(path, 0, buf, siz); in pathnative()
[all …]
H A Dpathposix.c41 pathposix(const char* path, char* buf, size_t siz) in pathposix() argument
43 return uwin_unpath(path, buf, siz); in pathposix()
53 pathposix(const char* path, char* buf, size_t siz) in pathposix() argument
57 if (!buf || siz < PATH_MAX) in pathposix()
62 if ((n = strlen(tmp)) < siz && buf) in pathposix()
75 pathposix(const char* path, char* buf, size_t siz) in pathposix() argument
80 if (!_posixpath(buf, path, siz)) in pathposix()
86 else if ((n = strlen(path)) < siz && buf) in pathposix()
104 strlcpy(buf, path, siz); in pathposix()
106 winpath2unix(path, PATH_NONSTRICT, buf, siz); in pathposix()
[all …]
H A Dpathgetlink.c42 pathgetlink(const char* name, char* buf, int siz) in pathgetlink() argument
46 if ((n = readlink(name, buf, siz)) < 0) return(-1); in pathgetlink()
47 if (n >= siz) in pathgetlink()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/astsa/
H A Dast.c50 static unsigned long siz; in sfgetr() local
54 siz = CHUNK; in sfgetr()
55 if (!(buf = newof(0, char, siz, 0))) in sfgetr()
61 e = s + siz; in sfgetr()
66 siz += CHUNK; in sfgetr()
67 if (!(buf = newof(buf, char, siz, 0))) in sfgetr()
69 s = buf + (siz - CHUNK); in sfgetr()
70 e = s + siz; in sfgetr()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/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 - m);
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/
H A Dstrsearch.c40 strsearch(const void* tab, size_t num, size_t siz, Strcmp_f comparf, const char* name, void* contex… in strsearch() argument
43 char* hi = lo + (num - 1) * siz; in strsearch()
50 mid = lo + (((hi - lo) / siz) / 2) * siz; in strsearch()
54 lo = mid + siz; in strsearch()
55 else hi = mid - siz; in strsearch()
H A Dstrpsearch.c53 strpsearch(const void* tab, size_t num, size_t siz, const char* name, char** next) in strpsearch() argument
56 register char* hi = lo + (num - 1) * siz; in strpsearch()
73 mid = lo + (sequential ? 0 : (((hi - lo) / siz) / 2) * siz); in strpsearch()
99 …while ((mid -= siz) >= lo && (s = *((unsigned char**)mid)) && ((c == MAP(m, *s)) || *s == '[' && c… in strpsearch()
120 lo = mid + siz; in strpsearch()
122 hi = mid - siz; in strpsearch()
H A Dstrlook.c40 strlook(const void* tab, size_t siz, register const char* name) in strlook() argument
46 for (; s = *((char**)t); t += siz) in strlook()
H A Dstropt.c56 stropt(const char* as, const void* tab, int siz, int(*f)(void*, const void*, int, const char*), voi… in stropt() argument
91 for (p = (char**)tab; t = *p; p = (char**)((char*)p + siz)) in stropt()
/illumos-gate/usr/src/contrib/ast/src/cmd/INIT/
H A Drelease.c114 string(register char* s, char* tab, int num, int siz, char** e) in string() argument
122 for (i = 0; i < siz; i++) in string()
124 for (i = 0; i < num; i += siz) in string()
125 for (j = 0; j < siz && buf[j] == tab[j+i]; j++) in string()
126 if (j == (siz - 1)) in string()
128 *e = s + siz; in string()
129 return i / siz + 1; in string()
H A Dproto.c1487 int siz; member
2168 …(&notice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,…
2173 …(&notice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,…
2181 …(&notice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,…
2191 …(&notice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,…
2211 …(&notice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,…
2218 …(&notice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,…
2237 …(&notice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,…
2246 …(&notice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,…
2256 …(&notice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,…
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Dreadlink.c41 readlink(const char* path, char* buf, int siz)
46 if (siz > sizeof(FAKELINK_MAGIC))
50 …zeof(FAKELINK_MAGIC) && !strcmp(buf, FAKELINK_MAGIC) && (n = read(fd, buf, siz)) > 0 && !buf[n - 1…
/illumos-gate/usr/src/contrib/ast/src/lib/libast/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/libdwarf/common/
H A Ddwarf_reading.h68 #define RRMOA(f,buf,loc,siz,fsiz,errc) _dwarf_object_read_random(f, \ argument
69 (char *)buf,loc,siz,fsiz,errc);
/illumos-gate/usr/src/lib/libresolv2/common/nameser/
H A Dns_print.c570 unsigned int siz; in ns_sprintrrf() local
581 if (siz > sizeof(base64_cert) * 3/4) { in ns_sprintrrf()
586 len = b64_ntop(rdata, edata-rdata, base64_cert, siz); in ns_sprintrrf()
867 unsigned int siz; in ns_sprintrrf() local
872 if (siz > sizeof(base64_dhcid) * 3/4) { in ns_sprintrrf()
903 unsigned int siz; in ns_sprintrrf() local
964 if (siz > sizeof(base64_key) * 3/4) { in ns_sprintrrf()
968 len = b64_ntop(rdata, edata-rdata, base64_key, siz); in ns_sprintrrf()
996 unsigned int siz; in ns_sprintrrf() local
1005 if (siz > sizeof(base64_key) * 3/4) { in ns_sprintrrf()
[all …]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelEmulate.c190 int siz = ulPartLen < bufp->buf_len ? in emulate_update() local
194 bufp->buf = realloc(bufp->buf, siz); in emulate_update()
200 bufp->buf_len = siz; in emulate_update()
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_subr.c1478 int siz, pos; in fragacct() local
1485 for (siz = 1; siz < fs->fs_frag; siz++) { in fragacct()
1486 if ((inblk & (1 << (siz + (fs->fs_frag % NBBY)))) == 0) in fragacct()
1488 field = around[siz]; in fragacct()
1489 subfield = inside[siz]; in fragacct()
1490 for (pos = siz; pos <= fs->fs_frag; pos++) { in fragacct()
1492 fraglist[siz] += cnt; in fragacct()
1493 ASSERT(fraglist[siz] >= 0); in fragacct()
1494 pos += siz; in fragacct()
1495 field <<= siz; in fragacct()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libsum/
H A Dsumlib.c306 sumblock(Sum_t* p, const void* buf, size_t siz) in sumblock() argument
308 p->size += siz; in sumblock()
309 return (*p->method->block)(p, buf, siz); in sumblock()
/illumos-gate/usr/src/cmd/backup/dump/
H A Ddumptape.c1937 int siz; /* bytes written (block) */ in dowrite() local
1990 siz = rmtwrite(tp, writesize); in dowrite()
1993 siz = -1; in dowrite()
1996 siz = write(to, tp, writesize); in dowrite()
1999 siz = -1; in dowrite()
2000 if (siz < 0 && diskette && errno == ENOSPC) in dowrite()
2001 siz = 0; /* really EOF */ in dowrite()
2004 if (siz < 0 || in dowrite()
2005 (pipeout && siz != writesize)) { in dowrite()
2059 trecs = siz / tp_bsize; in dowrite()
[all …]
/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) { in res_hostalias() argument
425 strncpy(dst, cp1, siz - 1); in res_hostalias()
426 dst[siz - 1] = '\0'; in res_hostalias()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/
H A Dlc.c266 … const Lc_charset_t* cp, const Lc_attribute_list_t* ap, unsigned long flags, char* buf, size_t siz) in canonical() argument
279 e = &buf[siz - 3]; in canonical()
384 lccanon(Lc_t* lc, unsigned long flags, char* buf, size_t siz) in lccanon() argument
400 return sfsprintf(buf, siz, "%s_%s", lang, ctry); in lccanon()
402 return sfsprintf(buf, siz, "%s_%s.%s", lang, ctry, code); in lccanon()
404 return sfsprintf(buf, siz, "%s_%s.%s,%s", lang, ctry, code, lc->charset->ms); in lccanon()
411 return canonical(lc->language, lc->territory, lc->charset, lc->attributes, flags, buf, siz); in lccanon()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/
H A Dlib521 size_t siz;
541 siz = 64 * 1024;
542 if (!(dstbuf = malloc(2 * siz)))
546 if (!(srcbuf = (char*)mmap(NULL, siz, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0)))
548 if (!mmap(srcbuf + siz, siz, PROT_NONE, MAP_PRIVATE, fd, 0))
550 for (i = 0; i < siz; i++)
552 srcbuf[siz - 1] = 0;
561 memccpy(dstbuf, srcbuf, 0, siz + 10);
/illumos-gate/usr/src/lib/libeti/form/common/
H A Dchg_data.c181 int siz = nstr + 1 + pad; in insert_str() local
184 if (n >= siz) { /* check for fit on this line */ in insert_str()
198 v = _data_beg(vbeg + Xmax(f) - siz, siz); in insert_str()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/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/contrib/ast/src/lib/libpp/
H A Dppsearch.c182 unsigned long siz; in search() local
273 siz = strtol(s + VDB_SIZE, NiL, 10); in search()
276 if (!(s = sfreserve(sp, siz + 1, 0))) in search()
278 s[siz] = 0; in search()

12