getpid.2

来自「Unix操作系统minix 2.0源码」· 2 代码 · 共 34 行

2
34
字号
.\" Copyright (c) 1980 Regents of the University of California..\" All rights reserved.  The Berkeley software License Agreement.\" specifies the terms and conditions for redistribution..\".\"	@(#)getpid.2	6.3 (Berkeley) 5/13/86.\".TH GETPID 2 "May 13, 1986".UC 4.SH NAMEgetpid, getppid \- get process identification.SH SYNOPSIS.ft B.nf#include <sys/types.h>#include <unistd.h>pid_t getpid(void)pid_t getppid(void).fi.ft R.SH DESCRIPTION.B Getpidreturnsthe process ID ofthe current process.Most often it is usedto generate uniquely-named temporary files..PP.B Getppidreturns the process ID of the parentof the current process. .SH "SEE ALSO.BR fork (2).

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?