diff options
author | jbj <devnull@localhost> | 1999-11-14 19:15:18 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 1999-11-14 19:15:18 +0000 |
commit | 4e62a322a266e9d95007540d10e67fc75bf80aa7 (patch) | |
tree | f1ba2b2704bf0397cc7d0bac2b323480aed56a8a /lib/url.c | |
parent | 471ba3b2386a15b5cd0ad202238dd38161788416 (diff) | |
download | librpm-tizen-4e62a322a266e9d95007540d10e67fc75bf80aa7.tar.gz librpm-tizen-4e62a322a266e9d95007540d10e67fc75bf80aa7.tar.bz2 librpm-tizen-4e62a322a266e9d95007540d10e67fc75bf80aa7.zip |
lib/rpmio.c: Implement per-fd layers as a stack, add fdPush/fdPop.
lib/rpmio.c: Add fd{Get,Set}{Io,Fp,Fdno} abstraction wrappers.
lib/rpmio.c: Start rationalizing debug output by using fdbg to display the
fd layer stack.
rpm.c: Add --nolibio to disable libio if desired.
rpm2cpio.c: Use Fdopen(..., gzdio) and ufdCopy().
build/build.c: Use Fdopen(..., fpio) rather than fdio.
build/files.c: Use Fdopen(..., fpio) rather than ufdio.
build/parseSpec.c: ditto.
lib/macro.c: ditto.
lib/rpmrc.c: ditto
lib/macro.c: Use Fopen(..., ufdio) in isCompressed() rather that fdOpen().
lib/misc.c: ditto.
lib/misc.c: Avoid fstat by using Stat.
build/pack.c: Add persist fdLink() and use fdFree() in package{Sources,Binaries}
build/pack.c: Try to remove the fdDup before cpioBuildArchive() call.
build/pack.c: Use rpmGenPath with %{_builddir}.
build/parsePreamble.c: Use fdSize rather than Stat to get icon file size.
lib/rpmrc.c: ditto
lib/ftp.c: start capturing ufdio layer syserrno/errcookie.
CVS patchset: 3424
CVS date: 1999/11/14 19:15:18
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -64,20 +64,22 @@ DBGREFS(0, (stderr, "--> url %p -- %d %s at %s:%u\n", u, u->nrefs, msg, file, li if (--u->nrefs > 0) return u; if (u->ctrl) { + void * uctrl = u->ctrl; if (fdio->fileno(u->ctrl) >= 0) fdio->close(u->ctrl); u->ctrl = fdio->deref(u->ctrl, "persist ctrl (urlFree)", file, line); if (u->ctrl) - fprintf(stderr, _("warning: u %p ctrl nrefs != 0 (%s %s)\n"), - u, u->host, u->service); + fprintf(stderr, _("warning: u %p ctrl %p nrefs != 0 (%s %s)\n"), + u, uctrl, u->host, u->service); } if (u->data) { + void * udata = u->data; if (fdio->fileno(u->data) >= 0) fdio->close(u->data); u->data = fdio->deref(u->data, "persist data (urlFree)", file, line); if (u->data) - fprintf(stderr, _("warning: data nrefs != 0 (%s %s)\n"), - u, u->host, u->service); + fprintf(stderr, _("warning: u %p data %p nrefs != 0 (%s %s)\n"), + u, udata, u->host, u->service); } if (u->buf) { free(u->buf); |