delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
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" <drobinow AT dayton DOT adroit DOT com> |
To: | "'cygwin AT sources DOT redhat DOT com'" <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) |
> So 'getcwd (NULL, -1)' should return something but 'getcwd > (NULL, 0)', IMO, > should not. #include <stdio.h> #include <unistd.h> #include <errno.h> 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |