May 17th, 2004, 06:56 PM
The S_XXX are just a bunch of constant values and you're supposed to logical-OR them to get your permissions value. They are just there to give symbolic names to a bunch of values. In your case, you already know what the final permissions value is supposed to be (647 in octal), so you can to do is:
Note the leading 0, which tells it that it is an octal number.
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
Last edited by Scorpions4ever : May 17th, 2004 at 06:59 PM.