Lines Matching refs:argv
163 int main(int argc, char **argv) {
169 if (argc < 4 || strcmp(argv[2], "lxc") != 0) {
170 fprintf(stderr, "%s: usage error, expected LXC hook arguments\n", argv[0]);
174 if (strcmp(argv[3], "stop") != 0)
178 if (!strncmp(argv[i], "mnt:", 4)) {
179 mntns = argv[i] + 4;
185 fprintf(stderr, "%s: no mount namespace provided\n", argv[0]);
194 fprintf(stderr, "%s: failed to open /proc: %s\n", argv[0], strerror(errno));
202 argv[0], strerror(errno));
209 argv[0], strerror(errno));
219 argv[0], strerror(errno));
234 argv[0], mounts[zi].dst, strerror(error));