From xemacs-m  Sat Dec  7 18:05:06 1996
Received: from venus.Sun.COM (venus.Sun.COM [192.9.25.5]) by xemacs.cs.uiuc.edu (8.8.3/8.8.3) with SMTP id SAA13897 for <xemacs-beta@xemacs.org>; Sat, 7 Dec 1996 18:05:05 -0600 (CST)
Received: from Eng.Sun.COM ([129.146.1.25]) by venus.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id QAA19191; Sat, 7 Dec 1996 16:04:36 -0800
Received: from kindra.eng.sun.com by Eng.Sun.COM (SMI-8.6/SMI-5.3)
	id QAA10365; Sat, 7 Dec 1996 16:04:33 -0800
Received: from xemacs.eng.sun.com by kindra.eng.sun.com (SMI-8.6/SMI-SVR4)
	id QAA04057; Sat, 7 Dec 1996 16:04:34 -0800
Received: by xemacs.eng.sun.com (SMI-8.6/SMI-SVR4)
	id QAA07564; Sat, 7 Dec 1996 16:04:31 -0800
Date: Sat, 7 Dec 1996 16:04:31 -0800
Message-Id: <199612080004.QAA07564@xemacs.eng.sun.com>
From: Martin Buchholz <mrb@Eng.Sun.COM>
To: Steven L Baur <steve@miranova.com>
Cc: xemacs-beta@xemacs.org
Subject: [Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>] Re: libc.5.4.15-16 lead to coredump for emacs
In-Reply-To: <m2ohg7ms03.fsf@altair.xemacs.org>
References: <m2ohg7ms03.fsf@altair.xemacs.org>
Reply-To: Martin Buchholz <mrb@Eng.Sun.COM>
Mime-Version: 1.0 (generated by tm-edit 7.94)
Content-Type: text/plain; charset=US-ASCII

>>>>> "Steven" == Steven L Baur <steve@miranova.com> writes:

Steven> What are the implications of fixing this?  It looks written in stone
Steven> that getwd shall be used.

If POSIX getwcd is available on the system, then that should be used,
else getwd.  There's even some code that knows about getcwd
(realpath.c), but in general it's not yet implemented.  Here's a start
(the easy part):

*** /tmp/geta7540	Sat Dec  7 15:59:16 1996
--- config.h.in	Sat Dec  7 15:58:15 1996
***************
*** 171,176 ****
--- 171,177 ----
  #undef HAVE_GETPAGESIZE
  #undef HAVE_GETTIMEOFDAY
  #undef HAVE_GETWD
+ #undef HAVE_GETCWD
  #undef HAVE_LOGB
  #undef HAVE_LRAND48
  #undef HAVE_MATHERR


*** /tmp/geta7551	Sat Dec  7 16:00:56 1996
--- configure.in	Sat Dec  7 16:00:55 1996
***************
*** 2714,2720 ****
  # # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
  # A C_CHECK_LIB(m, sqrt)
  
! AC_HAVE_FUNCS(acosh asinh atanh cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getwd logb lrand48 matherr mkdir mktime perror poll random realpath rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask strcasecmp strerror tzset utimes waitpid)
  
  # Check for mmap.
  found_mmap=true
--- 2712,2718 ----
  # # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
  # A C_CHECK_LIB(m, sqrt)
  
! AC_HAVE_FUNCS(acosh asinh atanh cbrt closedir dup2 eaccess fmod fpathconf frexp ftime gethostname getpagesize gettimeofday getcwd getwd logb lrand48 matherr mkdir mktime perror poll random realpath rename res_init rint rmdir select setitimer setpgid setlocale setsid sigblock sighold sigprocmask strcasecmp strerror tzset utimes waitpid)
  
  # Check for mmap.
  found_mmap=true

-- 
Martin Buchholz <mrb@eng.sun.com>
XEmacs Developer, Sun Microsystems Inc.

