|
From: Frank N. <fn1...@in...> - 2007-04-02 20:10:36
|
Sorry, its me again. I am not sure which flags I have to use, when I want to open a file in binary mode a) for reading and b) for writing. Does VKI_O_RDONLY and VKI_O_WRONLY already cover the binary modes? (this is one of the not so well documented parts, so I am struggeling a little here) Frank |
|
From: Julian S. <js...@ac...> - 2007-04-03 13:58:54
|
I don't think there is any binary vs non-binary file mode differences on Linux. So this should not be a problem. J On Monday 02 April 2007 21:10, Frank Naumann wrote: > Sorry, its me again. > > I am not sure which flags I have to use, when I want to open a file in > binary mode a) for reading and b) for writing. Does VKI_O_RDONLY and > VKI_O_WRONLY already cover the binary modes? (this is one of the not so > well documented parts, so I am struggeling a little here) > > Frank > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users > |
|
From: Nicholas N. <nj...@cs...> - 2007-04-03 22:04:32
|
On Tue, 3 Apr 2007, Julian Seward wrote: >> I am not sure which flags I have to use, when I want to open a file in >> binary mode a) for reading and b) for writing. Does VKI_O_RDONLY and >> VKI_O_WRONLY already cover the binary modes? (this is one of the not so >> well documented parts, so I am struggeling a little here) > > I don't think there is any binary vs non-binary file mode > differences on Linux. So this should not be a problem. It's the difference between 'fopen' (a library function) and 'open' (a system call). They're similar -- fopen is usually layered on top of open -- but not identical. Nick |
|
From: Igmar P. <mai...@jd...> - 2007-04-03 22:59:43
|
> I am not sure which flags I have to use, when I want to open a file in > binary mode Binary mode is a DOS / Windows thing. It is non-existent on other platforms. Igmar |