delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/07/29/19:23:02

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 56TNN2IE1130213
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 56TNN2IE1130213
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=bCogydIb
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7B95C3858C2A
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1753831381;
bh=YvuCRKwD+WgtCiuVDSwB/gD+juijfPlad1hiTVEaKj8=;
h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=bCogydIb4H5y2JpgmBXOY9hZDxtCNxjTL1qkwFX1OOYqTSkylJ32EXkn+xmoU+y7N
w7UCEyhB4R+bidBjCq54/FZtdq8HEMXlpjnJTK1wVYrRClB5NUIL2hFrzL5tkk3hmd
wMVNd65ERj76wvGTonJoS0ZcmCohihlFPQIhNo7w=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 631853858D26
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 631853858D26
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1753831322; cv=none;
b=LkKM3jNu+KHHMcTFnBWBspugjhFCxODI+RO21BtE+GUgz9EEa7l1ye5g8CZQh73hdCd7LE3pqeU1B7hrNJ/7gzN31aSHdCPAbdXOL3xF0a4IU41Lt7OTy4jDV+LxOQ6mH6iyMbkhab3ZLImsT+r+kuczO5gIZvsdM2lir2Ec2uA=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1753831322; c=relaxed/simple;
bh=xfxd1FEl3GBYxZSDR72Lvdev3DpWBowSDd7eeBrA8Wg=;
h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version;
b=gZrnrOSzUmtGnjfiotJ2fBjhGmpgoyZ9nOvZPiC95AgsX5PJw1J2OH6rbqoWVa6EYUU5NNjswNDdWGkg6NuBlNyrI0KKXdPIHSYhbn5IgYqnOsJWyprW/mfE3UFun/LM1HLE7v3akv7Gof9wW/J9m9w3Ky5l9pJaxjBqPbaCHGQ=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 631853858D26
Date: Tue, 29 Jul 2025 16:22:02 -0700 (PDT)
X-X-Sender: jeremyd AT resin DOT csoft DOT net
To: cygwin AT cygwin DOT com
Subject: getcwd() and ENOENT
Message-ID: <635c3b61-6ce7-5b77-2b0c-2c673c40e198@jdrake.com>
MIME-Version: 1.0
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Jeremy Drake via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Jeremy Drake <cygwin AT jdrake DOT com>
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

I have been looking at test failures in LLVM, and I've come across a
strange one (to me).  It appears to be failing because it expects to:

create a temp directory
chdir to the temp directory
rmdir the temp directory
(skip the test if the rmdir fails)
call getcwd
fail the test if it doesn't get an error of ENOENT
...

POSIX Issue 8 doesn't specify ENOENT on getcwd[1], but the Linux man page
does[2].

Is this an issue in the test and it should just be skipped on Cygwin, or
should Cygwin's getcwd be failing with ENOENT in that case?

1: https://pubs.opengroup.org/onlinepubs/9799919799/functions/getcwd.html
2: https://man7.org/linux/man-pages/man3/getcwd.3.html



-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019