Commit Graph

25 Commits

Author SHA1 Message Date
Panu Matilainen fa29c0da80 Implement strndup() equivalent using rpm alloc failure system
rstrdup() becomes just a special case of this. How come this hasn't
been added earlier?
2020-11-09 09:28:54 +02:00
Panu Matilainen a82633c2a3 Avoid using void pointer when we have a real type for the memfail function 2010-09-21 13:41:25 +03:00
Panu Matilainen 05b2d979e8 Move <stdio.h> includes out of system.h to the places that need it 2010-01-05 16:06:02 +02:00
Panu Matilainen e3638c2c86 Remove <string.h> include from system.h into the few places that still need
- most of the places get it through <rpm/rpmstring.h> already
2010-01-05 15:17:34 +02:00
Panu Matilainen 0c15e5feb3 Include <stdlib.h> as necessary instead of system.h
- also loose the related ancient compatibility goo
2010-01-05 15:04:20 +02:00
Panu Matilainen 60dc809db1 Eliminate myrealloc() replacement function
- 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 13:46:43 +02:00
Panu Matilainen 162fc36e14 Move malloc portability tweaks out of system.h
- only rpmmalloc.c needs, no need to pollute system.h
2009-12-23 12:55:45 +02:00
Panu Matilainen b3dcc48824 EXIT_FAILURE being defined is already handled in system.h 2009-09-17 12:51:28 +03:00
Panu Matilainen b805731ce3 Compare pointers against NULL, not 0 2009-09-17 12:40:29 +03:00
Panu Matilainen 5722f2d65c Add runtime settable custom memory allocation failure callback routine
- 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 12:32:04 +03:00
Panu Matilainen 1492581139 Always use build + use our own allocator functions
- 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-17 12:32:04 +03:00
Ralf Corsépius f982bbaa79 Remove splint tags. 2007-09-11 16:48:54 +02:00
Ralf Corsépius bc5bbd543f Remove __LCLINT__-ifdef'ed blocks. 2007-09-03 13:29:05 +02:00
jbj d8dc44f363 lclint fiddles to annotate globals.
CVS patchset: 5106
CVS date: 2001/10/15 03:22:10
2001-10-15 03:22:10 +00:00
jbj 9d555b6216 Move to lclint-3.0.0.15, revisit and clean up annotations.
intl/: Add gettext orphans.
popt/intl/: Add gettext orphans.
beecrypt: Add beecrypt repository.
rpmio/tdigest.c: Add beecrypt digest checks.

CVS patchset: 5077
CVS date: 2001/09/24 21:53:14
2001-09-24 21:53:14 +00:00
jbj 8f75bbc17d - enough lclint annotations and fiddles already.
CVS patchset: 4741
CVS date: 2001/05/05 19:28:32
2001-05-05 19:28:32 +00:00
jbj db32ab6bea Sync with rpm-4_0 branch.
CVS patchset: 4338
CVS date: 2000/12/12 20:03:45
2000-12-12 20:03:45 +00:00
jbj ce1e8d26ec - add support for SHA1 as well as MD5 message digests.
lclint annotations.

CVS patchset: 4234
CVS date: 2000/10/31 16:18:34
2000-10-31 16:18:34 +00:00
jbj 918188a90c Doxygen annotations.
CVS patchset: 4129
CVS date: 2000/08/27 18:34:02
2000-08-27 18:34:02 +00:00
jbj 9c0c7e9fbd Sanity.
CVS patchset: 3697
CVS date: 2000/04/25 19:41:37
2000-04-25 19:41:37 +00:00
jbj 7fd28d7bf2 Insure that EXIT_FAILURE is defined (irix6.5).
CVS patchset: 3675
CVS date: 2000/04/13 10:41:31
2000-04-13 10:41:31 +00:00
jbj 8aceebd817 Portability fiddles.
Rebuild with latest rpmmodule.so code.

CVS patchset: 3600
CVS date: 2000/02/29 23:22:44
2000-02-29 23:22:44 +00:00
jbj 07d68db900 Don't use err(3) for now.
CVS patchset: 3339
CVS date: 1999/09/29 15:59:55
1999-09-29 15:59:55 +00:00
jbj bc0955ad3c Solaris compilation.
CVS patchset: 3332
CVS date: 1999/09/26 17:28:00
1999-09-26 17:28:00 +00:00
jbj 444952d085 Orphan.
CVS patchset: 3316
CVS date: 1999/09/22 16:34:08
1999-09-22 16:34:08 +00:00