1 |
/* GNU m4 -- A simple macro processor |
/* GNU m4 -- A simple macro processor |
2 |
|
|
3 |
Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 2004 Free |
Copyright (C) 1989, 1990, 1991, 1992, 1993, 1994, 2004, 2005 Free |
4 |
Software Foundation, Inc. |
Software Foundation, Inc. |
5 |
|
|
6 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
102 |
output_unused = 0; |
output_unused = 0; |
103 |
} |
} |
104 |
|
|
|
#ifndef HAVE_TMPFILE |
|
|
|
|
105 |
#ifndef HAVE_MKSTEMP |
#ifndef HAVE_MKSTEMP |
106 |
|
|
107 |
/* This implementation of mkstemp(3) does not avoid any races, but its |
/* This implementation of mkstemp(3) does not avoid any races, but its |
109 |
|
|
110 |
#include <fcntl.h> |
#include <fcntl.h> |
111 |
|
|
112 |
static int |
int |
113 |
mkstemp (const char *tmpl) |
mkstemp (const char *tmpl) |
114 |
{ |
{ |
115 |
mktemp (tmpl); |
mktemp (tmpl); |
118 |
|
|
119 |
#endif /* not HAVE_MKSTEMP */ |
#endif /* not HAVE_MKSTEMP */ |
120 |
|
|
121 |
|
#ifndef HAVE_TMPFILE |
122 |
|
|
123 |
/* Implement tmpfile(3) for non-USG systems. */ |
/* Implement tmpfile(3) for non-USG systems. */ |
124 |
|
|
125 |
static FILE * |
static FILE * |