From: Jim Meyering Date: Sat, 3 Mar 2001 18:38:22 +0000 (+0000) Subject: . X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c3a739a8a803e3bc50dfd4caff751ce6843fc76;p=pspp . --- diff --git a/lib/ChangeLog b/lib/ChangeLog index feb824cbc5..6bfe109d91 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,36 @@ +2001-02-25 Paul Eggert + + The mkstemp replacement is taken from glibc 2.2.2, with some + portability fixes for use outside glibc, as follows: + + * tempname.c (struct_stat64): New macro. + (direxists, __gen_tempname): Use it. + This avoids a portability problem with Solaris 8. + + * tempname.c (): Include if HAVE_CONFIG_H. + (, , ): + Include only if STDC_HEADERS || _LIBC. + (): Include only if HAVE_FCNTL_H || _LIBC. + (): Include only if HAVE_UNISTD_H || _LIBC. + (): Include only if HAVE_SYS_TIME_H || _LIBC. + (__set_errno): Define this macro if doesn't. + (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE): + Define these macros if doesn't. + (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR): + Define these macros if + doesn't. Ignore S_ISDIR if STAT_MACROS_BROKEN. + (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64, + __xstat64): Define if not _LIBC. + (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC). + (__gen_tempname): Invoke gettimeofday only if + HAVE_GETTIMEOFDAY || _LIBC; + otherwise, fall back on plain "time". + Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600. + + * mkstemp.c (__GT_FILE): Define to zero if not defined. + + * mkstemp.c, tempname.c: New files, taken from glibc 2.2.2. + 2001-02-17 Jim Meyering * strtoul.c: Sync from GNU libc. Use double quotes, not <...> @@ -24,7 +57,7 @@ 2001-02-16 Paul Eggert - * lib/alloca.c (malloc): Undef before defining, since stdlib.h + * alloca.c (malloc): Undef before defining, since stdlib.h may have defined it. Needed for Encore Umax-3.0.9.16b systems. Reported by Mark Hounschell via Paul Eggert. @@ -61,7 +94,7 @@ 2001-01-03 Paul Eggert - * lib/strftime.c: Sync with glibc time/strftime.c 1.81. + * strftime.c: Sync with glibc time/strftime.c 1.81. 2001-01-03 Jim Meyering @@ -70,7 +103,7 @@ 2000-12-29 Paul Eggert - * lib/modechange.c: Do not assume that mode_t uses the + * modechange.c: Do not assume that mode_t uses the traditional octal encoding. E.g. "chmod 1 FOO" should set the other-execute bit of FOO even if S_IXOTH != 1. @@ -170,11 +203,11 @@ 2000-12-01 Paul Eggert - * lib/memrchr.c: Include before any system include file. + * memrchr.c: Include before any system include file. 2000-11-29 Paul Eggert - * lib/dirname.c (dir_name_r): Fix typo: int -> size_t. + * dirname.c (dir_name_r): Fix typo: int -> size_t. 2000-11-26 Jim Meyering @@ -182,12 +215,12 @@ 2000-11-22 Paul Eggert - * lib/strftime.c (my_strftime): Do not invoke mbrlen with a + * strftime.c (my_strftime): Do not invoke mbrlen with a size of (size_t) -1; it's not portable. 2000-11-17 Akim Demaille - * lib/obstack.h: Formatting changes. + * obstack.h: Formatting changes. (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would prevent type checking. (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't