reverie/tests/c_tests/getpid.c
Jason White 20c7020868 Appease the copyright linter
Summary: The OSS license linter doesn't like the word "its".

Reviewed By: johnhurt

Differential Revision: D36856385

fbshipit-source-id: 909037d96de8976f08004497d28b77838f8c6870
2022-06-02 11:51:06 -07:00

23 lines
629 B
C

/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
int main(int argc, char* argv[]) {
pid_t pid = getpid();
printf(" my pid = %d\n", pid);
printf(" my ppid = %d\n", getppid());
printf(" my uid = %d\n", getuid());
printf(" my gid = %d\n", getgid());
printf(" my sid = %d\n", getsid(pid));
exit(0); // Since glibc 2.3 this calls SYS_exit_group
}