/freebsd-11-stable/contrib/file/src/ |
H A D | ascmagic.c | 72 unichar *ubuf = NULL; local 91 if (file_encoding(ms, &bb, &ubuf, &ulen, &code, &code_mime, 96 ubuf, ulen, code, type, text); 98 free(ubuf); 105 const struct buffer *b, unichar *ubuf, size_t ulen, const char *code, 141 /* Convert ubuf to UTF-8 and try text soft magic */ 149 if ((utf8_end = encode_utf8(utf8_buf, mlen, ubuf, ulen)) 174 if (ubuf[i] == '\n') { 183 seen_cr = (ubuf[i] == '\r'); 187 if (ubuf[ 104 file_ascmagic_with_encoding(struct magic_set *ms, const struct buffer *b, unichar *ubuf, size_t ulen, const char *code, const char *type, int text) argument 337 encode_utf8(unsigned char *buf, size_t len, unichar *ubuf, size_t ulen) argument [all...] |
H A D | encoding.c | 66 * ubuf, and the number of characters converted in ulen. 69 file_encoding(struct magic_set *ms, const struct buffer *b, unichar **ubuf, argument 80 if (ubuf == NULL) 81 ubuf = &udefbuf; 90 mlen = (nbytes + 1) * sizeof((*ubuf)[0]); 91 if ((*ubuf = CAST(unichar *, calloc(CAST(size_t, 1), mlen))) == NULL) { 102 if (looks_ascii(buf, nbytes, *ubuf, ulen)) { 103 if (looks_utf7(buf, nbytes, *ubuf, ulen) > 0) { 112 } else if (looks_utf8_with_BOM(buf, nbytes, *ubuf, ulen) > 0) { 116 } else if (file_looks_utf8(buf, nbytes, *ubuf, ule 253 looks_ascii(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument 273 looks_latin1(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument 292 looks_extended(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument 323 file_looks_utf8(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument 394 looks_utf8_with_BOM(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument 404 looks_utf7(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument [all...] |
H A D | compress.c | 760 filter_error(unsigned char *ubuf, ssize_t n) argument 765 ubuf[n] = '\0'; 766 buf = RCAST(char *, ubuf); 779 memmove(ubuf, p, CAST(size_t, n + 1)); 781 DPRINTF("Filter error after[[[%s]]]\n", (char *)ubuf); 782 if (islower(*ubuf)) 783 *ubuf = toupper(*ubuf);
|
/freebsd-11-stable/sys/dev/tws/ |
H A D | tws_user.c | 91 struct tws_ioctl_no_data_buf *ubuf = (struct tws_ioctl_no_data_buf *)buf; local 96 buffer_length = roundup2(ubuf->driver_pkt.buffer_length, 512); 132 error = copyin(ubuf->pdata, req->data, req->length); 141 memcpy(&req->cmd_pkt->cmd, &ubuf->cmd_pkt.cmd, 157 ubuf->driver_pkt.os_status = error; 162 ubuf->driver_pkt.os_status = req->error_code; 186 memcpy(&ubuf->cmd_pkt.hdr, &req->cmd_pkt->hdr, sizeof(struct tws_command_apache)); 187 memcpy(&ubuf->cmd_pkt.cmd, &req->cmd_pkt->cmd, sizeof(struct tws_command_apache)); 195 error = copyout(req->data, ubuf->pdata, ubuf 223 tws_retrive_aen(struct tws_softc *sc, u_long cmd, struct tws_ioctl_packet *ubuf) argument 301 struct tws_ioctl_packet *ubuf = (struct tws_ioctl_packet *)buf; local [all...] |
/freebsd-11-stable/sys/dev/iicbus/ |
H A D | iic.c | 362 struct uio ubuf; local 439 ubuf.uio_iov = &uvec; 440 ubuf.uio_iovcnt = 1; 441 ubuf.uio_segflg = UIO_USERSPACE; 442 ubuf.uio_td = td; 443 ubuf.uio_resid = s->count; 444 ubuf.uio_offset = 0; 445 ubuf.uio_rw = UIO_WRITE; 446 error = iicuio_move(priv, &ubuf, 0); 456 ubuf [all...] |
/freebsd-11-stable/crypto/openssh/ |
H A D | sftp-common.c | 220 char buf[1024], mode[11+1], tbuf[12+1], ubuf[11+1], gbuf[11+1]; local 228 snprintf(ubuf, sizeof ubuf, "%u", (u_int)st->st_uid); 229 user = ubuf;
|
/freebsd-11-stable/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-11-stable/contrib/sendmail/src/ |
H A D | parseaddr.c | 1983 static char ubuf[MAXNAME + 2]; local 2051 cataddr(++tv, NULL, ubuf, sizeof(ubuf), ' ', false); 2059 a->q_user = sm_rpool_strdup_x(e->e_rpool, ubuf); 2090 stripquotes(ubuf); 2091 if (ISSMTPCODE(ubuf) && ubuf[3] == ' ') 2096 if ((off = isenhsc(ubuf + 4, ' ')) > 0) 2098 ubuf[off + 4] = '\0'; 2104 ubuf[ 3125 char ubuf[BUFSIZ * 2]; local [all...] |
H A D | err.c | 135 char ubuf[80]; local 210 user = ubuf; 211 (void) sm_snprintf(ubuf, sizeof(ubuf), "UID%d", (int) RealUid);
|
/freebsd-11-stable/contrib/less/ |
H A D | output.c | 419 static char ubuf[MAX_UTF_CHAR_LEN]; 427 ubuf[ubuf_index++] = c; 430 c = get_wchar(ubuf) & 0xFF;
|
/freebsd-11-stable/sys/fs/ext2fs/ |
H A D | ext2_hash.c | 199 const unsigned char *ubuf = (const unsigned char *)src; local 213 buf_byte = (u_int)ubuf[i];
|
/freebsd-11-stable/sys/compat/linux/ |
H A D | linux_stats.c | 135 newstat_copyout(struct stat *buf, void *ubuf) argument 157 return (copyout(&tbuf, ubuf, sizeof(tbuf))); 225 stat_copyout(struct stat *buf, void *ubuf) argument 252 return (copyout(&lbuf, ubuf, sizeof(lbuf))); 532 stat64_copyout(struct stat *buf, void *ubuf) argument 562 return (copyout(&lbuf, ubuf, sizeof(lbuf)));
|
/freebsd-11-stable/contrib/tcsh/ |
H A D | tc.os.c | 626 char ubuf[100]; local 629 (void) getuniverse(ubuf); 630 xprintf("%s\n", ubuf); 639 (void) getuniverse(ubuf); 642 cleanup_push(ubuf, setuniverse_cleanup); 651 cleanup_until(ubuf); 871 char ubuf[100]; local 876 (void) getuniverse(ubuf); 878 cleanup_push(ubuf, setuniverse_cleanup); 887 cleanup_until(ubuf); 896 char ubuf[100]; local [all...] |
/freebsd-11-stable/sys/i386/ibcs2/ |
H A D | ibcs2_misc.c | 881 struct ibcs2_utimbuf ubuf; local 887 error = copyin(uap->buf, &ubuf, sizeof(ubuf)); 890 tbuf[0].tv_sec = ubuf.actime; 892 tbuf[1].tv_sec = ubuf.modtime;
|
/freebsd-11-stable/sys/net/altq/ |
H A D | altq_codel.c | 159 codel_getqstats(struct pf_altq *a, void *ubuf, int *nbytes) argument 174 if ((error = copyout((caddr_t)&stats, ubuf, sizeof(stats))) != 0)
|
H A D | altq_subr.c | 736 altq_getqstats(struct pf_altq *a, void *ubuf, int *nbytes) argument 743 error = cbq_getqstats(a, ubuf, nbytes); 748 error = priq_getqstats(a, ubuf, nbytes); 753 error = hfsc_getqstats(a, ubuf, nbytes); 758 error = fairq_getqstats(a, ubuf, nbytes); 763 error = codel_getqstats(a, ubuf, nbytes);
|
H A D | altq_cbq.c | 455 cbq_getqstats(struct pf_altq *a, void *ubuf, int *nbytes) argument 473 if ((error = copyout((caddr_t)&stats, ubuf, sizeof(stats))) != 0)
|
H A D | altq_fairq.c | 232 fairq_getqstats(struct pf_altq *a, void *ubuf, int *nbytes) argument 250 if ((error = copyout((caddr_t)&stats, ubuf, sizeof(stats))) != 0)
|
H A D | altq_priq.c | 202 priq_getqstats(struct pf_altq *a, void *ubuf, int *nbytes) argument 220 if ((error = copyout((caddr_t)&stats, ubuf, sizeof(stats))) != 0)
|
/freebsd-11-stable/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-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_common_syscalls.inc | 926 PRE_SYSCALL(ustat)(long dev, void *ubuf) {} 928 POST_SYSCALL(ustat)(long res, long dev, void *ubuf) { 930 if (ubuf) POST_WRITE(ubuf, struct_ustat_sz);
|
/freebsd-11-stable/sys/compat/svr4/ |
H A D | svr4_stat.c | 576 if (uap->ubuf != NULL) { 577 error = copyin(uap->ubuf, &ub, sizeof(ub));
|
/freebsd-11-stable/contrib/mdocml/ |
H A D | roff.c | 1120 char ubuf[24]; /* buffer to print the number */ local 1247 res = ubuf; 1342 ubuf[0] = arg_complete && 1346 ubuf[1] = '\0'; 1350 (void)snprintf(ubuf, sizeof(ubuf), "%d", 1353 ubuf[0] = '\0'; 1357 (void)snprintf(ubuf, sizeof(ubuf), "%d",
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/include/sanitizer/ |
H A D | linux_syscall_hooks.h | 519 #define __sanitizer_syscall_pre_ustat(dev, ubuf) \ 520 __sanitizer_syscall_pre_impl_ustat((long)(dev), (long)(ubuf)) 521 #define __sanitizer_syscall_post_ustat(res, dev, ubuf) \ 522 __sanitizer_syscall_post_impl_ustat(res, (long)(dev), (long)(ubuf)) 2299 void __sanitizer_syscall_pre_impl_ustat(long dev, long ubuf); 2300 void __sanitizer_syscall_post_impl_ustat(long res, long dev, long ubuf);
|
/freebsd-11-stable/sys/kern/ |
H A D | sysv_shm.c | 1266 struct oshmid_ds *ubuf; member in struct:oshmctl_args 1313 return (copyout(&outbuf, uap->ubuf, sizeof(outbuf)));
|