[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netbsd-tech-userlevel
Subject:    Re: [PATCH] Re: iflag/oflag for dd(1)
From:       David Laight <david () l8s ! co ! uk>
Date:       2015-03-18 20:39:29
Message-ID: 20150318203929.GB8991 () snowdrop ! l8s ! co ! uk
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic