summaryrefslogtreecommitdiff
path: root/rpmio
AgeCommit message (Collapse)AuthorFilesLines
2010-06-03Fix "empty reply from server" curl-syndrome with url retrieval (RhBug:598988)Panu Matilainen1-1/+1
- We were adding a trailing newline to urlhelper command line passed to execvp(), with the newline ending up in the URL passed to curl. Many servers dont seem to mind the extra newline, but some do. Oh well...
2010-06-01Permit DOS line-endings in PGP armors (RhBug:532992)Panu Matilainen1-4/+7
- RFC-4880 doesn't requires unix-style line-endings, we shouldn't either. This is probably still oversly strict as RFC-4880 appears to permit any whitespace to follow armor headers but ... shrug.
2010-05-19Add public pgpValString() function + enum for the various typesPanu Matilainen2-8/+46
- The equivalent used to be possible in 4.4.x era as the value tables were all exported, but this way we need to export far less and the implementation details stay internal.
2010-05-19Bury struct pgpValTbl_s definition inside rpmpgp.cPanu Matilainen2-7/+5
- as all the value tables are static inside rpmpgp.c, exposing this is pointless (should've been unexported long time ago)
2010-03-29Lose long since unused fdReadable() and fdWritable()Panu Matilainen2-106/+0
- these have been unused since rpm 4.6.0, and can be implemented without access to rpmio internals too if somebody cares...
2010-03-29Lose long since unused url control structure and related functionsPanu Matilainen2-198/+0
- these have been unused since rpm 4.6.0, and rpm is not in the url business, rip.
2010-03-22Further rpmio NULL sanity checksPanu Matilainen1-20/+22
- instead of blowing up with asserts, return error codes / NULLs
2010-03-22Lose FDSANE() macro, check in c2f() and callers insteadPanu Matilainen1-8/+3
2010-03-22Change most of the FDSANE() asserts into good old NULL-checksPanu Matilainen1-28/+22
- blowing up with an assert failure deep inside io "library" is not a very friendly thing to do...
2010-03-22Lose the useless rpmio refcounting debug junkPanu Matilainen2-43/+34
- the rpmio API always had this goo, should've gotten rid of it back in commit dbdbe8010cd944f026a5a4e5d071eb31d29d81c4 but .. oh well
2010-03-19Bury FTS inside librpmbuild and eliminate from public ABIPanu Matilainen3-1358/+2
2010-03-15Add an enhanced argvSplitString() function for splitting strings to argv'sPanu Matilainen2-3/+25
- Returns the newly created argv instead of useless "this always returns 0" - By default make a "real" split, including empty strings - Flags argument allows controlling behavior, for now only flag is to preserve argvSplit() behavior but leaves room for future enhancements such as quoted splitting etc
2010-02-10Split elf dependency extraction out of librpmbuild to external helperPanu Matilainen1-1/+0
- Elf dependency extraction code code lifted from rpmfcELF() and refactored to saner pieces. Having it in separate executable also frees librpmbuild of libelf dependency, clean up the unnecessary linkage etc from autofoo - This lets internal dependency generator for elf files be overridden without losing file coloring (which is required for correct multilib handling). It also permits non-native elf files (eg when cross-building) to be handled by providing a custom elf dependency helper - On the flip side, this inevitably slows down builds somewhat as two fork-exec's are needed for every elf file, but unlike invoking something like the python interpreter, this is a slim helper... - All dependency extractors of the internal dependency generator are now external helpers (how twisted is that, huh? :) and thus can be customized and filtered through %__foo_provides|requires macros
2010-02-03Kill RPMTAG_FSNAMES and RPMTAG_FSSIZES and everything implementing themFlorian Festi1-4/+0
2010-01-07Revert "Always free locally defined macros when they go out of scope"Panu Matilainen1-2/+3
- the "fix" breaks seemingly legitimate use in fedora font package macros, possibly some funky interaction with %{lua: } macros or something - this reverts commit f895acd285366cf58cc3c97b5f188fecbfd782a8.
2010-01-05Move <stdio.h> includes out of system.h to the places that need itPanu Matilainen3-0/+3
2010-01-05Move <ctype.h> include out of system.h to the places that need itPanu Matilainen1-0/+1
2010-01-05Move <errno.h> include out of system.h to the places that need itPanu Matilainen4-0/+4
2010-01-05Remove <string.h> include from system.h into the few places that still needPanu Matilainen2-0/+2
- most of the places get it through <rpm/rpmstring.h> already
2010-01-05Include <stdlib.h> as necessary instead of system.hPanu Matilainen3-3/+3
- also loose the related ancient compatibility goo
2010-01-05fts.h requires <stdint.h>, include it there explicitlyPanu Matilainen1-0/+1
- this has been masked by system.h including <netdb.h> which apparently brought in <stdint.h> as a side-effect - commit 5c084f842ae21d861818a33922b5c77cb17ad8e4 broke compilation without capability support as <sys/capability.h> also happens to bring in <stdint.h>
2010-01-05Unconditionally include <sys/wait.h> where neededPanu Matilainen2-0/+2
- no point conditionalizing what we cant live without
2010-01-05Move sys/mman.h include out of system.h to the places that carePanu Matilainen1-0/+4
- just two places where needed, dont pollute system.h needlessly - include depending on HAVE_MMAP instead of separately checking for sys/mman.h, if sys/mman.h doesn't exist or is broken HAVE_MMAP wont be set
2010-01-05Unconditionally include <netdb.h> where needed instead of system.hPanu Matilainen1-0/+1
- there's no fallback for missing netdb.h so there's little point conditionalizing it - avoid yet more system.h pollution
2010-01-04Clean up poll() vs select() testsPanu Matilainen1-0/+6
- move the includes out of system.h, not commonly needed - <poll.h> is conditional as we actually provide a fallback through select(), but for <sys/select.h> missing there's no fallback so doesn't make much sense to test for (and both poll.h and sys/select.h are posix anyway...)
2010-01-04Use MAP_FAILED instead of hardwired (void *)-1Panu Matilainen1-1/+1
2010-01-04Re-enable mmap test in configure & fix the code build againPanu Matilainen1-0/+1
- this stuff has been disabled for years, lets see what breaks...
2010-01-04Remove further replacement functions for POSIX 2001 required bitsPanu Matilainen1-16/+0
- getwd(), getcwd(), basename() and realpath() are all POSIX 2001 defined, we dont care about older stuff
2010-01-04Remove unnecessary setenv() replacement functionPanu Matilainen1-4/+0
- setenv() and unsetenv() are required by POSIX 2001, we dont care about older systems
2010-01-04Remove largely unnecessary putenv() replacementPanu Matilainen1-4/+0
- only the lua posix extension "uses" this by providing putenv() to Lua, make it conditional and return error if not supported by the underlying operating system
2010-01-04Eliminate myrealloc() replacement functionPanu Matilainen1-5/+0
- realloc(NULL, size) is defined as equal to malloc(size) in C99 and POSIX 2001, we dont care about anything older than that
2010-01-04Remove unneeded strdup() replacement in misc/Panu Matilainen1-4/+0
- rpmio's own version is always there and portable, this is not needed
2010-01-04Always free locally defined macros when they go out of scopePanu Matilainen1-3/+2
- Prior to this, local defines in constructs like %{!?foo: %define foo bar} would remain defined until a parametrized macro gets called, causing obscure and confusing errors in specs such as RhBug:551971 and countless others. Use of %global is now always required for such constructs.
2010-01-04Remove -98 vintage ifdef'ed dead codePanu Matilainen1-13/+0
2009-12-23Oops, update stubs.c too for the removed replacementsPanu Matilainen1-24/+0
2009-12-23Move getopt() portability fiddles out of system.hPanu Matilainen1-0/+6
- only macro.c needs, no point polluting includes everywhere
2009-12-23Move malloc portability tweaks out of system.hPanu Matilainen1-0/+10
- only rpmmalloc.c needs, no need to pollute system.h
2009-12-07Bump soname for all our librariesPanu Matilainen1-1/+1
- while the "really public" API of librpmio has only been enhanced, librpm and librpmbuild use some supposedly internal bits which *have* changed considerably, so just to prevent anybody thinking they can combine librpmio from rpm 4.7 and librpm from this... - librpmbuild hasn't seen much real change but some (unfortunately) exposed struct members have changed so... - librpm is mostly compatible but as rpmal has become internal API, we need to bump (annoyingly, as nothing actually uses rpmal ... sigh)
2009-11-25We can't handle OpenPGP subkeys or secret keys, so dont even tryPanu Matilainen1-5/+3
- parsing subkeys ends up overwriting data in the main key, causing bogus signature checking failures - this is the final missing piece of RhBug:436812, short of adding proper support for subkeys (maybe someday...)
2009-10-17Unbreak lzdio/xzdioPanu Matilainen1-7/+11
- revert part of b0d1038190be5cb4b45e2c2c7c84ee7022164ba2 which broke the split-personality lzdio/xzdio
2009-10-16Use a helper function for finding fileno of specific io typePanu Matilainen1-39/+24
- also differentiate between lzdio and xzdio here
2009-10-16Lose unnecessary url type checking from fdSize()Panu Matilainen1-15/+2
- we're only dealing with local files once fd is opened
2009-10-16Lose unused leftover definitionsPanu Matilainen1-14/+0
2009-10-16Eliminate ufdio-specific read, write, seek and closePanu Matilainen1-162/+3
- we dont do network IO anymore so ufdio only differs from fdio by downloading the file on open if necessary, after that it's just fdio
2009-10-15Add ftell() clone to FD_tPanu Matilainen2-0/+20
2009-10-14Make fdUpdateDigests() static now that its possiblePanu Matilainen2-6/+8
2009-10-14Make FD_t struct opaque, finallyPanu Matilainen2-47/+42
2009-10-14Eliminate last remaining FD_t struct privacy violationPanu Matilainen2-6/+14
- add getter for fd digest bundle, uninline the setter
2009-10-14Remove cpio stuff from FD_tPanu Matilainen2-23/+0
- only the FSM cares about cpio position, move it there - there's only ever one fd active inside FSM, no need to track it per-fd
2009-10-14Move debug goo defs to rpmio.cPanu Matilainen2-9/+7