Update.
[glibc.git] / sysdeps / generic / tempname.c
blobfb366fcb2bb1fcab04ef5eb6f3025579da1b8c44
1 /* Copyright (C) 1991, 92, 93, 95, 96, 97, 98 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
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.
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.
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. */
19 #define __need_size_t
20 #include <stddef.h>
21 #include <stdio.h>
22 #include <errno.h>
24 /* Perform the "SVID path search malarkey" on DIR and PFX. Write a
25 template suitable for use in __gen_tempname into TMPL, bounded
26 by TMPL_LEN. */
27 int
28 __path_search (tmpl, tmpl_len, dir, pfx)
29 char *tmpl;
30 size_t tmpl_len;
31 const char *dir;
32 const char *pfx;
34 __set_errno (ENOSYS);
35 return -1;
37 stub_warning (__path_search)
39 /* Generate a (hopefully) unique temporary filename
40 in DIR (if applicable), using template TMPL.
41 If OPENIT is 1, open the file and return a fd. If LARGEFILE is 1,
42 use open64() to do that. */
43 int
44 __gen_tempname (tmpl, openit, largefile)
45 char *tmpl;
46 int openit;
47 int largefile;
49 __set_errno (ENOSYS);
50 return -1;
53 stub_warning (__gen_tempname)
54 #include <stub-tag.h>