Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <80575AFA5F0DD31197CE00805F650D7602CDC6@wilber.adroit.com> From: "Robinow, David" To: "'cygwin AT sources DOT redhat DOT com'" Subject: RE: Two snapshot bugs Date: Tue, 10 Oct 2000 14:37:27 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" > So 'getcwd (NULL, -1)' should return something but 'getcwd > (NULL, 0)', IMO, > should not. #include #include #include int main() { char *dir = getcwd(NULL, 0); perror("Error ="); printf("getcwd=%s\n", dir); } Sets EINVAL in Irix. Sets EINVAL in SunOS 5.6 Looks like "getcwd" returns the right thing. Should errno be set? -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com