Lines Matching refs:mount
12 #include <sys/mount.h>
210 ret = mount("devpts", mntpoint, "devpts", MS_NOSUID | MS_NOEXEC,
213 fprintf(stderr, "Failed to mount devpts fs to \"%s\" in new "
214 "mount namespace: %s\n", mntpoint,
238 ret = mount("/dev/pts/ptmx", "/dev/ptmx", NULL, MS_BIND, NULL);
240 fprintf(stderr, "Failed to bind mount \"/dev/pts/ptmx\" to "
241 "\"/dev/ptmx\" mount namespace\n");
265 ret = mount("/dev/pts/ptmx", ptmx, NULL, MS_BIND, NULL);
268 fprintf(stderr, "Failed to bind mount \"/dev/pts/ptmx\" to "
269 "\"%s\" mount namespace\n", ptmx);
292 fprintf(stderr, "Failed to unshare mount namespace\n");
296 ret = mount("", "/", NULL, MS_PRIVATE | MS_REC, 0);
298 fprintf(stderr, "Failed to make \"/\" MS_PRIVATE in new mount "