X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ftempname.c;h=3c9f59b32fd0ea5453a248996c64f74c72344d17;hb=efc1f57b9d5d6d528919cedfe2e4c41e786341d2;hp=df46fc267dde01b198101229e591c1a5f1775a1b;hpb=8b03458ebe93a6e1c86c3a468aa3f2eee01e3c4c;p=gnulib.git diff --git a/lib/tempname.c b/lib/tempname.c index df46fc267..3c9f59b32 100644 --- a/lib/tempname.c +++ b/lib/tempname.c @@ -15,9 +15,9 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, - Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#if HAVE_CONFIG_H +#ifdef HAVE_CONFIG_H # include #endif @@ -47,9 +47,7 @@ #include #include -#if HAVE_FCNTL_H || _LIBC -# include -#endif +#include #if HAVE_SYS_TIME_H || _LIBC # include @@ -62,9 +60,7 @@ # include #endif -#if HAVE_UNISTD_H || _LIBC -# include -#endif +#include #include @@ -78,8 +74,8 @@ # define __mkdir mkdir # define __open open # define __open64 open -# define __lxstat64(version, path, buf) lstat (path, buf) -# define __xstat64(version, path, buf) stat (path, buf) +# define __lxstat64(version, file, buf) lstat (file, buf) +# define __xstat64(version, file, buf) stat (file, buf) #endif #if ! (HAVE___SECURE_GETENV || _LIBC) @@ -185,7 +181,7 @@ __path_search (char *tmpl, size_t tmpl_len, const char *dir, const char *pfx, return 0; } -/* These are the characters used in temporary filenames. */ +/* These are the characters used in temporary file names. */ static const char letters[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";