skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

trycmsgcloexec.c (283B)


      1 /* ISC license. */
      2 
      3 #undef _POSIX_C_SOURCE
      4 #undef _XOPEN_SOURCE
      5 
      6 #ifndef _XPG4_2
      7 # define _XPG4_2
      8 #endif
      9 
     10 #ifndef _XPG_6
     11 # define _XPG6
     12 #endif
     13 
     14 #ifndef _GNU_SOURCE
     15 # define _GNU_SOURCE
     16 #endif
     17 
     18 #include <sys/socket.h>
     19 
     20 int main (void)
     21 {
     22   int flag = MSG_CMSG_CLOEXEC ;
     23   return 0 ;
     24 }