From: Ulrich Drepper <drepper@redhat.com>
To: Krzysztof Benedyczak <golbi@mat.uni.torun.pl>
Cc: linux-kernel@vger.kernel.org,
Manfred Spraul <manfred@colorfullife.com>,
pwaechtler@mac.com, Michal Wronski <wrona@mat.uni.torun.pl>
Subject: Re: POSIX message queues
Date: Sun, 05 Oct 2003 09:35:22 -0700 [thread overview]
Message-ID: <3F80484A.3030105@redhat.com> (raw)
In-Reply-To: <Pine.GSO.4.58.0310051047560.12323@ultra60>
Krzysztof Benedyczak wrote:
> There are a lot of differencies but if the most important one is use of
> ioctl vs syscalls it can be changed (in fact our implementation loong time
> ago used syscalls).
Syscalls are always better. At least from my perspective. Just imagine
how the runtime should determine that the kernel doesn't support msqs?
With syscalls I get -ENOSYS back. With ioctls I get EINVAL. But what
this mean? Functionality not available? Invalid parameters to the
existing implementation?
ALso think about strace which is an important part in many peoples life.
Hiding the functionality in some ioctls doesn't make it easy to follow
the program even if strace gets even more code added to the ioctl decoder.
Basically, demultiplexers are bad. Syscalls are cheap.
> In another words: is our implementation in the position
> of NGPT or better? ;-)
I don't understand. Why NGPT and what about "position"? If you mean
including a solution in the runtime (librt), sure, this will happen.
But not before I see a solution in the official kernel.
--
--------------. ,-. 444 Castro Street
Ulrich Drepper \ ,-----------------' \ Mountain View, CA 94041 USA
Red Hat `--' drepper at redhat.com `---------------------------
next prev parent reply other threads:[~2003-10-05 16:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-05 9:13 POSIX message queues Krzysztof Benedyczak
2003-10-05 10:11 ` Manfred Spraul
2003-10-06 19:04 ` Krzysztof Benedyczak
2003-10-05 16:35 ` Ulrich Drepper [this message]
2003-10-05 18:16 ` Jamie Lokier
2003-10-05 18:32 ` Jakub Jelinek
2003-10-05 19:18 ` Jamie Lokier
2003-10-05 21:52 ` Ulrich Drepper
-- strict thread matches above, loose matches on Subject: below --
2003-10-07 7:50 Peter Waechtler
2003-10-07 8:11 ` Jakub Jelinek
2002-10-02 10:35 Krzysztof Benedyczak
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=3F80484A.3030105@redhat.com \
--to=drepper@redhat.com \
--cc=golbi@mat.uni.torun.pl \
--cc=linux-kernel@vger.kernel.org \
--cc=manfred@colorfullife.com \
--cc=pwaechtler@mac.com \
--cc=wrona@mat.uni.torun.pl \
/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