/titanic_51/usr/src/contrib/ast/src/lib/libast/path/ |
H A D | pathnative.c | 27 * 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) 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() 98 pathnative(const char * path,char * buf,size_t siz) pathnative() argument 111 pathnative(const char * path,char * buf,size_t siz) pathnative() argument [all...] |
H A D | pathposix.c | 27 * 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) 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() 98 pathposix(const char * path,char * buf,size_t siz) pathposix() argument 113 pathposix(const char * path,char * buf,size_t siz) pathposix() argument [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_51/usr/src/lib/libast/common/path/ |
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 | 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 | 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_51/usr/src/contrib/ast/src/lib/libast/astsa/ |
H A D | ast.c | 50 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()
|
/titanic_51/usr/src/contrib/ast/src/lib/libast/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 [all...] |
/titanic_51/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_51/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_51/usr/src/contrib/ast/src/lib/libast/string/ |
H A D | strsearch.c | 33 * 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) 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 D | strpsearch.c | 41 * size siz where the first member of each 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 == MAP(m, *(s + 1)))); in strpsearch() 120 lo = mid + siz; in strpsearch() 122 hi = mid - siz; in strpsearch()
|
H A D | strlook.c | 31 * return pointer to name in tab with element size siz 40 strlook(const void* tab, size_t siz, register const char* name) in strlook() argument 46 for (; s = *((char**)t); t += siz) in strlook()
|
/titanic_51/usr/src/contrib/ast/src/cmd/INIT/ |
H A D | release.c | 114 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 D | proto.c | 1487 int siz; member 2168 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 0); 2173 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 0); 2181 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 0); 2191 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz=( &tmp)->nxt-( &tmp)->buf,( &tmp)->nxt=( &tmp)->buf,( &tmp)->siz), 0); 2211 comment(¬ice, &buf, (( &tmp)->buf), (( &tmp)->siz [all...] |
/titanic_51/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_51/usr/src/contrib/ast/src/lib/libast/comp/ |
H A D | readlink.c | 41 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])
|
/titanic_51/usr/src/contrib/ast/src/lib/libast/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_51/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_51/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 in ns_sprintrrf() 999 unsigned int siz; ns_sprintrrf() local [all...] |
/titanic_51/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_51/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] > in fragacct() [all...] |