Xenomai  3.0.8
timerfd.h
1 /*
2  * Copyright (C) 2014 Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License as
6  * published by the Free Software Foundation; either version 2 of the
7  * License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17  */
18 #ifndef TIMERFD_H
19 #define TIMERFD_H
20 
21 #include <linux/time.h>
22 #include <xenomai/posix/syscall.h>
23 
24 int __cobalt_timerfd_settime(int fd, int flags,
25  const struct itimerspec *new_value,
26  struct itimerspec *old_value);
27 
28 int __cobalt_timerfd_gettime(int fd,
29  struct itimerspec *value);
30 
31 COBALT_SYSCALL_DECL(timerfd_create,
32  (int clockid, int flags));
33 
34 COBALT_SYSCALL_DECL(timerfd_settime,
35  (int fd, int flags,
36  const struct itimerspec __user *new_value,
37  struct itimerspec __user *old_value));
38 
39 COBALT_SYSCALL_DECL(timerfd_gettime,
40  (int fd, struct itimerspec __user *curr_value));
41 
42 #endif /* TIMERFD_H */