From 3a9df5887e70ddcdbedbbbdbdf402ad9517321ee Mon Sep 17 00:00:00 2001 From: Aaron Campbell Date: Thu, 19 Oct 2000 17:34:35 +0000 Subject: Do not suggest that people use getpid(2) for generating temp file name; refer them to mkstemp(3) instead. --- lib/libc/sys/getpid.2 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'lib/libc/sys') 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. -- cgit v1.2.3