[Patch] unlink

Reini Urban rurban@x-ray.at
Sun Oct 31 11:31:00 GMT 2004


Pierre A. Humblet schrieb:
>>>It works on normal files. I haven't tested with the
>>>special names because I forgot how to create them !
>>>Feedback welcome.

works fine on w2k.
attached is a test to create such files.
unlink works fine on these.

didn't test with wchar and unicode files yet, just char.
but coreutils/findutils don't work with unicode files anyway.
(just testing findutils-4.1.20)

>>On reflection, however, wouldn't it be a little easier just to prepend
>>the path being deleted with a: \\.\ so that "rm nul" would eventually
>>translate to DeleteFile("\\.\c:\foo\null") (I'm not using true C
>>backslash quoting here)?  I don't know if that would work on Windows 9x,
>>though.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: testcreate.cc
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20041031/dd8b81d8/attachment.cc>


More information about the Cygwin-patches mailing list