diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-08-28 08:00:43 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-08-28 08:00:43 +0000 |
commit | 83531cd3f60289e9be86342ef63a40ac2e1b3bc9 (patch) | |
tree | 6256998f37a12151c532025347ab0d498cc73dd2 /src/sysdeps/trynsgetparent.c | |
parent | 3afaaa1e4a76d38dc90d9860b42e132342568d6e (diff) | |
download | skalibs-83531cd3f60289e9be86342ef63a40ac2e1b3bc9.tar.xz |
Add nsgetparent sysdep
Diffstat (limited to 'src/sysdeps/trynsgetparent.c')
-rw-r--r-- | src/sysdeps/trynsgetparent.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/sysdeps/trynsgetparent.c b/src/sysdeps/trynsgetparent.c new file mode 100644 index 0000000..393a9a7 --- /dev/null +++ b/src/sysdeps/trynsgetparent.c @@ -0,0 +1,12 @@ +/* ISC license. */ + +#undef _POSIX_C_SOURCE +#undef _XOPEN_SOURCE + +#include <sys/ioctl.h> +#include <linux/nsfs.h> + +int main (void) +{ + return ioctl(0, NS_GET_PARENT) ; +} |