* 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:
@@ -153,7 +153,7 @@ public:
|
||||
pinfo (pid_t n, DWORD flag) : rd_proc_pipe (NULL), hProcess (NULL), waiter_ready (0), wait_thread (NULL) {init (n, flag, NULL);}
|
||||
void thisproc (HANDLE) __attribute__ ((regparm (2)));
|
||||
void release ();
|
||||
int wait () __attribute__ ((regparm (1)));
|
||||
bool wait () __attribute__ ((regparm (1)));
|
||||
~pinfo ()
|
||||
{
|
||||
if (destroy && procinfo)
|
||||
@@ -173,6 +173,7 @@ public:
|
||||
operator _pinfo * () const {return procinfo;}
|
||||
void preserve () { destroy = false; }
|
||||
#ifndef _SIGPROC_H
|
||||
int reattach () {system_printf ("reattach is not here"); return 0;}
|
||||
int remember () {system_printf ("remember is not here"); return 0;}
|
||||
#else
|
||||
int reattach ()
|
||||
|
Reference in New Issue
Block a user