summaryrefslogtreecommitdiff
path: root/lib/misc.c
AgeCommit message (Collapse)AuthorFilesLines
2000-10-28- add cscope/ctags (Rodrigo Barbosa<rodrigob@conectiva.com.br>).jbj1-0/+3
- remove getMacroBody() from rpmio API. - hide libio lossage in prototype, not API. lclint annotations. CVS patchset: 4230 CVS date: 2000/10/28 17:16:25
2000-08-27Doxygen annotations.jbj1-0/+4
CVS patchset: 4132 CVS date: 2000/08/27 19:27:03
2000-08-23doxygen annotations.jbj1-1/+1
CVS patchset: 4105 CVS date: 2000/08/23 13:02:13
2000-08-19- python bindings to query and verify signatures.jbj1-0/+31
CVS patchset: 4085 CVS date: 2000/08/19 13:10:34
2000-08-07- fix: segfault when globbing on "" (#15593).jbj1-7/+11
CVS patchset: 4036 CVS date: 2000/08/07 19:38:19
2000-06-09Remove dead code.jbj1-152/+0
CVS patchset: 3823 CVS date: 2000/06/09 19:33:52
2000-06-09Move low level support routines to librpmio.jbj1-0/+2
CVS patchset: 3822 CVS date: 2000/06/09 18:57:23
2000-04-21fix: legacy packages required provides EVR/Flags to be added.jbj1-12/+23
fix: generating provides EVER was broke with epoch. db3 tuned for installer speed (i.e. no locking, create/remove on fly). add new_db_api and old_db_api macros to control precisely for db version used. CVS patchset: 3691 CVS date: 2000/04/21 00:21:15
2000-04-13add explcit "Provides: name = [epoch:]version-release" to headers.jbj1-0/+68
CVS patchset: 3678 CVS date: 2000/04/13 17:59:10
2000-03-23- API: change dbi to pass by reference, not value.jbj1-1/+2
- cram all of db1, db_185, and db2 interfaces into rpmlib. CVS patchset: 3636 CVS date: 2000/03/23 15:49:50
2000-03-13use DIRNAMES/BASENAMES/DIRINDICES not FILENAMES in packages and db.jbj1-1/+1
CVS patchset: 3626 CVS date: 2000/03/13 15:17:12
2000-02-24Automake portability diddles.jbj1-1/+1
CVS patchset: 3586 CVS date: 2000/02/24 22:28:31
2000-02-23First attempt at rpmHeaderGetEntry().jbj1-0/+52
CVS patchset: 3582 CVS date: 2000/02/23 19:20:20
1999-12-15fix: compressFileList was over-generating dirNames.jbj1-9/+20
fix: alAddPackage sorted dirNames too soon, destroying dirMapping. CVS patchset: 3481 CVS date: 1999/12/15 15:51:30
1999-12-12lib/rpminstall.c: Perform glob on remote ftp install args.jbj1-4/+9
lib/misc.[ch]: Rename remoteGlob to rpmGlob. Preserve glob_error behavior. build/files.c: Ditto. lib/rpmio.c: Collapse ftpFileDesc() into ftpReq(). lib/rpmio.c: Eliminate all uses of u->path. lib/url.c: Ditto. lib/url.c: Tweak url cache code to reuse empty slots (never happens). CVS patchset: 3478 CVS date: 1999/12/12 17:46:22
1999-12-12perform glob on remote ftp queries.jbj1-0/+102
fix: ftpAbort must close the data channel to read abort status. CVS patchset: 3477 CVS date: 1999/12/12 01:46:13
1999-12-11partial implementation for ftp globbing.jbj1-0/+32
CVS patchset: 3474 CVS date: 1999/12/11 17:53:25
1999-12-08rename new FILENAMES tags to BASENAMES/DIRNAMES/DIRINDEXES.jbj1-12/+12
CVS patchset: 3466 CVS date: 1999/12/08 19:04:50
1999-12-07Makefile.am: Add RPM-GPG-KEY to the package.jbj1-2/+4
Use fdLink/fdFree for fd/scriptFd references in transaction set/availableList. fprint.h: Permit (and check for) subDir = NULL in fingerPrints. More lclint annotations. CVS patchset: 3462 CVS date: 1999/12/07 21:14:51
1999-12-01Add underscore in front of (possibly) non-supported FDIO_t vectors.jbj1-1/+1
Make buildFileList() part of rpmlib API as rpmBuildFileList(). lib/rpmdb.c: Compare fingerprints from different caches by value. CVS patchset: 3448 CVS date: 1999/12/01 19:57:17
1999-11-26Consistent usage for fileNames, baseNames, dirNames and dirIndexes throughout.jbj1-101/+147
rpm.c: Add --nodirtokens and --dirtokens to control file list compression. lib/misc.c: Default (conservative) valuse _noDirTokens is TRUE. lib/misc.c: Add expandFileList analogue to compressFileList. build/pack.c: Compress file list only if compression is requested. lib/rpmdb.c: Expand file list before headerWrite if compression not requested. CVS patchset: 3436 CVS date: 1999/11/26 21:58:42
1999-11-24lib/macro.c: Canonicalize paths in rpmGetPath().jbj1-0/+4
build.c: ditto. build/build.c: ditto. build/files.c: ditto. build/parsePreamble.c: ditto. build/parseSpec.c: ditto. build/myftw.c: Use Opendir/Readdir/Closedir wrappers. lib/cpio.c: Use Readlink/Stat/Lstat wrappers while building archive. lib/rpmio.c: functional ftpLstat, ftpStat and ftpReadlink. CVS patchset: 3432 CVS date: 1999/11/24 00:03:54
1999-11-19macros.in: Add buildsubdir and scriptlet template macros.jbj1-15/+11
build/build.c: Rewrite to use scriptlet templates. build/files.c: Rename variables to prepare for (possibly) URL's in %files. build/myftw.c: Use Lstat. build/parsePreamble.c: Permit URL's in BuildRoot tag if not from spec file. build/parseSpec.c: ditto build/parsePrep.c: Add buildsubdir macro. lib/macro.c: Add url2path (nickname u2p) and verbose macro primitives. lib/url.c: urlPath returns "" if url is NULL (rpmGenPath memory corruption). CVS patchset: 3430 CVS date: 1999/11/19 18:19:41
1999-11-18The death of lib/ftp.c, merged into lib/rpmio.c.jbj1-40/+34
Start composting the rpmio API. Preliminary (not working) support for HTTP PUT. build.c: Check fd for NULL and use Ferror() for Fopen return. build/parseSpec.c: ditto build/pack.c: Use fdGetFP() rather than fpio->ffileno(). build/parseSpec.c: ditto build/pack.c: Use Stat/Mkdir wrappers. build/pack.c: Do Fflush before fdDup so that writes can remain buffered. lib/install.c: ditto build/parsePrep.c: Skip over URL leadin when writing %prep scriptlet. lib/misc.c: Rewrite to use simpler urlPath(). Restore checks on local fs. lib/rpmchecksig.c: Open with "r+" rather than "w" to avoid truncation. lib/url.c: Do lazy malloc of u->buf in rpmio.c checkResponse(). lib/rpmio.c: Make persist/contentLength per-fd rather than per-url. lib/rpmio.c: Add wr_chunked method for HTTP PUT (still broken). lib/rpmio.c: ftpAbort() should use timedRead. lib/rpmio.c: Add Fflush(). lib/url.c: urlPath() should return something ("/") on url = NULL (paranoia). lib/url.c: urlSplit() should return something ("/") on url w/o path. CVS patchset: 3429 CVS date: 1999/11/18 18:07:46
1999-11-14lib/rpmio.c: Implement per-fd layers as a stack, add fdPush/fdPop.jbj1-7/+9
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
1999-11-12Use Fstrerror on ufdio throughut.jbj1-11/+11
rpm.c: add --rmspec to usage output. build/files.c: use ufdio to permit '%files -f <url>' (untested). build/pack.c: use ufdio in readRPM(), writeRPM(), and addFileToTag(). build/parsePreamble.c: use ufdio in readIcon(). lib/ftp.c: httpOpen() now takes FD_t ctrl arg to uncouple from u->ctrl. lib/install.c: usr rpmGenPath() to identify first found url in file path concat. lib/install.c: permit url's in files[i].relativePath. lib/macro.c: use ufdio, diddle macros for tmacro standalone build. lib/macro.c: Create rpmGenPath(). lib/macro.c: diddle macro files path to permit url's. lib/rpmchecksig.c: use Fopen on fdio. lib/rpmio.c: replace copyData() with ufdCopy(). lib/rpmio.c: replace httpGetFile() with ufdGetFile(). lib/rpmio.c: add ufdWrite(). lib/rpmio.c: permit 2 simultaneous persistent malloc/open HTTP/1.1 connections. lib/rpmio.c: Add Lstat(), Stat(), and Access(). lib/rpmio.c: assume paths in syscall stubs are loopback (WRONG). lib/url.c: add urlPath(). CVS patchset: 3422 CVS date: 1999/11/12 17:20:49
1999-11-10Swap 2nd and 3rd arg to Fread/Fwrite to preserve read/write type return.jbj1-26/+51
Use Fstrerror to retrieve fd->syserrno. Make ftpFileDoneNeeded per-fd rather than per-url. Make data fd unique rather than per-url. Use appropriate protocol commands for ufdio writing. CVS patchset: 3421 CVS date: 1999/11/10 22:09:49
1999-11-02Add ref/deref/new/fileno/open vectors to FDIO_t.jbj1-1/+1
Hide fdOpen/ufdOpen, use {fdio,ufdio}->open throughout. url.c: Create ref counted abstract urlinfo type with debugging. url.c: Rename functions to urlNew/urlFree/urlFreeCache for consistency. rpmio.c: Create ref counted abstract FD_t type with debugging. rpmio.c: Create private struct _FD_s type. cpio.c: Create fd[GS]etCpioPos to preserve FD_t abstraction. CVS patchset: 3414 CVS date: 1999/11/02 14:33:14
1999-10-31Spec: Add rootdir (as in chroot).jbj1-12/+25
parseSpec(): Pass rootdir argument. rpm.c: Rework bigMode enum to simplify per-mode option checks. build/build.c: Attempt a chroot before execl(). falloc.c: thinko: test for non-existent packages database was broke. makeTempFile(): Skip possible URL leader on tempfile name expansion. rpmio.c: Mkdir/Chdir/Rmdir/Rename/Chroot/Unlink syscall wrappers. rpmdb.c: Coalesce and simplify legacy openDatabase() wrappers. uninstall.c: Skip possible URL leader on chroot arg. CVS patchset: 3409 CVS date: 1999/10/31 21:38:21
1999-10-30Rename faFoo() routines, use FD_t I/O with fadio cookie throughout.jbj1-4/+18
Try to be URL sensitive on filename arguments throughout. falloc.c: Eliminate faFile, use FD_t. falloc.c: preserve abstract FD_t by creating fadGet*()/fadSet*(). macro.c: rpmGetPath() expansions were clobbering URL's. rpmio.c: create Fcntl(), Pread(), Pwrite() from previous faFoo(). rpmio.c: attempt per FD_t debugging. rpm.c: permit --dbpath with --rebuild. CVS patchset: 3408 CVS date: 1999/10/30 21:26:45
1999-10-30Make fdFileno() static, use Fileno()/Ferror() analogues throughout.jbj1-6/+7
Make ufdClose() static, use Fclose() with ufdio cookie throughout. rpm.c: Clean urlinfoCache and rpmBuildArgs leaks. url.c: urlIsURL() should be here, not in rpmio.c. url.c: Preserve FD_t abstraction by creating ufdGetUrlinfo(). url.c: Create freeUrlinfoCache(). rpmio.c: Create ufdio cookie. CVS patchset: 3407 CVS date: 1999/10/30 16:43:29
1999-10-29check for memory leaks (almost all leaks are plugged).jbj1-12/+15
CVS patchset: 3403 CVS date: 1999/10/29 16:06:01
1999-10-21lclint annotations and compiler cruft.jbj1-2/+2
CVS patchset: 3394 CVS date: 1999/10/21 20:36:16
1999-10-21got installs/removes working with new file listsewt1-4/+16
CVS patchset: 3389 CVS date: 1999/10/21 02:40:57
1999-10-20lclint annotations.jbj1-6/+6
CVS patchset: 3387 CVS date: 1999/10/20 21:40:10
1999-10-08Use xmalloc/xstrdup rather than malloc/strdup.jbj1-3/+3
CVS patchset: 3377 CVS date: 1999/10/08 16:38:33
1999-10-06fixed bug w/ compressing file listsewt1-1/+3
CVS patchset: 3372 CVS date: 1999/10/06 18:29:27
1999-10-06first steps toward getting compressed file lists to work -- most thingsewt1-0/+96
are still *horribly* broken CVS patchset: 3370 CVS date: 1999/10/06 15:51:14
1999-09-21fix: removed files fingerprint memory leak.jbj1-2/+2
fix: resurrect allfiles flag from rpm-2.5.x. CVS patchset: 3312 CVS date: 1999/09/21 17:21:57
1999-09-21fix: command line install had header memory leak.jbj1-9/+9
check for NULL on all memory allocations. free rpmrc mallocs on exit. permit run time leak detection. CVS patchset: 3311 CVS date: 1999/09/21 03:22:53
1999-07-13Perl bindings needjbj1-2/+2
#include <foo.h> not #include "foo.h" CVS patchset: 3143 CVS date: 1999/07/13 21:37:57
1999-06-30avoid numeric overflow in version comparison (Thayne ↵jbj1-11/+36
Harbaugh<tharbaug@liberate.com>). CVS patchset: 3112 CVS date: 1999/06/30 14:18:05
1999-04-03add name/version/release macros during src.rpm install.jbj1-0/+1
attempt mkdir sourcedir/specdir during src.rpm install. CVS patchset: 2938 CVS date: 1999/04/03 00:05:03
1999-01-08added currentDirectory()ewt1-0/+14
CVS patchset: 2678 CVS date: 1999/01/08 03:10:12
1999-01-06propagate "const char *" into rpmlib prototypes.jbj1-16/+25
CVS patchset: 2663 CVS date: 1999/01/06 17:33:50
1998-11-30switched exists() to rpmfileexists()ewt1-1/+1
CVS patchset: 2563 CVS date: 1998/11/30 17:48:03
1998-11-20Sanity.jbj1-1/+2
CVS patchset: 2551 CVS date: 1998/11/20 20:18:22
1998-11-18implement abstract fd type almost everywhere.jbj1-8/+5
CVS patchset: 2542 CVS date: 1998/11/18 21:41:05
1998-11-16LCLINT pass 0.jbj1-0/+3
CVS patchset: 2540 CVS date: 1998/11/16 21:40:28
1998-10-08Consolidate i18n baggage into AM_GNU_GETTEXT and system.h.jbj1-1/+0
CVS patchset: 2425 CVS date: 1998/10/08 14:59:17