summaryrefslogtreecommitdiff
path: root/lib/libc/sys/getpid.2
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2000-10-19 17:34:35 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2000-10-19 17:34:35 +0000
commit3a9df5887e70ddcdbedbbbdbdf402ad9517321ee (patch)
tree507171e98980303f4708e92eaf4861df72ded5c9 /lib/libc/sys/getpid.2
parenta07ad469f0634d799ec0dc4f12e90d41df3d3678 (diff)
Do not suggest that people use getpid(2) for generating temp file name; refer
them to mkstemp(3) instead.
Diffstat (limited to 'lib/libc/sys/getpid.2')
-rw-r--r--lib/libc/sys/getpid.29
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libc/sys/getpid.2 b/lib/libc/sys/getpid.2
index 4c1c08cdb26..53eab747a6d 100644
--- a/lib/libc/sys/getpid.2
+++ b/lib/libc/sys/getpid.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: getpid.2,v 1.7 2000/10/18 05:12:09 aaron Exp $
+.\" $OpenBSD: getpid.2,v 1.8 2000/10/19 17:34:34 aaron Exp $
.\" $NetBSD: getpid.2,v 1.5 1995/02/27 12:33:12 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -51,8 +51,11 @@
.Sh DESCRIPTION
.Fn getpid
returns the process ID of the calling process.
-The ID is guaranteed to be unique and is useful for constructing
-temporary file names.
+Though the ID is guaranteed to be unique, it should
+.Em NOT
+be used for constructing temporary file names; see
+.Xr mkstemp 3
+instead.
.Pp
.Fn getppid
returns the process ID of the parent of the calling process.