bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getcwd replacement + cross compilation


From: Sergio Durigan Junior
Subject: Re: getcwd replacement + cross compilation
Date: Wed, 22 Aug 2018 18:12:57 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

On Wednesday, August 22 2018, Paul Eggert wrote:

> The first thing that Gnulib rpl_getcwd should do, is call the system
> getcwd and, if that succeeds (or if it fails with errno == ERANGE), it
> should just return what the system getcwd returns. This is in the
> HAVE_MINIMALLY_WORKING_GETCWD branch of gnulib/lib/getcwd.c. Can you
> investigate why that isn't happening on Android? For example, what is
> the value of HAVE_MINIMALLY_WORKING_GETCWD?

Thanks for the reply, Paul.

Based on this snippet from m4/getcwd.m4:

  dnl Define HAVE_MINIMALLY_WORKING_GETCWD and HAVE_PARTLY_WORKING_GETCWD
  dnl if appropriate.
  case "$gl_cv_func_getcwd_path_max" in
    "no"|"no, it has the AIX bug") ;;
    *)
      AC_DEFINE([HAVE_MINIMALLY_WORKING_GETCWD], [1],
        [Define to 1 if getcwd minimally works, that is, its result can be
         trusted when it succeeds.])
      ;;
  esac

and on the fact the gl_cv_func_getcwd_path_max is set to "no" when
cross-compiling, I'm almost sure that HAVE_MINIMALLY_WORKING_GETCWD is
not being defined.  However, I'll double check with the submitter.

Thanks,

-- 
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF  31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
http://sergiodj.net/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]