/titanic_50/usr/src/lib/libast/common/path/ |
H A D | pathposix.c | 41 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 D | pathnative.c | 41 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 D | pathgetlink.c | 42 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_50/usr/src/lib/libast/common/dir/ |
H A D | getdents.c | 52 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_50/usr/src/lib/libast/common/string/ |
H A D | strsearch.c | 40 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 D | strpsearch.c | 53 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 D | strlook.c | 40 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 D | stropt.c | 56 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_50/usr/src/cmd/ssh/libopenbsd-compat/common/ |
H A D | strlcpy.c | 47 strlcpy(dst, src, siz) in strlcpy() argument 50 size_t siz; 54 register size_t n = siz; 66 if (siz != 0)
|
H A D | strlcat.c | 49 strlcat(dst, src, siz) in strlcat() argument 52 size_t siz; 56 register size_t n = siz; 63 n = siz - dlen;
|
/titanic_50/usr/src/lib/libast/common/comp/ |
H A D | readlink.c | 41 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_50/usr/src/lib/libast/common/disc/ |
H A D | sfstrtmp.c | 48 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_50/usr/src/lib/libresolv2/common/nameser/ |
H A D | ns_print.c | 575 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_50/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelEmulate.c | 190 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_50/usr/src/uts/common/fs/ufs/ |
H A D | ufs_subr.c | 1478 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_50/usr/src/lib/libsum/common/ |
H A D | sumlib.c | 308 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_50/usr/src/lib/libast/common/port/ |
H A D | lc.c | 257 … 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_50/usr/src/cmd/ssh/include/ |
H A D | strlcat.h | 15 size_t strlcat(char *dst, const char *src, size_t siz);
|
H A D | strlcpy.h | 15 size_t strlcpy(char *dst, const char *src, size_t siz);
|
/titanic_50/usr/src/lib/libresolv2/common/resolv/ |
H A D | res_query.c | 403 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_50/usr/src/cmd/backup/dump/ |
H A D | dumptape.c | 2026 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_50/usr/src/lib/libast/common/features/ |
H A D | lib | 459 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_50/usr/src/lib/libshell/common/tests/ |
H A D | subshell.sh | 402 siz=$(printf $'%#i' $exp) 404 cmd=${cmd//\$tmp\/buf/$siz.buf} 405 cmd=${cmd//\$tmp\/lin/$siz.lin}
|
/titanic_50/usr/src/lib/libeti/form/common/ |
H A D | chg_data.c | 183 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()
|
/titanic_50/usr/src/lib/libpp/common/ |
H A D | ppsearch.c | 182 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()
|