Home
last modified time | relevance | path

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

12

/netbsd/src/external/bsd/file/dist/src/
Dascmagic.c79 file_unichar_t *ubuf = NULL; in file_ascmagic() local
98 if (file_encoding(ms, &bb, &ubuf, &ulen, &code, &code_mime, in file_ascmagic()
103 ubuf, ulen, code, type, text); in file_ascmagic()
105 free(ubuf); in file_ascmagic()
112 file_unichar_t *ubuf, size_t ulen, const char *code, const char *type, in file_ascmagic_with_encoding() argument
156 if ((utf8_end = encode_utf8(utf8_buf, mlen, ubuf, ulen)) in file_ascmagic_with_encoding()
183 if (ubuf[i] == '\n') { in file_ascmagic_with_encoding()
192 seen_cr = (ubuf[i] == '\r'); in file_ascmagic_with_encoding()
196 if (ubuf[i] == 0x85) { /* X3.64/ECMA-43 "next line" character */ in file_ascmagic_with_encoding()
208 if (ubuf[i] == '\033') in file_ascmagic_with_encoding()
[all …]
Dencoding.c82 file_unichar_t **ubuf, size_t *ulen, const char **code, in file_encoding() argument
92 if (ubuf == NULL) in file_encoding()
93 ubuf = &udefbuf; in file_encoding()
105 mlen = (nbytes + 1) * sizeof((*ubuf)[0]); in file_encoding()
106 *ubuf = CAST(file_unichar_t *, calloc(CAST(size_t, 1), mlen)); in file_encoding()
107 if (*ubuf == NULL) { in file_encoding()
111 if (looks_ascii(buf, nbytes, *ubuf, ulen)) { in file_encoding()
112 if (looks_utf7(buf, nbytes, *ubuf, ulen) > 0) { in file_encoding()
121 } else if (looks_utf8_with_BOM(buf, nbytes, *ubuf, ulen) > 0) { in file_encoding()
125 } else if (file_looks_utf8(buf, nbytes, *ubuf, ulen) > 1) { in file_encoding()
[all …]
Dcompress.c963 filter_error(unsigned char *ubuf, ssize_t n) in filter_error() argument
968 ubuf[n] = '\0'; in filter_error()
969 buf = RCAST(char *, ubuf); in filter_error()
982 memmove(ubuf, p, CAST(size_t, n + 1)); in filter_error()
984 DPRINTF("Filter error after[[[%s]]]\n", (char *)ubuf); in filter_error()
985 if (islower(*ubuf)) in filter_error()
986 *ubuf = toupper(*ubuf); in filter_error()
/netbsd/src/sbin/fsck_lfs/
Dbufcache.h74 struct ubuf { struct
75 LIST_ENTRY(ubuf) b_hash; /* Hash chain. */
76 LIST_ENTRY(ubuf) b_vnbufs; /* Buffer's associated vnode. */
77 TAILQ_ENTRY(ubuf) b_freelist; /* Free list position if not active. */
107 LIST_HEAD(bufhash_struct, ubuf); argument
116 void buf_destroy(struct ubuf *);
117 void bremfree(struct ubuf *);
118 struct ubuf *incore(struct uvnode *, daddr_t);
119 struct ubuf *getblk(struct uvnode *, daddr_t, int);
120 void bwrite(struct ubuf *);
[all …]
Dbufcache.c58 TAILQ_HEAD(bqueues, ubuf) bufqueues[BQUEUES];
105 struct ubuf *bp, *nbp; in bufrehash()
156 buf_destroy(struct ubuf * bp) in buf_destroy()
168 bremfree(struct ubuf * bp) in bremfree()
193 struct ubuf *
196 struct ubuf *bp; in incore()
217 struct ubuf *
220 struct ubuf *bp; in getblk()
293 bwrite(struct ubuf * bp) in bwrite()
304 brelse(struct ubuf * bp, int set) in brelse()
[all …]
Dsegwrite.h45 int lfs_gatherblock(struct segment *, struct ubuf *);
47 int (*match) (struct lfs *, struct ubuf *));
54 int lfs_match_data(struct lfs *, struct ubuf *);
55 int lfs_match_indir(struct lfs *, struct ubuf *);
56 int lfs_match_dindir(struct lfs *, struct ubuf *);
57 int lfs_match_tindir(struct lfs *, struct ubuf *);
Dvnode.h36 LIST_HEAD(ubuflists, ubuf);
42 int (*v_strategy_op) (struct ubuf *);
43 int (*v_bwrite_op) (struct ubuf *);
69 int raw_vop_strategy(struct ubuf *);
70 int raw_vop_bwrite(struct ubuf *);
Dlfs_user.h80 int lfs_vop_strategy(struct ubuf *);
81 int lfs_vop_bwrite(struct ubuf *);
89 union lfs_dinode *lfs_ifind(struct lfs *, ino_t, struct ubuf *);
94 int lfs_balloc(struct uvnode *, off_t, int, struct ubuf **);
Dsegwrite.c73 #define buf ubuf
104 struct ubuf **, union lfs_blocks *, int, int);
111 lfs_match_data(struct lfs * fs, struct ubuf * bp) in lfs_match_data()
117 lfs_match_indir(struct lfs * fs, struct ubuf * bp) in lfs_match_indir()
126 lfs_match_dindir(struct lfs * fs, struct ubuf * bp) in lfs_match_dindir()
135 lfs_match_tindir(struct lfs * fs, struct ubuf * bp) in lfs_match_tindir()
197 struct ubuf *bp; in lfs_writefile()
244 struct ubuf *bp, *ibp; in lfs_writeinode()
369 lfs_gatherblock(struct segment * sp, struct ubuf * bp) in lfs_gatherblock()
417 …ruct lfs * fs, struct segment * sp, struct uvnode * vp, int (*match) (struct lfs *, struct ubuf *)) in lfs_gather() argument
[all …]
Dlfs.c101 lfs_fragextend(struct uvnode *, int, int, daddr_t, struct ubuf **);
111 lfs_vop_strategy(struct ubuf * bp) in lfs_vop_strategy()
134 lfs_vop_bwrite(struct ubuf * bp) in lfs_vop_bwrite()
158 struct ubuf *bp; in ulfs_bmaparray()
307 lfs_ifind(struct lfs *fs, ino_t ino, struct ubuf *bp) in lfs_ifind()
337 struct ubuf *bp; in lfs_raw_vget()
409 struct ubuf *bp; in lfs_vget()
472 struct ubuf *bp; in lfs_init()
596 struct ubuf *bp; in try_verify()
773 struct ubuf *bp; in check_summary()
[all …]
Dvnode.c74 raw_vop_strategy(struct ubuf * bp) in raw_vop_strategy()
86 raw_vop_bwrite(struct ubuf * bp) in raw_vop_bwrite()
128 struct ubuf *bp; in vnode_destroy()
Dpass4.c37 #define buf ubuf
151 struct ubuf *bp; in pass4check()
Dinode.c101 struct ubuf *bp; in ginode()
235 struct ubuf *bp; in iblock()
468 struct ubuf *bp; in clearinode()
603 struct ubuf *bp; in allocino()
Dpass6.c77 struct ubuf *bp; in rfw_update_single()
213 struct ubuf *bp, *sbp, *cbp; in remove_ino()
331 struct ubuf *bp; in account_indir()
422 struct ubuf *bp; in readdress_inode()
473 struct ubuf *bp, *cbp; in alloc_inode()
551 struct ubuf *bp, *ibp, *sbp, *cbp; in pass6()
/netbsd/src/sys/net/npf/
Dnpf_tableset.c749 void *ubuf, size_t len, size_t *off) in table_ent_copyout() argument
751 void *ubufp = (uint8_t *)ubuf + *off; in table_ent_copyout()
765 table_generic_list(npf_table_t *t, void *ubuf, size_t len) in table_generic_list() argument
774 ent->te_alen, ent->te_preflen, ubuf, len, &off); in table_generic_list()
783 table_cdb_list(npf_table_t *t, void *ubuf, size_t len) in table_cdb_list() argument
793 error = table_ent_copyout(data, dlen, 0, ubuf, len, &off); in table_cdb_list()
804 npf_table_list(npf_table_t *t, void *ubuf, size_t len) in npf_table_list() argument
811 error = table_generic_list(t, ubuf, len); in npf_table_list()
814 error = table_generic_list(t, ubuf, len); in npf_table_list()
817 error = table_cdb_list(t, ubuf, len); in npf_table_list()
[all …]
/netbsd/src/libexec/ftpd/
Dlogutmp.c93 UTMP ubuf; in ftpd_login() local
114 if (read(fd, &ubuf, sizeof(UTMP)) == sizeof(UTMP)) { in ftpd_login()
115 if (!ubuf.ut_name[0]) { in ftpd_login()
/netbsd/src/regress/sys/kern/getcwd/
Dgetcwd.c435 char ubuf[MAXPATHLEN]; in stress_test_getcwd() local
448 cp = old_getcwd (ubuf, MAXPATHLEN); in stress_test_getcwd()
449 if (strcmp(buf, ubuf) != 0) { in stress_test_getcwd()
451 buf, ubuf); in stress_test_getcwd()
456 strlen(ubuf)+1, 0); in stress_test_getcwd()
/netbsd/src/libexec/lfs_cleanerd/
Dfdfs.h18 int fd_vop_strategy(struct ubuf *);
19 int fd_vop_bwrite(struct ubuf *);
Dfdfs.c128 struct ubuf *bp; in fd_reclaim()
239 fd_vop_strategy(struct ubuf * bp) in fd_vop_strategy()
274 fd_vop_bwrite(struct ubuf * bp) in fd_vop_bwrite()
/netbsd/src/crypto/external/bsd/openssh/dist/
Dsftp-common.c225 char buf[1024], lc[8], mode[11+1], tbuf[12+1], ubuf[11+1], gbuf[11+1]; in ls_file() local
232 snprintf(ubuf, sizeof ubuf, "%u", (u_int)st->st_uid); in ls_file()
233 user = ubuf; in ls_file()
/netbsd/src/sys/external/bsd/drm2/dist/drm/
Ddrm_debugfs.c330 static ssize_t connector_write(struct file *file, const char __user *ubuf, in connector_write() argument
340 if (copy_from_user(buf, ubuf, len)) in connector_write()
377 static ssize_t edid_write(struct file *file, const char __user *ubuf, in edid_write() argument
386 buf = memdup_user(ubuf, len); in edid_write()
/netbsd/src/usr.sbin/syslogd/
Dtls.c408 unsigned char *ubuf; in get_commonname() local
415 len = ASN1_STRING_to_UTF8(&ubuf, in get_commonname()
419 strlcpy(*returnstring, (const char*)ubuf, len+1); in get_commonname()
420 OPENSSL_free(ubuf); in get_commonname()
423 OPENSSL_free(ubuf); in get_commonname()
441 unsigned char *ubuf; in match_hostnames() local
495 len = ASN1_STRING_to_UTF8(&ubuf, in match_hostnames()
498 DPRINTF(D_TLS, "found CN: %.*s\n", len, ubuf); in match_hostnames()
501 (const char*)ubuf, len)) in match_hostnames()
503 (const char*)ubuf, len))) { in match_hostnames()
[all …]
/netbsd/src/sys/external/bsd/drm2/dist/drm/i915/
Di915_debugfs.c690 static ssize_t gpu_state_read(struct file *file, char __user *ubuf, in gpu_state_read() argument
710 if (!copy_to_user(ubuf, buf, ret)) in gpu_state_read()
752 const char __user *ubuf, in i915_error_state_write() argument
1931 const char __user *ubuf, in i915_guc_log_relay_write() argument
1939 ret = kstrtoint_from_user(ubuf, cnt, 0, &val); in i915_guc_log_relay_write()
2837 static ssize_t i915_ipc_status_write(struct file *file, const char __user *ubuf, in i915_ipc_status_write() argument
2846 ret = kstrtobool_from_user(ubuf, len, &enable); in i915_ipc_status_write()
3041 const char __user *ubuf, in i915_displayport_test_active_write() argument
3057 input_buffer = memdup_user_nul(ubuf, len); in i915_displayport_test_active_write()
3340 static ssize_t wm_latency_write(struct file *file, const char __user *ubuf, in wm_latency_write() argument
[all …]
/netbsd/src/external/bsd/less/dist/
Doutput.c415 static char ubuf[MAX_UTF_CHAR_LEN]; in putchr()
423 ubuf[ubuf_index++] = c; in putchr()
426 c = get_wchar(ubuf) & 0xFF; in putchr()
/netbsd/src/sys/ufs/ext2fs/
Dext2fs_hash.c97 const unsigned char *ubuf = (const unsigned char *)src; in ext2fs_prep_hashbuf() local
111 buf_byte = (u_int)ubuf[i]; in ext2fs_prep_hashbuf()

12