summaryrefslogtreecommitdiff
path: root/rpmio
AgeCommit message (Collapse)AuthorFilesLines
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
2009-10-14Move pile of helpers from rpmio_internal.h to rpmio.c, remove unused stuffPanu Matilainen2-122/+58
- nothing outside rpmio.c needs these, make 'em static there - uninlining reveals quite a few completely unused helpers...
2009-10-14Move fd statistics foo inside rpmio.c now that it canPanu Matilainen2-63/+55
2009-10-14Move fdDigest*() to rpmio.c where they better belongPanu Matilainen3-31/+30
2009-10-14Remove pointless inlining of stuff in rpmioPanu Matilainen1-9/+8
2009-10-14Use common "not implemented" implementation of Fseek()Panu Matilainen1-22/+4
2009-10-09Add an interface to parse armored OpenPGP from memoryPanu Matilainen2-19/+37
- refactor the decoding part out of pgpReadPkts() to separate helper, and add pgpParsePkts() around that
2009-10-06Decompress lzma files with xz.Ville Skyttä1-2/+0
2009-09-22Missing <string.h> includePanu Matilainen1-0/+1
2009-09-17EXIT_FAILURE being defined is already handled in system.hPanu Matilainen1-4/+0
2009-09-17Compare pointers against NULL, not 0Panu Matilainen1-4/+4
2009-09-17Add runtime settable custom memory allocation failure callback routinePanu Matilainen2-3/+44
- lets API users perform theirn own cleanup / exit through their own routines in case of allocation failure, or even try to free up some memory and retry allocation
2009-09-17Always use build + use our own allocator functionsPanu Matilainen2-8/+35
- Consistent across platforms and will allow some things macros dont and memory checkers these days are smart enough to get decent output anyway - Minimal namespacing with r-prefix, add compatibility macros to system.h for now so we dont have to change the entire codebase for this - Also make rpmutil.h where the declarations and gcc __attribute__ macros are available everywhere
2009-09-07Eliminate unused variablePanu Matilainen1-2/+2
2009-09-07Avoid potentially calling a NULL function pointerPanu Matilainen1-1/+1
2009-09-07Remove redundant reinitialization, cleanupPanu Matilainen1-6/+1
2009-09-07Add RPM_GNUC_NONNULL macro for portable use of gcc nonnull attributePanu Matilainen1-2/+5
- gcc itself can only warn on literal NULL's passed where nonnull is expected but static analyzers can make better use of the info
2009-08-31Ugh, fix brokenness from previous commitPanu Matilainen2-1/+2
2009-08-31Replace equal/not equal uses of str[n]cmp() with rstreq[n] in io codePanu Matilainen5-10/+8
2009-08-31Hum, rename rstrneq() to rstreqn() to avoid confusing neq with "not equal"Panu Matilainen1-1/+1
2009-08-31Accept direct compressor names as Fopen() modes tooPanu Matilainen1-4/+4