public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: "H.J. Lu" <hjl.tools@gmail.com>
Cc: Andreas Schwab <schwab@linux-m68k.org>,
	"H.J. Lu via Libc-alpha" <libc-alpha@sourceware.org>
Subject: Re: V2 [PATCH 2/2] Add C wrappers for prctl/process_vm_readv/process_vm_writev [BZ #25810]
Date: Wed, 29 Apr 2020 17:43:00 +0200	[thread overview]
Message-ID: <875zdiqovv.fsf@oldenburg2.str.redhat.com> (raw)
In-Reply-To: <CAMe9rOqXTxg6DW7MQ5zEttS5u_JkFshEzTwr7Ltt9t_WxRek+A@mail.gmail.com> (H. J. Lu's message of "Wed, 29 Apr 2020 08:36:22 -0700")

* H. J. Lu:

> On Wed, Apr 29, 2020 at 8:32 AM Andreas Schwab <schwab@linux-m68k.org> wrote:
>>
>> On Apr 29 2020, H.J. Lu via Libc-alpha wrote:
>>
>> >> > +int
>> >> > +__prctl (int option, unsigned long arg2, unsigned long arg3,
>> >> > +   unsigned long arg4, unsigned long arg5)
>> >>
>> >> unsigned long int everywhere.
>> >
>> > Fixed.
>> >
>> >>
>> >> > +{
>> >> > +  return INLINE_SYSCALL_CALL (prctl, option, arg2, arg3, arg4, arg5);
>> >> > +}
>> >> > +
>> >> > +hidden_def (__prctl)
>> >> > +weak_alias (__prctl, prctl)
>> >> > +hidden_weak (prctl)
>> >>
>> >> Can't you use libc_hidden_proto in include/sys/prctl.h and
>> >> libc_hidden_proto here?
>> >>
>> >
>> > Since include/sys/prctl.h has
>> >
>> > extern int __prctl (int __option, ...);
>> >
>> > it can't be used.
>>
>> You cannot implement a function declared as varargs with a non-varargs
>> definition.
>
> True.  There is a separate bug:
>
> https://sourceware.org/bugzilla/show_bug.cgi?id=25896

I suggest to drop prctl from process_vm_*v fix and commit only the
latter now.

Thanks,
Florian


  reply	other threads:[~2020-04-29 15:43 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-29 14:47 [PATCH 1/2] Mark unsigned long arguments with U in more syscalls " H.J. Lu
2020-04-29 14:47 ` [PATCH 2/2] Add C wrappers for prctl/process_vm_readv/process_vm_writev " H.J. Lu
2020-04-29 14:55   ` Florian Weimer
2020-04-29 15:20     ` V2 " H.J. Lu
2020-04-29 15:22       ` Florian Weimer
2020-04-29 15:29         ` H.J. Lu
2020-04-29 15:35           ` Florian Weimer
2020-04-29 15:41             ` Florian Weimer
2020-04-29 15:32       ` Andreas Schwab
2020-04-29 15:36         ` H.J. Lu
2020-04-29 15:43           ` Florian Weimer [this message]
2020-04-29 15:52             ` Add C wrappers for process_vm_readv/process_vm_writev " H.J. Lu
2020-04-29 15:55               ` Florian Weimer
2020-04-29 14:58   ` [PATCH 2/2] Add C wrappers for prctl/process_vm_readv/process_vm_writev " Florian Weimer
2020-04-29 15:10     ` H.J. Lu
2020-04-29 15:18       ` Florian Weimer
2020-04-29 15:22         ` H.J. Lu
2020-04-29 15:25           ` Florian Weimer
2020-04-29 14:57 ` [PATCH 1/2] Mark unsigned long arguments with U in more syscalls " Florian Weimer

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=875zdiqovv.fsf@oldenburg2.str.redhat.com \
    --to=fweimer@redhat.com \
    --cc=hjl.tools@gmail.com \
    --cc=libc-alpha@sourceware.org \
    --cc=schwab@linux-m68k.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).