tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: [PATCH] Re: iflag/oflag for dd(1)
On Mar 17, 3:32pm, manu%netbsd.org@localhost (Emmanuel Dreyfus) wrote:
-- Subject: Re: [PATCH] Re: iflag/oflag for dd(1)
| On Tue, Mar 17, 2015 at 03:04:12PM +0000, Christos Zoulas wrote:
| > Some of the flags don't make sense:
| > (O_CREAT,O_RDONLY,O_RDWR,O_TRUNC,O_WRONLY,O_APPEND)
|
| Don't they?
| - O_CREAT: you may want dd to work only if the file xists
| - O_RDWR: you may want to specify it for the input file
| - O_TRUNC, O_APPEND: for testing purpose?
O_CREAT:
It is already in the oflag, there is no way to clear it.
It does not make a lot of sense for the iflag
O_RDWR:
It is already in the oflag, there is no way to clear it.
It does not make a lot of sense for the iflag
O_TRUNC:
For oflag it will lead to confusion with conv=notrunc and no way
to clear it. Two ways to do the same thing.
It does not make a lot of sense for the iflag
O_APPEND:
This is useful for oflag I guess, not for iflag...
christos
Home |
Main Index |
Thread Index |
Old Index