This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
Re: New rename(2) function
- From: Igor Peshansky <pechtcha at cs dot nyu dot edu>
- To: Eric Blake <ebb9 at byu dot net>
- Cc: cygwin-developers at cygwin dot com
- Date: Tue, 7 Aug 2007 09:48:25 -0400 (EDT)
- Subject: Re: New rename(2) function
- References: <20070731155745.GE21952@calimero.vinschen.de> <46B86B74.5000901@byu.net>
- Reply-to: cygwin-developers at cygwin dot com
On Tue, 7 Aug 2007, Eric Blake wrote:
> Also, the check for link count >= 2 might also be optimized to skip
> directories (whose link count is always > 1, but since directories can't
> be hard-linked, it is not worth looking up their id).
Does POSIX mandate that directories cannot be hard-linked? I think NTFS
can create hard links to directories, and reparse points can be used as
hard links.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!)
|,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
Belief can be manipulated. Only knowledge is dangerous. -- Frank Herbert