source: scripts/patches/sysklogd-1.4.1.patch@ 9d5bb4a

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 9d5bb4a was 7f65c0e, checked in by Jim Gifford <clfs@…>, 19 years ago

r625@server (orig r623): jim | 2005-10-31 12:43:24 -0800
Final Move

  • Property mode set to 100755
File size: 2.3 KB
RevLine 
[617118d]1diff -Naurw sysklogd-1.4.1/Makefile sysklogd-1.4.1.lsb/Makefile
2--- sysklogd-1.4.1/Makefile Mon Oct 12 14:25:15 1998
3+++ sysklogd-1.4.1.lsb/Makefile Thu Oct 10 14:47:27 2002
4@@ -3,7 +3,7 @@
5 CC= gcc
6 #CFLAGS= -g -DSYSV -Wall
7 #LDFLAGS= -g
8-CFLAGS= $(RPM_OPT_FLAGS) -O3 -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce
9+CFLAGS= $(RPM_OPT_FLAGS) -DSYSV -D_GNU_SOURCE -Wall
10 LDFLAGS= -s
11
12 # Look where your install program is.
13diff -Naurw sysklogd-1.4.1/ksym_mod.c sysklogd-1.4.1.lsb/ksym_mod.c
14--- sysklogd-1.4.1/ksym_mod.c Tue Sep 12 15:15:28 2000
15+++ sysklogd-1.4.1.lsb/ksym_mod.c Thu Oct 10 14:46:27 2002
16@@ -93,7 +93,7 @@
17 #include <linux/time.h>
18 #include <linux/module.h>
19 #else /* __GLIBC__ */
20-#include <linux/module.h>
21+#include "module.h"
22 extern __off64_t lseek64 __P ((int __fd, __off64_t __offset, int __whence));
23 extern int get_kernel_syms __P ((struct kernel_sym *__table));
24 #endif /* __GLIBC__ */
25diff -Naurw sysklogd-1.4.1/module.h sysklogd-1.4.1.lsb/module.h
26--- sysklogd-1.4.1/module.h Wed Dec 31 17:00:00 1969
27+++ sysklogd-1.4.1.lsb/module.h Thu Oct 10 14:46:06 2002
28@@ -0,0 +1,62 @@
29+/* this file eliminates the need to include <kernel/module.h> */
30+/* Module definitions for klogd's module support */
31+struct kernel_sym
32+{
33+ unsigned long value;
34+ char name[60];
35+};
36+
37+struct module_symbol
38+{
39+ unsigned long value;
40+ const char *name;
41+};
42+
43+struct module_ref
44+{
45+ struct module *dep; /* "parent" pointer */
46+ struct module *ref; /* "child" pointer */
47+ struct module_ref *next_ref;
48+};
49+
50+struct module_info
51+{
52+ unsigned long addr;
53+ unsigned long size;
54+ unsigned long flags;
55+ long usecount;
56+};
57+
58+
59+typedef struct { volatile int counter; } atomic_t;
60+
61+struct module
62+{
63+ unsigned long size_of_struct; /* == sizeof(module) */
64+ struct module *next;
65+ const char *name;
66+ unsigned long size;
67+
68+ union
69+ {
70+ atomic_t usecount;
71+ long pad;
72+ } uc; /* Needs to keep its size - so says rth */
73+
74+ unsigned long flags; /* AUTOCLEAN et al */
75+
76+ unsigned nsyms;
77+ unsigned ndeps;
78+
79+ struct module_symbol *syms;
80+ struct module_ref *deps;
81+ struct module_ref *refs;
82+ int (*init)(void);
83+ void (*cleanup)(void);
84+ const struct exception_table_entry *ex_table_start;
85+ const struct exception_table_entry *ex_table_end;
86+#ifdef __alpha__
87+ unsigned long gp;
88+#endif
89+};
90+
91
92
Note: See TracBrowser for help on using the repository browser.