Lines Matching refs:Optind
1752 int tar_parseargs(int argc, char *argv[], const char *Optarg, int Optind)
1754 int newOptind = Optind;
1777 if (Optind>=argc || !(blocksize=atoi(argv[Optind]))) {
1781 Optind++;
1789 if (Optind>=argc) {
1795 if (sys_stat(argv[Optind], &stbuf,
1802 Optind++;
1865 if (argc-Optind-1 != 1) {
1870 /* Optind points at the tar output file, Optind+1 at the inclusion file. */
1871 if (! read_inclusion_file(argv[Optind+1])) {
1874 } else if (Optind+1<argc && !tar_re_search) { /* For backwards compatibility */
1879 cliplist=argv+Optind+1;
1880 clipn=argc-Optind-1;
1911 if (Optind+1<argc && tar_re_search && tar_clipfl != 'F') {
1913 clipn=argc-Optind-1;
1914 cliplist=argv+Optind+1;
1918 if (Optind>=argc || !strcmp(argv[Optind], "-")) {
1928 if (!argv[Optind]) {
1932 if (!strcmp(argv[Optind], "-")) {
1939 } else if ((tar_type=='x' && (tarhandle = sys_open(argv[Optind], O_RDONLY, 0)) == -1)
1940 || (tar_type=='c' && (tarhandle=sys_creat(argv[Optind], 0644)) < 0)) {
1941 DEBUG(0,("Error opening local file %s - %s\n", argv[Optind], strerror(errno)));