Diff for /libaitsched/inc/defs.h between versions 1.1 and 1.6

version 1.1, 2011/08/05 15:52:00 version 1.6, 2012/05/30 08:52:45
Line 12  terms: Line 12  terms:
 All of the documentation and software included in the ELWIX and AITNET  All of the documentation and software included in the ELWIX and AITNET
 Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>  Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>
   
Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
         by Michael Pounov <misho@elwix.org>.  All rights reserved.          by Michael Pounov <misho@elwix.org>.  All rights reserved.
   
 Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
Line 48  SUCH DAMAGE. Line 48  SUCH DAMAGE.
   
   
 #define STRSIZ                  256  #define STRSIZ                  256
#define KQ_EVENTS               24#define KQ_EVENTS               32
 #define MAX_EVENTLO_MISS        48  #define MAX_EVENTLO_MISS        48
   
 #define LOGERR  { \  #define LOGERR  { \
Line 56  SUCH DAMAGE. Line 56  SUCH DAMAGE.
                         strlcpy(sched_Error, strerror(errno), STRSIZ); \                          strlcpy(sched_Error, strerror(errno), STRSIZ); \
                 }                  }
   
   #define sched_timespecclear(tsp)        ((tsp)->tv_sec = (tsp)->tv_nsec = 0)
   #define sched_timespecinf(tsp)          ((tsp)->tv_sec = (tsp)->tv_nsec = -1)
   #define sched_timespecisinf(tsp)        ((tsp)->tv_sec == -1 && (tsp)->tv_nsec == -1)
   #define sched_timespecisset(tsp)        (((tsp)->tv_sec && (tsp)->tv_sec != -1) || \
                                                   ((tsp)->tv_nsec && (tsp)->tv_nsec != -1))
   #define sched_timespeccmp(tsp, usp, cmp)                                \
           (((tsp)->tv_sec == (usp)->tv_sec) ?                             \
                   ((tsp)->tv_nsec cmp (usp)->tv_nsec) :                   \
                   ((tsp)->tv_sec cmp (usp)->tv_sec))
   #define sched_timespecadd(tsp, usp, vsp)                                \
           do {                                                            \
                   (vsp)->tv_sec = (tsp)->tv_sec + (usp)->tv_sec;          \
                   (vsp)->tv_nsec = (tsp)->tv_nsec + (usp)->tv_nsec;       \
                   if ((vsp)->tv_nsec >= 1000000000L) {                    \
                           (vsp)->tv_sec++;                                \
                           (vsp)->tv_nsec -= 1000000000L;                  \
                   }                                                       \
           } while (0)
   #define sched_timespecsub(tsp, usp, vsp)                                \
           do {                                                            \
                   (vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec;          \
                   (vsp)->tv_nsec = (tsp)->tv_nsec - (usp)->tv_nsec;       \
                   if ((vsp)->tv_nsec < 0) {                               \
                           (vsp)->tv_sec--;                                \
                           (vsp)->tv_nsec += 1000000000L;                  \
                   }                                                       \
           } while (0)
   
 extern int sched_Errno;  extern int sched_Errno;
 extern char sched_Error[];  extern char sched_Error[];
   
inline void sched_SetErr(int eno, char *estr, ...);inline void sched_SetErr(int, char *, ...);
 
 inline sched_task_t *_sched_useTask(sched_root_task_t * __restrict root);
 inline sched_task_t *_sched_unuseTask(sched_task_t * __restrict task);
   
   
 #endif  #endif

Removed from v.1.1  
changed lines
  Added in v.1.6


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>