OSDN Git Service

Throughout change TTY_* to PTY_*, tty_* to pty_*, and ttym_* to ptmx_*.
authorcgf <cgf>
Thu, 20 Oct 2011 14:02:53 +0000 (14:02 +0000)
committercgf <cgf>
Thu, 20 Oct 2011 14:02:53 +0000 (14:02 +0000)
commit7deb4d1f82158f812b57d7b72352937739a0d868
treea4baa7c535f6e7fdd66646f3838a2675beee0f45
parent3fb7a1d7d2947d1135180ee1f72435985470c081
Throughout change TTY_* to PTY_*, tty_* to pty_*, and ttym_* to ptmx_*.
* devices.cc: Regenerate.
* dtable.cc: (fh_alloc): Preserve /dev/tty name when that's what we opened.
(build_fh_pc): Preserve any existing name.
* fhandler.cc (fhandler_base::open_with_arch): Ditto.
* fhandler_tty.cc (fhandler_pty_master::fhandler_pty_master): Force the name to
/dev/ptmx while preserving other pty master device information.
* path.h (cfree_maybe): New macro.
(path_conv::operator =): Free any allocated strings in target.
(path_conv::free_strings): Delete unused function.
* sigproc.cc (proc_terminate): Remove previous accommodation for execed
processes since it didn't have the desired effect.  Change comment to a FIXME.
* spawn.cc (chExeced): Mark NO_COPY.
(exe_suffixes): Ditto.
14 files changed:
winsup/cygwin/ChangeLog
winsup/cygwin/devices.cc
winsup/cygwin/devices.h
winsup/cygwin/devices.in
winsup/cygwin/dtable.cc
winsup/cygwin/fhandler.cc
winsup/cygwin/fhandler_proc.cc
winsup/cygwin/fhandler_tty.cc
winsup/cygwin/ioctl.cc
winsup/cygwin/path.h
winsup/cygwin/select.cc
winsup/cygwin/sigproc.cc
winsup/cygwin/spawn.cc
winsup/cygwin/tty.cc