chiark / gitweb /
Shorten all per-file copyright notices
[adns.git] / regress / hsyscalls.h.m4
1 m4_dnl hsyscalls.h.m4
2 m4_dnl (part of complex test harness, not of the library)
3 m4_dnl - prototypes of redefinitions of system calls
4
5 m4_dnl  This file is part of adns, which is Copyright Ian Jackson
6 m4_dnl  and contributors (see the file INSTALL for full details).
7 m4_dnl  
8 m4_dnl  This program is free software; you can redistribute it and/or modify
9 m4_dnl  it under the terms of the GNU General Public License as published by
10 m4_dnl  the Free Software Foundation; either version 3, or (at your option)
11 m4_dnl  any later version.
12 m4_dnl  
13 m4_dnl  This program is distributed in the hope that it will be useful,
14 m4_dnl  but WITHOUT ANY WARRANTY; without even the implied warranty of
15 m4_dnl  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 m4_dnl  GNU General Public License for more details.
17 m4_dnl  
18 m4_dnl  You should have received a copy of the GNU General Public License
19 m4_dnl  along with this program; if not, write to the Free Software Foundation.
20
21 m4_include(hmacros.i4)
22
23 #ifndef HSYSCALLS_H_INCLUDED
24 #define HSYSCALLS_H_INCLUDED
25
26 #include <sys/types.h>
27 #include <sys/time.h>
28 #include <sys/socket.h>
29 #include <sys/uio.h>
30 #include <unistd.h>
31
32 #ifdef HAVE_POLL
33 #include <sys/poll.h>
34 #endif
35
36 hm_create_proto_h
37 m4_define(`hm_syscall', `int H$1(hm_args_massage($3,void));')
38 m4_define(`hm_specsyscall', `$1 H$2($3)$4;')
39 m4_include(`hsyscalls.i4')
40
41 #endif