内容简介
#include <sys/types.h>#include <unistd.h>
pid_t getpid(void);
pid_t getppid(void);
描述
getpid() 返回当前进程的进程ID。 (这是经常使用的生成唯一的临时文件名的程序。)getppid() 返回当前进程的父进程ID。
遵循于
POSIX.1-2001, 4.3BSD, SVr4另请参阅
上一篇:
getpgrp()函数 Unix/Linux
下一篇:
getpmsg()函数 Unix/Linux