bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PATCH: source byte order option for od


From: Robert Dodier
Subject: PATCH: source byte order option for od
Date: Sat, 12 Jan 2008 19:00:28 -0700

Hello,

Here is a patch to enable two new options for od,
--source-byte-order and --force-byte-swap.

--source-byte-order=foo tells od to carry out end-to-end swap
on each output block when the source byte order, as
indicated by the argument of the option, differs from the host
byte order, as indicated by __BYTE_ORDER in endian.h.
od recognizes lsb and msb as source byte order specifications.

--force-byte-swap tells od to carry out end-to-end byte swap (unconditionally).

I'll be happy to write some Texinfo documentation and whatever
else is needed if it seems like this is going to fly.

Thanks in advance for your comments.

Robert Dodier

Attachment: od.c-byte-order-patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]