From: Andreas Schwab <schwab@suse.de>
To: LA Walsh <law@sgi.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: unistd.h and 'extern's and 'syscall' "standard(?)"
Date: 01 Apr 2001 21:15:35 +0200 [thread overview]
Message-ID: <jelmpktors.fsf@hawking.suse.de> (raw)
In-Reply-To: <3AC75DBF.31594195@sgi.com>
In-Reply-To: <3AC75DBF.31594195@sgi.com>
LA Walsh <law@sgi.com> writes:
|> I have a question. Some architectures have "system calls"
|> implemented as library calls (calls that are "system calls" on ia32)
|> For example, the expectation on 'arm', seems to be that sys_sync
|> is in a library. On alpha, sys_open appears to be in a library.
|> Is this correct?
|>
|> Is it the expectation that the library that handles this
|> is the 'glibc' for that platform or is there a special "kernel.lib"
|> that goes with each platform?
|>
|> Is there 1 library that I need to link my apps with to
|> get the 'externs' referenced in "unistd.h"?
|>
|> The reason I ask is that in ia64 the 'syscall' call
|> isn't done with inline assembler but is itself an 'extern' call.
|> This implies that you can't do system calls directly w/o some
|> support library.
Don't use kernel headers in user programs. Just use syscall(3).
Andreas.
--
Andreas Schwab "And now for something
SuSE Labs completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
next prev parent reply other threads:[~2001-04-01 19:16 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 [this message]
2001-04-01 20:23 ` LA Walsh
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=jelmpktors.fsf@hawking.suse.de \
--to=schwab@suse.de \
--cc=law@sgi.com \
--cc=linux-kernel@vger.kernel.org \
/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®