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

123

/netbsd-6-1-5-RELEASE/sbin/fsck_lfs/
H A 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. */
108 LIST_HEAD(bufhash_struct, ubuf);
117 void buf_destroy(struct ubuf *);
118 void bremfree(struct ubuf *);
119 struct ubuf *incore(struct uvnode *, int);
120 struct ubuf *getblk(struct uvnode *, daddr_t, int);
121 void bwrite(struct ubuf *);
[all...]
H A Dsegwrite.h45 int lfs_gatherblock(struct segment *, struct ubuf *);
47 int (*match) (struct lfs *, struct ubuf *));
55 int lfs_match_data(struct lfs *, struct ubuf *);
56 int lfs_match_indir(struct lfs *, struct ubuf *);
57 int lfs_match_dindir(struct lfs *, struct ubuf *);
58 int lfs_match_tindir(struct lfs *, struct ubuf *);
60 void lfs_shellsort(struct ubuf **, int32_t *, int, int);
H A Dvnode.h34 LIST_HEAD(ubuflists, ubuf);
40 int (*v_strategy_op) (struct ubuf *);
41 int (*v_bwrite_op) (struct ubuf *);
67 int raw_vop_strategy(struct ubuf *);
68 int raw_vop_bwrite(struct ubuf *);
H A Dlfs_user.h73 int lfs_vop_strategy(struct ubuf *);
74 int lfs_vop_bwrite(struct ubuf *);
82 struct ufs1_dinode *lfs_ifind(struct lfs *, ino_t, struct ubuf *);
87 int lfs_balloc(struct uvnode *, off_t, int, struct ubuf **);
H A Dbufcache.c58 TAILQ_HEAD(bqueues, ubuf) bufqueues[BQUEUES];
105 struct ubuf *bp, *nbp;
155 buf_destroy(struct ubuf * bp)
168 bremfree(struct ubuf * bp)
195 struct ubuf *
198 struct ubuf *bp;
219 struct ubuf *
222 struct ubuf *bp;
296 bwrite(struct ubuf * bp)
307 brelse(struct ubuf * b
[all...]
H A Dsegwrite.c75 #define buf ubuf
114 lfs_match_data(struct lfs * fs, struct ubuf * bp)
120 lfs_match_indir(struct lfs * fs, struct ubuf * bp)
129 lfs_match_dindir(struct lfs * fs, struct ubuf * bp)
138 lfs_match_tindir(struct lfs * fs, struct ubuf * bp)
198 struct ubuf *bp;
241 struct ubuf *bp, *ibp;
359 lfs_gatherblock(struct segment * sp, struct ubuf * bp)
400 lfs_gather(struct lfs * fs, struct segment * sp, struct uvnode * vp, int (*match) (struct lfs *, struct ubuf *))
402 struct ubuf *b
[all...]
H A Dvnode.c74 raw_vop_strategy(struct ubuf * bp)
86 raw_vop_bwrite(struct ubuf * bp)
128 struct ubuf *bp;
H A Dlfs.c108 lfs_fragextend(struct uvnode *, int, int, daddr_t, struct ubuf **);
118 lfs_vop_strategy(struct ubuf * bp)
141 lfs_vop_bwrite(struct ubuf * bp)
165 struct ubuf *bp;
314 lfs_ifind(struct lfs * fs, ino_t ino, struct ubuf * bp)
342 struct ubuf *bp;
414 struct ubuf *bp;
452 struct ubuf *bp;
576 struct ubuf *bp;
750 struct ubuf *b
[all...]
H A Dpass4.c38 #define buf ubuf
153 struct ubuf *bp;
/netbsd-6-1-5-RELEASE/external/bsd/file/dist/src/
H A Dascmagic.c80 unichar *ubuf = NULL; local
94 if (file_encoding(ms, buf, nbytes, &ubuf, &ulen, &code, &code_mime,
98 rv = file_ascmagic_with_encoding(ms, buf, nbytes, ubuf, ulen, code,
101 free(ubuf);
108 size_t nbytes, unichar *ubuf, size_t ulen, const char *code,
144 /* Convert ubuf to UTF-8 and try text soft magic */
152 if ((utf8_end = encode_utf8(utf8_buf, mlen, ubuf, ulen))
162 if (ubuf[i] == '\n') {
171 seen_cr = (ubuf[i] == '\r');
175 if (ubuf[
107 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
315 encode_utf8(unsigned char *buf, size_t len, unichar *ubuf, size_t ulen) argument
[all...]
H A Dencoding.c71 * ubuf, and the number of characters converted in ulen.
74 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
86 mlen = (nbytes + 1) * sizeof((*ubuf)[0]);
87 if ((*ubuf = CAST(unichar *, calloc((size_t)1, mlen))) == NULL) {
92 if (looks_ascii(buf, nbytes, *ubuf, ulen)) {
96 } else if (looks_utf8_with_BOM(buf, nbytes, *ubuf, ulen) > 0) {
100 } else if (file_looks_utf8(buf, nbytes, *ubuf, ulen) > 1) {
105 } else if ((ucs_type = looks_ucs16(buf, nbytes, *ubuf, ulen)) != 0) {
114 } else if (looks_latin1(buf, nbytes, *ubuf, ulen)) {
118 } else if (looks_extended(buf, nbytes, *ubuf, ule
227 looks_ascii(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument
247 looks_latin1(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument
266 looks_extended(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument
297 file_looks_utf8(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument
368 looks_utf8_with_BOM(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument
378 looks_ucs16(const unsigned char *buf, size_t nbytes, unichar *ubuf, size_t *ulen) argument
[all...]
H A Dfuncs.c171 const unsigned char *ubuf = CAST(const unsigned char *, buf); local
195 looks_text = file_encoding(ms, ubuf, nb, &u8buf, &ulen,
214 if ((m = file_zmagic(ms, fd, inname, ubuf, nb)) != 0) {
222 if ((m = file_is_tar(ms, ubuf, nb)) != 0) {
230 if ((m = file_trycdf(ms, fd, ubuf, nb)) != 0) {
238 if ((m = file_softmagic(ms, ubuf, nb, BINTEST,
254 if ((m = file_tryelf(ms, fd, ubuf, nb)) != 0)
266 if ((m = file_ascmagic(ms, ubuf, nb, looks_text)) != 0) {
275 if ((m = file_ascmagic_with_encoding( ms, ubuf,
/netbsd-6-1-5-RELEASE/libexec/lfs_cleanerd/
H A Dfdfs.h18 int fd_vop_strategy(struct ubuf *);
19 int fd_vop_bwrite(struct ubuf *);
H A Dcleaner.h56 void lfs_ientry(IFILE **, struct clfs *, ino_t, struct ubuf **);
H A Dfdfs.c129 struct ubuf *bp;
240 fd_vop_strategy(struct ubuf * bp)
275 fd_vop_bwrite(struct ubuf * bp)
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/gcc/testsuite/gcc.c-torture/compile/
H A D980511-1.c16 int sys_ustat(dev_t dev, struct ustat * ubuf) argument
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/gcc/testsuite/gcc.c-torture/compile/
H A D980511-1.c16 int sys_ustat(dev_t dev, struct ustat * ubuf) argument
/netbsd-6-1-5-RELEASE/libexec/ftpd/
H A Dlogutmp.c93 UTMP ubuf; local
114 if (read(fd, &ubuf, sizeof(UTMP)) == sizeof(UTMP)) {
115 if (!ubuf.ut_name[0]) {
/netbsd-6-1-5-RELEASE/sys/net/npf/
H A Dnpf_tableset.c521 void *ubuf, size_t len, size_t *off)
523 void *ubufp = (uint8_t *)ubuf + *off;
537 table_tree_list(pt_tree_t *tree, npf_netmask_t maxmask, void *ubuf, argument
549 error = table_ent_copyout(ent, blen, ubuf, len, off);
560 npf_table_list(npf_tableset_t *tset, u_int tid, void *ubuf, size_t len) argument
577 if ((error = table_ent_copyout(ent, 0, ubuf,
583 error = table_tree_list(&t->t_tree[0], 32, ubuf, len, &off);
586 error = table_tree_list(&t->t_tree[1], 128, ubuf, len, &off);
520 table_ent_copyout(npf_tblent_t *ent, npf_netmask_t mask, void *ubuf, size_t len, size_t *off) argument
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssh/dist/
H A Dsftp-common.c196 char buf[1024], mode[11+1], tbuf[12+1], ubuf[11+1], gbuf[11+1]; local
203 snprintf(ubuf, sizeof ubuf, "%u", (u_int)st->st_uid);
204 user = ubuf;
/netbsd-6-1-5-RELEASE/external/gpl3/gcc/dist/gcc/testsuite/gcc.target/alpha/
H A Dasm-1.c17 extern int xstat_conv (int vers, struct kernel_stat *kbuf, void *ubuf);
/netbsd-6-1-5-RELEASE/gnu/dist/gcc4/gcc/testsuite/gcc.target/alpha/
H A Dasm-1.c17 extern int xstat_conv (int vers, struct kernel_stat *kbuf, void *ubuf);
/netbsd-6-1-5-RELEASE/regress/sys/kern/getcwd/
H A Dgetcwd.c435 char ubuf[MAXPATHLEN]; local
448 cp = old_getcwd (ubuf, MAXPATHLEN);
449 if (strcmp(buf, ubuf) != 0) {
451 buf, ubuf);
456 strlen(ubuf)+1, 0);
/netbsd-6-1-5-RELEASE/gnu/dist/groff/src/preproc/refer/
H A Dtoken.cpp237 char ubuf[2]; local
238 ubuf[0] = uc_code;
239 ubuf[1] = 0;
240 store_letter(strsave(lbuf), strsave(ubuf), sort_key);
/netbsd-6-1-5-RELEASE/external/bsd/less/dist/
H A Doutput.c325 static char ubuf[MAX_UTF_CHAR_LEN];
333 ubuf[ubuf_index++] = c;
336 c = get_wchar(ubuf) & 0xFF;

Completed in 151 milliseconds

123