From: Linus Torvalds <torvalds@linux-foundation.org>
To: Ulrich Drepper <drepper@redhat.com>
Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org
Subject: Re: [PATCH] unify sys_pipe implementation
Date: Sat, 3 May 2008 10:13:24 -0700 (PDT) [thread overview]
Message-ID: <alpine.LFD.1.10.0805031012580.5994@woody.linux-foundation.org> (raw)
In-Reply-To: <200805030403.m4343j5u014868@devserv.devel.redhat.com>
On Sat, 3 May 2008, Ulrich Drepper wrote:
>
> +#ifdef __ARCH_WANT_SYS_PIPE
> +/*
> + * sys_pipe() is the normal C calling standard for creating
> + * a pipe. It's not the way Unix traditionally does this, though.
> + */
> +asmlinkage long sys_pipe(unsigned long __user *fildes)
Gaah. If you do this, at least clean it up and use "int *fildes", rather
than copying the uglier old "unsigned long" ones that only exist because
originally we had lots of odd int/long things that didn't matter on x86.
Yeah, yeah, the thing that matters is actually
> + int fd[2];
> ...
> + if (copy_to_user(fildes, fd, sizeof(fd)))
so it happens to work on all architectures anyway, but..
Also, we shouldn't need __ARCH_WANT_SYS_PIPE for this. Just make it
unconditional, and then any architecture that wants somethign else can do
their own "myarch_sys_pipe()" or whatever.
Linus
prev parent reply other threads:[~2008-05-03 17:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-03 4:03 Ulrich Drepper
2008-05-03 17:13 ` Linus Torvalds [this message]
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=alpine.LFD.1.10.0805031012580.5994@woody.linux-foundation.org \
--to=torvalds@linux-foundation.org \
--cc=akpm@linux-foundation.org \
--cc=drepper@redhat.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®