Searched refs:dbsz (Results 1 – 5 of 5) sorted by relevance
| /openbsd/src/bin/dd/ |
| D | dd.c | 136 if ((in.db = malloc(out.dbsz + in.dbsz - 1)) == NULL) in setup() 140 in.db = malloc(MAXIMUM(in.dbsz, cbsz) + cbsz); in setup() 143 out.db = malloc(out.dbsz + cbsz); in setup() 164 (void)ftruncate(out.fd, out.offset * out.dbsz); in setup() 248 (void)memset(in.dbp, ' ', in.dbsz); in dd_in() 250 (void)memset(in.dbp, 0, in.dbsz); in dd_in() 253 n = read(in.fd, in.dbp, in.dbsz); in dd_in() 277 lseek(in.fd, (off_t)in.dbsz, SEEK_CUR)) in dd_in() 285 in.dbcnt += in.dbrcnt = in.dbsz; in dd_in() 289 } else if (n == in.dbsz) { in dd_in() [all …]
|
| D | position.c | 67 if (lseek(in.fd, in.offset * in.dbsz, SEEK_CUR) == -1) in pos_in() 77 for (bcnt = in.dbsz, cnt = in.offset, warned = 0; cnt;) { in pos_in() 81 bcnt = in.dbsz; in pos_in() 127 if (lseek(out.fd, out.offset * out.dbsz, SEEK_SET) == -1) in pos_out() 144 if ((n = read(out.fd, out.db, out.dbsz)) > 0) in pos_out() 161 if ((n = write(out.fd, out.db, out.dbsz)) != out.dbsz) in pos_out()
|
| D | args.c | 96 in.dbsz = out.dbsz = 512; in jcl() 161 if (in.dbsz == 0 || out.dbsz == 0) in jcl() 168 if (cbsz > SSIZE_MAX || in.dbsz > SSIZE_MAX || out.dbsz > SSIZE_MAX) in jcl() 171 if (in.offset > LLONG_MAX / in.dbsz || out.offset > LLONG_MAX / out.dbsz) in jcl() 186 in.dbsz = out.dbsz = get_bsz(arg); in f_bs() 216 in.dbsz = get_bsz(arg); in f_ibs() 231 out.dbsz = get_bsz(arg); in f_obs()
|
| D | conv.c | 69 if (in.dbcnt >= out.dbsz) { in def() 186 if ((out.dbcnt += cbsz) >= out.dbsz) in block() 246 if (out.dbcnt >= out.dbsz) in unblock()
|
| D | dd.h | 45 size_t dbsz; /* buffer size */ member
|