From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 32000 invoked from network); 10 Sep 1998 03:01:05 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 10 Sep 1998 03:01:05 -0000 Received: from moray.ucc.gu.uwa.edu.au (root@moray.ucc.gu.uwa.edu.au [130.95.101.9]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id XAA23981 for ; Wed, 9 Sep 1998 23:01:35 -0400 Received: from mermaid.ucc.gu.uwa.edu.au (dichro@mermaid.ucc.gu.uwa.edu.au [130.95.101.17]) by moray.ucc.gu.uwa.edu.au (8.8.8/8.8.8/Debian/GNU) with ESMTP id LAA06138 for ; Thu, 10 Sep 1998 11:00:48 +0800 Received: (from dichro@localhost) by mermaid.ucc.gu.uwa.edu.au (8.9.1a/8.8.8/Debian/GNU) id LAA09115; Thu, 10 Sep 1998 11:00:47 +0800 From: dichro-axp-list@rcpt.to (Mikolaj J. Habryn) To: axp-list@redhat.com Subject: ENOSYS in 2.0.x Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII Date: 10 Sep 1998 11:00:45 +0800 Message-ID: X-Mailer: Quassia Gnus v0.18/XEmacs 20.3 - "Vatican City" Hi - I'm trying to write a routine to detect whether or not the lchown syscall is available in the current running kernel, and am being enormously hampered by the apparent refusal of 2.0 to return ENOSYS to an unimplemented syscall - I only see -1 (-EPERM), which is indeed what do_entSys returns (if I squint at entry.S I can convince myself that that is what is called for an unimplemented syscall). Am I doing something tragically wrong? Should do_entSys be returning -ENOSYS? Is there any way to tell whether lchown is there without first checking what it /should/ return, and then checking what it /does/? m.