/*
 * /proc/self/status, /proc/self/cmdline
 */

#include <fcntl.h>
#include <unistd.h>

int main(void)
{
	const char *files[] = {
		"/proc/self/status", "/proc/self/cmdline",
		"/proc/self/stat", 0
	};
	for (int i = 0; files[i]; i++) {
		int fd = open(files[i], O_RDONLY);
		if (fd >= 0) {
			char b[256];
			read(fd, b, sizeof b);
			close(fd);
		}
	}
	return 0;
}
