[kernel] bug#107: shmctl returns ENOSYS


None


X-PA-RISC Linux-PR-Message: report 107
X-PA-RISC Linux-PR-Package: kernel
X-Loop: daniel_frazier@hp.com
Received: via spool by bugs@bugs.parisc-linux.org id=B.98749044224707
          (code B ref -1); Tue, 17 Apr 2001 07:03:01 GMT
Date: Tue, 17 Apr 2001 16:52:57 +1000
From: Brendan O'Dea <bod@debian.org>
To: submit@bugs.parisc-linux.org
Message-ID: <20010417165257.A30220@compusol.com.au>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.17i
Sender: Brendan O'Dea <bod@compusol.com.au>

Package: kernel
Version: 2.4.0

Linux j5k 2.4.0 #15 Thu Apr 12 19:26:53 MDT 2001 parisc64 unknown

The shmctl in the code below fails with ENOSYS.

    #include <stdlib.h>
    #include <sys/ipc.h>
    #include <sys/shm.h>

    int main()
    {
	int seg;
	struct shmid_ds buf;

	if ((seg = shmget(IPC_PRIVATE, 2000, 0700)) < 0)
	{
	    perror("shmget");
	    return 1;
	}

	if (shmctl(seg, IPC_STAT, &buf) < 0)
	{
	    perror("shmctl");
	    return 1;
	}

	return 0;
    }

Regards,
-- 
Brendan O'Dea                                        bod@compusol.com.au
Compusol Pty. Limited                  (NSW, Australia)  +61 2 9810 3633