public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Make gethostname, getdtablesize, mktemp, ualarm available in BSD, XOPEN_SOURCE >= 500.
@ 2017-06-29  6:32 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2017-06-29  6:32 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=f70aad3de4d845f8b720010a2f8817db842d81e8

commit f70aad3de4d845f8b720010a2f8817db842d81e8
Author: Dionna Glaze <dionnaglaze@google.com>
Date:   Thu Jun 29 08:30:04 2017 +0200

    Make gethostname, getdtablesize, mktemp, ualarm available in BSD, XOPEN_SOURCE >= 500.

Diff:
---
 newlib/libc/include/sys/unistd.h | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h
index 84219ca..b60d340 100644
--- a/newlib/libc/include/sys/unistd.h
+++ b/newlib/libc/include/sys/unistd.h
@@ -259,9 +259,8 @@ int     _EXFUN(truncate, (const char *, off_t __length));
 #endif
 #endif
 
-#if defined(__CYGWIN__) || defined(__rtems__)
+#if defined(__BSD_VISIBLE) || (__XSI_VISIBLE >= 500)
 int	_EXFUN(getdtablesize, (void));
-int	_EXFUN(setdtablesize, (int));
 useconds_t _EXFUN(ualarm, (useconds_t __useconds, useconds_t __interval));
 #if !(defined  (_WINSOCK_H) || defined (_WINSOCKAPI_) || defined (__USE_W32_SOCKETS))
 /* winsock[2].h defines as __stdcall, and with int as 2nd arg */
@@ -270,6 +269,10 @@ useconds_t _EXFUN(ualarm, (useconds_t __useconds, useconds_t __interval));
 char *	_EXFUN(mktemp, (char *));
 #endif
 
+#if defined(__CYGWIN__) || defined(__rtems__)
+int	_EXFUN(setdtablesize, (int));
+#endif
+
 #if defined(__CYGWIN__) || defined(__SPU__) || defined(__rtems__)
 void    _EXFUN(sync, (void));
 #endif


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-06-29  6:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-29  6:32 [newlib-cygwin] Make gethostname, getdtablesize, mktemp, ualarm available in BSD, XOPEN_SOURCE >= 500 Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).