ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Linux-Clone/Clone.xs
(Generate patch)

Comparing Linux-Clone/Clone.xs (file contents):
Revision 1.6 by root, Sat Sep 3 23:47:02 2022 UTC vs.
Revision 1.7 by root, Sat Sep 3 23:56:10 2022 UTC

13 13
14#include <sched.h> 14#include <sched.h>
15 15
16#include <sys/ioctl.h> 16#include <sys/ioctl.h>
17#include <net/if.h> 17#include <net/if.h>
18
19#include <linux/nsfs.h>
18 20
19#ifdef __has_include 21#ifdef __has_include
20 #if !__has_include("linux/kcmp.h") // use "" as GCC wrongly expands macros 22 #if !__has_include("linux/kcmp.h") // use "" as GCC wrongly expands macros
21 #undef SYS_kcmp 23 #undef SYS_kcmp
22 #endif 24 #endif
163 const_iv (KCMP_SIGHAND) 165 const_iv (KCMP_SIGHAND)
164 const_iv (KCMP_IO) 166 const_iv (KCMP_IO)
165 const_iv (KCMP_SYSVSEM) 167 const_iv (KCMP_SYSVSEM)
166 const_iv (KCMP_FILE) 168 const_iv (KCMP_FILE)
167# endif 169# endif
170# ifdef NS_GET_USERNS
171 const_iv (NS_GET_USERNS)
172# endif
173# ifdef NS_GET_PARENT
174 const_iv (NS_GET_PARENT)
175# endif
176# ifdef NS_GET_NSTYPE
177 const_iv (NS_GET_NSTYPE)
178# endif
179# ifdef NS_OWNER_UID
180 const_iv (NS_OWNER_UID
181# endif
168 }; 182 };
169 183
170 for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ > const_iv; civ--) 184 for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ > const_iv; civ--)
171 newCONSTSUB (stash, (char *)civ[-1].name, newSViv (civ[-1].iv)); 185 newCONSTSUB (stash, (char *)civ[-1].name, newSViv (civ[-1].iv));
172 186

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines