[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology

Name
Options
Comment
Verification
4chan Pass users can bypass this verification. [Learn More] [Login]
File
  • Please read the Rules and FAQ before posting.
  • You may highlight syntax and preserve whitespace by using [code] tags.

08/21/20New boards added: /vrpg/, /vmg/, /vst/ and /vm/
05/04/17New trial board added: /bant/ - International/Random
10/04/16New board for 4chan Pass users: /vip/ - Very Important Posts
[Hide] [Show All]


[Advertise on 4chan]


File: 20240224_002826.jpg (69 KB, 1079x767)
69 KB
69 KB JPG
previous: >>108406971

#define __NR_getrusage            98

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

tl;dr:
get an account of process resource usage

it's interesting that this accounts for all children and their descendants. that's a lot of bookkeeping under the hood. i might have to go look into the source for this one, because wow.
this is another syscall with _GNU_SOURCE-gated functionality
>The _GNU_SOURCE feature test macro must be defined (before including any header file) in order to obtain the definition of this constant from <sys/resource.h>.
the fact that you have to define this at all, but especially before including any header file, always annoys me lol. really not a fan
:D

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/
>>
bampu :D
>>
reply to this post if you want to die
>>
>>108414057
I read the bottom one in Miku's adorable Engrish accent.
>>
>>108414057
>it's interesting that this accounts for all children and their descendants
I can't see this being useful otherwise.
>>
>>108414057
I'm glad to see yet another normal picture. I was so interested in the meme, I even clicked on the thread before seeing it's the greatest general we have on this board! Yes, I know how you pick pictures so this was likely a coincidence.
Also to add to your picture regarding too many else-ifs: There was some maniac who programmed is-even in C++ (I believe) solely with ifs and else-ifs. He still didn't hit the limit.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.