From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 7B9551F9FD for ; Mon, 8 Mar 2021 10:09:09 +0000 (UTC) Received: from localhost ([::1]:56658 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJCp2-00089F-6F for normalperson@yhbt.net; Mon, 08 Mar 2021 05:09:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34008) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJCmv-0007Eh-C0 for bug-gnulib@gnu.org; Mon, 08 Mar 2021 05:06:57 -0500 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.160]:18053) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJCmt-0003oQ-75 for bug-gnulib@gnu.org; Mon, 08 Mar 2021 05:06:57 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1615198011; cv=none; d=strato.com; s=strato-dkim-0002; b=fPTXmBdzDTKyXjB0XZxocEkqxd0nKjwDcwnxDsxbThD/xzhac78gb9rwVPovlmipiw iSN+o3sqgQEM0o//ljEyN1k7bl1VYQKfTk+XBkc4E6W7tvq+ONw2ZpGQr3cXBSSNePWq aptmx35xHQoEwPHNmgaF3YPmPn+42uAwS+GvzLdLdh9u+Y8gNyzcQLj06Fr/a3xXh0uD KBjiM+yYMTW8UT4jhpj7kL3qZxrYo5sxhxBsmD2sKFE72KB6VI7tL1FoP8l9zy1KVTyU BAesb26aLo6RsPo1WwugLB01V+TmOT+muY4tJQr4pxRTpiG2ie4vio92YVFhoCe9byX4 pZdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1615198011; s=strato-dkim-0002; d=strato.com; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=+5+4EFiiMY8YgyMalP5bY8BDsH8qNE6WqQD8p52WXro=; b=KtiTT37wa8gGVn4xSywkGhAvTSlWDiJtFEwEXzA+x4SxCGExPMrIE21lMfM6Luo+Lj WcOzji9CEKu7GclLG9ZhKm/coNd+/cMFdlSb/wejTc00RgREZ6RJKULU49lZOWYaARec 7VSFgb/pUqo7VVfUgmJLI+iLTW+NH8a9hhUi0I+I/A/GGI9HCoEurIxjfnsd7rL7Vquk ZLPvyzVKtjwSQ1vi6ki7zCgaWlaxBmxMNuik481bOLESTkY8J9v7mDqjyQN46vC3u6FO ZkOJF7rxpbb1+RpJMJD+xtEIDVXDfoP8ZwWjWXmIW75EVch3kppxPb4yRGzYFjMOlQjo C+rg== ARC-Authentication-Results: i=1; strato.com; dkim=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1615198011; s=strato-dkim-0002; d=clisp.org; h=References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Cc:Date: From:Subject:Sender; bh=+5+4EFiiMY8YgyMalP5bY8BDsH8qNE6WqQD8p52WXro=; b=KzLHlEgMOyGjZy63fSFmCUP2NZO+U5VdPGHQVnL7doeFXevm3GKF4pOyH/t6HpUW3e sMwWkZOkTUqwzqpDREGsa/TQSBW6gRgtdosbNDvA+a2THE+q5KC5hTd1bpmPbZTR48Lk JFvKJd2ELcsTUFjI6tYNkJ7aMRXWZcmhEP6Crkp+b4TdgdaMd7lvp8f4Hoi65Kg5ciqU lz9KWLLGKFhDLPADqFThgkqV8jwzc/QqkrFi/WdJZr48p0QrBsRp/6MvQ4bs88Y+5ViN JhOeTLOEk0LtoNOqjIgHjYbdAy43G8NGEPkQ7Z8ePWczHIcQvQH+53KrWdNa6Rq3OLuZ ELvg== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlIWs+iCP5vnk6shH+AHjwLuWOHqf3zZdW" X-RZG-CLASS-ID: mo00 Received: from bruno.haible.de by smtp.strato.de (RZmta 47.20.3 DYNA|AUTH) with ESMTPSA id n0b11fx28A6pGZF (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Mon, 8 Mar 2021 11:06:51 +0100 (CET) From: Bruno Haible To: Reuben Thomas Subject: Re: NAME_MAX on MingW Date: Mon, 08 Mar 2021 11:06:50 +0100 Message-ID: <2793523.21flLQrESG@omega> User-Agent: KMail/5.1.3 (Linux/4.4.0-203-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Received-SPF: none client-ip=81.169.146.160; envelope-from=bruno@clisp.org; helo=mo4-p00-ob.smtp.rzone.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bug-gnulib@gnu.org Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" 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