Skip to content

Commit 12c05fb

Browse files
committed
code updated to with json format
1 parent 066a204 commit 12c05fb

29 files changed

+1112
-56
lines changed

.DS_Store

8 KB
Binary file not shown.

informix_auditing/README.txt

100755100644
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,5 @@ the definition of -DMITRACE_OFF=1 from the compilation.
5959

6060
If you are trying this code on a Unix platform, uncomment and modify line 32 of
6161
the Unix.mak file: uncomment and use your platform-specific include file.
62+
63+
onspaces -c -S sbsp4 -p /tmp/rawdev1 -o 500 -s 20480 -m /tmp/rawdev2 500 -Ms 150 -Mo 200 -Df "AVG_LO_SIZE=32"

informix_auditing/ReadMe.pdf

53.6 KB
Binary file not shown.

informix_auditing/RecordAudit.java

100755100644
File mode changed.

informix_auditing/UNIX.mak

100755100644
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# TARGET must be set to the location/filename
3030
# of the platform-specific make include file.
3131

32-
TARGET=$(INFORMIXDIR)/incl/dbdk/makeinc.linux
32+
TARGET=$(INFORMIXDIR)/incl/dbdk/makeinc.linux86_64
3333
include $(TARGET)
3434
# ===============================================================
3535
# This is the project title.
@@ -40,9 +40,11 @@ BINDIR = $(OS_NAME)-$(PLATFORM)
4040
# Platform independent code goes here.
4141
# The following code was generated by BladeSmith.
4242

43+
LCURL = -lcurl
4344
MI_INCL = $(INFORMIXDIR)/incl
4445
COPTS=-O -DMI_SERVBUILD -DMITRACE_OFF=1
4546
CFLAGS =$(COPTS) $(CC_PIC) -I$(MI_INCL)/public -I$(MI_INCL)
47+
PTCFLAGS =$(LCURL) $(COPTS) $(CC_PIC) -I$(MI_INCL)/public -I$(MI_INCL)
4648
LINKFLAGS = $(SHLIBLFLAG) $(SYMFLAG)
4749
LIBS =
4850

@@ -59,13 +61,13 @@ $(BINDIR)/auditing1.$(OBJSUFF) : auditing1.c
5961
$(CC) $(CFLAGS) -o $@ -c $?
6062

6163
$(BINDIR)/auditing2.$(OBJSUFF) : auditing2.c
62-
$(CC) $(CFLAGS) -o $@ -c $?
64+
$(CC) $(PTCFLAGS) -o $@ -c $?
6365

6466
$(BINDIR)/auditing3.$(OBJSUFF) : auditing3.c
6567
$(CC) $(CFLAGS) -o $@ -c $?
6668

6769
$(BINDIR)/audit_util.$(OBJSUFF) : audit_util.c
68-
$(CC) $(CFLAGS) -o $@ -c $?
70+
$(CC) $(PTCFLAGS) -o $@ -c $?
6971

7072
RecordAudit.class: RecordAudit.java
7173
javac RecordAudit.java
@@ -87,7 +89,7 @@ RecordAudit.jar: RecordAudit.class
8789
# Misspelled symbol names will not be resolved here or at load time.
8890
#
8991
$(PROJECT_LIBS) : $(PROJECT_OBJS)
90-
$(SHLIBLOD) $(LINKFLAGS) -o $(PROJECT_LIBS) \
92+
$(SHLIBLOD) $(LCURL) $(LINKFLAGS) -o $(PROJECT_LIBS) \
9193
$(PROJECT_OBJS) $(LIBS) $(DATABLADE_LIBS) 2> link.errs
9294

9395
server: $(PROJECT_LIBS)
@@ -99,5 +101,5 @@ $(BINDIR):
99101
-mkdir $(BINDIR)
100102

101103
INSTALL:
102-
cp $(PROJECT_TITLE).bld $(INFORMIXDIR)/extend/auditing/$(PROJECT_TITLE).bld
104+
cp $(BINDIR)/$(PROJECT_TITLE).bld $(INFORMIXDIR)/extend/auditing/$(PROJECT_TITLE).bld
103105
cp RecordAudit.jar $(INFORMIXDIR)/extend/auditing/RecordAudit.jar

