Re: the difeirent bettwen the function open() with two an three parameters
- From: "Nils O. Selåsdal" <NOS@xxxxxxx>
- Date: Thu, 28 Sep 2006 09:55:44 +0200
deepak wrote:
freegnu wrote:
hi all, i dont dont whats the difference, and the different bettwen flags
and mode
The third parameter in open is to give mode while we create a file
using open system call, where flag 'll be O_CREAT and we can specify
the user access permissions using mode.
ex: open(char filename, O_CREAT, S_IRUSER);
If the file is already there, no need of third parameter.
Just to be clear, it is needed when you use the O_CREAT
flag, wether the file already exists or not :-)
.
Relevant Pages
- Re: CreateFile() and FILE_FLAG_WRITE_THROUGH
... BUT this will not work UNLESS you specify the ... FILE_FLAG_NO_BUFFERING flag, ... I have now proved to myself that file metadata is not written ... disk structure to be consistent, this incurs a cost and that's why the ... (microsoft.public.win32.programmer.kernel) - Re: Creating a self deleting executable using .NET
... FILE_SHARE_DELETE flag set. ... If this is not the case then the second process ... If you open a filestream it's easy to specify the FILE_SHARE_READ + ... It seems to me you want (in addition to other sharing flags that may be ... (microsoft.public.dotnet.languages.csharp) - Re: the difeirent bettwen the function open() with two an three parameters
... using open system call, where flag 'll be O_CREAT and we can specify ... If the file is already there, no need of third parameter. ... (comp.lang.c) - Re: Letting a user select a color for a control
... CC_FULLOPEN flag instead of the CC_SOLIDCOLOR flag in order to do this. ... is there any way to specify where on the screen the Color Dialog ... > specify an initial color selection. ... >> something before calling aDialogColor. ... (microsoft.public.access.modulesdaovba) - Re: reply-to
... but the reply to address appends the servers ... I've figured out that it deals with a sender envelope issue, ... It may be that if you specify the -f option, ... The -r flag is described as an alternate and obsolete form of the ... (comp.lang.php) |
|