Add similar wrapper like for example getuid() has. It can be used in procps here: https://github.com/uutils/procps/commit/6dd29c59b8ead9c97b45315280312cd5b3fc9910#diff-7d6722b1a29bd56af22b46eb783e0d6010f7fce6a9f22c206df320ef30bb3d52R86