Moved the obsolete function PR_SetStdioRedirect from probslet.h
authorwtc%netscape.com
Sat, 19 Sep 1998 01:00:52 +0000
changeset 243 fad36bc76035f56da4403922e68c298a8f6ae8f9
parent 242 fdee486f4e5fba7e8b6822213284431dee7d6e8e
child 244 9187166f0a36148ab249400dbb9eb7542b5abb95
push idunknown
push userunknown
push dateunknown
Moved the obsolete function PR_SetStdioRedirect from probslet.h back to prproces.h because we don't want to break source compatibility in this release.
pr/include/obsolete/probslet.h
pr/include/prproces.h
--- a/pr/include/obsolete/probslet.h
+++ b/pr/include/obsolete/probslet.h
@@ -20,17 +20,16 @@
 ** A collection of things thought to be obsolete
 */
 
 #if defined(PROBSLET_H)
 #else
 #define PROBSLET_H
 
 #include "prio.h"
-#include "prproces.h"
 
 PR_BEGIN_EXTERN_C
 
 /*
 ** Yield the current thread.  The proper function to use in place of
 ** PR_Yield() is PR_Sleep() with an argument of PR_INTERVAL_NO_WAIT.
 */
 PR_EXTERN(PRStatus) PR_Yield(void);
@@ -214,19 +213,13 @@ PR_EXTERN(PRStatus) PR_DestroyNetAddr(PR
 PR_EXTERN(PRStatus) PR_GetHostName(char *name, PRUint32 namelen);
 
 /*
 ** Return the current thread's last error string.
 ** obsoleted by PR_GetErrorText().
 */
 PR_EXTERN(const char *) PR_GetErrorString(void);
 
-PR_EXTERN(void) PR_SetStdioRedirect(
-    PRProcessAttr *attr,
-    PRSpecialFD stdioFd,
-    PRFileDesc *redirectFd
-);
-
 PR_END_EXTERN_C
 
 #endif /* defined(PROBSLET_H) */
 
 /* probslet.h */
--- a/pr/include/prproces.h
+++ b/pr/include/prproces.h
@@ -38,16 +38,25 @@ PR_EXTERN(void) PR_ResetProcessAttr(PRPr
 PR_EXTERN(void) PR_DestroyProcessAttr(PRProcessAttr *attr);
 
 PR_EXTERN(void) PR_ProcessAttrSetStdioRedirect(
     PRProcessAttr *attr,
     PRSpecialFD stdioFd,
     PRFileDesc *redirectFd
 );
 
+/*
+ * OBSOLETE -- use PR_ProcessAttrSetStdioRedirect instead.
+ */
+PR_EXTERN(void) PR_SetStdioRedirect(
+    PRProcessAttr *attr,
+    PRSpecialFD stdioFd,
+    PRFileDesc *redirectFd
+);
+
 PR_EXTERN(PRStatus) PR_ProcessAttrSetCurrentDirectory(
     PRProcessAttr *attr,
     const char *dir
 );
 
 /*
 ** Create a new process
 **