This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: glibc strftime.c _REENTRANT problem (GNU Emacs 20.3, Solaris 2.6)


   From: Ulrich Drepper <drepper@cygnus.com>
   Date: 07 Sep 1998 09:41:48 -0700

   Paul Eggert <eggert@twinsun.com> writes:

   > On Solaris 2.6, GNU Emacs 20.3's config.h file includes <time.h>
   > indirectly, which means that the "#define _REENTRANT 1" in glibc
   > strftime.c is ineffective

   We should this be a problem of strftime?  Fix the config.h for Emacs,
   this is the right approach.

Good point, but strftime.c contains `#define _REENTRANT 1' only
because it wants to have localtime_r declared properly in hosts like
Solaris 2.6.  (See the 1997-11-17 entry in the glibc ChangeLog.)  If
the right approach is to fix config.h to define _REENTRANT to be 1,
then the now-ineffective `#define _REENTRANT 1' should be removed from
strftime.c entirely.

Also, I just noticed that mktime.c has the same problem.  Whatever fix
is applied to strftime.c, should also be applied to mktime.c.  I
didn't notice this before, since GNU Emacs 20.3 uses Solaris mktime
instead of glibc mktime.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]