![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| help on umask | suvendu4urs | Linux | 6 | 04-11-2008 09:12 AM |
| umask with find | braindrain | Shell Programming and Scripting | 4 | 09-25-2006 04:28 AM |
| Selective Umask | baanprog | UNIX for Advanced & Expert Users | 3 | 08-03-2006 06:48 AM |
| Umask help | x96riley3 | AIX | 1 | 04-04-2006 12:56 PM |
| umask | rsh | UNIX for Dummies Questions & Answers | 2 | 12-14-2002 08:52 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
umask
in this unix book that i have, it says:
the statement: filedes = open(pathname, O_CREAT, mode); is actually filedes = open(pathname, O_CREAT, (~mask)&mode); /* ~ is the negation symbol */ like it's doing some type of masking. for example, fd = open("newfile", O_CREAT, 0644); will actually given the mode of 0640. how did it come up with that? what value does it mask to my mode set to come up with 0640? why is it doing that? thanks Last edited by bb00y; 11-06-2002 at 12:51 AM. |
| Forum Sponsor | ||
|
|