[BACK]Return to reentrant.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / include

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

Diff for /src/lib/libc/include/reentrant.h between version 1.14 and 1.14.10.1

version 1.14, 2009/01/11 02:46:28 version 1.14.10.1, 2012/06/23 22:54:55
Line 84 
Line 84 
  *   *
  */   */
   
 #ifdef _REENTRANT  
   
 /*  /*
  * Abstract thread interface for thread-safe libraries.  These routines   * Abstract thread interface for thread-safe libraries.  These routines
  * will use stubs in libc if the application is not linked against the   * will use stubs in libc if the application is not linked against the
Line 124 
Line 122 
 #define once_t                  pthread_once_t  #define once_t                  pthread_once_t
 #define ONCE_INITIALIZER        PTHREAD_ONCE_INIT  #define ONCE_INITIALIZER        PTHREAD_ONCE_INIT
   
   #ifdef _REENTRANT
   
 #ifndef __LIBC_THREAD_STUBS  #ifndef __LIBC_THREAD_STUBS
   
 __BEGIN_DECLS  __BEGIN_DECLS
Line 254  __END_DECLS
Line 254  __END_DECLS
 #define thr_getspecific(k)  #define thr_getspecific(k)
 #define thr_keydelete(k)  #define thr_keydelete(k)
   
 #define thr_once(o, f)  static inline int
   thr_once(once_t *once_control, void (*routine)(void))
   {
           if (__predict_false(once_control->pto_done == 0)) {
                   (*routine)();
                   once_control->pto_done = 1;
           }
           return 0;
   }
 #define thr_sigsetmask(f, n, o)  #define thr_sigsetmask(f, n, o)
 #define thr_self()  #define thr_self()
 #define thr_errno()  #define thr_errno()

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.14.10.1

CVSweb <webmaster@jp.NetBSD.org>