mlibc
mlibc copied to clipboard
More work towards shadow support
This PR implements getspnam()
and getspnam_r
, fixes the function signature of setpgrp
to match the System V version, just like glibc and musl do, adds a stub fgetspent
and stubs sys_tcdrain
in Managarm. All of this works towards running the shadow
package on Managarm.
As more work is expected, this is a draft for now.
is that code copied from musl?
is that code copied from musl?
It is, I believe I left a comment about it in the source code.
I've improved the attribution as requested, ready for another review.
ABI checker complains since we changed setpgrp
to take no arguments, but it was wrong before so I'm not sure that's an issue.
This needs to be rebased to pass CI.