Lines Matching refs:mount
34 #include <sys/mount.h> /* umount2 */
67 struct mount {
73 static void mount_free(struct mount *mnt) {
80 struct mount *a = (struct mount*)a_;
81 struct mount *b = (struct mount*)b_;
88 static int mount_should_error(const struct mount *mnt) {
96 * our /self. We then use openat(2) to avoid having to mount a temporary /proc.
98 static int read_mounts(int procfd, struct mount **mp, size_t *countp) {
104 struct mount *mounts = (struct mount*)malloc(capacity * sizeof(*mounts));
129 struct mount *new;
132 new = (struct mount*)realloc(mounts, capacity * sizeof(*mounts));
165 struct mount *mounts;
185 fprintf(stderr, "%s: no mount namespace provided\n", argv[0]);
198 /* Open the mount namespace and enter it. */
201 fprintf(stderr, "%s: failed to open mount namespace: %s\n",