From: Ralf Baechle <ralf@uni-koblenz.de>
To: Andreas Jaeger <aj@suse.de>
Cc: Mike Klar <mfklar@ponymail.com>,
linux-mips@oss.sgi.com, linux-mips@fnet.fr,
linux-mips@vger.rutgers.edu
Subject: Re: errno assignment in _syscall macros and glibc
Date: Sun, 25 Jun 2000 20:43:34 +0200 [thread overview]
Message-ID: <20000625204334.E1572@bacchus.dhis.org> (raw)
In-Reply-To: <u8d7l6p0vq.fsf@gromit.rhein-neckar.de>; from aj@suse.de on Sun, Jun 25, 2000 at 11:26:33AM +0200
On Sun, Jun 25, 2000 at 11:26:33AM +0200, Andreas Jaeger wrote:
> The question remains what we should do with glibc 2.2. Currently
> <sys/syscalls.h> includes <asm/unistd.h> and this makes _syscall0 and
> friends available to userspace.
>
> I couldn't find any reference to <sys/syscalls.h> in the ABI and
> consider dropping the include of <asm/unistd.h> since it's not needed
> at all.
>
> Any objections or better suggestions?
I will take his report as a real bug but for another reason. The kernel
has a global variable errno which at least on i386 get the returned
error value. Fixing this one will magically fix userland.
Still everybody should be aware that using your own syscall wrappers
can be _very_ dangerous. I saw an attempt to use pread / pwrite which
was ok on Intel but might have corrupted data on MIPS due to different
calling conventions. You have been warned.
Andreas - I think the syscall interface should finally officially be
declared a private interface between libc and the kernel, that is nobody
except these two should use it. Many of the other attempts to use it
have been quite problematic - portabilitywise and worse.
Ralf
next parent reply other threads:[~2000-06-25 18:44 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <NDBBIDGAOKMNJNDAHDDMCEODCKAA.mfklar@ponymail.com>
[not found] ` <u8d7l6p0vq.fsf@gromit.rhein-neckar.de>
2000-06-25 18:43 ` Ralf Baechle [this message]
2000-06-25 18:53 ` errno assignment in _syscall macros and glibc Andreas Jaeger
2000-06-25 21:59 ` Ralf Baechle
2000-06-25 19:26 ` Alan Cox
2000-06-25 19:26 ` Alan Cox
2000-06-25 21:21 ` Ralf Baechle
2000-06-25 21:25 ` Alan Cox
2000-06-25 21:25 ` Alan Cox
2000-06-25 21:48 ` Ralf Baechle
2000-06-30 14:03 ` Jay Carlson
2000-06-30 14:03 ` Jay Carlson
2000-07-03 13:45 ` Alan Cox
2000-07-03 13:45 ` Alan Cox
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=20000625204334.E1572@bacchus.dhis.org \
--to=ralf@uni-koblenz.de \
--cc=aj@suse.de \
--cc=linux-mips@fnet.fr \
--cc=linux-mips@oss.sgi.com \
--cc=linux-mips@vger.rutgers.edu \
--cc=mfklar@ponymail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.