summaryrefslogtreecommitdiff
path: root/winsup/cygwin/cygwin-gperf
Commit message (Collapse)AuthorAgeFilesLines
* Merge from trunk.Christopher Faylor2003-03-091-0/+2
| | | | | | | * Makefile.in: Explicitly call perl to run cygwin-gperf. * path.cc: Move some device stuff. * cygwin-gperf: Define some device stuff. * devices.h: Declare some device stuff.
* Merge from trunk.Christopher Faylor2003-03-021-3/+23
| | | | | | | | | | | | | | | | | | | | | * Makefile.in (devicess.cc): Make generation dependent on cygwin-gperf. * cygheap.h (cygheap_fdmanip): Add fhandler_socket cast. * cygwin-gperf: Autogenerate references to network devices. * devices.h: Create separate device types for all network types. Export references to global network device storage. * dtable.cc (dtable::release): Use generic determination to control when need_fixup_before needs to be decremented. (dtable::init_std_file_from_handle): Replace use of 'socket_dev' with 'tcp_dev'. (build_fh_pc): Adapt to new socket types. Don't increment fixup_before here. * fhandler.h (fhandler_base::need_fixup_before): Declare/define. (fhandler_socket::need_fixup_before): Ditto. * fhandler_socket.cc (fhandler_socket::accept): Accommodate new fdsock definition. * net.cc: Throughout, change use of fdsock to return true/false for success/failure and take cygheap_fdmanip type and device * select.cc (set_bits): Use 'is_socket ()' test rather than specificially testing device type.
* merge from trunkChristopher Faylor2003-02-271-1/+13
|
* * cygwin-gperf: Fix typo in FH_FS static storage.Christopher Faylor2003-02-231-1/+1
| | | | | | | | | | | | | | | | * devices.gperf (device::parse): Default to fs "device" when nothing else is found. * fhandler.cc (fhandler_base::device_access_denied): Use access_worker rather than access to avoid reparsing pc. * fhandler_nodevice.cc (fhandler_nodevice::open): Set errno to ENXIO rather than ENODEV. * path.cc (path_conv::check): Default to FH_FS rather than FH_BAD. (mount_info::conv_to_win32_path): Ditto. (win32_device_name): Don't do device handling if FH_FS. * path.h (path_conv::get_devn): Just return raw device number. * syscalls.cc (access_worker): New function, split from access(). Correctly deal with special devices in light of recent ntsec changes. (access): Use access_worker.
* merge from trunkChristopher Faylor2003-02-231-1/+1
|
* merge from trunkChristopher Faylor2003-02-051-2/+4
|
* merge from trunkChristopher Faylor2003-02-011-1/+1
|
* * cygwin-gperf: New file.Christopher Faylor2002-12-291-0/+116
* Makefile.in: Use cygwin-gperf script to build devices.cc. * configure.in: Remove some comments. * configure: Regenerate. * devices.gperf: Remove max unit determination from FH_TTY. Add /dev/kmem. Add /dev/fifo. Add /dev/rawdrive. Remove specific "const device *" declarations since they are now autogenerated. (device::parse): Treat FH_TTY specially. Move logic for determining real tty device to separate function. (device::init): Reduce to nothing. (device::parse): New function taking different arguments. (device::parse): Ditto. (device::tty_to_real_device): New function. * devices.h (struct device): Define above new functions. (device::dev_on_fs): New element. (device::setfs): New function. (device::isfs): Ditto. * dtable.cc (dtable::build_fhandler): Treat FH_TTY specially. * fhandler.cc (fhandler_base::set_name): Make special determination for non-disk-resident devices. * fhandler.h (fhandler_base::isdevice): Renamed from 'is_device'. (fhandler_disk_file::isdevice): Ditto. (fhandler_base::is_auto_device): New function. (fhandler_base::is_fs_device): New function. (fhandler_tty_slave::get_unit): Declare. (fhandler_disk_file::readdir): Take special .lnk consideration for devices as well as symlinks. * fhandler_tty.cc: Use get_unit () rather than dev.minor throughout. (fhandler_tty_slave::get_unit): Define new function. * path.cc (symlink_info::major): New element. (symlink_info::major): Ditto. (symlink_info::devtype): Ditto. (path_conv::check): Handle devices detected by symlink_info::check. (win32_device_name): Eliminate special FH_TTY handling. (symlink): Move bulk of procesing to symlink_worker. (symlink_worker): New function. Handles devices. (symlink_info::parse_device): Parse info from potential device file into symlink_info elements. (symlink_info::check): If contents of .lnk file begin with a ':' then treat the file as a device file. * path.h (isdevice): Renamed from is_device. (is_auto_device): New function. (is_fs_device): Ditto. * syscalls.cc (chown_worker): Allow setting of ownership for on-disk devices. (chmod): Ditto. (mknod): Implement. * winsup.h (symlink_worker): Declare.