Home
last modified time | relevance | path

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

12

/titanic_44/usr/src/lib/libast/common/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()
98 pathnative(const char* path, char* buf, size_t siz) in pathnative() argument
102 strlcpy(buf, path, 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()
98 pathposix(const char* path, char *buf, size_t siz) in pathposix() argument
104 strlcpy(buf, path, 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()
/titanic_44/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 - m);
[all …]
/titanic_44/usr/src/lib/libast/common/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 register char* hi = lo + (num - 1) * siz; in strsearch()
49 mid = lo + (((hi - lo) / siz) / 2) * siz; in strsearch()
53 lo = mid + siz; in strsearch()
54 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()
/titanic_44/usr/src/cmd/ssh/libopenbsd-compat/common/
H A Dstrlcpy.c47 strlcpy(dst, src, siz) in strlcpy() argument
50 size_t siz;
54 register size_t n = siz;
66 if (siz != 0)
H A Dstrlcat.c49 strlcat(dst, src, siz) in strlcat() argument
52 size_t siz;
56 register size_t n = siz;
63 n = siz - dlen;
/titanic_44/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 …zeof(FAKELINK_MAGIC) && !strcmp(buf, FAKELINK_MAGIC) && (n = read(fd, buf, siz)) > 0 && !buf[n - 1…
/titanic_44/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;
/titanic_44/usr/src/lib/print/mod_ipp/
H A Dmod_ipp.c115 read_data(void *fd, void *buf, size_t siz) in read_data() argument
120 len_read = ap_get_client_block(ap_r, buf, siz); in read_data()
127 fd, buf, siz, len_read); in read_data()
138 write_data(void *fd, void *buf, size_t siz) in write_data() argument
147 dump_buffer(stderr, "write_data:", buf, siz); in write_data()
149 len_written = ap_rwrite(buf, siz, ap_r); in write_data()
/titanic_44/usr/src/lib/libresolv2/common/nameser/
H A Dns_print.c575 unsigned int siz; in ns_sprintrrf() local
585 siz = (edata-rdata)*4/3 + 4; /* "+4" accounts for trailing \0 */ in ns_sprintrrf()
586 if (siz > sizeof(base64_cert) * 3/4) { in ns_sprintrrf()
591 len = b64_ntop(rdata, edata-rdata, base64_cert, siz); in ns_sprintrrf()
872 unsigned int siz; in ns_sprintrrf() local
876 siz = (edata-rdata)*4/3 + 4; /* "+4" accounts for trailing \0 */ in ns_sprintrrf()
877 if (siz > sizeof(base64_dhcid) * 3/4) { in ns_sprintrrf()
881 len = b64_ntop(rdata, edata-rdata, base64_dhcid, siz); in ns_sprintrrf()
907 unsigned int siz; in ns_sprintrrf() local
967 siz = (edata-rdata)*4/3 + 4; /* "+4" accounts for trailing \0 */ in ns_sprintrrf()
[all …]
/titanic_44/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()
/titanic_44/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 …]
/titanic_44/usr/src/lib/libsum/common/
H A Dsumlib.c308 sumblock(Sum_t* p, const void* buf, size_t siz) in sumblock() argument
310 p->size += siz; in sumblock()
311 return (*p->method->block)(p, buf, siz); in sumblock()
/titanic_44/usr/src/lib/libast/common/port/
H A Dlc.c257 … const Lc_charset_t* cp, const Lc_attribute_list_t* ap, unsigned long flags, char* buf, size_t siz) in canonical() argument
268 e = &buf[siz - 3]; in canonical()
348 lccanon(Lc_t* lc, unsigned long flags, char* buf, size_t siz) in lccanon() argument
364 return sfsprintf(buf, siz, "%s_%s", lang, ctry); in lccanon()
366 return sfsprintf(buf, siz, "%s_%s.%s", lang, ctry, code); in lccanon()
368 return sfsprintf(buf, siz, "%s_%s.%s,%s", lang, ctry, code, lc->charset->ms); in lccanon()
375 return canonical(lc->language, lc->territory, lc->charset, lc->attributes, flags, buf, siz); in lccanon()
/titanic_44/usr/src/cmd/ssh/include/
H A Dstrlcat.h15 size_t strlcat(char *dst, const char *src, size_t siz);
H A Dstrlcpy.h15 size_t strlcpy(char *dst, const char *src, size_t siz);
/titanic_44/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) { in res_hostalias() argument
430 strncpy(dst, cp1, siz - 1); in res_hostalias()
431 dst[siz - 1] = '\0'; in res_hostalias()
/titanic_44/usr/src/cmd/backup/dump/
H A Ddumptape.c2026 int siz; /* bytes written (block) */ in dowrite() local
2079 siz = rmtwrite(tp, writesize); in dowrite()
2080 else if ((siz = rmtread(rbuf, writesize)) == in dowrite()
2082 siz = -1; in dowrite()
2085 siz = write(to, tp, writesize); in dowrite()
2086 else if ((siz = read(to, rbuf, writesize)) == in dowrite()
2088 siz = -1; in dowrite()
2089 if (siz < 0 && diskette && errno == ENOSPC) in dowrite()
2090 siz = 0; /* really EOF */ in dowrite()
2093 if (siz < 0 || in dowrite()
[all …]
/titanic_44/usr/src/lib/libast/common/features/
H A Dlib459 size_t siz;
479 siz = 64 * 1024;
480 if (!(dstbuf = malloc(2 * siz)))
484 if (!(srcbuf = (char*)mmap(NULL, siz, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0)))
486 if (!mmap(srcbuf + siz, siz, PROT_NONE, MAP_PRIVATE, fd, 0))
488 for (i = 0; i < siz; i++)
490 srcbuf[siz - 1] = 0;
499 memccpy(dstbuf, srcbuf, 0, siz + 10);
/titanic_44/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}
/titanic_44/usr/src/lib/libeti/form/common/
H A Dchg_data.c183 int siz = nstr + 1 + pad; in insert_str() local
186 if (n >= siz) { /* check for fit on this line */ in insert_str()
200 v = _data_beg(vbeg + Xmax(f) - siz, siz); in insert_str()

12