#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>

int main(int argc, char const *argv[]) {

  pid_t pid  = getpid();
  pid_t ppid = getppid();
  pid_t uid  = getuid();
  pid_t euid = geteuid();
  pid_t gid  = getgid();
  pid_t egid = getegid();


printf("Je suis le processus de pid      : %d\nMon père est le processus de pid : %d\nMon uid                          : %d\nMon euid                         : %d\nMon gid                          : %d\nMon egid                         : %d\n",pid,ppid,uid,euid,gid,egid);
  return 0;
}
