V2 [PATCH 2/2] Add C wrappers for prctl/process_vm_readv/process_vm_writev [BZ #25810]

Florian Weimer fweimer@redhat.com
Wed Apr 29 15:22:30 GMT 2020


* H. J. Lu:

>> > +{
>> > +  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.

I still don't get it.  What happens if you use libc_hidden_proto and
libc_hidden_def?

> Since the the U marker can only be applied to 2 unsigned long arguments,
> add a C wrapper for prctl, process_vm_readv and process_vm_writev syscals
> which have more than 2 unsigned long arguments.

Please add that syscalls.list reference.  Thanks.

Florian



More information about the Libc-alpha mailing list