From: LA Walsh <law@sgi.com>
To: Andreas Schwab <schwab@suse.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: unistd.h and 'extern's and 'syscall' "standard(?)"
Date: Sun, 01 Apr 2001 13:23:00 -0700 [thread overview]
Message-ID: <3AC78E24.98DEA986@sgi.com> (raw)
In-Reply-To: <3AC75DBF.31594195@sgi.com> <jelmpktors.fsf@hawking.suse.de>
Andreas Schwab wrote:
> Don't use kernel headers in user programs. Just use syscall(3).
>
> Andreas.
---
I'm on a SuSE71 system and have all the manpages installed:
law> man syscall
No manual entry for syscall
The problem is not so much for user programs as library
writers that write support libraries for kernel calls. For
example there is libcap to implement posix capabilities on top
of the kernel call. We have a libaudit to implement posix-auditing
on top a a few kernel calls. It's the "system" library to system-call
interface that's the problem, mainly. On ia64, it doesn't seem
like there is a reliable, cross-distro, cross architecture way of
interfacing to the kernel.
In saying "use syscall(3)" (which is undocumented on
my SuSE system, and on a RH61 sytem), implies it is in some
library. I've heard rumors that the call isn't present in RH
distros and they claim its because it's not exported from glibc.
Then I heard glibc said it wasn't their intention to export it.
(This is all 2nd hand, so forgive me if I have parties or details
confused or mis-stated). It seems like kernel source points to an
external source, Vender points at glibc, glibc says not their intention.
Meanwhile, an important bit of kernel functionality --
being able to use syscall0, syscall1, syscall2...etc, ends up
missing for those wanting to construct libraries on top of the
kernel.
I end up being rather perplexed about the correct course
of action to take. Seeing as you work for suse, would you know
where this 'syscall(3)' interface should be documented? Is it
supposed to be present in all distro's?
Thanks,
-linda
--
The above thoughts and | They may have nothing to do with
writings are my own. | the opinions of my employer. :-)
L A Walsh | Trust Technology, Core Linux, SGI
law@sgi.com | Voice: (650) 933-5338
next prev parent reply other threads:[~2001-04-01 20:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-01 16:56 LA Walsh
2001-04-01 19:15 ` Andreas Schwab
2001-04-01 20:23 ` LA Walsh [this message]
2001-04-01 20:38 ` Philip Blundell
2001-04-01 22:49 ` Tim Wright
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3AC78E24.98DEA986@sgi.com \
--to=law@sgi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=schwab@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®