Home
last modified time | relevance | path

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

12

/freebsd-12-stable/contrib/file/src/
Dascmagic.c73 file_unichar_t *ubuf = NULL; in file_ascmagic() local
92 if (file_encoding(ms, &bb, &ubuf, &ulen, &code, &code_mime, in file_ascmagic()
97 ubuf, ulen, code, type, text); in file_ascmagic()
99 free(ubuf); in file_ascmagic()
106 file_unichar_t *ubuf, size_t ulen, const char *code, const char *type, in file_ascmagic_with_encoding() argument
150 if ((utf8_end = encode_utf8(utf8_buf, mlen, ubuf, ulen)) in file_ascmagic_with_encoding()
175 if (ubuf[i] == '\n') { in file_ascmagic_with_encoding()
184 seen_cr = (ubuf[i] == '\r'); in file_ascmagic_with_encoding()
188 if (ubuf[i] == 0x85) { /* X3.64/ECMA-43 "next line" character */ in file_ascmagic_with_encoding()
200 if (ubuf[i] == '\033') in file_ascmagic_with_encoding()
[all …]
Dencoding.c76 file_unichar_t **ubuf, size_t *ulen, const char **code, in file_encoding() argument
86 if (ubuf == NULL) in file_encoding()
87 ubuf = &udefbuf; in file_encoding()
99 mlen = (nbytes + 1) * sizeof((*ubuf)[0]); in file_encoding()
100 *ubuf = CAST(file_unichar_t *, calloc(CAST(size_t, 1), mlen)); in file_encoding()
101 if (*ubuf == NULL) { in file_encoding()
105 if (looks_ascii(buf, nbytes, *ubuf, ulen)) { in file_encoding()
106 if (looks_utf7(buf, nbytes, *ubuf, ulen) > 0) { in file_encoding()
115 } else if (looks_utf8_with_BOM(buf, nbytes, *ubuf, ulen) > 0) { in file_encoding()
119 } else if (file_looks_utf8(buf, nbytes, *ubuf, ulen) > 1) { in file_encoding()
[all …]
Dcompress.c822 filter_error(unsigned char *ubuf, ssize_t n) in filter_error() argument
827 ubuf[n] = '\0'; in filter_error()
828 buf = RCAST(char *, ubuf); in filter_error()
841 memmove(ubuf, p, CAST(size_t, n + 1)); in filter_error()
843 DPRINTF("Filter error after[[[%s]]]\n", (char *)ubuf); in filter_error()
844 if (islower(*ubuf)) in filter_error()
845 *ubuf = toupper(*ubuf); in filter_error()
/freebsd-12-stable/sys/dev/tws/
Dtws_user.c93 struct tws_ioctl_no_data_buf *ubuf = (struct tws_ioctl_no_data_buf *)buf; in tws_passthru() local
98 buffer_length = roundup2(ubuf->driver_pkt.buffer_length, 512); in tws_passthru()
134 error = copyin(ubuf->pdata, req->data, req->length); in tws_passthru()
143 memcpy(&req->cmd_pkt->cmd, &ubuf->cmd_pkt.cmd, in tws_passthru()
159 ubuf->driver_pkt.os_status = error; in tws_passthru()
164 ubuf->driver_pkt.os_status = req->error_code; in tws_passthru()
188 memcpy(&ubuf->cmd_pkt.hdr, &req->cmd_pkt->hdr, sizeof(struct tws_command_apache)); in tws_passthru()
189 memcpy(&ubuf->cmd_pkt.cmd, &req->cmd_pkt->cmd, sizeof(struct tws_command_apache)); in tws_passthru()
197 error = copyout(req->data, ubuf->pdata, ubuf->driver_pkt.buffer_length); in tws_passthru()
204 ubuf->driver_pkt.os_status = error; in tws_passthru()
[all …]
/freebsd-12-stable/sys/dev/iicbus/
Diic.c364 struct uio ubuf; in iicioctl() local
441 ubuf.uio_iov = &uvec; in iicioctl()
442 ubuf.uio_iovcnt = 1; in iicioctl()
443 ubuf.uio_segflg = UIO_USERSPACE; in iicioctl()
444 ubuf.uio_td = td; in iicioctl()
445 ubuf.uio_resid = s->count; in iicioctl()
446 ubuf.uio_offset = 0; in iicioctl()
447 ubuf.uio_rw = UIO_WRITE; in iicioctl()
448 error = iicuio_move(priv, &ubuf, 0); in iicioctl()
458 ubuf.uio_iov = &uvec; in iicioctl()
[all …]
/freebsd-12-stable/contrib/sendmail/src/
Dparseaddr.c2017 static char ubuf[MAXNAME_I + 2]; local
2085 cataddr(++tv, NULL, ubuf, sizeof(ubuf), ' ', false);
2093 a->q_user = sm_rpool_strdup_x(e->e_rpool, ubuf);
2124 stripquotes(ubuf);
2125 if (ISSMTPCODE(ubuf) && ubuf[3] == ' ')
2130 if ((off = isenhsc(ubuf + 4, ' ')) > 0)
2132 ubuf[off + 4] = '\0';
2138 ubuf[3] = '\0';
2140 (void) sm_strlcpyn(fmt, sizeof(fmt), 2, ubuf, " %s");
2142 usrerr(fmt, ubuf + off);
[all …]
Derr.c138 char ubuf[80]; local
213 user = ubuf;
214 (void) sm_snprintf(ubuf, sizeof(ubuf), "UID%d", (int) RealUid);
/freebsd-12-stable/crypto/openssh/
Dsftp-common.c220 char buf[1024], lc[8], mode[11+1], tbuf[12+1], ubuf[11+1], gbuf[11+1]; in ls_file() local
227 snprintf(ubuf, sizeof ubuf, "%u", (u_int)st->st_uid); in ls_file()
228 user = ubuf; in ls_file()
/freebsd-12-stable/contrib/tcsh/
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()
642 cleanup_push(ubuf, setuniverse_cleanup); in douniverse()
651 cleanup_until(ubuf); in douniverse()
871 char ubuf[100]; in doatt() local
876 (void) getuniverse(ubuf); in doatt()
878 cleanup_push(ubuf, setuniverse_cleanup); in doatt()
887 cleanup_until(ubuf); in doatt()
[all …]
/freebsd-12-stable/sys/compat/linux/
Dlinux_stats.c180 newstat_copyout(struct stat *buf, void *ubuf) in newstat_copyout() argument
202 return (copyout(&tbuf, ubuf, sizeof(tbuf))); in newstat_copyout()
255 stat_copyout(struct stat *buf, void *ubuf) in stat_copyout() argument
279 return (copyout(&lbuf, ubuf, sizeof(lbuf))); in stat_copyout()
531 stat64_copyout(struct stat *buf, void *ubuf) in stat64_copyout() argument
561 return (copyout(&lbuf, ubuf, sizeof(lbuf))); in stat64_copyout()
/freebsd-12-stable/contrib/less/
Doutput.c419 static char ubuf[MAX_UTF_CHAR_LEN];
427 ubuf[ubuf_index++] = c;
430 c = get_wchar(ubuf) & 0xFF;
/freebsd-12-stable/contrib/diff/lib/
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-12-stable/sys/fs/ext2fs/
Dext2_hash.c212 const unsigned char *ubuf = (const unsigned char *)src; in ext2_prep_hashbuf() local
226 buf_byte = (u_int)ubuf[i]; in ext2_prep_hashbuf()
/freebsd-12-stable/sys/i386/ibcs2/
Dibcs2_misc.c887 struct ibcs2_utimbuf ubuf; in ibcs2_utime() local
893 error = copyin(uap->buf, &ubuf, sizeof(ubuf)); in ibcs2_utime()
896 tbuf[0].tv_sec = ubuf.actime; in ibcs2_utime()
898 tbuf[1].tv_sec = ubuf.modtime; in ibcs2_utime()
/freebsd-12-stable/sys/compat/linuxkpi/common/src/
Dlinux_seq_file.c46 seq_read(struct linux_file *f, char *ubuf, size_t size, off_t *ppos) in seq_read() argument
/freebsd-12-stable/sys/net/altq/
Daltq_subr.c758 altq_getqstats(struct pf_altq *a, void *ubuf, int *nbytes, int version) in altq_getqstats() argument
765 error = cbq_getqstats(a, ubuf, nbytes, version); in altq_getqstats()
770 error = priq_getqstats(a, ubuf, nbytes, version); in altq_getqstats()
775 error = hfsc_getqstats(a, ubuf, nbytes, version); in altq_getqstats()
780 error = fairq_getqstats(a, ubuf, nbytes, version); in altq_getqstats()
785 error = codel_getqstats(a, ubuf, nbytes, version); in altq_getqstats()
Daltq_codel.c158 codel_getqstats(struct pf_altq *a, void *ubuf, int *nbytes, int version) in codel_getqstats() argument
173 if ((error = copyout((caddr_t)&stats, ubuf, sizeof(stats))) != 0) in codel_getqstats()
Daltq_fairq.c231 fairq_getqstats(struct pf_altq *a, void *ubuf, int *nbytes, int version) in fairq_getqstats() argument
249 if ((error = copyout((caddr_t)&stats, ubuf, sizeof(stats))) != 0) in fairq_getqstats()
Daltq_priq.c201 priq_getqstats(struct pf_altq *a, void *ubuf, int *nbytes, int version) in priq_getqstats() argument
219 if ((error = copyout((caddr_t)&stats, ubuf, sizeof(stats))) != 0) in priq_getqstats()
Daltq_cbq.c454 cbq_getqstats(struct pf_altq *a, void *ubuf, int *nbytes, int version) in cbq_getqstats() argument
472 if ((error = copyout((caddr_t)&stats, ubuf, sizeof(stats))) != 0) in cbq_getqstats()
/freebsd-12-stable/contrib/mandoc/
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()
/freebsd-12-stable/contrib/llvm-project/compiler-rt/include/sanitizer/
Dlinux_syscall_hooks.h519 #define __sanitizer_syscall_pre_ustat(dev, ubuf) \ argument
520 __sanitizer_syscall_pre_impl_ustat((long)(dev), (long)(ubuf))
521 #define __sanitizer_syscall_post_ustat(res, dev, ubuf) \ argument
522 __sanitizer_syscall_post_impl_ustat(res, (long)(dev), (long)(ubuf))
2301 void __sanitizer_syscall_pre_impl_ustat(long dev, long ubuf);
2302 void __sanitizer_syscall_post_impl_ustat(long res, long dev, long ubuf);
/freebsd-12-stable/sys/sys/
Dsyscallsubr.h327 int freebsd11_kern_getdirentries(struct thread *td, int fd, char *ubuf, u_int
/freebsd-12-stable/sys/kern/
Dsysv_shm.c1282 struct oshmid_ds *ubuf; member
1329 return (copyout(&outbuf, uap->ubuf, sizeof(outbuf))); in oshmctl()
/freebsd-12-stable/contrib/llvm-project/lldb/source/Target/
DProcess.cpp2162 const uint8_t *ubuf = (const uint8_t *)buf; in WriteMemory() local
2165 bp_sites_in_range.ForEach([this, addr, size, &bytes_written, &ubuf, in WriteMemory()
2192 WriteMemoryPrivate(curr_addr, ubuf + bytes_written, curr_size, error); in WriteMemory()
2204 ::memcpy(bp->GetSavedOpcodeBytes() + opcode_offset, ubuf + bytes_written, in WriteMemory()
2212 WriteMemoryPrivate(addr + bytes_written, ubuf + bytes_written, in WriteMemory()

12