/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* tmpfile - return a pointer to an update file that can be
* used for scratch. The file will automatically
* go away if the program using it terminates.
*/
#include "lint.h"
#include "mtlib.h"
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <thread.h>
#include <synch.h>
/* string to avoid conflicts with names */
/* generated by tmpnam() */
/*ARGSUSED*/
static FILE *
{
FILE *p;
char *q;
int mkret;
q = seed;
while (*q == 'z')
*q++ = 'a';
if (*q != '\0')
++*q;
#if !defined(_LP64)
if (large_file == B_TRUE) {
return (NULL);
} else
#endif
return (NULL);
(void) umask(current_umask);
return (NULL);
}
return (p);
}
#if !defined(_LP64)
FILE *
tmpfile64(void)
{
}
#endif /* _LP64 */
/*
* This is a bit confusing -- some explanation is in order.
*
* When we're compiled 64-bit, there's no point in distinguishing
* a "large" file from a "small" file -- they're all "large".
* The argument we pass to '_common' is ignored -- we always call
* mkstemp which will just do the right thing for us.
*/
FILE *
tmpfile(void)
{
}