tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Add prctl(2) to compat_linux
In article <20251108011856.7490F84DF0%mail.netbsd.org@localhost>,
Kevin Bloom <ktnb%netbsd.org@localhost> wrote:
>Hi all,
>
>I've added support for 2 pieces of the linux prctl(2) syscall. I'm
>not sure that what I've got is totally right but it does seem to work
>when I attempt to run a program that uses this syscall -- or at least
>it doesn't crash the program.
>
>If someone could take a look at my diff here[1], it would be gradly
>appreciated!
>
>Thanks,
>
>kev
>
>[1] https://ftp.netbsd.org/pub/NetBSD/misc/ktnb/compat_linux_prctl.diff
I would make the code use sys___lwp_{g,s}etname instead of copying the code
and put the constants LINUX_PR_{G,S}ET_NAME in some header file. Looks fine
otherwise; please make the changes and file a PR.
Best,
christos
Home |
Main Index |
Thread Index |
Old Index