root/plugin/ipc/event/eventwrappers.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /****************************************************************************
   2  *   Copyright (C) 2006-2010 by Jason Ansel, Kapil Arya, and Gene Cooperman *
   3  *   jansel@csail.mit.edu, kapil@ccs.neu.edu, gene@ccs.neu.edu              *
   4  *                                                                          *
   5  *   This file is part of the dmtcp/src module of DMTCP (DMTCP:dmtcp/src).  *
   6  *                                                                          *
   7  *  DMTCP:dmtcp/src is free software: you can redistribute it and/or        *
   8  *  modify it under the terms of the GNU Lesser General Public License as   *
   9  *  published by the Free Software Foundation, either version 3 of the      *
  10  *  License, or (at your option) any later version.                         *
  11  *                                                                          *
  12  *  DMTCP:dmtcp/src is distributed in the hope that it will be useful,      *
  13  *  but WITHOUT ANY WARRANTY; without even the implied warranty of          *
  14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           *
  15  *  GNU Lesser General Public License for more details.                     *
  16  *                                                                          *
  17  *  You should have received a copy of the GNU Lesser General Public        *
  18  *  License along with DMTCP:dmtcp/src.  If not, see                        *
  19  *  <http://www.gnu.org/licenses/>.                                         *
  20  ****************************************************************************/
  21 
  22 #pragma once
  23 #ifndef EVENT_WRAPPERS_H
  24 #define EVENT_WRAPPERS_H
  25 
  26 #include <features.h>
  27 
  28 #include "config.h"
  29 #include "dmtcp.h"
  30 
  31 #if __GLIBC_PREREQ(2,21)
  32 # define EVENTFD_VAL_TYPE unsigned int
  33 #else
  34 # define EVENTFD_VAL_TYPE int
  35 #endif
  36 
  37 #define _real_poll NEXT_FNC(poll)
  38 #define _real_pselect NEXT_FNC(pselect)
  39 
  40 #ifdef HAVE_SYS_EPOLL_H
  41 #define _real_epoll_create NEXT_FNC(epoll_create)
  42 #define _real_epoll_create1 NEXT_FNC(epoll_create1)
  43 #define _real_epoll_ctl NEXT_FNC(epoll_ctl)
  44 #define _real_epoll_wait NEXT_FNC(epoll_wait)
  45 #define _real_epoll_pwait NEXT_FNC(epoll_pwait)
  46 #endif
  47 
  48 #ifdef HAVE_SYS_EVENTFD_H
  49 #define _real_eventfd NEXT_FNC(eventfd)
  50 #endif
  51 
  52 #ifdef HAVE_SYS_SIGNALFD_H
  53 #define _real_signalfd NEXT_FNC(signalfd)
  54 #endif
  55 
  56 #ifdef HAVE_SYS_INOTIFY_H
  57 #define _real_inotify_init NEXT_FNC(inotify_init)
  58 #define _real_inotify_init1 NEXT_FNC(inotify_init1)
  59 #define _real_inotify_add_watch NEXT_FNC(inotify_add_watch)
  60 #define _real_inotify_rm_watch NEXT_FNC(inotify_rm_watch)
  61 #endif
  62 
  63 #endif // EVENT_WRAPPERS_H

/* [<][>][^][v][top][bottom][index][help] */