summaryrefslogtreecommitdiffstats
path: root/bin/pax/ar_subs.c
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>1997-08-29 16:12:30 +0000
committersos <sos@FreeBSD.org>1997-08-29 16:12:30 +0000
commit99b7368a45a052dfe4e61148f2b7f949d35a2008 (patch)
tree7b110c0e5096d1a7b6e8d31b77e1196ec3b5eced /bin/pax/ar_subs.c
parent9dc7e3f1c1ec2ca42b3a1763f7616851497c14d3 (diff)
downloadFreeBSD-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/ar_subs.c')
-rw-r--r--bin/pax/ar_subs.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/bin/pax/ar_subs.c b/bin/pax/ar_subs.c
index 07efc9f..6e4ecf5 100644
--- a/bin/pax/ar_subs.c
+++ b/bin/pax/ar_subs.c
@@ -34,7 +34,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: ar_subs.c,v 1.7 1997/02/22 14:04:19 peter Exp $
*/
#ifndef lint
@@ -425,7 +425,7 @@ wr_archive(arcn, is_app)
* the link table).
*/
if ((fd = open(arcn->org_name, O_RDONLY, 0)) < 0) {
- syswarn(1,errno, "Unable to open %s to read",
+ sys_warn(1,errno, "Unable to open %s to read",
arcn->org_name);
purg_lnk(arcn);
continue;
@@ -572,7 +572,7 @@ append()
if (get_arc() < 0)
return;
if ((orgfrmt != NULL) && (orgfrmt != frmt)) {
- warn(1, "Cannot mix current archive format %s with %s",
+ pax_warn(1, "Cannot mix current archive format %s with %s",
frmt->name, orgfrmt->name);
return;
}
@@ -753,12 +753,12 @@ copy()
drem = PAXPATHLEN - dlen;
if (stat(dirptr, &sb) < 0) {
- syswarn(1, errno, "Cannot access destination directory %s",
+ sys_warn(1, errno, "Cannot access destination directory %s",
dirptr);
return;
}
if (!S_ISDIR(sb.st_mode)) {
- warn(1, "Destination is not a directory %s", dirptr);
+ pax_warn(1, "Destination is not a directory %s", dirptr);
return;
}
@@ -812,7 +812,7 @@ copy()
else
res = 0;
if ((arcn->nlen - res) > drem) {
- warn(1, "Destination pathname too long %s",
+ pax_warn(1, "Destination pathname too long %s",
arcn->name);
continue;
}
@@ -917,7 +917,7 @@ copy()
* first open source file and then create the destination file
*/
if ((fdsrc = open(arcn->org_name, O_RDONLY, 0)) < 0) {
- syswarn(1, errno, "Unable to open %s to read",
+ sys_warn(1, errno, "Unable to open %s to read",
arcn->org_name);
purg_lnk(arcn);
continue;
@@ -1009,16 +1009,16 @@ next_head(arcn)
* storage device, better give the user the bad news.
*/
if ((ret == 0) || (rd_sync() < 0)) {
- warn(1,"Premature end of file on archive read");
+ pax_warn(1,"Premature end of file on archive read");
return(-1);
}
if (!in_resync) {
if (act == APPND) {
- warn(1,
+ pax_warn(1,
"Archive I/O error, cannot continue");
return(-1);
}
- warn(1,"Archive I/O error. Trying to recover.");
+ pax_warn(1,"Archive I/O error. Trying to recover.");
++in_resync;
}
@@ -1079,10 +1079,10 @@ next_head(arcn)
*/
if (!in_resync) {
if (act == APPND) {
- warn(1,"Unable to append, archive header flaw");
+ pax_warn(1,"Unable to append, archive header flaw");
return(-1);
}
- warn(1,"Invalid header, starting valid header search.");
+ pax_warn(1,"Invalid header, starting valid header search.");
++in_resync;
}
bcopy(hdbuf+1, hdbuf, shftsz);
@@ -1174,7 +1174,7 @@ get_arc()
if (!notice) {
if (act == APPND)
return(-1);
- warn(1,"Cannot identify format. Searching...");
+ pax_warn(1,"Cannot identify format. Searching...");
++notice;
}
}
@@ -1209,7 +1209,7 @@ get_arc()
if (!notice) {
if (act == APPND)
return(-1);
- warn(1, "Cannot identify format. Searching...");
+ pax_warn(1, "Cannot identify format. Searching...");
++notice;
}
@@ -1234,6 +1234,6 @@ get_arc()
/*
* we cannot find a header, bow, apologize and quit
*/
- warn(1, "Sorry, unable to determine archive format.");
+ pax_warn(1, "Sorry, unable to determine archive format.");
return(-1);
}
OpenPOWER on IntegriCloud