Lines Matching refs:argc
499 * In the case of argc = 0, make sure there is space for adding a
500 * empty string (which will bump argc to 1), to ensure confused
502 * argc can never be 0, to keep them from walking envp by accident.
505 ptr_size = (max(bprm->argc, 1) + bprm->envc) * sizeof(void *);
519 static int copy_strings(int argc, struct user_arg_ptr argv,
527 while (argc-- > 0) {
533 str = get_user_arg_ptr(argv, argc);
655 static int copy_strings_kernel(int argc, const char *const *argv,
658 while (argc-- > 0) {
659 int ret = copy_string_kernel(argv[argc], bprm);
1675 if (!bprm->argc)
1696 bprm->argc--;
1914 bprm->argc = retval;
1934 retval = copy_strings(bprm->argc, argv, bprm);
1944 if (bprm->argc == 0) {
1948 bprm->argc = 1;
1983 bprm->argc = retval;
2003 retval = copy_strings_kernel(bprm->argc, argv, bprm);