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 | Remove unused selinux dummy defines | Panu Matilainen | 1 | -7/+0 | |
2010-01-05 | Move <mcheck.h> include out of system.h to the couple of places that care | Panu Matilainen | 5 | -11/+7 | |
- only two real users inside rpm - remove mcheck foo from rpminject and rpmsort, we're not interested... | |||||
2010-01-05 | Unconditionally include <sys/wait.h> where needed | Panu Matilainen | 9 | -6/+10 | |
- 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 | 4 | -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-05 | Move libacl.h include out of system.h to the only place that cares | Panu Matilainen | 2 | -4/+4 | |
2010-01-05 | Eliminate SEEK_FOO and [RWXF]_OK definitions from system.h | Panu Matilainen | 1 | -12/+0 | |
- systems not defining these constants are broken beyond our caring | |||||
2010-01-05 | Remove unnecessary and broken time.h related configure + system.h checks | Panu Matilainen | 2 | -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-05 | Unconditionally include <netdb.h> where needed instead of system.h | Panu Matilainen | 7 | -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-05 | Remove pointless & unused configure checks | Panu Matilainen | 1 | -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-05 | Sanitize signature checking formatResult() a bit | Panu Matilainen | 2 | -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-05 | Oops, ftok() is really optional | Panu Matilainen | 1 | -1/+2 | |
2010-01-04 | Clean up poll() vs select() tests | Panu Matilainen | 4 | -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-04 | Remove unused header checks from configure | Panu Matilainen | 2 | -5/+3 | |
- maybe these have been used at some point but not anymore... | |||||
2010-01-04 | Eliminate unused id -u tests | Panu Matilainen | 2 | -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-04 | Use MAP_FAILED instead of hardwired (void *)-1 | Panu Matilainen | 2 | -5/+5 | |
2010-01-04 | Re-enable mmap test in configure & fix the code build again | Panu Matilainen | 3 | -4/+3 | |
- this stuff has been disabled for years, lets see what breaks... | |||||
2010-01-04 | Remove unnecessary stdint check from configure | Panu Matilainen | 1 | -4/+0 | |
- a leftover from pre-C99 requirement times | |||||
2010-01-04 | Remove S_IFSOCK and S_IFLNK kludgery for ancient unixes | Panu Matilainen | 2 | -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-04 | Require lchown() and remove ancient broken chown kludgery | Panu Matilainen | 5 | -53/+1 | |
- lchown() is POSIX 2001, we dont care about older / nonconformant stuff | |||||
2010-01-04 | Check for our POSIX 2001 requirements and abort if not found | Panu Matilainen | 1 | -5/+3 | |
2010-01-04 | Lose the hysterical fakefork hack | Panu Matilainen | 3 | -17/+1 | |
- we're not particularly interested in AmigaOS quirks from 1996 | |||||
2010-01-04 | Remove further replacement functions for POSIX 2001 required bits | Panu Matilainen | 8 | -252/+2 | |
- 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 | 5 | -328/+2 | |
- setenv() and unsetenv() are required by POSIX 2001, we dont care about older systems | |||||
2010-01-04 | Remove largely unnecessary putenv() replacement | Panu Matilainen | 5 | -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-04 | Eliminate myrealloc() replacement function | Panu Matilainen | 4 | -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-04 | Remove unneeded strdup() replacement in misc/ | Panu Matilainen | 3 | -48/+1 | |
- rpmio's own version is always there and portable, this is not needed | |||||
2010-01-04 | Use rpm's own strdup() clone everywhere | Panu Matilainen | 2 | -3/+6 | |
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 | |
2010-01-04 | error.c was getting translated too, duh | Panu Matilainen | 1 | -1/+0 | |
- should've been in commit 5741334a857a783b033c647223f206a7ca43cef3 | |||||
2009-12-23 | Oops, update stubs.c too for the removed replacements | Panu Matilainen | 1 | -24/+0 | |
2009-12-23 | Remove replacements for C99 mandated functions | Panu Matilainen | 10 | -2019/+5 | |
- rpm requires C99 compiler anyway, no point in carrying these around | |||||
2009-12-23 | Remove unneeded replacement error/warn functions | Panu Matilainen | 5 | -502/+1 | |
2009-12-23 | Include <utime.h> where needed instead of system.h | Panu Matilainen | 3 | -4/+2 | |
- include unconditionally as we dont try to deal with utime() missing | |||||
2009-12-23 | Move major, minor + makedev portability stuff out of system.h, simplify | Panu Matilainen | 2 | -20/+8 | |
- only cpio.c needs, move it there - if none of the standard headers define these, its not our headache anymore | |||||
2009-12-23 | Move getopt() portability fiddles out of system.h | Panu Matilainen | 2 | -4/+6 | |
- only macro.c needs, no point polluting includes everywhere | |||||
2009-12-23 | Dont include <pwd.h> from system.h, dont bother checking for it either | Panu Matilainen | 5 | -5/+4 | |
- no much point conditionalizing something we can't live without - just three places need, no point polluting include space everywhere | |||||
2009-12-23 | Dont bother including <sys/socket.h>, we dont use anything from there | Panu Matilainen | 2 | -6/+1 | |
2009-12-23 | Dont bother including <err.h>, we dont use anything from there | Panu Matilainen | 1 | -4/+0 | |
2009-12-23 | Only rpmrc.c cares about utsname.h, move out of system.h | Panu Matilainen | 2 | -4/+4 | |
2009-12-23 | Dont include grp.h from system.h, dont bother checking in configure either | Panu Matilainen | 4 | -10/+6 | |
- no much point conditionalizing something we can't live without - just two places need, no point polluting include space everywhere | |||||
2009-12-23 | Dont bother checking and including a header we dont use or need | Panu Matilainen | 2 | -6/+0 | |
2009-12-23 | Move malloc portability tweaks out of system.h | Panu Matilainen | 2 | -9/+10 | |
- only rpmmalloc.c needs, no need to pollute system.h | |||||
2009-12-23 | We dont use memchr() anywhere | Panu Matilainen | 1 | -1/+0 | |
2009-12-23 | Move getpass() portability tweaks out of system.h | Panu Matilainen | 2 | -5/+5 | |
- only signature.c needs, no need to pollute system.h | |||||
2009-12-23 | Dont bother checking for a header we dont use | Panu Matilainen | 2 | -6/+1 | |
2009-12-23 | Dont bother checking for functions we dont use | Panu Matilainen | 2 | -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-23 | Use AC_PROG_MKDIR_P for testing mkdir -p capability | Panu Matilainen | 2 | -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-22 | Use %{__mkdir_p} macro in build instead of hardwired RPM_MKDIR_P | Panu Matilainen | 2 | -3/+5 | |