4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-20 21:39:21 +08:00
Ken Brown a60a4501b7 Cygwin: ptsname_r: always return an error number on failure
Return EBADF on a bad file descriptor.  Previously 0 was returned, in
violation of the requirement in
https://man7.org/linux/man-pages/man3/ptsname_r.3.html that an error
number should be returned on failure.

We are intentionally deviating from Linux, on which ENOTTY is
returned.

Addresses: https://lists.gnu.org/archive/html/bug-gnulib/2021-01/msg00245.html
2021-01-22 10:36:43 -05:00
..
2020-05-30 19:41:18 +02:00
2020-08-30 14:27:43 +02:00
2016-06-25 00:43:01 +02:00
2019-10-23 10:05:42 +02:00
2019-10-23 10:05:42 +02:00
2018-02-20 17:59:53 +01:00
2020-08-28 11:10:48 +02:00
2020-10-18 14:55:13 +01:00
2017-03-27 22:03:58 +01:00
2020-12-07 10:20:45 +01:00
2020-08-28 11:10:48 +02:00
2018-04-16 22:46:11 -05:00
2018-02-07 13:07:44 +01:00
2020-08-30 09:33:30 -04:00
2019-06-25 15:44:43 -04:00
2019-06-25 15:44:43 -04:00
2020-07-01 20:30:52 +02:00