bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
From: Bruno Haible <bruno@clisp.org>
To: Reuben Thomas <rrt@sc3d.org>
Cc: bug-gnulib@gnu.org
Subject: Re: NAME_MAX on MingW
Date: Mon, 08 Mar 2021 11:06:50 +0100	[thread overview]
Message-ID: <2793523.21flLQrESG@omega> (raw)
In-Reply-To: <CAOnWdohyXVQk81gQn1ZPJTwwX9XJBLKh6D=GPc1nHeQa57J84Q@mail.gmail.com>

Hi Reuben,

> Unfortunately, this doesn't help, because pathconf is not present on mingw.

Then use some fallback, e.g. 256 or PATH_MAX.

> So the best I can do is #define _POSIX_ to get the value of NAME_MAX that
> it has.

Speaking for Gnulib, we cannot support _POSIX_ on mingw. This macro modifies
the behaviour of the header files in 23 places. We already have enough work
with the various header files origins and modes (from Microsoft, with clang,
from old mingw, from mingw64, UNICODE or not,__USE_MINGW_ANSI_STDIO,
_USE_32BIT_TIME_T). We do not need yet another variant, _POSIX_.

Bruno



  reply	other threads:[~2021-03-08 10:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-07 23:22 NAME_MAX on MingW Reuben Thomas
2021-03-08  0:14 ` Bruno Haible
2021-03-08  0:16   ` Reuben Thomas
2021-03-08  9:24     ` Reuben Thomas
2021-03-08 10:06       ` Bruno Haible [this message]
2021-03-08 10:12         ` Reuben Thomas
2021-03-08  9:12   ` Reuben Thomas
2021-03-08  9:56     ` Bruno Haible

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.gnu.org/mailman/listinfo/bug-gnulib

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2793523.21flLQrESG@omega \
    --to=bruno@clisp.org \
    --cc=bug-gnulib@gnu.org \
    --cc=rrt@sc3d.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).