win32.cc: (_Jv_pipe) Implemented.

* win32.cc: (_Jv_pipe) Implemented.
	* gnu/java/nio/natPipeImpl.cc: (nativeInit) Use
	_Jv_pipe instead of ::pipe.
	* include/posix.h: (_Jv_pipe) New inline.
	* include/win32.h: (_Jv_pipe) New declaration.

From-SVN: r72616
This commit is contained in:
Mohan Embar
2003-10-17 18:44:42 +00:00
committed by Mohan Embar
parent 7260e9a073
commit ef050c9e23
5 changed files with 24 additions and 1 deletions

View File

@@ -178,4 +178,11 @@ _Jv_read(int s, void *buf, int len)
#endif /* DISABLE_JAVA_NET */
// Wraps ::pipe
static inline int
_Jv_pipe (int filedes[2])
{
return ::pipe (filedes);
}
#endif /* __JV_POSIX_H__ */

View File

@@ -95,6 +95,7 @@ extern void _Jv_platform_initialize (void);
extern void _Jv_platform_initProperties (java::util::Properties*);
extern jlong _Jv_platform_gettimeofday ();
extern int _Jv_select (int n, fd_set *, fd_set *, fd_set *, struct timeval *);
extern int _Jv_pipe (int filedes[2]);
inline void
_Jv_platform_close_on_exec (jint)