Bugzilla bug 326110: declare PR_SetSysfdTableSize and PR_GetSysfdTableMax
Mon, 06 Feb 2006 23:13:10 +0000
changeset 3556 d9baa449663b87aaa48f8753a19e820b08c00802
parent 3551 3f795764998f6d6c4bff7ba9bafb0343a02db263
child 3559 4c2c23c0d3b0b8137219dd156606263a0325bb01
push idunknown
push userunknown
push dateunknown
Bugzilla bug 326110: declare PR_SetSysfdTableSize and PR_GetSysfdTableMax with NSPR_API in a public header file so that they can be exported from the NSPR shared library/DLL. r=kengert,jpierre. Thanks to Noriko Hosoi <nhosoi@redhat.com> for the bug report.
--- a/pr/include/obsolete/probslet.h
+++ b/pr/include/obsolete/probslet.h
@@ -154,16 +154,25 @@ NSPR_API(PRInt32) PR_Select(
 NSPR_API(void)        PR_FD_ZERO(PR_fd_set *set);
 NSPR_API(void)        PR_FD_SET(PRFileDesc *fd, PR_fd_set *set);
 NSPR_API(void)        PR_FD_CLR(PRFileDesc *fd, PR_fd_set *set);
 NSPR_API(PRInt32)     PR_FD_ISSET(PRFileDesc *fd, PR_fd_set *set);
 NSPR_API(void)        PR_FD_NSET(PROsfd osfd, PR_fd_set *set);
 NSPR_API(void)        PR_FD_NCLR(PROsfd osfd, PR_fd_set *set);
 NSPR_API(PRInt32)     PR_FD_NISSET(PROsfd osfd, PR_fd_set *set);
+** The next two entry points should not be in the API, but they are
+** declared here for historical reasons.
+NSPR_API(PRInt32) PR_GetSysfdTableMax(void);
+NSPR_API(PRInt32) PR_SetSysfdTableSize(PRIntn table_size);
 #ifndef NO_NSPR_10_SUPPORT
 #ifdef XP_MAC
 #include <stat.h>
 #include <sys/stat.h>
 NSPR_API(PRInt32) PR_Stat(const char *path, struct stat *buf);