Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2011-11-08 00:05:49 +0400
committerChristopher Faylor <me@cgf.cx>2011-11-08 00:05:49 +0400
commit65a6152f18884f2867b4350723bdcff5732e3f29 (patch)
treea9469b6d6b77ad6bbf2c1e6d1c7f6943a1566214 /winsup/cygwin/include
parent78942629ac8b7683f64fb21b39a4c1eaee2b768b (diff)
* 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.
Diffstat (limited to 'winsup/cygwin/include')
-rw-r--r--winsup/cygwin/include/cygwin/stdlib.h1
-rw-r--r--winsup/cygwin/include/cygwin/version.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/include/cygwin/stdlib.h b/winsup/cygwin/include/cygwin/stdlib.h
index edf00a073..d2dfe4cbc 100644
--- a/winsup/cygwin/include/cygwin/stdlib.h
+++ b/winsup/cygwin/include/cygwin/stdlib.h
@@ -30,6 +30,7 @@ long random (void);
char *setstate (const char *state);
void srandom (unsigned);
char *ptsname (int);
+int ptsname_r(int, char *, size_t);
int grantpt (int);
int unlockpt (int);
#endif /*__STRICT_ANSI__*/
diff --git a/winsup/cygwin/include/cygwin/version.h b/winsup/cygwin/include/cygwin/version.h
index 27dccf27c..db9a18b4d 100644
--- a/winsup/cygwin/include/cygwin/version.h
+++ b/winsup/cygwin/include/cygwin/version.h
@@ -423,12 +423,13 @@ details. */
252: CW_CVT_ENV_TO_WINENV added.
253: Export TIOCSCTTY, tcgetsid.
254: Export getgrouplist.
+ 255: Export ptsname_r.
*/
/* Note that we forgot to bump the api for ualarm, strtoll, strtoull */
#define CYGWIN_VERSION_API_MAJOR 0
-#define CYGWIN_VERSION_API_MINOR 254
+#define CYGWIN_VERSION_API_MINOR 255
/* There is also a compatibity version number associated with the
shared memory regions. It is incremented when incompatible