Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2010-01-05 | fts.h requires <stdint.h>, include it there explicitly | Panu Matilainen | 1 | -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-05 | Unconditionally include <sys/wait.h> where needed | Panu Matilainen | 2 | -0/+2 | |
- no point conditionalizing what we cant live without | |||||
2010-01-05 | Move sys/mman.h include out of system.h to the places that care | Panu Matilainen | 1 | -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-05 | Unconditionally include <netdb.h> where needed instead of system.h | Panu Matilainen | 1 | -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-04 | Clean up poll() vs select() tests | Panu Matilainen | 1 | -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-04 | Use MAP_FAILED instead of hardwired (void *)-1 | Panu Matilainen | 1 | -1/+1 | |
2010-01-04 | Re-enable mmap test in configure & fix the code build again | Panu Matilainen | 1 | -0/+1 | |
- this stuff has been disabled for years, lets see what breaks... | |||||
2010-01-04 | Remove further replacement functions for POSIX 2001 required bits | Panu Matilainen | 1 | -16/+0 | |
- getwd(), getcwd(), basename() and realpath() are all POSIX 2001 defined, we dont care about older stuff | |||||
2010-01-04 | Remove unnecessary setenv() replacement function | Panu Matilainen | 1 | -4/+0 | |
- setenv() and unsetenv() are required by POSIX 2001, we dont care about older systems | |||||
2010-01-04 | Remove largely unnecessary putenv() replacement | Panu Matilainen | 1 | -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-04 | Eliminate myrealloc() replacement function | Panu Matilainen | 1 | -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-04 | Remove unneeded strdup() replacement in misc/ | Panu Matilainen | 1 | -4/+0 | |
- rpmio's own version is always there and portable, this is not needed | |||||
2010-01-04 | Always free locally defined macros when they go out of scope | Panu Matilainen | 1 | -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-04 | Remove -98 vintage ifdef'ed dead code | Panu Matilainen | 1 | -13/+0 | |
2009-12-23 | Oops, update stubs.c too for the removed replacements | Panu Matilainen | 1 | -24/+0 | |
2009-12-23 | Move getopt() portability fiddles out of system.h | Panu Matilainen | 1 | -0/+6 | |
- only macro.c needs, no point polluting includes everywhere | |||||
2009-12-23 | Move malloc portability tweaks out of system.h | Panu Matilainen | 1 | -0/+10 | |
- only rpmmalloc.c needs, no need to pollute system.h | |||||
2009-12-07 | Bump soname for all our libraries | Panu Matilainen | 1 | -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-25 | We can't handle OpenPGP subkeys or secret keys, so dont even try | Panu Matilainen | 1 | -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-17 | Unbreak lzdio/xzdio | Panu Matilainen | 1 | -7/+11 | |
- revert part of b0d1038190be5cb4b45e2c2c7c84ee7022164ba2 which broke the split-personality lzdio/xzdio | |||||
2009-10-16 | Use a helper function for finding fileno of specific io type | Panu Matilainen | 1 | -39/+24 | |
- also differentiate between lzdio and xzdio here | |||||
2009-10-16 | Lose unnecessary url type checking from fdSize() | Panu Matilainen | 1 | -15/+2 | |
- we're only dealing with local files once fd is opened | |||||
2009-10-16 | Lose unused leftover definitions | Panu Matilainen | 1 | -14/+0 | |
2009-10-16 | Eliminate ufdio-specific read, write, seek and close | Panu Matilainen | 1 | -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-15 | Add ftell() clone to FD_t | Panu Matilainen | 2 | -0/+20 | |
2009-10-14 | Make fdUpdateDigests() static now that its possible | Panu Matilainen | 2 | -6/+8 | |
2009-10-14 | Make FD_t struct opaque, finally | Panu Matilainen | 2 | -47/+42 | |
2009-10-14 | Eliminate last remaining FD_t struct privacy violation | Panu Matilainen | 2 | -6/+14 | |
- add getter for fd digest bundle, uninline the setter | |||||
2009-10-14 | Remove cpio stuff from FD_t | Panu Matilainen | 2 | -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-14 | Move debug goo defs to rpmio.c | Panu Matilainen | 2 | -9/+7 | |
2009-10-14 | Move pile of helpers from rpmio_internal.h to rpmio.c, remove unused stuff | Panu Matilainen | 2 | -122/+58 | |
- nothing outside rpmio.c needs these, make 'em static there - uninlining reveals quite a few completely unused helpers... | |||||
2009-10-14 | Move fd statistics foo inside rpmio.c now that it can | Panu Matilainen | 2 | -63/+55 | |
2009-10-14 | Move fdDigest*() to rpmio.c where they better belong | Panu Matilainen | 3 | -31/+30 | |
2009-10-14 | Remove pointless inlining of stuff in rpmio | Panu Matilainen | 1 | -9/+8 | |
2009-10-14 | Use common "not implemented" implementation of Fseek() | Panu Matilainen | 1 | -22/+4 | |
2009-10-09 | Add an interface to parse armored OpenPGP from memory | Panu Matilainen | 2 | -19/+37 | |
- refactor the decoding part out of pgpReadPkts() to separate helper, and add pgpParsePkts() around that | |||||
2009-10-06 | Decompress lzma files with xz. | Ville Skyttä | 1 | -2/+0 | |
2009-09-22 | Missing <string.h> include | Panu Matilainen | 1 | -0/+1 | |
2009-09-17 | EXIT_FAILURE being defined is already handled in system.h | Panu Matilainen | 1 | -4/+0 | |
2009-09-17 | Compare pointers against NULL, not 0 | Panu Matilainen | 1 | -4/+4 | |
2009-09-17 | Add runtime settable custom memory allocation failure callback routine | Panu Matilainen | 2 | -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-17 | Always use build + use our own allocator functions | Panu Matilainen | 2 | -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-07 | Eliminate unused variable | Panu Matilainen | 1 | -2/+2 | |
2009-09-07 | Avoid potentially calling a NULL function pointer | Panu Matilainen | 1 | -1/+1 | |
2009-09-07 | Remove redundant reinitialization, cleanup | Panu Matilainen | 1 | -6/+1 | |
2009-09-07 | Add RPM_GNUC_NONNULL macro for portable use of gcc nonnull attribute | Panu Matilainen | 1 | -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-31 | Ugh, fix brokenness from previous commit | Panu Matilainen | 2 | -1/+2 | |
2009-08-31 | Replace equal/not equal uses of str[n]cmp() with rstreq[n] in io code | Panu Matilainen | 5 | -10/+8 | |
2009-08-31 | Hum, rename rstrneq() to rstreqn() to avoid confusing neq with "not equal" | Panu Matilainen | 1 | -1/+1 | |
2009-08-31 | Accept direct compressor names as Fopen() modes too | Panu Matilainen | 1 | -4/+4 | |