2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright (c) 1988, 2012, Oracle and/or its affiliates. All rights reserved. 2N/A/* Copyright (c) 1988 AT&T */ 2N/A/* All Rights Reserved */ 2N/A * tmpfile - return a pointer to an update file that can be 2N/A * used for scratch. The file will automatically 2N/A * go away if the program using it terminates. 2N/Astatic char seed[] = {
'a',
'a',
'a',
'\0' };
2N/A#
define XS "\bXXXXXX" /* a '\b' character is prepended to this */ 2N/A /* string to avoid conflicts with names */ 2N/A /* generated by tmpnam() */ 2N/A * Originally, the manual claimed that it always created a file in 2N/A * This is similar to tempnam(3C). 2N/A * This is a bit confusing -- some explanation is in order. 2N/A * When we're compiled 64-bit, there's no point in distinguishing 2N/A * a "large" file from a "small" file -- they're all "large". 2N/A * The argument we pass to '_common' is ignored -- we always call 2N/A * mkstemp which will just do the right thing for us.