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)



> O_CREAT:
> 	It is already in the oflag, there is no way to clear it.

That strikes me as a problem.  As a naïve user, I would expect
specifying oflag= without O_CREAT would make the open() call not pass
O_CREAT.  I certainly think that the lack of a way to turn off O_CREAT
is a problem with anything that is designed to give control over the
flags passed to open().

> O_RDWR:
> 	It is already in the oflag, there is no way to clear it.

It is?  Why is it not O_WRONLY?

> 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.

This makes three "no way to clear it"s.  Perhaps that should be
changed?

/~\ The ASCII				  Mouse
\ / Ribbon Campaign
 X  Against HTML		mouse%rodents-montreal.org@localhost
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


Home | Main Index | Thread Index | Old Index