[U-Boot] [PATCHv3 5/8] mkenvimage: Read/Write from/to stdin/out by default or if the filename is "-"

Mike Frysinger vapier at gentoo.org
Sun Jan 8 20:29:05 CET 2012


On Sunday 08 January 2012 07:02:40 David Wagner wrote:
> Le 08/01/2012 07:50, Mike Frysinger a écrit :
> > On Thursday 05 January 2012 13:44:56 David Wagner wrote:
> >> +		bin_fd = creat(bin_filename, S_IRUSR | S_IWUSR | S_IRGRP |
> >> +					     S_IWGRP);
> > 
> > this should prob be open()
> 
> What is wrong with creat() ?

nothings wrong with it per-say ... just unusual ;).  if you really want to 
keep it, then it's fine.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120108/bfd304e7/attachment.pgp>


More information about the U-Boot mailing list