Home
last modified time | relevance | path

Searched refs:dbsz (Results 1 – 5 of 5) sorted by relevance

/system/core/toolbox/upstream-netbsd/bin/dd/
Ddd.c215 size_t dbsz = out.dbsz; in setup() local
217 dbsz += in.dbsz - 1; in setup()
218 if ((in.db = malloc(dbsz)) == NULL) { in setup()
224 malloc((u_int)(MAX(in.dbsz, cbsz) + cbsz))) == NULL || in setup()
225 (out.db = malloc((u_int)(out.dbsz + cbsz))) == NULL) { in setup()
243 (void)ddop_ftruncate(out, out.fd, (off_t)out.offset * out.dbsz); in setup()
351 (void)memset(in.dbp, ' ', in.dbsz); in dd_in()
353 (void)memset(in.dbp, 0, in.dbsz); in dd_in()
356 n = ddop_read(in, in.fd, in.dbp, in.dbsz); in dd_in()
383 ddop_lseek(in, in.fd, (off_t)in.dbsz, SEEK_CUR)) in dd_in()
[all …]
Dposition.c74 (off_t)in.offset * (off_t)in.dbsz, SEEK_CUR) == -1) { in pos_in()
87 for (bcnt = in.dbsz, cnt = in.offset, warned = 0; cnt;) { in pos_in()
91 bcnt = in.dbsz; in pos_in()
141 (off_t)out.offset * (off_t)out.dbsz, SEEK_SET) == -1) in pos_out()
160 if ((n = ddop_read(out, out.fd, out.db, out.dbsz)) > 0) in pos_out()
180 out.db, out.dbsz)) != out.dbsz) in pos_out()
Dargs.c118 in.dbsz = out.dbsz = 512; in jcl()
220 in.dbsz = out.dbsz = strsuftoll("block size", arg, 1, UINT_MAX); in f_bs()
253 in.dbsz = strsuftoll("input block size", arg, 1, UINT_MAX); in f_ibs()
292 out.dbsz = strsuftoll("output block size", arg, 1, UINT_MAX); in f_obs()
Dconv.c76 if (in.dbcnt >= out.dbsz) { in def()
194 if ((out.dbcnt += cbsz) >= out.dbsz) in block()
255 if (out.dbcnt >= out.dbsz) in unblock()
Ddd.h79 uint64_t dbsz; /* buffer size */ member