skalibs

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

trynsgetparent.c (168B)


      1 /* ISC license. */
      2 
      3 #undef _POSIX_C_SOURCE
      4 #undef _XOPEN_SOURCE
      5 
      6 #include <sys/ioctl.h>
      7 #include <linux/nsfs.h>
      8 
      9 int main (void)
     10 {
     11   return ioctl(0, NS_GET_PARENT) ;
     12 }