From: Andreas Schwab <schwab@linux-m68k.org>
To: "H.J. Lu via Libc-alpha" <libc-alpha@sourceware.org>
Cc: Florian Weimer <fweimer@redhat.com>, "H.J. Lu" <hjl.tools@gmail.com>
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:32:49 +0200 [thread overview]
Message-ID: <87zhau2tpa.fsf@igel.home> (raw)
In-Reply-To: <20200429152017.GA3811691@gmail.com> (H. J. Lu via Libc-alpha's message of "Wed, 29 Apr 2020 08:20:17 -0700")
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.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
next prev parent reply other threads:[~2020-04-29 15:32 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 [this message]
2020-04-29 15:36 ` H.J. Lu
2020-04-29 15:43 ` Florian Weimer
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=87zhau2tpa.fsf@igel.home \
--to=schwab@linux-m68k.org \
--cc=fweimer@redhat.com \
--cc=hjl.tools@gmail.com \
--cc=libc-alpha@sourceware.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).