Bugzilla bug 326110: use PR_IMPLEMENT with two exported functions. NSPRPUB_PRE_4_2_CLIENT_BRANCH
authorwtchang%redhat.com
Tue, 07 Feb 2006 01:26:37 +0000
branchNSPRPUB_PRE_4_2_CLIENT_BRANCH
changeset 3560 46fcc0294b51d612bc273f93bd0b70cf7adf96b7
parent 3557 6b758676d588cdaef46fdba621668d422a59cf77
child 3563 6ebf0509622fbdea56210ed4f132878197ecb763
push idunknown
push userunknown
push dateunknown
bugs326110
Bugzilla bug 326110: use PR_IMPLEMENT with two exported functions. Modified files: prfile.c ptio.c Tag: NSPRPUB_PRE_4_2_CLIENT_BRANCH
pr/src/io/prfile.c
pr/src/pthreads/ptio.c
--- a/pr/src/io/prfile.c
+++ b/pr/src/io/prfile.c
@@ -407,17 +407,17 @@ PR_IMPLEMENT(PRFileDesc*) PR_OpenFile(
             fd->secret->appendMode = appendMode;
 #endif
             _PR_MD_INIT_FD_INHERITABLE(fd, PR_FALSE);
         }
     }
     return fd;
 }
 
-PRInt32 PR_GetSysfdTableMax(void)
+PR_IMPLEMENT(PRInt32) PR_GetSysfdTableMax(void)
 {
 #if defined(XP_UNIX) && !defined(AIX) && !defined(NEXTSTEP) && !defined(QNX)
     struct rlimit rlim;
 
     if ( getrlimit(RLIMIT_NOFILE, &rlim) < 0) {
        /* XXX need to call PR_SetError() */
        return -1;
     }
@@ -440,17 +440,17 @@ PRInt32 PR_GetSysfdTableMax(void)
 #elif defined (XP_MAC) || defined(XP_BEOS)
     PR_SetError(PR_NOT_IMPLEMENTED_ERROR, 0);
    return -1;
 #else
     write me;
 #endif
 }
 
-PRInt32 PR_SetSysfdTableSize(int table_size)
+PR_IMPLEMENT(PRInt32) PR_SetSysfdTableSize(int table_size)
 {
 #if defined(XP_UNIX) && !defined(AIX) && !defined(NEXTSTEP) && !defined(QNX)
     struct rlimit rlim;
     PRInt32 tableMax = PR_GetSysfdTableMax();
 
     if (tableMax < 0) 
         return -1;
 
--- a/pr/src/pthreads/ptio.c
+++ b/pr/src/pthreads/ptio.c
@@ -4580,31 +4580,31 @@ PR_IMPLEMENT(PRStatus) PR_UnlockFile(PRF
     return status;
 }
 
 /*
  * The next two entry points should not be in the API, but they are
  * defined here for historical (or hysterical) reasons.
  */
 
-PRInt32 PR_GetSysfdTableMax(void)
+PR_IMPLEMENT(PRInt32) PR_GetSysfdTableMax(void)
 {
 #if defined(XP_UNIX) && !defined(AIX) && !defined(VMS)
     struct rlimit rlim;
 
     if ( getrlimit(RLIMIT_NOFILE, &rlim) < 0) 
        return -1;
 
     return rlim.rlim_max;
 #elif defined(AIX) || defined(VMS)
     return sysconf(_SC_OPEN_MAX);
 #endif
 }
 
-PRInt32 PR_SetSysfdTableSize(PRIntn table_size)
+PR_IMPLEMENT(PRInt32) PR_SetSysfdTableSize(PRIntn table_size)
 {
 #if defined(XP_UNIX) && !defined(AIX) && !defined(VMS)
     struct rlimit rlim;
     PRInt32 tableMax = PR_GetSysfdTableMax();
 
     if (tableMax < 0) return -1;
     rlim.rlim_max = tableMax;