site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On 20 Sep 2007, at 11:15, Tom O'Grady wrote: Jonas _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/tom.ogrady%40cedaraudio.co... This email sent to tom.ogrady@cedaraudio.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... Thanks very much Jonas - I think that's (embarrassingly) the solution to the problem! I knew that 0x0777 was the same as 0x777 but I hadn't realised that the chmod bits were octal - when I read back from the fstat structure to 'check' the permissions, my debugger had the st_mode variable read as hexadecimal, so I was under the impression that everything was fine and the mode was indeed set to 0777. Regards, Tom ----- Original Message ----- From: "Jonas Maebe" <jonas.maebe@elis.ugent.be> To: <darwin-dev@lists.apple.com> Sent: Thursday, September 20, 2007 10:22 AM Subject: Re: Posix shared memory - permission problems? 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". This email sent to site_archiver@lists.apple.com