Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/libs/config/test/boost_has_sigaction.ipp @ 29

Last change on this file since 29 was 29, checked in by landauf, 16 years ago

updated boost from 1_33_1 to 1_34_1

File size: 715 bytes
Line 
1//  (C) Copyright John Maddock 2001.
2//  Use, modification and distribution are subject to the
3//  Boost Software License, Version 1.0. (See accompanying file
4//  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6//  See http://www.boost.org/libs/config for most recent version.
7
8//  MACRO:         BOOST_HAS_SIGACTION
9//  TITLE:         sigaction
10//  DESCRIPTION:   The platform supports POSIX standard API sigaction.
11
12#include <signal.h>
13
14
15namespace boost_has_sigaction{
16
17void f()
18{
19    // this is never called, it just has to compile:
20    struct sigaction* sa1 = 0 ;
21    struct sigaction* sa2 = 0 ;
22    int res = sigaction(0, sa1, sa2);
23    (void) &res;
24}
25
26int test()
27{
28   return 0;
29}
30
31}
32
33
34
35
36
Note: See TracBrowser for help on using the repository browser.