re PR libgcj/31228 (Race condition between setting close-on-exec and Runtime.exec())
[gcc.git] / libjava / include / posix.h
index ee836e0b809496c115c8a1293daeaf00a9e7531f..5f522a3804aff679fe521598cfc90444e22e1281 100644 (file)
@@ -98,15 +98,6 @@ extern jlong _Jv_platform_nanotime ();
 extern void _Jv_platform_initialize (void);
 extern void _Jv_platform_initProperties (java::util::Properties*);
 
-inline void
-_Jv_platform_close_on_exec (jint fd)
-{
-  // Ignore errors.
-  ::fcntl (fd, F_SETFD, FD_CLOEXEC);
-}
-
-#undef fcntl
-
 #ifdef JV_HASH_SYNCHRONIZATION
 #ifndef HAVE_USLEEP_DECL
 extern "C" int usleep (useconds_t useconds);