diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-06-22 14:19:14 -0700 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-06-23 18:02:43 -0400 |
commit | 40abb498ca4a24495fe34e133379382ce8c3eaca (patch) | |
tree | a8779b17558a4c96eb2d5c56e82cee4743d408aa /libsbutil/sb_backtrace.c | |
parent | use m4_flatten to make multiline lists easier to handle (diff) | |
download | sandbox-40abb498ca4a24495fe34e133379382ce8c3eaca.tar.gz sandbox-40abb498ca4a24495fe34e133379382ce8c3eaca.tar.bz2 sandbox-40abb498ca4a24495fe34e133379382ce8c3eaca.zip |
significantly overhaul output helpers
There are a few major points we want to hit here:
- have all output from libsandbox go through portage helpers when we are
in the portage environment so that output is properly logged
- convert SB_E{info,warn,error} to sb_e{info,warn,error} to match style
of other functions and cut down on confusion
- move all abort/output helpers to libsbutil so it can be used in all
source trees and not just by libsandbox
- migrate all abort points to the centralized sb_ebort helper
Unfortunately, it's not terribly easy to untangle these into separate
patches, but hopefully this shouldn't be too messy as much of it is
mechanical: move funcs between files, and change the name of funcs
that get called.
URL: http://bugs.gentoo.org/278761
Reported-by: Mounir Lamouri <volkmar@gentoo.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libsbutil/sb_backtrace.c')
-rw-r--r-- | libsbutil/sb_backtrace.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libsbutil/sb_backtrace.c b/libsbutil/sb_backtrace.c new file mode 100644 index 0000000..e3d1ed7 --- /dev/null +++ b/libsbutil/sb_backtrace.c @@ -0,0 +1,15 @@ +/* + * sb_backtrace.c + * + * Need to keep in a dedicated file so libsandbox can override. + * + * Copyright 1999-2012 Gentoo Foundation + * Licensed under the GPL-2 + */ + +#include "headers.h" +#include "sbutil.h" + +void __sb_dump_backtrace(void) +{ +} |