summaryrefslogtreecommitdiff
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-05Remove unused selinux dummy definesPanu Matilainen1-7/+0
2010-01-05Move <mcheck.h> include out of system.h to the couple of places that carePanu Matilainen5-11/+7
- only two real users inside rpm - remove mcheck foo from rpminject and rpmsort, we're not interested...
2010-01-05Unconditionally include <sys/wait.h> where neededPanu Matilainen9-6/+10
- no point conditionalizing what we cant live without
2010-01-05Move sys/mman.h include out of system.h to the places that carePanu Matilainen4-5/+9
- 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-05Move libacl.h include out of system.h to the only place that caresPanu Matilainen2-4/+4
2010-01-05Eliminate SEEK_FOO and [RWXF]_OK definitions from system.hPanu Matilainen1-12/+0
- systems not defining these constants are broken beyond our caring
2010-01-05Remove unnecessary and broken time.h related configure + system.h checksPanu Matilainen2-12/+0
- the AC_HEADER_TIME check is unnecessary for any remotely recent systems, and the HAVE_SYS_TIME_H conditional in system.h is just broken as we dont even check for <sys/time.h> header in configure - dont include from system.h, the time.h and sys/time.h get already included through our public headers where necessary
2010-01-05Unconditionally include <netdb.h> where needed instead of system.hPanu Matilainen7-7/+6
- there's no fallback for missing netdb.h so there's little point conditionalizing it - avoid yet more system.h pollution
2010-01-05Remove pointless & unused configure checksPanu Matilainen1-5/+0
- vprintf(), vsnprintf() and snprintf() are in C99, no point checking especially as we dont have fallbacks for them - no point testing for inline capability as we dont try to work around
2010-01-05Sanitize signature checking formatResult() a bitPanu Matilainen2-7/+3
- whole lotta unnecessary wankery here (what have I been thinking) - avoid using the non-standard strndup(), we checked for it in configure but didn't provide an alternative so checking was just bogus
2010-01-05Oops, ftok() is really optionalPanu Matilainen1-1/+2
2010-01-04Clean up poll() vs select() testsPanu Matilainen4-9/+8
- 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-04Remove unused header checks from configurePanu Matilainen2-5/+3
- maybe these have been used at some point but not anymore...
2010-01-04Eliminate unused id -u testsPanu Matilainen2-12/+0
- this was used by _fixowner and _fixgroup macros back in the day but they no longer exist as they're unusable without building as root
2010-01-04Use MAP_FAILED instead of hardwired (void *)-1Panu Matilainen2-5/+5
2010-01-04Re-enable mmap test in configure & fix the code build againPanu Matilainen3-4/+3
- this stuff has been disabled for years, lets see what breaks...
2010-01-04Remove unnecessary stdint check from configurePanu Matilainen1-4/+0
- a leftover from pre-C99 requirement times
2010-01-04Remove S_IFSOCK and S_IFLNK kludgery for ancient unixesPanu Matilainen2-36/+0
- these are specified by POSIX 2001, it's not really rpm's job to provide them if the system doesn't
2010-01-04Require lchown() and remove ancient broken chown kludgeryPanu Matilainen5-53/+1
- lchown() is POSIX 2001, we dont care about older / nonconformant stuff
2010-01-04Check for our POSIX 2001 requirements and abort if not foundPanu Matilainen1-5/+3
2010-01-04Lose the hysterical fakefork hackPanu Matilainen3-17/+1
- we're not particularly interested in AmigaOS quirks from 1996
2010-01-04Remove further replacement functions for POSIX 2001 required bitsPanu Matilainen8-252/+2
- getwd(), getcwd(), basename() and realpath() are all POSIX 2001 defined, we dont care about older stuff
2010-01-04Remove unnecessary setenv() replacement functionPanu Matilainen5-328/+2
- setenv() and unsetenv() are required by POSIX 2001, we dont care about older systems
2010-01-04Remove largely unnecessary putenv() replacementPanu Matilainen5-120/+11
- 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 Matilainen4-16/+1
- 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 Matilainen3-48/+1
- rpmio's own version is always there and portable, this is not needed
2010-01-04Use rpm's own strdup() clone everywherePanu Matilainen2-3/+6
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
2010-01-04error.c was getting translated too, duhPanu Matilainen1-1/+0
- should've been in commit 5741334a857a783b033c647223f206a7ca43cef3
2009-12-23Oops, update stubs.c too for the removed replacementsPanu Matilainen1-24/+0
2009-12-23Remove replacements for C99 mandated functionsPanu Matilainen10-2019/+5
- rpm requires C99 compiler anyway, no point in carrying these around
2009-12-23Remove unneeded replacement error/warn functionsPanu Matilainen5-502/+1
2009-12-23Include <utime.h> where needed instead of system.hPanu Matilainen3-4/+2
- include unconditionally as we dont try to deal with utime() missing
2009-12-23Move major, minor + makedev portability stuff out of system.h, simplifyPanu Matilainen2-20/+8
- only cpio.c needs, move it there - if none of the standard headers define these, its not our headache anymore
2009-12-23Move getopt() portability fiddles out of system.hPanu Matilainen2-4/+6
- only macro.c needs, no point polluting includes everywhere
2009-12-23Dont include <pwd.h> from system.h, dont bother checking for it eitherPanu Matilainen5-5/+4
- no much point conditionalizing something we can't live without - just three places need, no point polluting include space everywhere
2009-12-23Dont bother including <sys/socket.h>, we dont use anything from therePanu Matilainen2-6/+1
2009-12-23Dont bother including <err.h>, we dont use anything from therePanu Matilainen1-4/+0
2009-12-23Only rpmrc.c cares about utsname.h, move out of system.hPanu Matilainen2-4/+4
2009-12-23Dont include grp.h from system.h, dont bother checking in configure eitherPanu Matilainen4-10/+6
- no much point conditionalizing something we can't live without - just two places need, no point polluting include space everywhere
2009-12-23Dont bother checking and including a header we dont use or needPanu Matilainen2-6/+0
2009-12-23Move malloc portability tweaks out of system.hPanu Matilainen2-9/+10
- only rpmmalloc.c needs, no need to pollute system.h
2009-12-23We dont use memchr() anywherePanu Matilainen1-1/+0
2009-12-23Move getpass() portability tweaks out of system.hPanu Matilainen2-5/+5
- only signature.c needs, no need to pollute system.h
2009-12-23Dont bother checking for a header we dont usePanu Matilainen2-6/+1
2009-12-23Dont bother checking for functions we dont usePanu Matilainen2-16/+3
- some of this stuff was used in 4.4.x but not anymore - additionally we dont even use getdomainnname(), check for gethostname() instead
2009-12-23Use AC_PROG_MKDIR_P for testing mkdir -p capabilityPanu Matilainen2-40/+13
- for rpmbuild's purposes MKDIR_P doesn't cut it though, we need to point it to something that exists on an installed system
2009-12-22Use %{__mkdir_p} macro in build instead of hardwired RPM_MKDIR_PPanu Matilainen2-3/+5