Added function declarations to eliminate compiler warnings.
authorwtc
Mon, 13 Apr 1998 22:22:43 +0000
changeset 29 dbbcc5a4d7710219782d5e889dd6948a027f5363
parent 28 27e225450874a08c8289177932231b64292e1032
child 30 f726de9305e9040911b8781ab0f455c99bc492e6
push idunknown
push userunknown
push dateunknown
Added function declarations to eliminate compiler warnings.
pr/include/md/_unixos.h
--- a/pr/include/md/_unixos.h
+++ b/pr/include/md/_unixos.h
@@ -142,16 +142,17 @@ extern void _MD_unix_init_running_cpu(st
 /*
 ** Make a redzone at both ends of the stack segment. Disallow access
 ** to those pages of memory. It's ok if the mprotect call's don't
 ** work - it just means that we don't really have a functional
 ** redzone.
 */
 #if defined(DEBUG)
 #if !defined(SOLARIS)	
+#include <string.h>  /* for memset() */
 #define _MD_INIT_STACK(ts,REDZONE)					\
     PR_BEGIN_MACRO                 					\
 	(void) mprotect((void*)ts->seg->vaddr, REDZONE, PROT_NONE);	\
 	(void) mprotect((void*) ((char*)ts->seg->vaddr + REDZONE + ts->stackSize),\
 			REDZONE, PROT_NONE);				\
     /*									\
     ** Fill stack memory with something that turns into an illegal	\
     ** pointer value. This will sometimes find runtime references to	\
@@ -304,16 +305,17 @@ extern void _MD_UnblockClockInterrupts(v
 extern void _MD_PauseCPU(PRIntervalTime timeout);
 
 extern PRStatus _MD_open_dir(struct _MDDir *, const char *);
 extern PRInt32  _MD_close_dir(struct _MDDir *);
 extern char *   _MD_read_dir(struct _MDDir *, PRIntn);
 extern PRInt32  _MD_open(const char *name, PRIntn osflags, PRIntn mode);
 extern PRInt32	_MD_delete(const char *name);
 extern PRInt32	_MD_getfileinfo(const char *fn, PRFileInfo *info);
+extern PRInt32  _MD_getfileinfo64(const char *fn, PRFileInfo64 *info);
 extern PRInt32  _MD_getopenfileinfo(const PRFileDesc *fd, PRFileInfo *info);
 extern PRInt32  _MD_getopenfileinfo64(const PRFileDesc *fd, PRFileInfo64 *info);
 extern PRInt32	_MD_rename(const char *from, const char *to);
 extern PRInt32	_MD_access(const char *name, PRIntn how);
 extern PRInt32	_MD_mkdir(const char *name, PRIntn mode);
 extern PRInt32	_MD_rmdir(const char *name);
 extern PRInt32	_MD_accept_read(PRInt32 sock, PRInt32 *newSock,
 				PRNetAddr **raddr, void *buf, PRInt32 amount);