Changeset View
Changeset View
Standalone View
Standalone View
head/bin/dd/position.c
Show First 20 Lines • Show All 119 Lines • ▼ Show 20 Lines | if ((nr = read(in.fd, in.db, bcnt)) > 0) { | ||||
if (!(bcnt -= nr)) { | if (!(bcnt -= nr)) { | ||||
bcnt = in.dbsz; | bcnt = in.dbsz; | ||||
--cnt; | --cnt; | ||||
} | } | ||||
} else | } else | ||||
--cnt; | --cnt; | ||||
if (need_summary) | if (need_summary) | ||||
summary(); | summary(); | ||||
if (need_progress) | |||||
progress(); | |||||
continue; | continue; | ||||
} | } | ||||
if (nr == 0) { | if (nr == 0) { | ||||
if (files_cnt > 1) { | if (files_cnt > 1) { | ||||
--files_cnt; | --files_cnt; | ||||
continue; | continue; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines |