Searched refs:ubuf (Results 1 - 25 of 32) sorted by relevance

12

/freebsd-10-stable/contrib/file/src/
H A Dascmagic.c74 unichar *ubuf = NULL; local
85 if (file_encoding(ms, buf, nbytes, &ubuf, &ulen, &code, &code_mime,
89 rv = file_ascmagic_with_encoding(ms, buf, nbytes, ubuf, ulen, code,
92 free(ubuf);
99 size_t nbytes, unichar *ubuf, size_t ulen, const char *code,
132 /* Convert ubuf to UTF-8 and try text soft magic */
140 if ((utf8_end = encode_utf8(utf8_buf, mlen, ubuf, ulen))
157 if (ubuf[i] == '\n') {
166 seen_cr = (ubuf[i] == '\r');
170 if (ubuf[
98 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 Dencoding.c66 * ubuf, and the number of characters converted in ulen.
69 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
80 mlen = (nbytes + 1) * sizeof((*ubuf)[0]);
81 if ((*ubuf = CAST(unichar *, calloc((size_t)1, mlen))) == NULL) {
91 if (looks_ascii(buf, nbytes, *ubuf, ulen)) {
92 if (looks_utf7(buf, nbytes, *ubuf, ulen) > 0) {
101 } else if (looks_utf8_with_BOM(buf, nbytes, *ubuf, ulen) > 0) {
105 } else if (file_looks_utf8(buf, nbytes, *ubuf, ulen) > 1) {
109 } else if ((ucs_type = looks_ucs16(buf, nbytes, *ubuf, ulen)) != 0) {
118 } else if (looks_latin1(buf, nbytes, *ubuf, ule
231 looks_ascii(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument
251 looks_latin1(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument
270 looks_extended(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument
301 file_looks_utf8(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument
372 looks_utf8_with_BOM(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument
382 looks_utf7(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument
401 looks_ucs16(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument
[all...]
H A Dcompress.c617 filter_error(unsigned char *ubuf, ssize_t n) argument
622 ubuf[n] = '\0';
623 buf = (char *)ubuf;
636 memmove(ubuf, p, CAST(size_t, n + 1));
638 DPRINTF("Filter error after[[[%s]]]\n", (char *)ubuf);
639 if (islower(*ubuf))
640 *ubuf = toupper(*ubuf);
H A Dfuncs.c181 const unsigned char *ubuf = CAST(const unsigned char *, buf); local
200 looks_text = file_encoding(ms, ubuf, nb, &u8buf, &ulen,
222 m = file_zmagic(ms, fd, inname, ubuf, nb);
232 m = file_is_tar(ms, ubuf, nb);
243 m = file_trycdf(ms, fd, ubuf, nb);
254 m = file_softmagic(ms, ubuf, nb, NULL, NULL, BINTEST,
271 m = file_tryelf(ms, fd, ubuf, nb);
285 m = file_ascmagic(ms, ubuf, nb, looks_text);
/freebsd-10-stable/sys/dev/tws/
H A Dtws_user.c91 struct tws_ioctl_no_data_buf *ubuf = (struct tws_ioctl_no_data_buf *)buf; local
119 req->length = (ubuf->driver_pkt.buffer_length + 511) & ~511;
128 error = copyin(ubuf->pdata, req->data, req->length);
137 memcpy(&req->cmd_pkt->cmd, &ubuf->cmd_pkt.cmd,
153 ubuf->driver_pkt.os_status = error;
158 ubuf->driver_pkt.os_status = req->error_code;
182 memcpy(&ubuf->cmd_pkt.hdr, &req->cmd_pkt->hdr, sizeof(struct tws_command_apache));
183 memcpy(&ubuf->cmd_pkt.cmd, &req->cmd_pkt->cmd, sizeof(struct tws_command_apache));
191 error = copyout(req->data, ubuf->pdata, ubuf
219 tws_retrive_aen(struct tws_softc *sc, u_long cmd, struct tws_ioctl_packet *ubuf) argument
297 struct tws_ioctl_packet *ubuf = (struct tws_ioctl_packet *)buf; local
[all...]
/freebsd-10-stable/sys/dev/iicbus/
H A Diic.c361 struct uio ubuf; local
438 ubuf.uio_iov = &uvec;
439 ubuf.uio_iovcnt = 1;
440 ubuf.uio_segflg = UIO_USERSPACE;
441 ubuf.uio_td = td;
442 ubuf.uio_resid = s->count;
443 ubuf.uio_offset = 0;
444 ubuf.uio_rw = UIO_WRITE;
445 error = iicuio_move(priv, &ubuf, 0);
455 ubuf
[all...]
/freebsd-10-stable/crypto/openssh/
H A Dsftp-common.c220 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-10-stable/contrib/groff/src/preproc/refer/
H A Dtoken.cpp235 char ubuf[2]; local
236 ubuf[0] = uc_code;
237 ubuf[1] = 0;
238 store_letter(strsave(lbuf), strsave(ubuf), sort_key);
/freebsd-10-stable/contrib/sendmail/src/
H A Dparseaddr.c1968 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[
3106 char ubuf[BUFSIZ * 2]; local
[all...]
H A Derr.c135 char ubuf[80]; local
210 user = ubuf;
211 (void) sm_snprintf(ubuf, sizeof(ubuf), "UID%d", (int) RealUid);
/freebsd-10-stable/contrib/less/
H A Doutput.c406 static char ubuf[MAX_UTF_CHAR_LEN];
414 ubuf[ubuf_index++] = c;
417 c = get_wchar(ubuf) & 0xFF;
/freebsd-10-stable/sys/fs/ext2fs/
H A Dext2_hash.c199 const unsigned char *ubuf = (const unsigned char *)src; local
213 buf_byte = (u_int)ubuf[i];
/freebsd-10-stable/contrib/tcsh/
H A Dtc.os.c630 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-10-stable/sys/compat/linux/
H A Dlinux_stats.c168 newstat_copyout(struct stat *buf, void *ubuf) argument
190 return (copyout(&tbuf, ubuf, sizeof(tbuf)));
256 stat_copyout(struct stat *buf, void *ubuf) argument
283 return (copyout(&lbuf, ubuf, sizeof(lbuf)));
545 stat64_copyout(struct stat *buf, void *ubuf) argument
575 return (copyout(&lbuf, ubuf, sizeof(lbuf)));
/freebsd-10-stable/sys/contrib/altq/altq/
H A Daltq_codel.c159 codel_getqstats(struct pf_altq *a, void *ubuf, int *nbytes) argument
174 if ((error = copyout((caddr_t)&stats, ubuf, sizeof(stats))) != 0)
H A Daltq_subr.c770 altq_getqstats(struct pf_altq *a, void *ubuf, int *nbytes) argument
777 error = cbq_getqstats(a, ubuf, nbytes);
782 error = priq_getqstats(a, ubuf, nbytes);
787 error = hfsc_getqstats(a, ubuf, nbytes);
792 error = fairq_getqstats(a, ubuf, nbytes);
797 error = codel_getqstats(a, ubuf, nbytes);
H A Daltq_fairq.c232 fairq_getqstats(struct pf_altq *a, void *ubuf, int *nbytes) argument
250 if ((error = copyout((caddr_t)&stats, ubuf, sizeof(stats))) != 0)
H A Daltq_cbq.c463 cbq_getqstats(struct pf_altq *a, void *ubuf, int *nbytes) argument
481 if ((error = copyout((caddr_t)&stats, ubuf, sizeof(stats))) != 0)
H A Daltq_priq.c209 priq_getqstats(struct pf_altq *a, void *ubuf, int *nbytes) argument
227 if ((error = copyout((caddr_t)&stats, ubuf, sizeof(stats))) != 0)
/freebsd-10-stable/contrib/diff/lib/
H A Dstrftime.c745 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-10-stable/sys/i386/ibcs2/
H A Dibcs2_misc.c943 struct ibcs2_utimbuf ubuf; local
949 error = copyin(uap->buf, &ubuf, sizeof(ubuf));
952 tbuf[0].tv_sec = ubuf.actime;
954 tbuf[1].tv_sec = ubuf.modtime;
/freebsd-10-stable/sys/compat/svr4/
H A Dsvr4_stat.c572 if (uap->ubuf != NULL) {
573 error = copyin(uap->ubuf, &ub, sizeof(ub));
H A Dsvr4_proto.h79 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-10-stable/contrib/llvm/tools/lldb/source/Target/
H A DProcess.cpp2736 const uint8_t *ubuf = (const uint8_t *)buf;
2739 bp_sites_in_range.ForEach([this, addr, size, &bytes_written, &ubuf, &error](BreakpointSite *bp) -> void {
2760 ubuf + bytes_written,
2775 ::memcpy(bp->GetSavedOpcodeBytes() + opcode_offset, ubuf + bytes_written, intersect_size);
2782 ubuf + bytes_written,
/freebsd-10-stable/sys/kern/
H A Dsysv_shm.c1239 struct oshmid_ds *ubuf; member in struct:oshmctl_args
1286 error = copyout(&outbuf, uap->ubuf, sizeof(outbuf));

Completed in 389 milliseconds

12