From 63ab58b943795e030d2e976444bc10d4cda372da Mon Sep 17 00:00:00 2001 From: Keith Bostic Date: Mon, 16 Oct 1989 22:07:57 -0800 Subject: [PATCH] try it again; add section RETURN VALUE, note errno getting set SCCS-vsn: lib/libc/stdio/mktemp.3 6.6 --- usr/src/lib/libc/stdio/mktemp.3 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/usr/src/lib/libc/stdio/mktemp.3 b/usr/src/lib/libc/stdio/mktemp.3 index e02f46321b..f297a2e211 100644 --- a/usr/src/lib/libc/stdio/mktemp.3 +++ b/usr/src/lib/libc/stdio/mktemp.3 @@ -13,7 +13,7 @@ .\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. .\" -.\" @(#)mktemp.3 6.5 (Berkeley) %G% +.\" @(#)mktemp.3 6.6 (Berkeley) %G% .\" .TH MKTEMP 3 "" .AT 3 @@ -50,11 +50,13 @@ makes the same replacement to the template and creates the template file, mode 0600, returning a file descriptor opened for reading and writing. This avoids the race between testing for a file's existence and opening it for use. -.PP +.SH "RETURN VALUE" .I Mktemp returns a pointer to the template on success and NULL on failure. .I Mkstemp returns -1 if no suitable file could be created. +If either call fails an error code is placed in the global location +.IR errno . .SH ERRORS .I Mktemp and -- 2.20.1