This (and the forthcoming part 2, which is the same patch with corrected offsets) are resubmissions to avoid the conflict with "n_tty: do O_ONLCR translation as a single write" and to move the O_OPOST test to the caller. -Joe