"Fossies" - the Fresh Open Source Software Archive

Member "pktstat-1.8.5/compat.h" (29 Feb 2008, 804 Bytes) of package /linux/privat/old/pktstat-1.8.5.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 
    2 #include "type.h"
    3 
    4 #if DEBUG_MALLOC
    5 #include <stdlib.h>
    6 #include <string.h>
    7 void *xx_malloc(size_t, const char *, int);
    8 void *xx_realloc(void *, size_t, const char *, int);
    9 void xx_free(void *);
   10 char *xx_strdup(const char *s, const char *, int);
   11 #define malloc(sz)      xx_malloc(sz,__FILE__,__LINE__)
   12 #define realloc(ptr,sz) xx_realloc(ptr,sz,__FILE__,__LINE__)
   13 #define free            xx_free
   14 #define strdup(s)       xx_strdup(s,__FILE__,__LINE__)
   15 #endif
   16 
   17 #if !HAVE_MEMCMP
   18 int memcmp(const void *, const void *, size_t);
   19 #endif
   20 
   21 #if HAVE_ERR_H
   22 # include <err.h>
   23 #else
   24 # if !HAVE_ERR
   25 void err(int, const char *, ...);
   26 void errx(int, const char *, ...);
   27 void warn(const char *, ...);
   28 void warnx(const char *, ...);
   29 # endif
   30 #endif
   31 
   32 
   33 #if !HAVE_STRNCPY
   34 size_t strlcpy(char *, const char *, size_t);
   35 #endif