/macosx-10.9.5/file-46/file/src/ |
H A D | ascmagic.c | 76 unichar *ubuf = NULL; local 90 if (file_encoding(ms, buf, nbytes, &ubuf, &ulen, &code, &code_mime, 96 rv = file_ascmagic_with_encoding(ms, buf, nbytes, ubuf, ulen, code, 100 if (ubuf) 101 free(ubuf); 108 size_t nbytes, unichar *ubuf, size_t ulen, const char *code, 143 /* Convert ubuf to UTF-8 and try text soft magic */ 151 if ((utf8_end = encode_utf8(utf8_buf, mlen, ubuf, ulen)) == NULL) 168 while (i < ulen && ISSPC(ubuf[i])) 175 if (ISSPC(ubuf[en 107 file_ascmagic_with_encoding(struct magic_set *ms, const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t ulen, const char *code, const char *type) argument 339 encode_utf8(unsigned char *buf, size_t len, unichar *ubuf, size_t ulen) argument [all...] |
H A D | encoding.c | 65 * ubuf, and the number of characters converted in ulen. 68 file_encoding(struct magic_set *ms, const unsigned char *buf, size_t nbytes, unichar **ubuf, size_t *ulen, const char **code, const char **code_mime, const char **type) argument 79 mlen = (nbytes + 1) * sizeof((*ubuf)[0]); 80 if ((*ubuf = CAST(unichar *, calloc((size_t)1, mlen))) == NULL) { 86 if (looks_ascii(buf, nbytes, *ubuf, ulen)) { 90 } else if (looks_utf8_with_BOM(buf, nbytes, *ubuf, ulen) > 0) { 94 } else if (file_looks_utf8(buf, nbytes, *ubuf, ulen) > 1) { 99 } else if ((ucs_type = looks_ucs16(buf, nbytes, *ubuf, ulen)) != 0) { 108 } else if (looks_latin1(buf, nbytes, *ubuf, ulen)) { 112 } else if (looks_extended(buf, nbytes, *ubuf, ule 221 looks_ascii(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument 241 looks_latin1(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument 260 looks_extended(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument 291 file_looks_utf8(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument 362 looks_utf8_with_BOM(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument 372 looks_ucs16(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument [all...] |
H A D | funcs.c | 163 const unsigned char *ubuf = CAST(const unsigned char *, buf); local 187 looks_text = file_encoding(ms, ubuf, nb, &u8buf, &ulen, 206 if ((m = file_zmagic(ms, fd, inname, ubuf, nb)) != 0) { 214 if ((m = file_is_tar(ms, ubuf, nb)) != 0) { 222 if ((m = file_trycdf(ms, fd, ubuf, nb)) != 0) { 230 if ((m = file_softmagic(ms, ubuf, nb, BINTEST)) != 0) { 245 if ((m = file_tryelf(ms, fd, ubuf, nb)) != 0) 252 file_trymacho(ms, fd, ubuf, nb, inname); 260 if ((m = file_ascmagic(ms, ubuf, nb)) != 0) { 269 if ((m = file_ascmagic_with_encoding( ms, ubuf, [all...] |
/macosx-10.9.5/ICU-511.35/icuSources/test/iotest/ |
H A D | trnstst.c | 122 UChar ubuf[256]; local 193 len=fread(ubuf, sizeof(UChar), u_strlen(compare), infile); 199 ubuf[len]=0; 201 if(u_strlen(compare) != u_strlen(ubuf)) 206 if(u_strcmp(compare, ubuf)) 228 UChar ubuf[256]; local 232 f = u_fstropen(ubuf, sizeof(ubuf)/sizeof(ubuf[0]), "en_US_POSIX"); 290 if(u_strlen(compare) != u_strlen(ubuf)) [all...] |
/macosx-10.9.5/remote_cmds-41.90.1/talkd.tproj/ |
H A D | process.c | 234 struct utmp ubuf; 239 char line[sizeof(ubuf.ut_line) + 1]; 249 while (fread((char *) &ubuf, sizeof ubuf, 1, fd) == 1) 250 if (SCMPN(ubuf.ut_name, name) == 0) { 251 strncpy(line, ubuf.ut_line, sizeof(ubuf.ut_line)); 252 line[sizeof(ubuf.ut_line)] = '\0';
|
/macosx-10.9.5/xnu-2422.115.4/bsd/net/altq/ |
H A D | altq_subr.c | 374 altq_getqstats(struct pf_altq *a, void *ubuf, int *nbytes) argument 383 error = altq_cbq_getqstats(a, ubuf, nbytes); 388 error = altq_priq_getqstats(a, ubuf, nbytes); 393 error = altq_hfsc_getqstats(a, ubuf, nbytes); 398 error = altq_fairq_getqstats(a, ubuf, nbytes); 402 error = altq_qfq_getqstats(a, ubuf, nbytes);
|
H A D | altq_fairq.c | 215 altq_fairq_getqstats(struct pf_altq *a, void *ubuf, int *nbytes) argument 237 if ((error = copyout((caddr_t)&stats, (user_addr_t)(uintptr_t)ubuf,
|
H A D | altq_priq.c | 180 altq_priq_getqstats(struct pf_altq *a, void *ubuf, int *nbytes) argument 202 if ((error = copyout((caddr_t)&stats, (user_addr_t)(uintptr_t)ubuf,
|
H A D | altq_qfq.c | 151 altq_qfq_getqstats(struct pf_altq *a, void *ubuf, int *nbytes) argument 173 if ((error = copyout((caddr_t)&stats, (user_addr_t)(uintptr_t)ubuf,
|
H A D | altq_cbq.c | 183 altq_cbq_getqstats(struct pf_altq *a, void *ubuf, int *nbytes) argument 205 if ((error = copyout((caddr_t)&stats, (user_addr_t)(uintptr_t)ubuf,
|
H A D | altq_hfsc.c | 201 altq_hfsc_getqstats(struct pf_altq *a, void *ubuf, int *nbytes) argument 223 if ((error = copyout((caddr_t)&stats, (user_addr_t)(uintptr_t)ubuf,
|
/macosx-10.9.5/OpenSSH-186/openssh/ |
H A D | sftp-common.c | 195 char buf[1024], mode[11+1], tbuf[12+1], ubuf[11+1], gbuf[11+1]; local 202 snprintf(ubuf, sizeof ubuf, "%u", (u_int)st->st_uid); 203 user = ubuf;
|
/macosx-10.9.5/ICU-511.35/icuSources/i18n/ |
H A D | uspoof_wsconf.cpp | 78 UChar ubuf[50]; local 79 ubuf[0] = 0; 81 int32_t len = uregex_group(e, group, ubuf, 50, &status); 85 UnicodeString s(FALSE, ubuf, len); // Aliasing constructor
|
/macosx-10.9.5/groff-38/groff/src/preproc/refer/ |
H A D | token.cpp | 235 char ubuf[2]; local 236 ubuf[0] = uc_code; 237 ubuf[1] = 0; 238 store_letter(strsave(lbuf), strsave(ubuf), sort_key);
|
/macosx-10.9.5/less-23/less/ |
H A D | output.c | 302 static char ubuf[MAX_UTF_CHAR_LEN]; 310 ubuf[ubuf_index++] = c; 313 c = get_wchar(ubuf) & 0xFF;
|
/macosx-10.9.5/ICU-511.35/icuSources/test/cintltst/ |
H A D | cldrtest.c | 1083 UChar ubuf[64]; /* adjust as needed */ local 1101 u_uastrcpy(ubuf, "[:unassigned:]"); 1102 unassignedSet = uset_openPattern(ubuf, -1, &ec); 1136 u_uastrcpy(ubuf, cbuf); 1137 codeSets[j] = uset_openPattern(ubuf, -1, &ec); 1144 strLen = uset_getItem(exemplarSet, m, &start, &end, ubuf, 1145 sizeof(ubuf)/sizeof(ubuf[0]), &ec); 1157 if (codeSets[j]!=NULL && uset_containsString(codeSets[j], ubuf, strLen)) {
|
H A D | usettest.c | 348 UChar ubuf[1]; local 350 ubuf[0] = (UChar) c; 351 u_UCharsToChars(ubuf, buf, 1);
|
H A D | cdattst.c | 1408 UChar ubuf[kUbufMax]; local 1409 int32_t len = udatpg_getBestPattern(udtpg, textContextItemPtr->skeleton, -1, ubuf, kUbufMax, &status); 1413 udat_applyPattern(udfmt, FALSE, ubuf, len); 1420 len = udat_format(udfmt, july022008, ubuf, kUbufMax, NULL, &status); 1425 } else if (u_strncmp(ubuf, textContextItemPtr->expectedFormat, kUbufMax) != 0) { 1430 u_austrncpy(bbuf1,textContextItemPtr->expectedFormat,kUbufMax), u_austrncpy(bbuf2,ubuf,kUbufMax) );
|
/macosx-10.9.5/tcsh-65/tcsh/ |
H A D | tc.os.c | 630 char ubuf[100]; local 633 (void) getuniverse(ubuf); 634 xprintf("%s\n", ubuf); 643 (void) getuniverse(ubuf); 646 cleanup_push(ubuf, setuniverse_cleanup); 655 cleanup_until(ubuf); 875 char ubuf[100]; local 880 (void) getuniverse(ubuf); 882 cleanup_push(ubuf, setuniverse_cleanup); 891 cleanup_until(ubuf); 900 char ubuf[100]; local [all...] |
/macosx-10.9.5/screen-22/screen/ |
H A D | fileio.c | 311 RcLine(ubuf, ubufl) 312 char *ubuf; 329 if (Parse(ubuf, ubufl, args, argl) <= 0)
|
/macosx-10.9.5/NFS-81/rpc.rquotad/ |
H A D | rquotad.c | 643 static char buf[MAXPATHLEN], ubuf[MAXPATHLEN], gbuf[MAXPATHLEN]; local 655 snprintf(ubuf, sizeof(ubuf), "%s/%s.%s", fst->f_mntonname, QUOTAFILENAME, qfextension[USRQUOTA]); 656 *uqfnamep = ubuf;
|
/macosx-10.9.5/emacs-92/emacs/src/ |
H A D | strftime.c | 901 char ubuf[1024]; /* enough for any single format in practice */ variable 923 len = strftime (ubuf, sizeof ubuf, ufmt, tp); 924 if (len == 0 && ubuf[0] != '\0') 926 cpy (len, ubuf);
|
/macosx-10.9.5/gnudiff-19/diffutils/lib/ |
H A D | strftime.c | 842 char ubuf[1024]; /* enough for any single format in practice */ variable 857 len = strftime (ubuf, sizeof ubuf, ufmt, tp); 858 if (len == 0 && ubuf[0] != '\0') 860 cpy (len, ubuf);
|
/macosx-10.9.5/security_ocspd-55118.2/server/ |
H A D | ocspdNetwork.mm | 517 char *ubuf = (char *)((fullUrl) ? fullUrl : url.Data); 519 memmove(ustr, ubuf, len);
|
/macosx-10.9.5/xnu-2422.115.4/bsd/net/classq/ |
H A D | classq_subr.c | 514 ifclassq_getqstats(struct ifclassq *ifq, u_int32_t qid, void *ubuf, argument 544 (user_addr_t)(uintptr_t)ubuf, sizeof (*ifqs))) == 0)
|