Thread #108613877
HomeIndexCatalogAll ThreadsNew ThreadReply
H
previous: >>108609319

#define __NR_prctl                    157
#define __NR_arch_prctl 158

https://man7.org/linux/man-pages/man2/prctl.2.html
https://man7.org/linux/man-pages/man2/arch_prctl.2.html

tl;dr:
manage your process state

this is one of my all-time favorite syscalls. it's SO powerful. if you want to do anything even moderately interesting to your process, then you are beholden to this syscall. i might honestly just try to keep this thread bumped until the weekend and then answer questions about specific arguments, if people have them. you're definitely going to want to look at the "see also" section for this one. it's basically dozens of syscalls bundled into one
have you ever used any of these features, anon? in what circumstances?

relevant resources:
man man

man syscalls

https://man7.org/linux/man-pages/
https://linux.die.net/man/
https://elixir.bootlin.com/linux/
https://elixir.bootlin.com/musl/
https://elixir.bootlin.com/glibc/
+Showing all 16 replies.
>>
>>108613877
Debian is DEI shit, cringe to mention it
>>
>>108614034
yeah okay kid whatever you say
>>
installing debian with OP
>>
i will install debian too, let me in!!!!
>>
installing debian with >>108614562 and OP
>>
>>108614531
>>108614562
>>108616136
yaaayyyyyy >w< it's a party!!!
>>
i look like that and i have that apartment and those clothes but theyre blue instead of green
>>
>>108617638
post
>>
>>108613877
How exactly do I use a syscall?
>>
>>108617744
https://elixir.bootlin.com/musl/v1.2.6/source/arch/x86_64/syscall_arch.h
like so
>>
What's the point of arch_prctl when prctl exists and is already used for arch-specific stuff?
>>108617744
Like so: >>108570543
>>
>>108617898 (You)
Also, prctl's documentation is terrible. The manpages don't cover a lot of the interesting ones.
>>
>>108617638
>but theyre blue instead of green
https://www.youtube.com/watch?v=68ugkg9RePc
>>
>PR_SET_ENDIAN
lolwut? This is possible? This would make tons of stuff much simpler
>>
>>108618459
>PowerPC only.
>Terms and conditions may apply.
>>
>>108618471
lol

Reply to Thread #108613877


Supported: JPG, PNG, GIF, WebP, WebM, MP4, MP3 (max 4MB)