]> sourceware.org Git - glibc.git/blame - sysdeps/generic/tempname.c
Update.
[glibc.git] / sysdeps / generic / tempname.c
CommitLineData
dfd2257a 1/* Copyright (C) 1991, 92, 93, 95, 96, 97 Free Software Foundation, Inc.
6d52618b 2 This file is part of the GNU C Library.
28f540f4 3
6d52618b
UD
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public License as
6 published by the Free Software Foundation; either version 2 of the
7 License, or (at your option) any later version.
28f540f4 8
6d52618b
UD
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
28f540f4 13
6d52618b
UD
14 You should have received a copy of the GNU Library General Public
15 License along with the GNU C Library; see the file COPYING.LIB. If not,
16 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 Boston, MA 02111-1307, USA. */
28f540f4 18
28f540f4
RM
19#include <errno.h>
20#include <stdio.h>
21
22/* Generate a (hopefully) unique temporary filename
23 in DIR (if applicable), using prefix PFX.
24 If DIR_SEARCH is nonzero, perform directory searching
6d52618b 25 malarkey as per the SVID for tempnam.
28f540f4
RM
26 Return the generated filename or NULL if one could not
27 be generated, putting the length of the string in *LENPTR. */
28char *
dfd2257a
UD
29__stdio_gen_tempname (buf, bufsize, dir, pfx, dir_search, lenptr, streamptr,
30 large_file)
d68171ed
UD
31 char *buf;
32 size_t bufsize;
c4029823
UD
33 const char *dir;
34 const char *pfx;
35 int dir_search;
36 size_t *lenptr;
37 FILE **streamptr;
dfd2257a 38 int large_file;
28f540f4
RM
39{
40 *lenptr = 0;
c4029823 41 __set_errno (ENOSYS);
28f540f4
RM
42 return NULL;
43}
44
3f33a4ce 45stub_warning (__stdio_gen_tempname)
f2ea0f5b 46#include <stub-tag.h>
This page took 0.080198 seconds and 5 git commands to generate.