Lines Matching refs:argc
504 * In the case of argc = 0, make sure there is space for adding a
505 * empty string (which will bump argc to 1), to ensure confused
507 * argc can never be 0, to keep them from walking envp by accident.
510 ptr_size = (max(bprm->argc, 1) + bprm->envc) * sizeof(void *);
524 static int copy_strings(int argc, struct user_arg_ptr argv,
532 while (argc-- > 0) {
538 str = get_user_arg_ptr(argv, argc);
656 static int copy_strings_kernel(int argc, const char *const *argv,
659 while (argc-- > 0) {
660 int ret = copy_string_kernel(argv[argc], bprm);
1688 if (!bprm->argc)
1709 bprm->argc--;
1932 bprm->argc = retval;
1952 retval = copy_strings(bprm->argc, argv, bprm);
1962 if (bprm->argc == 0) {
1966 bprm->argc = 1;
2005 bprm->argc = retval;
2025 retval = copy_strings_kernel(bprm->argc, argv, bprm);