Accepting request 25079 from Base:System

Copy from Base:System/syslogd based on submit request 25079 from user msmeissn

OBS-URL: https://build.opensuse.org/request/show/25079
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/syslogd?expand=0&rev=22
This commit is contained in:
OBS User autobuild
2009-11-27 13:54:43 +00:00
committed by Git OBS Bridge
parent ca04595d95
commit 2904bd5cd4
25 changed files with 328 additions and 229 deletions

View File

@@ -1,6 +1,8 @@
--- klogd.c
+++ klogd.c Tue Sep 9 14:15:47 2003
@@ -879,7 +879,7 @@
Index: klogd.c
===================================================================
--- klogd.c.orig 2001-03-11 20:40:10.000000000 +0100
+++ klogd.c 2009-11-24 18:12:53.393383000 +0100
@@ -879,7 +879,7 @@ static void LogLine(char *ptr, int len)
{
auto int sym_space;
@@ -9,7 +11,7 @@
auto struct symbol sym;
auto char *symbol;
@@ -904,7 +904,7 @@
@@ -904,7 +904,7 @@ static void LogLine(char *ptr, int len)
break;
}
@@ -18,8 +20,10 @@
symbol, sym.offset, sym.size );
space = sym_space + delta;
--- ksym.c
+++ ksym.c Tue Sep 9 14:15:47 2003
Index: ksym.c
===================================================================
--- ksym.c.orig 2009-11-24 18:12:52.901406000 +0100
+++ ksym.c 2009-11-24 18:12:53.397383000 +0100
@@ -122,7 +122,7 @@
/* Variables static to this module. */
struct sym_table
@@ -29,7 +33,7 @@
char *name;
};
@@ -151,7 +151,7 @@
@@ -151,7 +151,7 @@ extern int debugging;
/* Function prototypes. */
static char * FindSymbolFile(void);
@@ -38,7 +42,7 @@
static void FreeSymbols(void);
static int CheckVersion(char *);
static int CheckMapVersion(char *);
@@ -185,7 +185,7 @@
@@ -185,7 +185,7 @@ extern int InitKsyms(mapfile)
auto int version = 0;
@@ -47,7 +51,7 @@
auto FILE *sym_file;
@@ -237,16 +237,24 @@
@@ -237,16 +237,24 @@ extern int InitKsyms(mapfile)
*/
while ( !feof(sym_file) )
{
@@ -74,7 +78,7 @@
if ( AddSymbol(address, sym) == 0 )
{
@@ -521,7 +529,7 @@
@@ -521,7 +529,7 @@ static int CheckMapVersion(fname)
{
int version;
FILE *sym_file;
@@ -83,7 +87,7 @@
auto char type,
sym[512];
@@ -536,16 +544,24 @@
@@ -536,16 +544,24 @@ static int CheckMapVersion(fname)
version = 0;
while ( !feof(sym_file) && (version == 0) )
{
@@ -110,7 +114,7 @@
version = CheckVersion(sym);
}
@@ -583,7 +599,7 @@
@@ -583,7 +599,7 @@ static int CheckMapVersion(fname)
* Purpose: This function is responsible for adding a symbol name
* and its address to the symbol table.
*
@@ -119,7 +123,7 @@
*
* Return: int
*
@@ -593,7 +609,7 @@
@@ -593,7 +609,7 @@ static int CheckMapVersion(fname)
static int AddSymbol(address, symbol)
@@ -128,7 +132,7 @@
char *symbol;
@@ -639,7 +655,7 @@
@@ -639,7 +655,7 @@ static int AddSymbol(address, symbol)
char * LookupSymbol(value, sym)
@@ -137,7 +141,7 @@
struct symbol *sym;
@@ -739,7 +755,7 @@
@@ -739,7 +755,7 @@ extern char * ExpandKadds(line, el)
*symbol;
char num[15];
@@ -146,7 +150,7 @@
auto struct symbol sym;
@@ -821,7 +837,7 @@
@@ -821,7 +837,7 @@ extern char * ExpandKadds(line, el)
value = strtol(kp2, (char **) 0, 16);
if ( (symbol = LookupSymbol(value, &sym)) ) {
if (sym.size)
@@ -155,7 +159,7 @@
else
elp += sprintf(elp, " (%s)", symbol);
}
@@ -830,7 +846,7 @@
@@ -830,7 +846,7 @@ extern char * ExpandKadds(line, el)
value = strtol(kp3, (char **) 0, 16);
if ( (symbol = LookupSymbol(value, &sym)) ) {
if (sym.size)
@@ -164,7 +168,7 @@
else
elp += sprintf(elp, " (%s)", symbol);
}
@@ -841,7 +857,7 @@
@@ -841,7 +857,7 @@ extern char * ExpandKadds(line, el)
value = strtol(kp2, (char **) 0, 16);
if ( (symbol = LookupSymbol(value, &sym)) ) {
if (sym.size)
@@ -173,7 +177,7 @@
else
elp += sprintf(elp, " (%s)", symbol);
}
@@ -877,17 +893,24 @@
@@ -877,17 +893,24 @@ extern char * ExpandKadds(line, el)
strcat(elp, symbol);
elp += strlen(symbol);
if ( debugging )
@@ -200,8 +204,10 @@
}
strncat(elp, kp, value);
elp += value;
--- ksym_mod.c
+++ ksym_mod.c Tue Sep 9 16:51:08 2003
Index: ksym_mod.c
===================================================================
--- ksym_mod.c.orig 2000-09-12 23:15:28.000000000 +0200
+++ ksym_mod.c 2009-11-24 18:12:53.402379000 +0100
@@ -89,43 +89,101 @@
#include <errno.h>
#include <sys/fcntl.h>
@@ -329,7 +335,7 @@
char *name;
};
@@ -136,9 +194,7 @@
@@ -136,9 +194,7 @@ struct Module
char *name;
struct module module;
@@ -339,7 +345,7 @@
};
static int num_modules = 0;
@@ -155,8 +211,8 @@
@@ -155,8 +211,8 @@ extern int debugging;
/* Function prototypes. */
static void FreeModules(void);
@@ -350,7 +356,7 @@
static int symsort(const void *, const void *);
@@ -344,7 +400,7 @@
@@ -344,7 +400,7 @@ static void FreeModules()
* Purpose: This function is responsible for adding a module to
* the list of currently loaded modules.
*
@@ -359,7 +365,7 @@
*
* address:-> The address of the module.
*
@@ -355,7 +411,7 @@
@@ -355,7 +411,7 @@ static void FreeModules()
static int AddModule(address, symbol)
@@ -368,7 +374,7 @@
char *symbol;
@@ -403,10 +459,14 @@
@@ -403,10 +459,14 @@ static int AddModule(address, symbol)
Syslog(LOG_WARNING, "Error opening /dev/kmem\n");
return(0);
}
@@ -384,7 +390,7 @@
return(0);
}
if ( read(memfd, \
@@ -450,7 +510,7 @@
@@ -450,7 +510,7 @@ static int AddModule(address, symbol)
* Purpose: This function is responsible for adding a symbol name
* and its address to the symbol table.
*
@@ -393,7 +399,7 @@
*
* mp:-> A pointer to the module which the symbol is
* to be added to.
@@ -469,7 +529,7 @@
@@ -469,7 +529,7 @@ static int AddSymbol(mp, address, symbol
struct Module *mp;
@@ -402,7 +408,7 @@
char *symbol;
@@ -508,7 +568,7 @@
@@ -508,7 +568,7 @@ static int AddSymbol(mp, address, symbol
* Purpose: Find the symbol which is related to the given address from
* a kernel module.
*
@@ -411,7 +417,7 @@
*
* value:-> The address to be located.
*
@@ -524,7 +584,7 @@
@@ -524,7 +584,7 @@ static int AddSymbol(mp, address, symbol
extern char * LookupModuleSymbol(value, sym)
@@ -420,7 +426,7 @@
struct symbol *sym;
@@ -574,15 +634,9 @@
@@ -574,15 +634,9 @@ extern char * LookupModuleSymbol(value,
* If it is in this range we can at least return the
* name of the module.
*/
@@ -437,7 +443,7 @@
{
/*
* A special case needs to be checked for. The above
@@ -601,13 +655,8 @@
@@ -601,13 +655,8 @@ extern char * LookupModuleSymbol(value,
if ( mp->num_syms > 0 )
{
last = &mp->sym_array[mp->num_syms - 1];
@@ -452,7 +458,7 @@
sym->offset = value - last->value;
return(last->name);
}
@@ -617,12 +666,8 @@
@@ -617,12 +666,8 @@ extern char * LookupModuleSymbol(value,
* Return the module name and the offset of the
* faulting address in the module.
*/
@@ -466,8 +472,10 @@
return(mp->name);
}
}
--- ksyms.h
+++ ksyms.h Tue Sep 9 14:15:47 2003
Index: ksyms.h
===================================================================
--- ksyms.h.orig 1997-06-13 11:35:55.000000000 +0200
+++ ksyms.h 2009-11-24 18:12:53.406377000 +0100
@@ -20,16 +20,19 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/