Two snapshot bugs
Robinow, David
drobinow@dayton.adroit.com
Tue Oct 10 11:34:00 GMT 2000
> 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@sourceware.cygnus.com
More information about the Cygwin
mailing list