SunOS 3.5 dd (ibs == obs) != bs
Guy Harris
guy at auspex.UUCP
Fri Nov 11 08:34:30 AEST 1988
>I looked at the System V source for dd and saw something like:
>
> if (bs) ibs = obs = bs;
>
>which leads me to believe that setting bs should do the same thing as
>setting both ibs & obs.
>
>Does BSD do something different...
The BSD "dd" does:
if (bs) {
ibs = obs = bs;
if (conv == null)
fflag++;
}
"fflag" appears, from a quick glance at the code, to make "dd" bypass
copying data from its input buffer to its output buffer, and just read
stuff into its input buffer and write it from that buffer.
The S5R3 "dd", although it has all the V7/BSD "dd" features, doesn't
have the "fflag" hack - it may copy stuff more efficiently and thus not
bother with that particular fast path. Griff?
More information about the Comp.unix.questions
mailing list