Subject: P_tmpdir
To: None <current-users@NetBSD.ORG>
From: Niklas Hallqvist <>
List: current-users
Date: 03/01/1995 22:59:11
In stdio.h P_tmpdir is defined like this:

/* System V/ANSI C; this is the wrong way to do this, do *not* use these. */
#ifndef _ANSI_SOURCE
#define	P_tmpdir	"/var/tmp/"

Note the comment.  I suspect this is because we all should use
tmpnam(3), but what if we write/port programs which use a slightly
different policy to tempfile placement?  Shouldn't we use this macro
even then?  If not, what should be used?


Niklas Hallqvist	Phone: +46-(0)31-40 75 00
Applitron Datasystem	Fax:   +46-(0)31-83 39 50
Molndalsvagen 95	Email:
S-412 63  GOTEBORG	WWW:   Here