diff options
author | sos <sos@FreeBSD.org> | 1997-08-29 16:12:30 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 1997-08-29 16:12:30 +0000 |
commit | 99b7368a45a052dfe4e61148f2b7f949d35a2008 (patch) | |
tree | 7b110c0e5096d1a7b6e8d31b77e1196ec3b5eced /bin/pax/tar.c | |
parent | 9dc7e3f1c1ec2ca42b3a1763f7616851497c14d3 (diff) | |
download | FreeBSD-src-99b7368a45a052dfe4e61148f2b7f949d35a2008.zip FreeBSD-src-99b7368a45a052dfe4e61148f2b7f949d35a2008.tar.gz |
Dont have an internal function named "warn" it clashes with libc..
Needed for ELF.
Diffstat (limited to 'bin/pax/tar.c')
-rw-r--r-- | bin/pax/tar.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/bin/pax/tar.c b/bin/pax/tar.c index 15091a0..c528da9 100644 --- a/bin/pax/tar.c +++ b/bin/pax/tar.c @@ -34,7 +34,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: tar.c,v 1.7 1997/02/22 14:04:45 peter Exp $ */ #ifndef lint @@ -397,9 +397,9 @@ tar_opt() while ((opt = opt_next()) != NULL) { if (strcmp(opt->name, TAR_OPTION) || strcmp(opt->value, TAR_NODIR)) { - warn(1, "Unknown tar format -o option/value pair %s=%s", + pax_warn(1, "Unknown tar format -o option/value pair %s=%s", opt->name, opt->value); - warn(1,"%s=%s is the only supported tar format option", + pax_warn(1,"%s=%s is the only supported tar format option", TAR_OPTION, TAR_NODIR); return(-1); } @@ -408,7 +408,7 @@ tar_opt() * we only support one option, and only when writing */ if ((act != APPND) && (act != ARCHIVE)) { - warn(1, "%s=%s is only supported when writing.", + pax_warn(1, "%s=%s is only supported when writing.", opt->name, opt->value); return(-1); } @@ -574,23 +574,23 @@ tar_wr(arcn) return(1); break; case PAX_CHR: - warn(1, "Tar cannot archive a character device %s", + pax_warn(1, "Tar cannot archive a character device %s", arcn->org_name); return(1); case PAX_BLK: - warn(1, "Tar cannot archive a block device %s", arcn->org_name); + pax_warn(1, "Tar cannot archive a block device %s", arcn->org_name); return(1); case PAX_SCK: - warn(1, "Tar cannot archive a socket %s", arcn->org_name); + pax_warn(1, "Tar cannot archive a socket %s", arcn->org_name); return(1); case PAX_FIF: - warn(1, "Tar cannot archive a fifo %s", arcn->org_name); + pax_warn(1, "Tar cannot archive a fifo %s", arcn->org_name); return(1); case PAX_SLK: case PAX_HLK: case PAX_HRG: if (arcn->ln_nlen > sizeof(hd->linkname)) { - warn(1,"Link name too long for tar %s", arcn->ln_name); + pax_warn(1,"Link name too long for tar %s", arcn->ln_name); return(1); } break; @@ -607,7 +607,7 @@ tar_wr(arcn) if (arcn->type == PAX_DIR) ++len; if (len > sizeof(hd->name)) { - warn(1, "File name too long for tar %s", arcn->name); + pax_warn(1, "File name too long for tar %s", arcn->name); return(1); } @@ -663,7 +663,7 @@ tar_wr(arcn) if (uqd_oct((u_quad_t)arcn->sb.st_size, hd->size, sizeof(hd->size), 1)) { # endif - warn(1,"File is too large for tar %s", arcn->org_name); + pax_warn(1,"File is too large for tar %s", arcn->org_name); return(1); } arcn->pad = TAR_PAD(arcn->sb.st_size); @@ -698,7 +698,7 @@ tar_wr(arcn) /* * header field is out of range */ - warn(1, "Tar header field is too small for %s", arcn->org_name); + pax_warn(1, "Tar header field is too small for %s", arcn->org_name); return(1); } @@ -968,7 +968,7 @@ ustar_wr(arcn) * check for those file system types ustar cannot store */ if (arcn->type == PAX_SCK) { - warn(1, "Ustar cannot archive a socket %s", arcn->org_name); + pax_warn(1, "Ustar cannot archive a socket %s", arcn->org_name); return(1); } @@ -977,7 +977,7 @@ ustar_wr(arcn) */ if (((arcn->type == PAX_SLK) || (arcn->type == PAX_HLK) || (arcn->type == PAX_HRG)) && (arcn->ln_nlen > sizeof(hd->linkname))){ - warn(1, "Link name too long for ustar %s", arcn->ln_name); + pax_warn(1, "Link name too long for ustar %s", arcn->ln_name); return(1); } @@ -986,7 +986,7 @@ ustar_wr(arcn) * pt != arcn->name, the name has to be split */ if ((pt = name_split(arcn->name, arcn->nlen)) == NULL) { - warn(1, "File name too long for ustar %s", arcn->name); + pax_warn(1, "File name too long for ustar %s", arcn->name); return(1); } hd = (HD_USTAR *)hdblk; @@ -1080,7 +1080,7 @@ ustar_wr(arcn) if (uqd_oct((u_quad_t)arcn->sb.st_size, hd->size, sizeof(hd->size), 3)) { # endif - warn(1,"File is too long for ustar %s",arcn->org_name); + pax_warn(1,"File is too long for ustar %s",arcn->org_name); return(1); } break; @@ -1121,7 +1121,7 @@ ustar_wr(arcn) /* * header field is out of range */ - warn(1, "Ustar header field is too small for %s", arcn->org_name); + pax_warn(1, "Ustar header field is too small for %s", arcn->org_name); return(1); } |