[BACK]Return to libkern.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / lib / libkern

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/lib/libkern/libkern.h between version 1.70 and 1.70.6.3

version 1.70, 2007/07/29 11:46:02 version 1.70.6.3, 2008/03/23 02:05:02
Line 1 
Line 1 
 /*      $NetBSD$        */  /*      libkern.h,v 1.70.6.2 2008/01/09 01:56:34 matt Exp       */
   
 /*-  /*-
  * Copyright (c) 1992, 1993   * Copyright (c) 1992, 1993
Line 53  LIBKERN_INLINE u_long ulmax __P((u_long,
Line 53  LIBKERN_INLINE u_long ulmax __P((u_long,
 LIBKERN_INLINE u_long ulmin __P((u_long, u_long)) __attribute__ ((unused));  LIBKERN_INLINE u_long ulmin __P((u_long, u_long)) __attribute__ ((unused));
 LIBKERN_INLINE int abs __P((int)) __attribute__ ((unused));  LIBKERN_INLINE int abs __P((int)) __attribute__ ((unused));
   
 LIBKERN_INLINE int isspace __P((int)) __attribute__((__unused__));  LIBKERN_INLINE int isspace __P((int)) __unused;
 LIBKERN_INLINE int isascii __P((int)) __attribute__((__unused__));  LIBKERN_INLINE int isascii __P((int)) __unused;
 LIBKERN_INLINE int isupper __P((int)) __attribute__((__unused__));  LIBKERN_INLINE int isupper __P((int)) __unused;
 LIBKERN_INLINE int islower __P((int)) __attribute__((__unused__));  LIBKERN_INLINE int islower __P((int)) __unused;
 LIBKERN_INLINE int isalpha __P((int)) __attribute__((__unused__));  LIBKERN_INLINE int isalpha __P((int)) __unused;
 LIBKERN_INLINE int isdigit __P((int)) __attribute__((__unused__));  LIBKERN_INLINE int isdigit __P((int)) __unused;
 LIBKERN_INLINE int isxdigit __P((int)) __attribute__((__unused__));  LIBKERN_INLINE int isxdigit __P((int)) __unused;
 LIBKERN_INLINE int toupper __P((int)) __attribute__((__unused__));  LIBKERN_INLINE int toupper __P((int)) __unused;
 LIBKERN_INLINE int tolower __P((int)) __attribute__((__unused__));  LIBKERN_INLINE int tolower __P((int)) __unused;
   
 #ifdef LIBKERN_BODY  #ifdef LIBKERN_BODY
 LIBKERN_INLINE int  LIBKERN_INLINE int
Line 179  tolower(int ch)
Line 179  tolower(int ch)
 #else  #else
 #ifdef __STDC__  #ifdef __STDC__
 #define assert(e)       (__predict_true((e)) ? (void)0 :                    \  #define assert(e)       (__predict_true((e)) ? (void)0 :                    \
                             __assert("", __FILE__, __LINE__, #e))                              __kernassert("", __FILE__, __LINE__, #e))
 #else  #else
 #define assert(e)       (__predict_true((e)) ? (void)0 :                    \  #define assert(e)       (__predict_true((e)) ? (void)0 :                    \
                             __assert("", __FILE__, __LINE__, "e"))                              __kernassert("", __FILE__, __LINE__, "e"))
 #endif  #endif
 #endif  #endif
   
Line 203  tolower(int ch)
Line 203  tolower(int ch)
 #define _DIAGASSERT(a)  assert(a)  #define _DIAGASSERT(a)  assert(a)
 #ifdef __STDC__  #ifdef __STDC__
 #define KASSERT(e)      (__predict_true((e)) ? (void)0 :                    \  #define KASSERT(e)      (__predict_true((e)) ? (void)0 :                    \
                             __assert("diagnostic ", __FILE__, __LINE__, #e))                              __kernassert("diagnostic ", __FILE__, __LINE__, #e))
 #else  #else
 #define KASSERT(e)      (__predict_true((e)) ? (void)0 :                    \  #define KASSERT(e)      (__predict_true((e)) ? (void)0 :                    \
                             __assert("diagnostic ", __FILE__, __LINE__, "e"))                              __kernassert("diagnostic ", __FILE__, __LINE__,"e"))
 #endif  #endif
 #endif  #endif
   
Line 219  tolower(int ch)
Line 219  tolower(int ch)
 #else  #else
 #ifdef __STDC__  #ifdef __STDC__
 #define KDASSERT(e)     (__predict_true((e)) ? (void)0 :                    \  #define KDASSERT(e)     (__predict_true((e)) ? (void)0 :                    \
                             __assert("debugging ", __FILE__, __LINE__, #e))                              __kernassert("debugging ", __FILE__, __LINE__, #e))
 #else  #else
 #define KDASSERT(e)     (__predict_true((e)) ? (void)0 :                    \  #define KDASSERT(e)     (__predict_true((e)) ? (void)0 :                    \
                             __assert("debugging ", __FILE__, __LINE__, "e"))                              __kernassert("debugging ", __FILE__, __LINE__, "e"))
 #endif  #endif
 #endif  #endif
 /*  /*
Line 235  tolower(int ch)
Line 235  tolower(int ch)
     ((size_t)(unsigned long)(&(((type *)0)->member)))      ((size_t)(unsigned long)(&(((type *)0)->member)))
 #endif  #endif
   
   #define MTPRNG_RLEN             624
   struct mtprng_state {
           unsigned int mt_idx;
           uint32_t mt_elem[MTPRNG_RLEN];
           uint32_t mt_count;
           uint32_t mt_sparse[3];
   };
   
 /* Prototypes for non-quad routines. */  /* Prototypes for non-quad routines. */
 /* XXX notyet #ifdef _STANDALONE */  /* XXX notyet #ifdef _STANDALONE */
 int      bcmp __P((const void *, const void *, size_t));  int      bcmp __P((const void *, const void *, size_t));
Line 285  int  ffs __P((int));
Line 293  int  ffs __P((int));
 #define ffs(x)          __builtin_ffs(x)  #define ffs(x)          __builtin_ffs(x)
 #endif  #endif
   
 void     __assert __P((const char *, const char *, int, const char *));  void     __kernassert __P((const char *, const char *, int, const char *));
 unsigned int  unsigned int
         bcdtobin __P((unsigned int));          bcdtobin __P((unsigned int));
 unsigned int  unsigned int
Line 307  char *initstate __P((unsigned long, char
Line 315  char *initstate __P((unsigned long, char
 char    *setstate __P((char *));  char    *setstate __P((char *));
 #endif /* SMALL_RANDOM */  #endif /* SMALL_RANDOM */
 long     random __P((void));  long     random __P((void));
   void     mtprng_init32(struct mtprng_state *, uint32_t);
   void     mtprng_initarray(struct mtprng_state *, const uint32_t *, size_t);
   uint32_t mtprng_rawrandom(struct mtprng_state *);
   uint32_t mtprng_random(struct mtprng_state *);
 int      scanc __P((u_int, const u_char *, const u_char *, int));  int      scanc __P((u_int, const u_char *, const u_char *, int));
 int      skpc __P((int, size_t, u_char *));  int      skpc __P((int, size_t, u_char *));
 int      strcasecmp __P((const char *, const char *));  int      strcasecmp __P((const char *, const char *));

Legend:
Removed from v.1.70  
changed lines
  Added in v.1.70.6.3

CVSweb <webmaster@jp.NetBSD.org>