On Thu, Apr 30, 2020 at 9:53 AM Florian Weimer wrote: > > * H. J. Lu via Libc-alpha: > > > From ee8672af3ef5f3db438c0abb39b2673944181292 Mon Sep 17 00:00:00 2001 > > From: "H.J. Lu" > > Date: Wed, 29 Apr 2020 07:38:49 -0700 > > Subject: [PATCH] Add a C wrapper for prctl [BZ #25896] > > > > Add a C wrapper to pass arguments in > > The commit message is only correct if you drop the .S files. > > > /* Control process execution. */ > > extern int prctl (int __option, ...) __THROW; > > > > to prctl syscall: > > > > extern int prctl (int, unsigned long int, unsigned long int, > > unsigned long int, unsigned long int); > > > > On Linux/x86, since the prctl syscall interface: > > > > extern int prctl (int, unsigned long int, unsigned long int, > > unsigned long int, unsigned long int); > > > > and the glibc prctl interface: > > > > extern int prctl (int option, ...); > > > > pass the arguments identically, the assembly verion: > > > > PSEUDO (__prctl, prctl, 5) > > ret > > PSEUDO_END (__prctl) > > > > is used. > > Doesn't x86 include x32? Yes. > Apart from these nits, the patch looks good. Please settle the matter > of the .S files with Adhemerval. 8-) Since the C version is so much worse than the assembler version, I prefer to include the assembler wrapper. But I won't insist. Adhemerval, please comment. Thanks. -- H.J.