Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-06-2002, 08:07 AM   #1
Registered: Apr 2002
Location: India
Distribution: Linux Redhat 7.0
Posts: 62

Rep: Reputation: 16
open system call in linux

in open system call : what does mode implies and what all values does it takes.
Old 05-06-2002, 10:21 AM   #2
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding system call in linux guam Programming 2 12-04-2004 01:38 PM
how to use ls in a system call in C in linux newguy21 Programming 15 08-01-2004 01:38 PM
one more on open system call udayan Programming 2 05-17-2002 02:32 PM
adding system call in linux udayan Programming 1 05-02-2002 03:26 AM
C system call in linux nerak Programming 6 04-10-2002 03:04 PM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration