mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 02:03:06 -05:00
90ddbca127
Also use a ProcessPagingScope instead of region aliasing to implement create-process ELF loading.
15 lines
300 B
C++
15 lines
300 B
C++
#include <LibC/unistd.h>
|
|
#include <LibC/stdio.h>
|
|
#include <LibC/pwd.h>
|
|
|
|
int main(int c, char** v)
|
|
{
|
|
uid_t uid = getuid();
|
|
gid_t gid = getgid();
|
|
|
|
struct passwd* pw = getpwuid(uid);
|
|
|
|
printf("uid=%u(%s), gid=%u, pid=%u\n", uid, pw ? pw->pw_name : "n/a", gid, getpid());
|
|
return 0;
|
|
}
|
|
|