[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnulib] dos.m4 missing Cygwin
From: |
Derek Robert Price |
Subject: |
Re: [Bug-gnulib] dos.m4 missing Cygwin |
Date: |
Tue, 27 Apr 2004 12:21:37 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bruno Haible wrote:
>Derek Robert Price wrote:
>
>>The Cygwin GNU compatibility environment ...
>
>
>"GNU compatibility environment" - what does this mean? I thought Cygwin
>is a Unix/POSIX emulation. The system calls fork(), exec() and
ioctl() are
>older than GNU.
Please accept my apologies for my imprecision.
>>It also treats back
>>slashes and drive letter specifications in paths the same way as
>>Windows and DOS
>
>
>Since which version does it do this? The
http://cygwin.com/faq/faq_4.html#SEC54
>mentions that _some_ applications accept "c:/windows" instead of
>"/cygdrive/c/windows". Do they also accept "c:\windows", and does
this hold
>for the entire Cygwin API?
I don't know when it started, but as of the version I last updated a
few weeks ago, the following program cats the file at "C:\test.txt":
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
int
main (int argc, char **argv)
{
char buf[1024];
int fd = open ("C:\\test.txt", O_RDONLY);
size_t got;
while ((got = read (fd, buf, 1023)) > 0)
write (1, buf, got);
close (fd);
exit (0);
}
So the API appears to support DOS paths. Perhaps some _APPLICATIONS_
do not support DOS style paths because they do not treat file name
strings as opaque or because constructs like IS_ABSOLUTE_PATH (path)
start failing when an application isn't prepared for DOS paths?
Derek
- --
*8^)
Email: address@hidden
Get CVS support at <http://ximbiot.com>!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFAjoiQLD1OTBfyMaQRAgygAKDvRItSzDiql9saVZGPbHhYLnxvDQCeKnZy
+zNnU6uGD8fF5Abu3b9dkzU=
=Wi2t
-----END PGP SIGNATURE-----