diff options
author | delphij <delphij@FreeBSD.org> | 2011-12-28 05:35:33 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2011-12-28 05:35:33 +0000 |
commit | 41d91b4c7bafe88f7a31de5b7f896a4fd93552cc (patch) | |
tree | d68874e281fca8cbd6e96e4b3277cea3ae067f21 | |
parent | 32c6bb15791737ed6874dbbec7450866d68bdea5 (diff) | |
download | FreeBSD-src-41d91b4c7bafe88f7a31de5b7f896a4fd93552cc.zip FreeBSD-src-41d91b4c7bafe88f7a31de5b7f896a4fd93552cc.tar.gz |
In POSIX.1-2008:
P_tmpdir [OB XSI] Default directory prefix for tempnam().
This macro is used in a lot of places in legacy applications,
and is why we see a lot of programs written for e.g. Linux
store volatile temporary files in /var/tmp and not /tmp.
MFC after: 2 months
-rw-r--r-- | include/stdio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stdio.h b/include/stdio.h index 0ae4d8a..02032d9 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -205,7 +205,7 @@ __END_DECLS /* System V/ANSI C; this is the wrong way to do this, do *not* use these. */ #if __XSI_VISIBLE -#define P_tmpdir "/var/tmp/" +#define P_tmpdir "/tmp/" #endif #define L_tmpnam 1024 /* XXX must be == PATH_MAX */ #define TMP_MAX 308915776 |