mm.h   mm.h 
skipping to change at line 65 skipping to change at line 65
** ____ Public Part (I) of the API ________________________ ** ____ Public Part (I) of the API ________________________
*/ */
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#if !defined(FALSE)
#define FALSE 0
#endif
#if !defined(TRUE)
#define TRUE !FALSE
#endif
#if !defined(NULL)
#define NULL (void *)0
#endif
#if !defined(NUL)
#define NUL '\0'
#endif
/* /*
** ____ Private Part of the API ___________________________ ** ____ Private Part of the API ___________________________
*/ */
#if defined(MM_PRIVATE) #if defined(MM_PRIVATE)
#include "mm_conf.h" #include "mm_conf.h"
#include <errno.h> #include <errno.h>
#include <limits.h> #include <limits.h>
skipping to change at line 103 skipping to change at line 90
#ifdef MM_OS_SUNOS #ifdef MM_OS_SUNOS
#include <memory.h> #include <memory.h>
/* SunOS lacks prototypes */ /* SunOS lacks prototypes */
extern int getpagesize(void); extern int getpagesize(void);
extern int munmap(caddr_t addr, int len); extern int munmap(caddr_t addr, int len);
extern int ftruncate(int fd, off_t length); extern int ftruncate(int fd, off_t length);
extern int flock(int fd, int operation); extern int flock(int fd, int operation);
extern char *strerror (int err); extern char *strerror (int err);
#endif #endif
#if !defined(offsetof) #if !defined(FALSE)
#define offsetof(type,member) ((size_t)(&((type *)0)->member)) #define FALSE 0
#endif
#if !defined(TRUE)
#define TRUE !FALSE
#endif
#if !defined(NULL)
#define NULL (void *)0
#endif
#if !defined(NUL)
#define NUL '\0'
#endif
#if !defined(min_of)
#define min_of(a,b) ((a) < (b) ? (a) : (b))
#endif
#if !defined(max_of)
#define max_of(a,b) ((a) > (b) ? (a) : (b))
#endif
#if !defined(absof)
#define abs_of(a) ((a) < 0 ? -(a) : (a))
#endif
#if !defined(offset_of)
#define offset_of(type,member) ((size_t)(&((type *)0)->member))
#endif #endif
#if !defined(HAVE_MEMCPY) #if !defined(HAVE_MEMCPY)
#if defined(HAVE_BCOPY) #if defined(HAVE_BCOPY)
#define memcpy(to,from,len) bcopy(from,to,len) #define memcpy(to,from,len) bcopy(from,to,len)
#else #else
#define memcpy(to,from,len) \ #define memcpy(to,from,len) \
{ int i; for (i = 0; i < (len); i++) *((to)+i) = *((from)+i); } { int i; for (i = 0; i < (len); i++) *((to)+i) = *((from)+i); }
#endif #endif
#endif #endif
 End of changes. 2 change blocks. 
15 lines changed or deleted 23 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/