os/persistentdata/persistentstorage/sqlite3api/TEST/TCL/tcldistribution/compat/tmpnam.c
First public contribution.
2 * Copyright (c) 1988 Regents of the University of California.
5 * Redistribution and use in source and binary forms are permitted
6 * provided that this notice is preserved and that due credit is given
7 * to the University of California at Berkeley. The name of the University
8 * may not be used to endorse or promote products derived from this
9 * software without specific written prior permission. This software
10 * is provided ``as is'' without express or implied warranty.
12 * RCS: @(#) $Id: tmpnam.c,v 1.2 1998/09/14 18:39:45 stanton Exp $
15 #include <sys/param.h>
21 * Use /tmp instead of /usr/tmp, because L_tmpname is only 14 chars
22 * on some machines (like NeXT machines) and /usr/tmp will cause
29 #define P_tmpdir "/tmp"
40 (void)sprintf(s, "%s/XXXXXX", P_tmpdir);