OSDN Git Service

* devices.h (_minor): Coerce argument to proper type before manipulating.
authorcgf <cgf>
Thu, 1 Dec 2005 17:33:59 +0000 (17:33 +0000)
committercgf <cgf>
Thu, 1 Dec 2005 17:33:59 +0000 (17:33 +0000)
commit78e44eafcb9ac6c20240e5a46d2084774543614c
tree8849fd588cfa16d4d61f34b8c60ff4aada5d4eb3
parentf28774dcaecedeaa46b76190e974c6e48b01eb4b
* devices.h (_minor): Coerce argument to proper type before manipulating.
(_major): Ditto.
(device::is_fs_special): New function.
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Set the size to 0 for
devices rather than reporting the size of the symlink.
(fhandler_disk_file::readdir): Use is_fs_special to determine if .lnk should be
stripped.
* path.cc: Rename symlink_info::is_symlink to symlink_info::issymlink
throughout.
(symlink_info::isdevice): New field.
(path_conv::check): Use 'isdevice' to determine if just-parsed entity is a
device rather than relying on non-zero major/minor.
(symlink_info::parse_device): Set isdevice to true if we've discovered a
device.
(symlink_info::check): Clear isdevice field prior to processing.  Use isdevice
to control debugging output.
(symlink_info::set): Set isdevice to false.
* path.h (path_conv::is_fs_special): New function.
* devices.cc: Regenerate.
winsup/cygwin/ChangeLog
winsup/cygwin/devices.h
winsup/cygwin/fhandler_disk_file.cc
winsup/cygwin/path.cc
winsup/cygwin/path.h