Lines Matching refs:unshare
23 /* Description: This tests the unshare() syscall. */
24 /* unshare() allows a process to disassociate parts of its */
32 /* The main use of unshare() is to allow a process to control its */
43 /* Unshare the file descriptor table, so that the calling */
47 /* Reverse the effect of the clone(2) CLONE_FS flag.Unshare*/
53 /* flag. Unshare the namespace, so that the calling process*/
58 /* If flags is specified as zero, then unshare() is a no-op; no */
175 switch (unshare(CLONE_FILES)) {
177 printf("unshare with CLONE_FILES call "
185 perror("unshare failed");
196 "unshare not supported in "
201 "unshare failed");
211 switch (unshare(CLONE_FS)) {
213 printf("unshare with CLONE_FS call "
221 perror("unshare failed");
232 "unshare not supported in "
237 "unshare failed");
247 switch (unshare(CLONE_NEWNS)) {
249 printf("unshare call with CLONE_NEWNS "
257 perror("unshare failed");
268 "unshare not supported in "
273 "unshare failed");
289 tst_brkm(TCONF, NULL, "unshare is undefined.");