informix_auditing/UNIX_x32.mak

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
# (c) Copyright IBM Corp. 2004 All rights reserved. */
2+
# */
3+
# This sample program is owned by International Business Machines */
4+
# Corporation or one of its subsidiaries ("IBM") and is copyrighted */
5+
# and licensed, not sold. */
6+
# */
7+
# You may copy, modify, and distribute this sample program in any */
8+
# form without payment to IBM, for any purpose including developing,*/
9+
# using, marketing or distributing programs that include or are */
10+
# derivative works of the sample program. */
11+
# */
12+
# The sample program is provided to you on an "AS IS" basis, without */
13+
# warranty of any kind. IBM HEREBY EXPRESSLY DISCLAIMS ALL */
14+
# WARRANTIES EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO*/
15+
# THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTIC-*/
16+
# ULAR PURPOSE. Some jurisdictions do not allow for the exclusion or */
17+
# limitation of implied warranties, so the above limitations or */
18+
# exclusions may not apply to you. IBM shall not be liable for any */
19+
# damages you suffer as a result of using, modifying or distributing */
20+
# the sample program or its derivatives. */
21+
# */
22+
# Each copy of any portion of this sample program or any derivative */
23+
# work, must include a the above copyright notice and disclaimer of */
24+
# warranty. */
25+
# */
26+
# ********************************************************************/
27+
28+
# This Makefile builds the logger libraries
29+
# TARGET must be set to the location/filename
30+
# of the platform-specific make include file.
31+
32+
TARGET=$(INFORMIXDIR)/incl/dbdk/makeinc.linux
33+
include $(TARGET)
34+
# ===============================================================
35+
# This is the project title.
36+
PROJECT_TITLE = auditing
37+
38+
BINDIR = $(OS_NAME)-$(PLATFORM)
39+
40+
# Platform independent code goes here.
41+
# The following code was generated by BladeSmith.
42+
LDFLAGS = -m32
43+
LCURL = -lcurl
44+
MI_INCL = $(INFORMIXDIR)/incl
45+
COPTS=-O -DMI_SERVBUILD -DMITRACE_OFF=1
46+
CFLAGS =$(LDFLAGS) $(COPTS) $(CC_PIC) -I$(MI_INCL)/public -I$(MI_INCL)
47+
PTCFLAGS =$(LDFLAGS) $(LCURL) $(COPTS) $(CC_PIC) -I$(MI_INCL)/public -I$(MI_INCL)
48+
LINKFLAGS = $(SHLIBLFLAG) $(SYMFLAG)
49+
LIBS =
50+
51+
PROJECT_OBJS= $(BINDIR)/auditing1.$(OBJSUFF) $(BINDIR)/auditing2.$(OBJSUFF) $(BINDIR)/auditing3.$(OBJSUFF) $(BINDIR)/audit_util.$(OBJSUFF)
52+
53+
PROJECT_LIBS=$(BINDIR)/$(PROJECT_TITLE).$(BLDLIB_SUFF)
54+
55+
all: $(BINDIR) RecordAudit.jar
56+
$(MAKE) $(MAKEFLAGS) -f UNIX.mak server
57+
58+
# Construct the object file.
59+
60+
$(BINDIR)/auditing1.$(OBJSUFF) : auditing1.c
61+
$(CC) $(CFLAGS) -o $@ -c $?
62+
63+
$(BINDIR)/auditing2.$(OBJSUFF) : auditing2.c
64+
$(CC) $(PTCFLAGS) -o $@ -c $?
65+
66+
$(BINDIR)/auditing3.$(OBJSUFF) : auditing3.c
67+
$(CC) $(CFLAGS) -o $@ -c $?
68+
69+
$(BINDIR)/audit_util.$(OBJSUFF) : audit_util.c
70+
$(CC) $(PTCFLAGS) -o $@ -c $?
71+
72+
RecordAudit.class: RecordAudit.java
73+
javac RecordAudit.java
74+
75+
RecordAudit.jar: RecordAudit.class
76+
jar cf RecordAudit.jar RecordAudit.class
77+
78+
# Construct the shared library.
79+
# Do *NOT* link with client side libraries.
80+
# You will see many undefined symbols during linking. This is
81+
# normal since those symbols are resolved when the server loads
82+
# your shared object.
83+
#
84+
# ATTENTION:
85+
# The ld "Symbol referencing errors" warning is normal.
86+
# These unresolved symbols are resolved when the server
87+
# loads the shared object. This list should be examined, however,
88+
# for symbol names that may have been inadvertently misspelled.
89+
# Misspelled symbol names will not be resolved here or at load time.
90+
#
91+
$(PROJECT_LIBS) : $(PROJECT_OBJS)
92+
$(SHLIBLOD) $(LDFLAGS) $(LCURL) $(LINKFLAGS) -o $(PROJECT_LIBS) \
93+
$(PROJECT_OBJS) $(LIBS) $(DATABLADE_LIBS) 2> link.errs
94+
95+
server: $(PROJECT_LIBS)
96+
97+
clean:
98+
$(RM) $(RMFLAGS) $(PROJECT_LIBS) $(PROJECT_OBJS) RecordAudit.class RecordAudit.jar
99+
100+
$(BINDIR):
101+
-mkdir $(BINDIR)
102+
103+
INSTALL:
104+
cp $(BINDIR)/$(PROJECT_TITLE).bld $(INFORMIXDIR)/extend/auditing/$(PROJECT_TITLE).bld
105+
cp RecordAudit.jar $(INFORMIXDIR)/extend/auditing/RecordAudit.jar

informix_auditing/WinNT.mak

100755100644
File mode changed.

0 commit comments

Comments
 (0)