shithub: riscv

ref: 8188b4f4f0e07b6669e6ae3c6c1099af917eaab4
dir: /sys/src/ape/lib/ap/plan9/getpid.c/

View raw version
#include "lib.h"
#include <sys/stat.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include "sys9.h"

typedef long long vlong;
typedef unsigned long ulong;
typedef unsigned long long uvlong;
#include	"/sys/include/tos.h"

pid_t
getpid(void)
{
	return _tos->pid;
}