Lines Matching defs:n
434 static void done(int n);
454 static void putempty(blkcnt_t n);
476 static int cmp(char *b, char *s, int n);
488 static off_t bsrch(char *s, int n, off_t l, off_t h);
497 static int writetbuf(char *buffer, int n);
741 "tar: cannot allocate program name\n"));
801 "function modifier\n"));
843 "function modifier\n"));
875 "with 'b' function modifier\n"));
879 case 'n': /* not a magtape (instead of 'k') */
927 "tar: %c: unknown function modifier\n"), *cp);
935 "tar: specify only one of [ctxru].\n"));
942 "create a compressed file.\n"));
952 "the global zone.\n"));
965 "tar: cannot allocate physio buffer\n"));
971 "tar: cannot allocate extended header buffer\n"));
978 " %d\n"), getpid());
1001 "Ignoring TMPDIR\n"));
1073 "cannot create temporary file\n"));
1115 gettext("Suppressing absolute pathnames\n"));
1133 "tar: missing argument for -I flag\n"));
1143 "missing argument for -C flag\n"));
1148 "flag\n"));
1180 "Suppressing absolute pathnames.\n"));
1253 "{file | -I include-file | -C directory file}...\n"));
1281 " header. -E flag required.\n"));
1287 " header. -E flag not allowed.\n"));
1320 "cannot create sort command file\n"));
1344 FMT_blkcnt_t "K, blocking factor = %dK\n"),
1374 if ((p = strchr(cp2, '\n')))
1451 "tar: missing links to %s\n"), ihead->pathname);
1490 dlog("endtape(): found null header; EOT\n");
1586 "tar: directory checksum error\n"));
1596 "tar: warning: tar file made with signed checksum\n"));
1603 "tar: directory checksum error\n"));
1624 (void) fprintf(tfile, "%s %10ld.%9.9ld\n",
1628 (void) fprintf(tfile, "%.*s %10ld.%9.9ld\n",
1679 dlog("passtape: typeflag \"%c\"\n", dblock.dbuf.typeflag);
1681 dlog("passtape: name \"%s\"\n", dblock.dbuf.name);
1684 dlog("passtape: prefix \"%s\"\n", dblock.dbuf.prefix);
1698 dlog("passtape: block count %" FMT_blkcnt_t "\n", blocks);
1869 "tar: unable to open%sdirectory %s%s%s%s\n"),
1880 gettext("tar: directory nesting too deep, %s not dumped\n"),
1898 "exceeds MAXSYMLINKS\n"), longname);
1911 "tar: %s%s%s%s%s same as archive file\n"),
1934 "Use E function modifier.\n"),
1961 "a %s excluded\n"), longname);
1976 "tar: %s: file name too long\n"), longname);
2038 "%d\n"), lastslash == NULL ?
2043 "\n"), longname, PRESIZ);
2097 "than %d\n"), name, NAMSIZ);
2146 dlog("seek = %" FMT_blkcnt_t "K\n", K(tapepos));
2157 (void) fprintf(vfile, "%" FMT_blkcnt_t "K\n",
2161 " tape blocks\n"), blocks);
2208 "list entry %s/%s\n"),
2267 "tar: %s: symbolic link too long\n"),
2291 "a %s symbolic link to %s\n"),
2344 dlog("putfile: %s wants %" FMT_blkcnt_t " blocks\n", longname,
2352 dlog("seek = %" FMT_blkcnt_t "K\n", K(tapepos));
2361 (void) fprintf(vfile, "%" FMT_blkcnt_t "K\n",
2365 gettext("%" FMT_blkcnt_t " tape blocks\n"),
2405 "tar: %s: file changed size\n"), longname);
2437 dlog("putfile: %s wants %" FMT_blkcnt_t " blocks\n", longname,
2441 dlog("seek = %" FMT_blkcnt_t "K\n", K(tapepos));
2444 FMT_blkcnt_t "K\n "), longname, K(blocks));
2447 "a %s %" FMT_blkcnt_t " tape blocks\n"),
2484 dlog("putfile: %s wants %" FMT_blkcnt_t " blocks\n", longname,
2491 FMT_blkcnt_t "K\n"), longname, K(blocks));
2494 FMT_blkcnt_t " tape blocks\n"), longname,
2531 dlog("putfile: %s wants %" FMT_blkcnt_t " blocks\n", longname,
2535 dlog("seek = %" FMT_blkcnt_t "K\n", K(tapepos));
2540 (void) fprintf(vfile, "%" FMT_blkcnt_t "K\n",
2544 FMT_blkcnt_t " tape blocks\n"), blocks);
2561 "tar: %s is not a file. Not dumped\n"), longname);
2617 "tar: %s needs unusual number of volumes to split\n"
2618 "tar: %s not dumped\n"), longname, longname);
2644 "tar: large file %s needs %d extents.\n"
2645 "tar: current device seek position = %" FMT_blkcnt_t "K\n"),
2668 "K [extent #%d of %d]\n"),
2676 "tar: %s: file changed size\n"), longname);
2678 "tar: aborting split file %s\n"), longname);
2686 "extents)\n"), longname, K(TBLOCKS(stbuf.st_size)),
3053 "%sattribute %s of file %s: %s\n"),
3077 "tar: cannot open %s: %s\n"),
3153 "%" FMT_blkcnt_t "K\n", K(blocks));
3156 FMT_blkcnt_t " tape blocks\n"),
3199 (void) fprintf(vfile, "0K\n");
3202 FMT_blkcnt_t " tape blocks\n"),
3219 "tar: %s: cannot link\n"), namep);
3224 "x %s linked to %s\n"), namep,
3241 "K\n", K(blocks));
3244 FMT_blkcnt_t " tape blocks\n"),
3260 "tar: %s: cannot link\n"), namep);
3265 "x %s linked to %s\n"), namep,
3283 "K\n", K(blocks));
3286 FMT_blkcnt_t " tape blocks\n"),
3292 "Can't create special %s\n"), namep);
3309 "tar: %s: cannot link\n"), namep);
3314 "x %s linked to %s\n"), namep,
3331 "K\n", K(blocks));
3334 FMT_blkcnt_t " tape blocks\n"),
3340 gettext("Can't create special %s\n"), namep);
3361 "x %s symbolic link to %s\n"),
3396 "tar: %s%s%s: cannot link\n"),
3405 "x %s%s%s linked to %s%s%s\n"), namep,
3432 "tar: %s: typeflag '%c' not recognized\n"),
3438 "converting to regular file\n"), namep,
3452 "tar: %s: cannot link\n"), namep);
3457 "x %s linked to %s\n"), comp,
3489 "tar: %s%s%s%s - cannot create\n"),
3526 "%s%s%s%s\n"),
3551 (void) fprintf(vfile, "%" FMT_blkcnt_t "K\n",
3555 FMT_blkcnt_t " tape blocks\n"), blocks);
3633 "entries\n"), namep,
3658 "%s%s%s%s\n"),
3671 "0%o)\n"),
3723 "Insufficient memory for acl\n"));
3736 FMT_blkcnt_t " %s\n",
3776 "failed: %s\n"),
3785 "aclcnt error\n"));
3813 " type\n"));
3852 gettext("tar: %d file(s) not extracted\n"),
3953 "%s: insufficient privileges\n"), tempname);
3959 "tar: %s: HELP - extract write error\n"),
4013 "tar: %s split across %d volumes\n"), name, extotal);
4018 "tar: first extent read is not #1\n"
4045 FMT_off_t " %s, %ldK\n",
4073 "tar: first record is null\n"));
4076 "tar: need volume with extent #%d of %s\n"),
4083 "the same file\n"));
4089 "should be #%d\n"), extno, i);
4092 "load New volume (i/a/n) ? "));
4103 "x %s (in %d extents), %" FMT_off_t " bytes, %ldK\n"),
4225 /* keep the '\n' for backwards compatibility */
4227 "\n [extent #%d of %d]"), extno, extotal);
4282 (void) printf("\n");
4298 "tar: %d file(s) not found\n"), fcnt-tcnt);
4304 putempty(blkcnt_t n)
4311 while (n-- > 0)
4796 if (c != '\n')
4797 while (getchar() != '\n')
4799 else c = 'n';
4849 dlog("newvol called with 'dumping' set\n");
4863 while ((c = getchar()) != '\n' && ! term)
4879 "tar: cannot reopen %s (%s)\n"),
4883 dlog("mt=%d, [%s]\n", mt, strerror(errno));
4907 done(int n)
4914 if (term && n == 0)
4915 n = 1;
4934 exit(n);
4980 bsrch(char *s, int n, off_t l, off_t h)
4996 b[0] = '\n';
5001 if (b[i] == '\n')
5011 if (b[i] == '\n')
5014 i = cmp(b+j, s, n);
5029 cmp(char *b, char *s, int n)
5033 assert(b[0] == '\n');
5035 for (i = 0; i < n; i++) {
5068 dlog("seekdisk(%" FMT_blkcnt_t ") called\n", blocks);
5079 dlog("xtrablks=%" FMT_blkcnt_t " seekval=%" FMT_blkcnt_t " blks\n",
5087 "tar: device seek error\n"));
5094 dlog("reading extra blocks\n");
5097 "tar: read error while skipping file\n"));
5127 "tar: tape read error\n"));
5143 "tar: blocksize = %d\n"), i);
5160 gettext("tar: tape read error\n"));
5171 "tar: tape blocksize error\n"));
5178 "tar: blocksize = %d\n"), i);
5205 writetbuf(char *buffer, int n)
5209 tapepos += n; /* output block count */
5224 while (recno == 0 && n >= nblock) {
5228 n -= nblock;
5232 while (n-- > 0) {
5266 dlog("backtape() called, recno=%" FMT_blkcnt_t " nblock=%d\n", recno,
5283 gettext("tar: lseek to end of archive failed\n"));
5297 gettext("tar: backspace over record failed\n"));
5325 dlog("flushtape() called, recno=%" FMT_blkcnt_t "\n", recno);
5338 dlog("flushtape() %d rounding blocks\n", i);
5346 " bytes\n", (blkcnt_t)(NotTape ? recno : nblock),
5351 "tar: tape write error\n"));
5385 ").\n"), (ulong_t)MINSIZE, kval);
5387 "bad size entry for %s in %s.\n"),
5411 "tar: invalid blocksize \"%s\".\n"), bstr);
5414 "bad blocksize entry for '%s' in %s.\n"),
5432 * for example: archive0=/dev/fd 1 400 n
5444 "tar: error setting parameters for %s.\n"), DEF_FILE);
5449 "tar: missing or invalid '%s' entry in %s.\n"),
5455 "tar: '%s' entry in %s is empty!\n"), arch, DEF_FILE);
5460 "tar: block component missing in '%s' entry in %s.\n"),
5467 "tar: size component missing in '%s' entry in %s.\n"),
5473 NotTape = (*bp == 'n' || *bp == 'N');
5477 dlog("defset: archive='%s'; usefile='%s'\n", arch, usefile);
5478 dlog("defset: nblock='%d'; blocklim='%" FMT_blkcnt_t "'\n",
5480 dlog("defset: not tape = %d\n", NotTape);
5503 if (buf[strlen(buf) - 1] == '\n')
5534 "tar: out of memory, exclude/include table(entry)\n"));
5540 "tar: out of memory, exclude/include table(file name)\n"));
5624 "info lost\n"));
5652 (void) fprintf(stderr, ": %s\n", strerror(errno));
5672 (void) fprintf(stderr, "\n");
5702 (void) fprintf(stderr, gettext("unexpected EOF\n"));
5805 dlog("wantit(): %d bytes of extra blocks\n",
5808 dlog("wantit(): at end of tape.\n");
5833 (void) fprintf(stderr, gettext("%s excluded\n"),
6162 gettext("tar: Removing leading '%s' from '%s'\n"),
6650 int n;
6660 } else if ((n = readlink(namep, buf,
6662 buf[n] = (char)NULL;
6723 (void) fprintf(stderr, gettext("acltotext failed\n"));
6731 gettext("can't allocate memory\n"));
6748 gettext("can't allocate memory\n"));
6759 gettext("unrecognized attribute type\n"));
6768 (void) fprintf(stderr, gettext("can't allocate memory\n"));
6836 * "%d %s=%s\n"
6917 "for file # %llu.\n"), xhdr_count);
6927 "for file # %llu.\n"), xhdr_count);
6938 "for file # %llu.\n"), xhdr_count);
6966 "for file # %llu.\n"), xhdr_count);
6977 "for file # %llu.\n"), xhdr_count);
6991 "value error for file # %llu.\n"),
6999 " header keyword '%s'. Ignored.\n"), keyword);
7052 * format: %d %s=%s\n
7078 "%d %s=%s\n", len, keyword, save_val);
7084 * format: %d %s=%s\n
7093 /* Allow for <seconds>.<nanoseconds>\n */
7117 "%d %s=%s\n", len, keyword, save_val);
7123 * format: %d %s=%s\n
7160 "%d %s=%s\n", len, keyword, value);
7165 "%d %s=%snametoolong\n", len, keyword, value);
7219 "tar: %s: linked to %s\n"), longname, linkname);
7221 "tar: %s: linked name too long\n"), linkname);
7259 "tar: file # %llu: (%s) UTF-8 conversion failed.\n"),
7283 " failed.\n"), xhdr_count, source);
7294 "tar: file # %llu: Extended header %s too long.\n"),
7303 " failed.\n"), xhdr_count, source);
7317 "tar: file # %llu: (%s) UTF-8 conversion failed.\n"),
7331 "tar: file # %llu: (%s) UTF-8 conversion failed.\n"),
7339 "tar: file # %llu: Extended header %s too long.\n"),
7365 "tar: file # %llu: UTF-8 conversion failed.\n"),
7385 gettext("Opening iconv_cd with target %s\n"),
7395 "file (%s): UTF-8 conversion failed.\n"),
7432 "tar: file (%s): UTF-8 conversion failed.\n"), filename);
7486 " UTF-8 conversion of '%s'\n"), starting_src);
7500 " UTF-8 conversion of '%s'\n"), starting_src);
7503 "tar: conversion to UTF-8 aborted for '%s'.\n"),
7519 " UTF-8 conversion of '%s'\n"), starting_src);
7522 "tar: conversion to UTF-8 aborted for '%s'.\n"),
7532 (void) fprintf(stderr, "*** inlen: %d %d; outlen: %d %d\n",
7534 (void) fprintf(stderr, "Input string:\n ");
7539 (void) fprintf(stderr, "\n ");
7541 (void) fprintf(stderr, "\nOutput string:\n ");
7546 (void) fprintf(stderr, "\n ");
7548 (void) fprintf(stderr, "\n");
7790 "tar: %s%s%s%s: %s\n"),
7927 "tar: unable to open dir pointer for %s%s%sfile %s\n"),
8063 "K\n", K(tapepos));
8067 "%s attribute %s\n"),
8072 "a %s link to %s\n"),
8136 "%s: failed to retrieve acl : %s\n"),
8236 "Insufficient memory for extended attribute\n"));
8259 gettext("Unknown extended attribute format encountered\n"));
8261 gettext("Disabling extended attribute parsing\n"));
8445 "tar: cannot stat %sfile %s: %s\n"),
8452 "tar: failed to retrieve ACL on %sfile %s: %s\n"),
8462 "tar: cannot fchmod %sfile %s to %o: %s\n"),
8490 gettext("tar: cannot chmod %sfile %s to %o: %s\n"),
8500 "%sfile %s\n"),
8670 " %s, getlabel() error: %s\n"),
8678 " %s\n"), shortname);
8705 "getlabel() error: %s\n"),
8712 " label for %s\n"), shortname);
8721 "Insufficient memory for label\n"));
8825 "can't convert %s to binary label\n"),
8851 "%s\n"), tempbuf);
8872 "target pathname might be invalid.\n"));
9074 " %s\n"), strerror(errno));
9123 "zone ID for %s\n"),
9132 "zonename for %s\n"),
9165 "tar: error rebuilding path %s\n"),
9205 " %s, getlabel() error: %s\n"),
9215 " %s\n"), filename);
9218 gettext("tar: can't apply label %s to %s\n"),
9223 gettext("tar: %s not restored\n"), filename);
9239 gettext("Compressing '%s' with '%s'...\n"),
9352 "'%s'...\n"), usefile, compress_opt);
9377 "'%s'...\n"), usefile, compress_opt);
9406 "'%s'...\n"), usefile, compress_opt);
9473 gettext("Could not allocate compress buffer\n"));
9493 vperror(1, "%s %s: %s\n", gettext("Could not stat"),
9510 vperror(1, "%s\n", gettext("No compression method detected"));