[klibc] [PATCH] Add syscall wrappers required by libkeyutils
Thorsten Glaser
tg at mirbsd.de
Tue Jul 28 03:56:42 PDT 2020
H. Peter Anvin dixit:
>Interestingly enough, on i386 the prototypeless function appears to be called
>with the regparm convention, not the varadic convention -- not a problem, just
Of course it is. It’s a function with an undetermined number of
(int-promoted, but using the KNR C rules) arguments, not a
function whose prototype makes it variadic.
But you can use __attribute__((__regparm__ (0), __cdecl__)) to
force standard calling conventions. (From when I played with
-mregparm in 2013, both, and in that order, were occasionally
needed. Sorry I don’t recall any details.)
bye,
//mirabilos
--
„Cool, /usr/share/doc/mksh/examples/uhr.gz ist ja ein Grund,
mksh auf jedem System zu installieren.“
-- XTaran auf der OpenRheinRuhr, ganz begeistert
(EN: “[…]uhr.gz is a reason to install mksh on every system.”)
More information about the klibc
mailing list