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 Tue, Mar 17, 2015 at 03:32:58PM +0000, Emmanuel Dreyfus wrote:
> 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?

There are also the 'odd' behaviour of pipe and fifos.
IIRC opening the input rw will stop it blocking if there are
no writers.

	David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index