freebsd-ports/devel/elfutils/files/patch-lib_error.h
Conrad Meyer 552479055e Add elfutils 0.163
Elfutils is a collection of utilities, including: stack (to show
backtraces); nm (for listing symbols from object files); size (for
listing the section sizes of an object or archive file); strip (for
discarding symbols); readelf (to see the raw ELF file structures);
elflint (to check for well-formed ELF files); and elfcompress (to
compress or decompress ELF sections).

It also provides libraries to allow other programs to manipulate ELF and
DWARF data.

WWW:	https://fedorahosted.org/elfutils/

Reviewed by:	bdrewery
Sponsored by:	EMC / Isilon Storage Division
Differential Revision:	https://reviews.freebsd.org/D7206
2016-07-13 17:48:54 +00:00

21 lines
617 B
C

--- lib/error.h.orig 2016-07-13 06:58:54 UTC
+++ lib/error.h
@@ -0,0 +1,18 @@
+#pragma once
+
+/*
+ * error, error_at_line, error_message_count, error_one_per_line,
+ * error_print_progname - glibc error reporting functions
+ */
+
+/* void error(int status, int errnum, const char *format, ...); */
+#define error(st, en, ...) error_at_line(st, en, NULL, 0, __VA_ARGS__)
+
+void error_at_line(int status, int errnum, const char *filename,
+ unsigned int linenum, const char *format, ...);
+
+extern unsigned int error_message_count;
+
+extern int error_one_per_line;
+
+extern void (*error_print_progname) (void);