* cygwin.din (ptsname_r): Export.
* fhandler.cc (fhandler_base::ptsname_r): Define. * fhandler.h (fhandler_base::ptsname): Delete. (fhandler_base::ptsname_r): Declare. (fhandler_pty_master::ptsname_r): Declare. * fhandler_tty.cc (fhandler_pty_master::ptsname): Delete. (fhandler_pty_master::ptsname_r): New reentrant function derived from previous ptsname. * syscalls.cc (ptsname_r): Implement new function with functionality similar to Linux. (ptsname): Use ptsname_r () to fill out buf. * include/cygwin/stdlib.h (ptsname_r): Declare. * include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR to 255 to reflect export of ptsname_r. * pinfo.cc (pinfo::wait): Return bool rather than int. * pinfo.h (info::wait): Ditto. (pinfo::reattach): Define !defined(_SIGPROC_H) case for consistency. * sigproc.cc (child_info_spawn::reattach_children): Use correct dwProcessId rather than pid when duplicating handle.
This commit is contained in:
@ -381,7 +381,7 @@ public:
|
||||
virtual pid_t get_popen_pid () const {return 0;}
|
||||
virtual bool isdevice () const { return true; }
|
||||
virtual bool isfifo () const { return false; }
|
||||
virtual char *ptsname () { return NULL;}
|
||||
virtual int ptsname_r (char *, size_t);
|
||||
virtual class fhandler_socket *is_socket () { return NULL; }
|
||||
virtual class fhandler_console *is_console () { return 0; }
|
||||
virtual int is_windows () {return 0; }
|
||||
@ -1486,7 +1486,7 @@ public:
|
||||
int tcflush (int);
|
||||
int ioctl (unsigned int cmd, void *);
|
||||
|
||||
char *ptsname ();
|
||||
int ptsname_r (char *, size_t);
|
||||
|
||||
bool hit_eof ();
|
||||
bool setup ();
|
||||
|
Reference in New Issue
Block a user