Re: the difeirent bettwen the function open() with two an three parameters
- From: "deepak" <deepakpjose@xxxxxxxxx>
- Date: 28 Sep 2006 00:53:08 -0700
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.
flag is to give type of access of file and mode to specify who can
access the files.
.
- Follow-Ups:
- Re: the difeirent bettwen the function open() with two an three parameters
- From: "Nils O. Selåsdal"
- Re: the difeirent bettwen the function open() with two an three parameters
- References:
- Prev by Date: Re: double pointer
- Next by Date: Re: the difeirent bettwen the function open() with two an three parameters
- Previous by thread: Re: the difeirent bettwen the function open() with two an three parameters
- Next by thread: Re: the difeirent bettwen the function open() with two an three parameters
- Index(es):
Relevant Pages
|