/freebsd-9.3-release/contrib/file/src/ |
H A D | ascmagic.c | 74 unichar *ubuf = NULL; local 88 if (file_encoding(ms, buf, nbytes, &ubuf, &ulen, &code, &code_mime, 92 rv = file_ascmagic_with_encoding(ms, buf, nbytes, ubuf, ulen, code, 95 free(ubuf); 102 size_t nbytes, unichar *ubuf, size_t ulen, const char *code, 138 /* Convert ubuf to UTF-8 and try text soft magic */ 146 if ((utf8_end = encode_utf8(utf8_buf, mlen, ubuf, ulen)) 157 if (ubuf[i] == '\n') { 166 seen_cr = (ubuf[i] == '\r'); 170 if (ubuf[ 101 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, int text) argument 311 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) { 90 if (looks_ascii(buf, nbytes, *ubuf, ulen)) { 94 } else if (looks_utf8_with_BOM(buf, nbytes, *ubuf, ulen) > 0) { 98 } else if (file_looks_utf8(buf, nbytes, *ubuf, ulen) > 1) { 102 } else if ((ucs_type = looks_ucs16(buf, nbytes, *ubuf, ulen)) != 0) { 111 } else if (looks_latin1(buf, nbytes, *ubuf, ulen)) { 115 } else if (looks_extended(buf, nbytes, *ubuf, ule 224 looks_ascii(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument 244 looks_latin1(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument 263 looks_extended(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument 294 file_looks_utf8(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument 365 looks_utf8_with_BOM(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument 375 looks_ucs16(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument [all...] |
H A D | funcs.c | 168 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, 0, NULL, BINTEST, 246 if ((m = file_tryelf(ms, fd, ubuf, nb)) != 0) 258 if ((m = file_ascmagic(ms, ubuf, nb, looks_text)) != 0) {
|
/freebsd-9.3-release/sys/dev/tws/ |
H A D | tws_user.c | 93 struct tws_ioctl_no_data_buf *ubuf = (struct tws_ioctl_no_data_buf *)buf; local 121 req->length = (ubuf->driver_pkt.buffer_length + 511) & ~511; 130 error = copyin(ubuf->pdata, req->data, req->length); 139 memcpy(&req->cmd_pkt->cmd, &ubuf->cmd_pkt.cmd, 155 ubuf->driver_pkt.os_status = error; 160 ubuf->driver_pkt.os_status = req->error_code; 184 memcpy(&ubuf->cmd_pkt.hdr, &req->cmd_pkt->hdr, sizeof(struct tws_command_apache)); 185 memcpy(&ubuf->cmd_pkt.cmd, &req->cmd_pkt->cmd, sizeof(struct tws_command_apache)); 193 error = copyout(req->data, ubuf->pdata, ubuf 221 tws_retrive_aen(struct tws_softc *sc, u_long cmd, struct tws_ioctl_packet *ubuf) argument 299 struct tws_ioctl_packet *ubuf = (struct tws_ioctl_packet *)buf; local [all...] |
/freebsd-9.3-release/contrib/lukemftpd/src/ |
H A D | logutmp.c | 85 UTMP ubuf; local 106 if (read(fd, &ubuf, sizeof(UTMP)) == sizeof(UTMP)) { 107 if (!ubuf.ut_name[0]) {
|
/freebsd-9.3-release/crypto/openssh/ |
H A D | sftp-common.c | 198 char buf[1024], mode[11+1], tbuf[12+1], ubuf[11+1], gbuf[11+1]; local 206 snprintf(ubuf, sizeof ubuf, "%u", (u_int)st->st_uid); 207 user = ubuf;
|
/freebsd-9.3-release/contrib/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);
|
/freebsd-9.3-release/contrib/sendmail/src/ |
H A D | parseaddr.c | 1968 static char ubuf[MAXNAME + 2]; local 2036 cataddr(++tv, NULL, ubuf, sizeof(ubuf), ' ', false); 2044 a->q_user = sm_rpool_strdup_x(e->e_rpool, ubuf); 2075 stripquotes(ubuf); 2076 if (ISSMTPCODE(ubuf) && ubuf[3] == ' ') 2081 if ((off = isenhsc(ubuf + 4, ' ')) > 0) 2083 ubuf[off + 4] = '\0'; 2089 ubuf[ 3091 char ubuf[BUFSIZ * 2]; local [all...] |
H A D | err.c | 136 char ubuf[80]; local 210 user = ubuf; 211 (void) sm_snprintf(ubuf, sizeof(ubuf), "UID%d", (int) RealUid);
|
/freebsd-9.3-release/sys/compat/linux/ |
H A D | linux_stats.c | 168 newstat_copyout(struct stat *buf, void *ubuf) argument 190 return (copyout(&tbuf, ubuf, sizeof(tbuf))); 255 stat_copyout(struct stat *buf, void *ubuf) argument 282 return (copyout(&lbuf, ubuf, sizeof(lbuf))); 505 stat64_copyout(struct stat *buf, void *ubuf) argument 535 return (copyout(&lbuf, ubuf, sizeof(lbuf)));
|
/freebsd-9.3-release/contrib/less/ |
H A D | output.c | 336 static char ubuf[MAX_UTF_CHAR_LEN]; 344 ubuf[ubuf_index++] = c; 347 c = get_wchar(ubuf) & 0xFF;
|
/freebsd-9.3-release/sys/fs/ext2fs/ |
H A D | ext2_hash.c | 201 const unsigned char *ubuf = (const unsigned char *)src; local 213 buf_byte = (u_int)ubuf[i];
|
/freebsd-9.3-release/contrib/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...] |
/freebsd-9.3-release/contrib/diff/lib/ |
H A D | strftime.c | 745 char ubuf[1024]; /* enough for any single format in practice */ local 760 len = strftime (ubuf, sizeof ubuf, ufmt, tp); 761 if (len == 0 && ubuf[0] != '\0') 763 cpy (len, ubuf);
|
/freebsd-9.3-release/sys/i386/ibcs2/ |
H A D | ibcs2_misc.c | 930 struct ibcs2_utimbuf ubuf; local 936 error = copyin(uap->buf, &ubuf, sizeof(ubuf)); 939 tbuf[0].tv_sec = ubuf.actime; 941 tbuf[1].tv_sec = ubuf.modtime;
|
/freebsd-9.3-release/sys/compat/svr4/ |
H A D | svr4_stat.c | 572 if (uap->ubuf != NULL) { 573 error = copyin(uap->ubuf, &ub, sizeof(ub));
|
H A D | svr4_proto.h | 78 char ubuf_l_[PADL_(struct svr4_utimbuf *)]; struct svr4_utimbuf * ubuf; char ubuf_r_[PADR_(struct svr4_utimbuf *)]; member in struct:svr4_sys_utime_args
|
/freebsd-9.3-release/sys/gnu/fs/xfs/FreeBSD/ |
H A D | xfs_ioctl.c | 531 char __user *ubuf, 548 if (copy_to_user(ubuf, kbuf, *len)) 562 const char __user *ubuf, 580 if (copy_from_user(kbuf, ubuf, len))
|
/freebsd-9.3-release/sys/contrib/altq/altq/ |
H A D | altq_subr.c | 732 altq_getqstats(struct pf_altq *a, void *ubuf, int *nbytes) argument 739 error = cbq_getqstats(a, ubuf, nbytes); 744 error = priq_getqstats(a, ubuf, nbytes); 749 error = hfsc_getqstats(a, ubuf, nbytes);
|
H A D | altq_cbq.c | 457 cbq_getqstats(struct pf_altq *a, void *ubuf, int *nbytes) argument 475 if ((error = copyout((caddr_t)&stats, ubuf, sizeof(stats))) != 0)
|
H A D | altq_priq.c | 208 priq_getqstats(struct pf_altq *a, void *ubuf, int *nbytes) argument 226 if ((error = copyout((caddr_t)&stats, ubuf, sizeof(stats))) != 0)
|
H A D | altq_hfsc.c | 300 hfsc_getqstats(struct pf_altq *a, void *ubuf, int *nbytes) argument 318 if ((error = copyout((caddr_t)&stats, ubuf, sizeof(stats))) != 0)
|
/freebsd-9.3-release/sys/kern/ |
H A D | sysv_shm.c | 985 struct oshmid_ds *ubuf; member in struct:oshmctl_args 1023 error = copyout(&outbuf, uap->ubuf, sizeof(outbuf));
|
/freebsd-9.3-release/sys/i386/linux/ |
H A D | linux_systrace_args.c | 410 uarg[1] = (intptr_t) p->ubuf; /* struct l_ustat * */
|
/freebsd-9.3-release/sys/amd64/linux32/ |
H A D | linux32_systrace_args.c | 402 uarg[1] = (intptr_t) p->ubuf; /* struct l_ustat * */
|