Re: Posix shared memory - permission problems?
Re: Posix shared memory - permission problems?
- Subject: Re: Posix shared memory - permission problems?
- From: Jonas Maebe <email@hidden>
- Date: Thu, 20 Sep 2007 11:22:18 +0200
On 20 Sep 2007, at 11:15, Tom O'Grady wrote:
you pass "0x777" for the mode_t value; this lacks the S_IWUSR bit
(0000200)--perhaps you intended to use "0777" instead? A failure
due to this would match the errno value (EACCES) that you >report
for the subsequent O_RDWR attempt...
this won't be the problem. that was just mistyping in my e-mail. in
my code i definitely use 0x0777 so that user, group and other all
have read, write and execute access.
0x0777 is the same as 0x777. The "777" from chmod is not hexadecimal
notation (0x) but octal notation (0). So try using "0777" rather than
"0x0777" or "0x777".
Jonas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden