LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   open system call in linux (https://www.linuxquestions.org/questions/linux-newbie-8/open-system-call-in-linux-20302/)

udayan 05-06-2002 08:07 AM

open system call in linux
 
in open system call : what does mode implies and what all values does it takes.

Mik 05-06-2002 10:21 AM

Mode is used to set the default permissions when creating a file. The following example will create a file with read and write permissions for user, group and other (UGO).

open(path, O_RDWR | O_CREAT, 0666);

Read the manual page of chmod to find out how all those numbers work.


All times are GMT -5. The time now is 04:39 AM.