/*
 * /proc/pid/status: path2glob with real pid (not /proc/self)
 */

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

int main(void)
{
	char path[64];
	snprintf(path, sizeof(path), "/proc/%d/status", getpid());
	int fd = open(path, O_RDONLY);
	if (fd >= 0) {
		char buf[1];
		read(fd, buf, 1);
		close(fd);
	}
	return 0;
}
