Re: shm_open doesn't work (fix maybe).

Christoph Rohland
2001-04-25T07:11:26Z

Hi,

On Tue, 24 Apr 2001, Jakub Jelinek wrote:
> On Tue, Apr 24, 2001 at 11:46:20AM -0500, Tom Brusehaver (N-Sysdyne
> Corporation) wrote:
>>
>> I have been chasing all around trying to find out why
>> shm_open always returns ENOSYS. It is implemented
>> in glibc-2.2.2, and seems the 2.4.3 kernel knows about
>> shmfs.
>>
>> It seems the file linux/mm/shmem.c has:
>> #define SHMEM_MAGIC 0x01021994
>>
>> And the glibc-2.2.2/sysdeps/unix/sysv/linux/linux_fsinfo.h has:
>> #define SHMFS_SUPER_MAGIC 0x02011994
>>
>> Well, which is correct?
>
> Update your glibc, 2.2.3pre* matches 2.4.x kernel:
>
> 2001-03-03 Ulrich Drepper <drepper@redhat.com>
>
> * sysdeps/unix/sysv/linux/linux_fsinfo.h (SHMFS_SUPER_MAGIC):
> Update for real 2.4 kernels.

Yes, and I apologize to Ulrich that the changed number slipped through
to the official kernel. My fault.

Greetings
Christoph