Diff for /libaitsched/src/hooks.c between versions 1.38 and 1.39

version 1.38, 2022/11/29 20:15:18 version 1.39, 2022/12/20 22:40:32
Line 213  sched_hook_cancel(void *task, void *arg __unused) Line 213  sched_hook_cancel(void *task, void *arg __unused)
         struct kevent chg[1];          struct kevent chg[1];
         struct timespec timeout = { 0, 0 };          struct timespec timeout = { 0, 0 };
 #elif SUP_ENABLE == EP_SUPPORT  #elif SUP_ENABLE == EP_SUPPORT
        struct epoll_event ee = { .events = 0, .data.fd = 0 };        struct epoll_event ee = { .events = 0, .data.u64 = 0l };
 #else  #else
         register int i;          register int i;
 #endif  #endif
Line 542  sched_hook_read(void *task, void *arg) Line 542  sched_hook_read(void *task, void *arg)
         struct kevent chg[1];          struct kevent chg[1];
         struct timespec timeout = { 0, 0 };          struct timespec timeout = { 0, 0 };
 #elif SUP_ENABLE == EP_SUPPORT  #elif SUP_ENABLE == EP_SUPPORT
        struct epoll_event ee;        struct epoll_event ee = { 0 };
         int flg = 0;          int flg = 0;
 #endif  #endif
   
Line 631  sched_hook_write(void *task, void *arg) Line 631  sched_hook_write(void *task, void *arg)
         struct kevent chg[1];          struct kevent chg[1];
         struct timespec timeout = { 0, 0 };          struct timespec timeout = { 0, 0 };
 #elif SUP_ENABLE == EP_SUPPORT  #elif SUP_ENABLE == EP_SUPPORT
        struct epoll_event ee;        struct epoll_event ee = { 0 };
         int flg = 0;          int flg = 0;
 #endif  #endif
   
Line 1218  fetch_hook_epoll_proceed(int en, struct epoll_event *r Line 1218  fetch_hook_epoll_proceed(int en, struct epoll_event *r
                         }                          }
                 }                  }
   
                   ops = EPOLL_CTL_DEL;
                 if (rflg > 1 || wflg > 1)                  if (rflg > 1 || wflg > 1)
                         ops = EPOLL_CTL_MOD;                          ops = EPOLL_CTL_MOD;
   

Removed from v.1.38  
changed lines
  Added in v.1.39


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