summaryrefslogtreecommitdiff
path: root/pr/src/io/prfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'pr/src/io/prfile.c')
-rw-r--r--pr/src/io/prfile.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/pr/src/io/prfile.c b/pr/src/io/prfile.c
index d91bffa2..d5610bf2 100644
--- a/pr/src/io/prfile.c
+++ b/pr/src/io/prfile.c
@@ -99,10 +99,9 @@ static PRInt32 PR_CALLBACK FileWrite(PRFileDesc *fd, const void *buf, PRInt32 am
count = 0;
#if !defined(_PR_HAVE_O_APPEND) /* Bugzilla: 4090, 276330 */
- if ( PR_TRUE == fd->secret->appendMode ) {
- rv = PR_Seek(fd, 0, PR_SEEK_END );
- if ( -1 == rv ) {
- return rv;
+ if (fd->secret->appendMode) {
+ if (PR_Seek64(fd, 0, PR_SEEK_END) == -1) {
+ return -1;
}
} /* if (fd->secret->appendMode...) */
#endif /* _PR_HAVE_O_APPEND */
@@ -412,7 +411,7 @@ PR_IMPLEMENT(PRFileDesc*) PR_OpenFile(
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;
@@ -445,7 +444,7 @@ PRInt32 PR_GetSysfdTableMax(void)
#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;