Home
last modified time | relevance | path

Searched refs:ubuf (Results 1 – 25 of 41) sorted by relevance

12

/freebsd/contrib/file/src/
H A Dascmagic.c73 file_unichar_t *ubuf = NULL; in file_ascmagic() local
99 free(ubuf); in file_ascmagic()
177 if (ubuf[i] == '\n') { in file_ascmagic_with_encoding()
186 seen_cr = (ubuf[i] == '\r'); in file_ascmagic_with_encoding()
202 if (ubuf[i] == '\033') in file_ascmagic_with_encoding()
204 if (ubuf[i] == '\b') in file_ascmagic_with_encoding()
343 if (ubuf[i] <= 0x7f) { in encode_utf8()
349 if (ubuf[i] <= 0x7ff) { in encode_utf8()
355 if (ubuf[i] <= 0xffff) { in encode_utf8()
361 if (ubuf[i] <= 0x1fffff) { in encode_utf8()
[all …]
H A Dencoding.c86 if (ubuf == NULL) in file_encoding()
87 ubuf = &udefbuf; in file_encoding()
101 if (*ubuf == NULL) { in file_encoding()
177 if (ubuf == &udefbuf) in file_encoding()
277 ubuf[(*ulen)++] = buf[i]; \
358 if (ubuf) in file_looks_utf8()
371 if (ubuf) in file_looks_utf8()
372 ubuf[(*ulen)++] = buf[i]; in file_looks_utf8()
416 if (ubuf) in file_looks_utf8()
417 ubuf[(*ulen)++] = c; in file_looks_utf8()
[all …]
H A Dcompress.c957 filter_error(unsigned char *ubuf, ssize_t n) in filter_error() argument
962 ubuf[n] = '\0'; in filter_error()
963 buf = RCAST(char *, ubuf); in filter_error()
976 memmove(ubuf, p, CAST(size_t, n + 1)); in filter_error()
978 DPRINTF("Filter error after[[[%s]]]\n", (char *)ubuf); in filter_error()
979 if (islower(*ubuf)) in filter_error()
980 *ubuf = toupper(*ubuf); in filter_error()
/freebsd/sys/dev/tws/
H A Dtws_user.c138 memcpy(&req->cmd_pkt->cmd, &ubuf->cmd_pkt.cmd, in tws_passthru()
154 ubuf->driver_pkt.os_status = error; in tws_passthru()
192 error = copyout(req->data, ubuf->pdata, ubuf->driver_pkt.buffer_length); in tws_passthru()
199 ubuf->driver_pkt.os_status = error; in tws_passthru()
231 ubuf->driver_pkt.status = 0; in tws_retrive_aen()
286 memcpy(ubuf->data_buf, &qp[index], in tws_retrive_aen()
304 ubuf->driver_pkt.status = 0; in tws_ioctl_aen()
310 tws_retrive_aen(sc,cmd,ubuf); in tws_ioctl_aen()
332 ubuf->driver_pkt.status = 0; in tws_ioctl_aen()
352 ubuf->driver_pkt.status = 0; in tws_ioctl_aen()
[all …]
/freebsd/sys/dev/iicbus/
H A Diic.c438 struct uio ubuf; in iicioctl() local
536 ubuf.uio_iov = &uvec; in iicioctl()
537 ubuf.uio_iovcnt = 1; in iicioctl()
539 ubuf.uio_td = td; in iicioctl()
541 ubuf.uio_offset = 0; in iicioctl()
542 ubuf.uio_rw = UIO_WRITE; in iicioctl()
556 ubuf.uio_iov = &uvec; in iicioctl()
557 ubuf.uio_iovcnt = 1; in iicioctl()
559 ubuf.uio_td = td; in iicioctl()
561 ubuf.uio_offset = 0; in iicioctl()
[all …]
/freebsd/sys/contrib/dev/athk/ath11k/
H A Ddebugfs.c560 const char __user *ubuf, in ath11k_write_enable_extd_tx_stats() argument
591 char __user *ubuf, in ath11k_read_enable_extd_tx_stats() argument
614 const char __user *ubuf, in ath11k_write_extd_rx_stats() argument
690 char __user *ubuf, in ath11k_read_extd_rx_stats() argument
1067 const char __user *ubuf, in ath11k_write_pktlog_filter() argument
1199 char __user *ubuf, in ath11k_read_pktlog_filter() argument
1353 const char __user *ubuf, in ath11k_debugfs_write_enable_dbr_dbg() argument
1674 const char __user *ubuf, in ath11k_write_twt_add_dialog() argument
1750 const char __user *ubuf, in ath11k_write_twt_del_dialog() argument
1797 const char __user *ubuf, in ath11k_write_twt_pause_dialog() argument
[all …]
/freebsd/contrib/sendmail/src/
H A Dparseaddr.c2088 cataddr(++tv, NULL, ubuf, sizeof(ubuf), ' ', false);
2127 stripquotes(ubuf);
2128 if (ISSMTPCODE(ubuf) && ubuf[3] == ' ')
2141 ubuf[3] = '\0';
2151 if (ubuf[0] == '4')
2187 p = ubuf;
2206 stripquotes(ubuf);
2235 cataddr(tv, NULL, ubuf, sizeof(ubuf), '\0', true);
3172 char ubuf[BUFSIZ * 2]; local
3238 cataddr(&(pvp[0]), NULL, ubuf, sizeof(ubuf),
[all …]
H A Derr.c134 char ubuf[80]; local
209 user = ubuf;
210 (void) sm_snprintf(ubuf, sizeof(ubuf), "UID%d", (int) RealUid);
/freebsd/crypto/openssh/
H A Dsftp-common.c222 char buf[1024], lc[8], mode[11+1], tbuf[12+1], ubuf[11+1], gbuf[11+1]; in ls_file() local
229 snprintf(ubuf, sizeof ubuf, "%u", (u_int)st->st_uid); in ls_file()
230 user = ubuf; in ls_file()
/freebsd/contrib/tcsh/
H A Dtc.os.c626 char ubuf[100]; in douniverse() local
629 (void) getuniverse(ubuf); in douniverse()
630 xprintf("%s\n", ubuf); in douniverse()
639 (void) getuniverse(ubuf); in douniverse()
651 cleanup_until(ubuf); in douniverse()
871 char ubuf[100]; in doatt() local
876 (void) getuniverse(ubuf); in doatt()
887 cleanup_until(ubuf); in doatt()
896 char ubuf[100]; in doucb() local
901 (void) getuniverse(ubuf); in doucb()
[all …]
/freebsd/sys/dev/ntb/test/
H A Dntb_tool.c366 get_ubuf(struct sysctl_req *req, char *ubuf) in get_ubuf() argument
373 rc = SYSCTL_IN(req, ubuf, req->newlen); in get_ubuf()
376 ubuf[req->newlen] = '\0'; in get_ubuf()
384 char ubuf[19]; in read_out() local
386 memset((void *)ubuf, 0, sizeof(ubuf)); in read_out()
387 snprintf(ubuf, sizeof(ubuf), "0x%jx", val); in read_out()
389 return SYSCTL_OUT(req, ubuf, sizeof(ubuf)); in read_out()
406 struct sysctl_req *req, char *ubuf, uint64_t *val, bool db_mask_sflag, in tool_fn_write() argument
422 sscanf(ubuf, "%c %jx", &cmd, &bits); in tool_fn_write()
575 struct tool_mw *inmw, char *ubuf, caddr_t write_buf, int *cmd_op, in tool_mw_write_fn() argument
[all …]
/freebsd/sys/compat/linux/
H A Dlinux_stats.c141 newstat_copyout(struct stat *buf, void *ubuf) in newstat_copyout() argument
163 return (copyout(&tbuf, ubuf, sizeof(tbuf))); in newstat_copyout()
216 old_stat_copyout(struct stat *buf, void *ubuf) in old_stat_copyout() argument
240 return (copyout(&lbuf, ubuf, sizeof(lbuf))); in old_stat_copyout()
491 stat64_copyout(struct stat *buf, void *ubuf) in stat64_copyout() argument
521 return (copyout(&lbuf, ubuf, sizeof(lbuf))); in stat64_copyout()
656 statx_copyout(struct stat *buf, void *ubuf) in statx_copyout() argument
685 return (copyout(&tbuf, ubuf, sizeof(tbuf))); in statx_copyout()
/freebsd/sys/contrib/dev/athk/ath10k/
H A Ddebug.c1892 const char __user *ubuf, in ath10k_write_pktlog_filter() argument
1899 if (kstrtouint_from_user(ubuf, count, 0, &filter)) in ath10k_write_pktlog_filter()
1960 const char __user *ubuf, in ath10k_write_quiet_period() argument
1966 if (kstrtouint_from_user(ubuf, count, 0, &period)) in ath10k_write_quiet_period()
2004 const char __user *ubuf, in ath10k_write_btcoex() argument
2015 if (copy_from_user(buf, ubuf, buf_size)) in ath10k_write_btcoex()
2088 const char __user *ubuf, in ath10k_write_enable_extd_tx_stats() argument
2095 if (kstrtouint_from_user(ubuf, count, 0, &filter)) in ath10k_write_enable_extd_tx_stats()
2120 char __user *ubuf, in ath10k_read_enable_extd_tx_stats() argument
2143 const char __user *ubuf, in ath10k_write_peer_stats() argument
[all …]
/freebsd/contrib/less/
H A Doutput.c413 static char ubuf[MAX_UTF_CHAR_LEN]; in putchr()
421 ubuf[ubuf_index++] = c; in putchr()
424 c = get_wchar(ubuf) & 0xFF; in putchr()
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_seq_file.c43 seq_read(struct linux_file *f, char *ubuf, size_t size, off_t *ppos) in seq_read() argument
67 rc = strscpy(ubuf, sbuf_data(sbuf) + *ppos, size + 1); in seq_read()
/freebsd/sys/fs/ext2fs/
H A Dext2_hash.c210 const unsigned char *ubuf = (const unsigned char *)src; in ext2_prep_hashbuf() local
224 buf_byte = (u_int)ubuf[i]; in ext2_prep_hashbuf()
/freebsd/contrib/diff/lib/
H A Dstrftime.c745 char ubuf[1024]; /* enough for any single format in practice */ variable
760 len = strftime (ubuf, sizeof ubuf, ufmt, tp);
761 if (len == 0 && ubuf[0] != '\0')
763 cpy (len, ubuf);
/freebsd/sys/net/altq/
H A Daltq_subr.c700 altq_getqstats(struct pf_altq *a, void *ubuf, int *nbytes, int version) in altq_getqstats() argument
707 error = cbq_getqstats(a, ubuf, nbytes, version); in altq_getqstats()
712 error = priq_getqstats(a, ubuf, nbytes, version); in altq_getqstats()
717 error = hfsc_getqstats(a, ubuf, nbytes, version); in altq_getqstats()
722 error = fairq_getqstats(a, ubuf, nbytes, version); in altq_getqstats()
727 error = codel_getqstats(a, ubuf, nbytes, version); in altq_getqstats()
H A Daltq_codel.c157 codel_getqstats(struct pf_altq *a, void *ubuf, int *nbytes, int version) in codel_getqstats() argument
172 if ((error = copyout((caddr_t)&stats, ubuf, sizeof(stats))) != 0) in codel_getqstats()
H A Daltq_cbq.c417 cbq_getqstats(struct pf_altq *a, void *ubuf, int *nbytes, int version) in cbq_getqstats() argument
435 if ((error = copyout((caddr_t)&stats, ubuf, sizeof(stats))) != 0) in cbq_getqstats()
H A Daltq_priq.c176 priq_getqstats(struct pf_altq *a, void *ubuf, int *nbytes, int version) in priq_getqstats() argument
194 if ((error = copyout((caddr_t)&stats, ubuf, sizeof(stats))) != 0) in priq_getqstats()
H A Daltq_fairq.c230 fairq_getqstats(struct pf_altq *a, void *ubuf, int *nbytes, int version) in fairq_getqstats() argument
248 if ((error = copyout((caddr_t)&stats, ubuf, sizeof(stats))) != 0) in fairq_getqstats()
/freebsd/crypto/openssl/test/
H A Dparams_api_test.c476 unsigned char ubuf[100]; in test_param_construct() local
501 params[n++] = OSSL_PARAM_construct_BN("bignum", ubuf, sizeof(ubuf)); in test_param_construct()
/freebsd/sys/compat/lindebugfs/
H A Dlindebugfs.c613 fops_blob_read(struct file *filp, char __user *ubuf, size_t read_size, loff_t *ppos) in fops_blob_read() argument
623 return (simple_read_from_buffer(ubuf, read_size, ppos, blob->data, blob->size)); in fops_blob_read()
/freebsd/contrib/mandoc/
H A Droff.c1240 char ubuf[24]; /* buffer to print the number */ in roff_expand() local
1419 res = ubuf; in roff_expand()
1596 ubuf[0] = arg_complete && in roff_expand()
1600 ubuf[1] = '\0'; in roff_expand()
1604 (void)snprintf(ubuf, sizeof(ubuf), "%d", in roff_expand()
1607 ubuf[0] = '\0'; in roff_expand()
1611 (void)snprintf(ubuf, sizeof(ubuf), "%d", in roff_expand()

12