]> git.pld-linux.org Git - packages/nss.git/blame - nss-dbm.patch
- ''small,, mistake
[packages/nss.git] / nss-dbm.patch
CommitLineData
c4d9c77a
JB
1diff -Nur nss-3.10/mozilla/security/dbm.orig/config/config.mk nss-3.10/mozilla/security/dbm/config/config.mk
2--- nss-3.10/mozilla/security/dbm.orig/config/config.mk 1970-01-01 01:00:00.000000000 +0100
3+++ nss-3.10/mozilla/security/dbm/config/config.mk 2005-04-29 09:18:43.769641952 +0200
4@@ -0,0 +1,67 @@
5+#! gmake
6+#
7+# The contents of this file are subject to the Mozilla Public
8+# License Version 1.1 (the "License"); you may not use this file
9+# except in compliance with the License. You may obtain a copy of
10+# the License at http://www.mozilla.org/MPL/
11+#
12+# Software distributed under the License is distributed on an "AS
13+# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
14+# implied. See the License for the specific language governing
15+# rights and limitations under the License.
16+#
17+# The Original Code is the Netscape security libraries.
18+#
19+# The Initial Developer of the Original Code is Netscape
20+# Communications Corporation. Portions created by Netscape are
21+# Copyright (C) 1994-2000 Netscape Communications Corporation. All
22+# Rights Reserved.
23+#
24+# Contributor(s):
25+#
26+# Alternatively, the contents of this file may be used under the
27+# terms of the GNU General Public License Version 2 or later (the
28+# "GPL"), in which case the provisions of the GPL are applicable
29+# instead of those above. If you wish to allow use of your
30+# version of this file only under the terms of the GPL and not to
31+# allow others to use your version of this file under the MPL,
32+# indicate your decision by deleting the provisions above and
33+# replace them with the notice and other provisions required by
34+# the GPL. If you do not delete the provisions above, a recipient
35+# may use your version of this file under either the MPL or the
36+# GPL.
37+#
38+
39+#
40+# These macros are defined by mozilla's configure script.
41+# We define them manually here.
42+#
43+
44+DEFINES += -DSTDC_HEADERS -DHAVE_STRERROR
45+
46+#
47+# Most platforms have snprintf, so it's simpler to list the exceptions.
48+#
49+HAVE_SNPRINTF = 1
50+#
51+# OSF1 V4.0D doesn't have snprintf but V5.0A does.
52+#
53+ifeq ($(OS_TARGET)$(OS_RELEASE),OSF1V4.0D)
54+HAVE_SNPRINTF =
55+endif
56+ifdef HAVE_SNPRINTF
57+DEFINES += -DHAVE_SNPRINTF
58+endif
59+
60+ifeq (,$(filter-out IRIX Linux,$(OS_TARGET)))
61+DEFINES += -DHAVE_SYS_CDEFS_H
62+endif
63+
64+ifeq (,$(filter-out DGUX NCR ReliantUNIX SCO_SV SCOOS UNIXWARE,$(OS_TARGET)))
65+DEFINES += -DHAVE_SYS_BYTEORDER_H
66+endif
67+
68+#
69+# None of the platforms that we are interested in need to
70+# define HAVE_MEMORY_H.
71+#
72diff -Nur nss-3.10/mozilla/security/dbm.orig/config/CVS/Entries nss-3.10/mozilla/security/dbm/config/CVS/Entries
73--- nss-3.10/mozilla/security/dbm.orig/config/CVS/Entries 1970-01-01 01:00:00.000000000 +0100
74+++ nss-3.10/mozilla/security/dbm/config/CVS/Entries 2005-04-29 09:18:43.771641648 +0200
75@@ -0,0 +1,2 @@
76+/config.mk/1.4/Fri Apr 29 07:18:43 2005//TNSS_3_10_RTM
77+D
78diff -Nur nss-3.10/mozilla/security/dbm.orig/config/CVS/Repository nss-3.10/mozilla/security/dbm/config/CVS/Repository
79--- nss-3.10/mozilla/security/dbm.orig/config/CVS/Repository 1970-01-01 01:00:00.000000000 +0100
80+++ nss-3.10/mozilla/security/dbm/config/CVS/Repository 2004-07-03 02:41:37.000000000 +0200
81@@ -0,0 +1 @@
82+mozilla/security/dbm/config
83diff -Nur nss-3.10/mozilla/security/dbm.orig/config/CVS/Root nss-3.10/mozilla/security/dbm/config/CVS/Root
84--- nss-3.10/mozilla/security/dbm.orig/config/CVS/Root 1970-01-01 01:00:00.000000000 +0100
85+++ nss-3.10/mozilla/security/dbm/config/CVS/Root 2004-07-03 02:41:37.000000000 +0200
86@@ -0,0 +1 @@
87+:pserver:tfox%netscape.com@cvs.mozilla.org:/cvsroot
88diff -Nur nss-3.10/mozilla/security/dbm.orig/config/CVS/Tag nss-3.10/mozilla/security/dbm/config/CVS/Tag
89--- nss-3.10/mozilla/security/dbm.orig/config/CVS/Tag 1970-01-01 01:00:00.000000000 +0100
90+++ nss-3.10/mozilla/security/dbm/config/CVS/Tag 2005-04-29 09:18:43.770641800 +0200
91@@ -0,0 +1 @@
92+NNSS_3_10_RTM
93diff -Nur nss-3.10/mozilla/security/dbm.orig/CVS/Entries nss-3.10/mozilla/security/dbm/CVS/Entries
94--- nss-3.10/mozilla/security/dbm.orig/CVS/Entries 1970-01-01 01:00:00.000000000 +0100
95+++ nss-3.10/mozilla/security/dbm/CVS/Entries 2005-04-29 09:18:43.765642560 +0200
96@@ -0,0 +1,6 @@
97+D/config////
98+D/include////
99+D/src////
100+D/tests////
101+/Makefile/1.1/Mon Mar 12 22:06:01 2001//TNSS_3_10_RTM
102+/manifest.mn/1.3/Fri Apr 29 07:18:43 2005//TNSS_3_10_RTM
103diff -Nur nss-3.10/mozilla/security/dbm.orig/CVS/Repository nss-3.10/mozilla/security/dbm/CVS/Repository
104--- nss-3.10/mozilla/security/dbm.orig/CVS/Repository 1970-01-01 01:00:00.000000000 +0100
105+++ nss-3.10/mozilla/security/dbm/CVS/Repository 2004-07-03 02:41:37.000000000 +0200
106@@ -0,0 +1 @@
107+mozilla/security/dbm
108diff -Nur nss-3.10/mozilla/security/dbm.orig/CVS/Root nss-3.10/mozilla/security/dbm/CVS/Root
109--- nss-3.10/mozilla/security/dbm.orig/CVS/Root 1970-01-01 01:00:00.000000000 +0100
110+++ nss-3.10/mozilla/security/dbm/CVS/Root 2004-07-03 02:41:37.000000000 +0200
111@@ -0,0 +1 @@
112+:pserver:tfox%netscape.com@cvs.mozilla.org:/cvsroot
113diff -Nur nss-3.10/mozilla/security/dbm.orig/CVS/Tag nss-3.10/mozilla/security/dbm/CVS/Tag
114--- nss-3.10/mozilla/security/dbm.orig/CVS/Tag 1970-01-01 01:00:00.000000000 +0100
115+++ nss-3.10/mozilla/security/dbm/CVS/Tag 2005-04-29 09:18:43.764642712 +0200
116@@ -0,0 +1 @@
117+NNSS_3_10_RTM
118diff -Nur nss-3.10/mozilla/security/dbm.orig/include/CVS/Entries nss-3.10/mozilla/security/dbm/include/CVS/Entries
119--- nss-3.10/mozilla/security/dbm.orig/include/CVS/Entries 1970-01-01 01:00:00.000000000 +0100
120+++ nss-3.10/mozilla/security/dbm/include/CVS/Entries 2005-04-29 09:18:43.781640128 +0200
121@@ -0,0 +1,3 @@
122+/Makefile/1.3/Sun Oct 14 02:33:15 2001//TNSS_3_10_RTM
123+/manifest.mn/1.2/Tue May 8 23:31:04 2001//TNSS_3_10_RTM
124+D
125diff -Nur nss-3.10/mozilla/security/dbm.orig/include/CVS/Repository nss-3.10/mozilla/security/dbm/include/CVS/Repository
126--- nss-3.10/mozilla/security/dbm.orig/include/CVS/Repository 1970-01-01 01:00:00.000000000 +0100
127+++ nss-3.10/mozilla/security/dbm/include/CVS/Repository 2004-07-03 02:41:37.000000000 +0200
128@@ -0,0 +1 @@
129+mozilla/security/dbm/include
130diff -Nur nss-3.10/mozilla/security/dbm.orig/include/CVS/Root nss-3.10/mozilla/security/dbm/include/CVS/Root
131--- nss-3.10/mozilla/security/dbm.orig/include/CVS/Root 1970-01-01 01:00:00.000000000 +0100
132+++ nss-3.10/mozilla/security/dbm/include/CVS/Root 2004-07-03 02:41:37.000000000 +0200
133@@ -0,0 +1 @@
134+:pserver:tfox%netscape.com@cvs.mozilla.org:/cvsroot
135diff -Nur nss-3.10/mozilla/security/dbm.orig/include/CVS/Tag nss-3.10/mozilla/security/dbm/include/CVS/Tag
136--- nss-3.10/mozilla/security/dbm.orig/include/CVS/Tag 1970-01-01 01:00:00.000000000 +0100
137+++ nss-3.10/mozilla/security/dbm/include/CVS/Tag 2005-04-29 09:18:43.779640432 +0200
138@@ -0,0 +1 @@
139+NNSS_3_10_RTM
140diff -Nur nss-3.10/mozilla/security/dbm.orig/include/Makefile nss-3.10/mozilla/security/dbm/include/Makefile
141--- nss-3.10/mozilla/security/dbm.orig/include/Makefile 1970-01-01 01:00:00.000000000 +0100
142+++ nss-3.10/mozilla/security/dbm/include/Makefile 2001-10-14 04:33:15.000000000 +0200
143@@ -0,0 +1,76 @@
144+#! gmake
145+#
146+# The contents of this file are subject to the Mozilla Public
147+# License Version 1.1 (the "License"); you may not use this file
148+# except in compliance with the License. You may obtain a copy of
149+# the License at http://www.mozilla.org/MPL/
150+#
151+# Software distributed under the License is distributed on an "AS
152+# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
153+# implied. See the License for the specific language governing
154+# rights and limitations under the License.
155+#
156+# The Original Code is the Netscape security libraries.
157+#
158+# The Initial Developer of the Original Code is Netscape
159+# Communications Corporation. Portions created by Netscape are
160+# Copyright (C) 1994-2000 Netscape Communications Corporation. All
161+# Rights Reserved.
162+#
163+# Contributor(s):
164+#
165+# Alternatively, the contents of this file may be used under the
166+# terms of the GNU General Public License Version 2 or later (the
167+# "GPL"), in which case the provisions of the GPL are applicable
168+# instead of those above. If you wish to allow use of your
169+# version of this file only under the terms of the GPL and not to
170+# allow others to use your version of this file under the MPL,
171+# indicate your decision by deleting the provisions above and
172+# replace them with the notice and other provisions required by
173+# the GPL. If you do not delete the provisions above, a recipient
174+# may use your version of this file under either the MPL or the
175+# GPL.
176+#
177+
178+#######################################################################
179+# (1) Include initial platform-independent assignments (MANDATORY). #
180+#######################################################################
181+
182+include manifest.mn
183+
184+#######################################################################
185+# (2) Include "global" configuration information. (OPTIONAL) #
186+#######################################################################
187+
188+include $(CORE_DEPTH)/coreconf/config.mk
189+
190+#######################################################################
191+# (3) Include "component" configuration information. (OPTIONAL) #
192+#######################################################################
193+
194+
195+
196+#######################################################################
197+# (4) Include "local" platform-dependent assignments (OPTIONAL). #
198+#######################################################################
199+
200+
201+
202+#######################################################################
203+# (5) Execute "global" rules. (OPTIONAL) #
204+#######################################################################
205+
206+include $(CORE_DEPTH)/coreconf/rules.mk
207+
208+#######################################################################
209+# (6) Execute "component" rules. (OPTIONAL) #
210+#######################################################################
211+
212+
213+
214+#######################################################################
215+# (7) Execute "local" rules. (OPTIONAL). #
216+#######################################################################
217+
218+
219+
220diff -Nur nss-3.10/mozilla/security/dbm.orig/include/manifest.mn nss-3.10/mozilla/security/dbm/include/manifest.mn
221--- nss-3.10/mozilla/security/dbm.orig/include/manifest.mn 1970-01-01 01:00:00.000000000 +0100
222+++ nss-3.10/mozilla/security/dbm/include/manifest.mn 2001-05-09 01:31:04.000000000 +0200
223@@ -0,0 +1,57 @@
224+#! gmake
225+#
226+# The contents of this file are subject to the Mozilla Public
227+# License Version 1.1 (the "License"); you may not use this file
228+# except in compliance with the License. You may obtain a copy of
229+# the License at http://www.mozilla.org/MPL/
230+#
231+# Software distributed under the License is distributed on an "AS
232+# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
233+# implied. See the License for the specific language governing
234+# rights and limitations under the License.
235+#
236+# The Original Code is the Netscape security libraries.
237+#
238+# The Initial Developer of the Original Code is Netscape
239+# Communications Corporation. Portions created by Netscape are
240+# Copyright (C) 1994-2000 Netscape Communications Corporation. All
241+# Rights Reserved.
242+#
243+# Contributor(s):
244+#
245+# Alternatively, the contents of this file may be used under the
246+# terms of the GNU General Public License Version 2 or later (the
247+# "GPL"), in which case the provisions of the GPL are applicable
248+# instead of those above. If you wish to allow use of your
249+# version of this file only under the terms of the GPL and not to
250+# allow others to use your version of this file under the MPL,
251+# indicate your decision by deleting the provisions above and
252+# replace them with the notice and other provisions required by
253+# the GPL. If you do not delete the provisions above, a recipient
254+# may use your version of this file under either the MPL or the
255+# GPL.
256+#
257+
258+CORE_DEPTH = ../..
259+
260+VPATH = $(CORE_DEPTH)/../dbm/include
261+
262+MODULE = dbm
263+
264+EXPORTS = nsres.h \
265+ cdefs.h \
266+ mcom_db.h \
267+ ncompat.h \
268+ winfile.h \
269+ $(NULL)
270+
271+PRIVATE_EXPORTS = hsearch.h \
272+ page.h \
273+ extern.h \
274+ ndbm.h \
275+ queue.h \
276+ hash.h \
277+ mpool.h \
278+ search.h \
279+ $(NULL)
280+
281diff -Nur nss-3.10/mozilla/security/dbm.orig/Makefile nss-3.10/mozilla/security/dbm/Makefile
282--- nss-3.10/mozilla/security/dbm.orig/Makefile 1970-01-01 01:00:00.000000000 +0100
283+++ nss-3.10/mozilla/security/dbm/Makefile 2001-03-12 23:06:01.000000000 +0100
284@@ -0,0 +1,80 @@
285+#! gmake
286+#
287+# The contents of this file are subject to the Mozilla Public
288+# License Version 1.1 (the "License"); you may not use this file
289+# except in compliance with the License. You may obtain a copy of
290+# the License at http://www.mozilla.org/MPL/
291+#
292+# Software distributed under the License is distributed on an "AS
293+# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
294+# implied. See the License for the specific language governing
295+# rights and limitations under the License.
296+#
297+# The Original Code is the Netscape security libraries.
298+#
299+# The Initial Developer of the Original Code is Netscape
300+# Communications Corporation. Portions created by Netscape are
301+# Copyright (C) 1994-2000 Netscape Communications Corporation. All
302+# Rights Reserved.
303+#
304+# Contributor(s):
305+#
306+# Alternatively, the contents of this file may be used under the
307+# terms of the GNU General Public License Version 2 or later (the
308+# "GPL"), in which case the provisions of the GPL are applicable
309+# instead of those above. If you wish to allow use of your
310+# version of this file only under the terms of the GPL and not to
311+# allow others to use your version of this file under the MPL,
312+# indicate your decision by deleting the provisions above and
313+# replace them with the notice and other provisions required by
314+# the GPL. If you do not delete the provisions above, a recipient
315+# may use your version of this file under either the MPL or the
316+# GPL.
317+#
318+
319+#######################################################################
320+# (1) Include initial platform-independent assignments (MANDATORY). #
321+#######################################################################
322+
323+include manifest.mn
324+
325+#######################################################################
326+# (2) Include "global" configuration information. (OPTIONAL) #
327+#######################################################################
328+
329+include $(CORE_DEPTH)/coreconf/config.mk
330+
331+#######################################################################
332+# (3) Include "component" configuration information. (OPTIONAL) #
333+#######################################################################
334+
335+
336+
337+#######################################################################
338+# (4) Include "local" platform-dependent assignments (OPTIONAL). #
339+#######################################################################
340+
341+
342+
343+#######################################################################
344+# (5) Execute "global" rules. (OPTIONAL) #
345+#######################################################################
346+
347+include $(CORE_DEPTH)/coreconf/rules.mk
348+
349+#######################################################################
350+# (6) Execute "component" rules. (OPTIONAL) #
351+#######################################################################
352+
353+
354+
355+#######################################################################
356+# (7) Execute "local" rules. (OPTIONAL). #
357+#######################################################################
358+
359+coreconf_hack:
360+ cd ../coreconf; gmake
361+ gmake import
362+
363+RelEng_bld: coreconf_hack
364+ gmake
365diff -Nur nss-3.10/mozilla/security/dbm.orig/manifest.mn nss-3.10/mozilla/security/dbm/manifest.mn
366--- nss-3.10/mozilla/security/dbm.orig/manifest.mn 1970-01-01 01:00:00.000000000 +0100
367+++ nss-3.10/mozilla/security/dbm/manifest.mn 2005-04-29 09:18:43.763642864 +0200
368@@ -0,0 +1,45 @@
369+#! gmake
370+#
371+# The contents of this file are subject to the Mozilla Public
372+# License Version 1.1 (the "License"); you may not use this file
373+# except in compliance with the License. You may obtain a copy of
374+# the License at http://www.mozilla.org/MPL/
375+#
376+# Software distributed under the License is distributed on an "AS
377+# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
378+# implied. See the License for the specific language governing
379+# rights and limitations under the License.
380+#
381+# The Original Code is the Netscape security libraries.
382+#
383+# The Initial Developer of the Original Code is Netscape
384+# Communications Corporation. Portions created by Netscape are
385+# Copyright (C) 1994-2000 Netscape Communications Corporation. All
386+# Rights Reserved.
387+#
388+# Contributor(s):
389+#
390+# Alternatively, the contents of this file may be used under the
391+# terms of the GNU General Public License Version 2 or later (the
392+# "GPL"), in which case the provisions of the GPL are applicable
393+# instead of those above. If you wish to allow use of your
394+# version of this file only under the terms of the GPL and not to
395+# allow others to use your version of this file under the MPL,
396+# indicate your decision by deleting the provisions above and
397+# replace them with the notice and other provisions required by
398+# the GPL. If you do not delete the provisions above, a recipient
399+# may use your version of this file under either the MPL or the
400+# GPL.
401+#
402+
403+CORE_DEPTH = ..
404+
405+MODULE = dbm
406+
407+IMPORTS = nspr20/v4.4.1
408+
409+RELEASE = dbm
410+
411+DIRS = include \
412+ src \
413+ $(NULL)
414diff -Nur nss-3.10/mozilla/security/dbm.orig/src/config.mk nss-3.10/mozilla/security/dbm/src/config.mk
415--- nss-3.10/mozilla/security/dbm.orig/src/config.mk 1970-01-01 01:00:00.000000000 +0100
416+++ nss-3.10/mozilla/security/dbm/src/config.mk 2005-04-29 09:18:43.983609424 +0200
417@@ -0,0 +1,63 @@
418+#! gmake
419+#
420+# The contents of this file are subject to the Mozilla Public
421+# License Version 1.1 (the "License"); you may not use this file
422+# except in compliance with the License. You may obtain a copy of
423+# the License at http://www.mozilla.org/MPL/
424+#
425+# Software distributed under the License is distributed on an "AS
426+# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
427+# implied. See the License for the specific language governing
428+# rights and limitations under the License.
429+#
430+# The Original Code is the Netscape security libraries.
431+#
432+# The Initial Developer of the Original Code is Netscape
433+# Communications Corporation. Portions created by Netscape are
434+# Copyright (C) 1994-2000 Netscape Communications Corporation. All
435+# Rights Reserved.
436+#
437+# Contributor(s):
438+#
439+# Alternatively, the contents of this file may be used under the
440+# terms of the GNU General Public License Version 2 or later (the
441+# "GPL"), in which case the provisions of the GPL are applicable
442+# instead of those above. If you wish to allow use of your
443+# version of this file only under the terms of the GPL and not to
444+# allow others to use your version of this file under the MPL,
445+# indicate your decision by deleting the provisions above and
446+# replace them with the notice and other provisions required by
447+# the GPL. If you do not delete the provisions above, a recipient
448+# may use your version of this file under either the MPL or the
449+# GPL.
450+#
451+
452+DEFINES += -DMEMMOVE -D__DBINTERFACE_PRIVATE $(SECURITY_FLAG)
453+
454+INCLUDES += -I$(CORE_DEPTH)/../dbm/include
455+
456+#
457+# Currently, override TARGETS variable so that only static libraries
458+# are specifed as dependencies within rules.mk.
459+#
460+
461+TARGETS = $(LIBRARY)
462+SHARED_LIBRARY =
463+IMPORT_LIBRARY =
464+PURE_LIBRARY =
465+PROGRAM =
466+
467+ifdef SHARED_LIBRARY
468+ ifeq (,$(filter-out WINNT WIN95 WINCE,$(OS_TARGET))) # list omits WIN16
469+ DLLBASE=/BASE:0x30000000
470+ RES=$(OBJDIR)/dbm.res
471+ RESNAME=../include/dbm.rc
472+ endif
473+ ifeq ($(DLL_SUFFIX),dll)
474+ DEFINES += -D_DLL
475+ endif
476+endif
477+
478+ifeq ($(OS_TARGET),AIX)
479+ OS_LIBS += -lc_r
480+endif
481diff -Nur nss-3.10/mozilla/security/dbm.orig/src/CVS/Entries nss-3.10/mozilla/security/dbm/src/CVS/Entries
482--- nss-3.10/mozilla/security/dbm.orig/src/CVS/Entries 1970-01-01 01:00:00.000000000 +0100
483+++ nss-3.10/mozilla/security/dbm/src/CVS/Entries 2005-04-29 09:18:43.988608664 +0200
484@@ -0,0 +1,6 @@
485+/Makefile/1.4/Sun Oct 14 02:33:16 2001//TNSS_3_10_RTM
486+/config.mk/1.4/Fri Apr 29 07:18:43 2005//TNSS_3_10_RTM
487+/dirent.c/1.1/Thu Nov 22 00:13:54 2001//TNSS_3_10_RTM
488+/dirent.h/1.1/Thu Nov 22 00:13:54 2001//TNSS_3_10_RTM
489+/manifest.mn/1.4/Thu Nov 22 00:13:56 2001//TNSS_3_10_RTM
490+D
491diff -Nur nss-3.10/mozilla/security/dbm.orig/src/CVS/Repository nss-3.10/mozilla/security/dbm/src/CVS/Repository
492--- nss-3.10/mozilla/security/dbm.orig/src/CVS/Repository 1970-01-01 01:00:00.000000000 +0100
493+++ nss-3.10/mozilla/security/dbm/src/CVS/Repository 2004-07-03 02:41:37.000000000 +0200
494@@ -0,0 +1 @@
495+mozilla/security/dbm/src
496diff -Nur nss-3.10/mozilla/security/dbm.orig/src/CVS/Root nss-3.10/mozilla/security/dbm/src/CVS/Root
497--- nss-3.10/mozilla/security/dbm.orig/src/CVS/Root 1970-01-01 01:00:00.000000000 +0100
498+++ nss-3.10/mozilla/security/dbm/src/CVS/Root 2004-07-03 02:41:37.000000000 +0200
499@@ -0,0 +1 @@
500+:pserver:tfox%netscape.com@cvs.mozilla.org:/cvsroot
501diff -Nur nss-3.10/mozilla/security/dbm.orig/src/CVS/Tag nss-3.10/mozilla/security/dbm/src/CVS/Tag
502--- nss-3.10/mozilla/security/dbm.orig/src/CVS/Tag 1970-01-01 01:00:00.000000000 +0100
503+++ nss-3.10/mozilla/security/dbm/src/CVS/Tag 2005-04-29 09:18:43.987608816 +0200
504@@ -0,0 +1 @@
505+NNSS_3_10_RTM
506diff -Nur nss-3.10/mozilla/security/dbm.orig/src/dirent.c nss-3.10/mozilla/security/dbm/src/dirent.c
507--- nss-3.10/mozilla/security/dbm.orig/src/dirent.c 1970-01-01 01:00:00.000000000 +0100
508+++ nss-3.10/mozilla/security/dbm/src/dirent.c 2001-11-22 01:13:54.000000000 +0100
509@@ -0,0 +1,348 @@
510+#ifdef OS2
511+
512+#include <stdio.h>
513+#include <stdlib.h>
514+#include <string.h>
515+#include <ctype.h>
516+
517+#include <dirent.h>
518+#include <errno.h>
519+
520+/*#ifndef __EMX__
521+#include <libx.h>
522+#endif */
523+
524+#define INCL_DOSFILEMGR
525+#define INCL_DOSERRORS
526+#include <os2.h>
527+
528+#if OS2 >= 2
529+# define FFBUF FILEFINDBUF3
530+# define Word ULONG
531+ /*
532+ * LS20 recommends a request count of 100, but according to the
533+ * APAR text it does not lead to missing files, just to funny
534+ * numbers of returned entries.
535+ *
536+ * LS30 HPFS386 requires a count greater than 2, or some files
537+ * are missing (those starting with a character less that '.').
538+ *
539+ * Novell looses entries which overflow the buffer. In previous
540+ * versions of dirent2, this could have lead to missing files
541+ * when the average length of 100 directory entries was 40 bytes
542+ * or more (quite unlikely for files on a Novell server).
543+ *
544+ * Conclusion: Make sure that the entries all fit into the buffer
545+ * and that the buffer is large enough for more than 2 entries
546+ * (each entry is at most 300 bytes long). And ignore the LS20
547+ * effect.
548+ */
549+# define Count 25
550+# define BufSz (25 * (sizeof(FILEFINDBUF3)+1))
551+#else
552+# define FFBUF FILEFINDBUF
553+# define Word USHORT
554+# define BufSz 1024
555+# define Count 3
556+#endif
557+
558+#if defined(__IBMC__) || defined(__IBMCPP__)
559+ #define error(rc) _doserrno = rc, errno = EOS2ERR
560+#elif defined(MICROSOFT)
561+ #define error(rc) _doserrno = rc, errno = 255
562+#else
563+ #define error(rc) errno = 255
564+#endif
565+
566+struct _dirdescr {
567+ HDIR handle; /* DosFindFirst handle */
568+ char fstype; /* filesystem type */
569+ Word count; /* valid entries in <ffbuf> */
570+ long number; /* absolute number of next entry */
571+ int index; /* relative number of next entry */
572+ FFBUF * next; /* pointer to next entry */
573+ char name[MAXPATHLEN+3]; /* directory name */
574+ unsigned attrmask; /* attribute mask for seekdir */
575+ struct dirent entry; /* buffer for directory entry */
576+ BYTE ffbuf[BufSz];
577+};
578+
579+/*
580+ * Return first char of filesystem type, or 0 if unknown.
581+ */
582+static char
583+getFSType(const char *path)
584+{
585+ static char cache[1+26];
586+ char drive[3], info[512];
587+ Word unit, infolen;
588+ char r;
589+
590+ if (isalpha(path[0]) && path[1] == ':') {
591+ unit = toupper(path[0]) - '@';
592+ path += 2;
593+ } else {
594+ ULONG driveMap;
595+#if OS2 >= 2
596+ if (DosQueryCurrentDisk(&unit, &driveMap))
597+#else
598+ if (DosQCurDisk(&unit, &driveMap))
599+#endif
600+ return 0;
601+ }
602+
603+ if ((path[0] == '\\' || path[0] == '/')
604+ && (path[1] == '\\' || path[1] == '/'))
605+ return 0;
606+
607+ if (cache [unit])
608+ return cache [unit];
609+
610+ drive[0] = '@' + unit;
611+ drive[1] = ':';
612+ drive[2] = '\0';
613+ infolen = sizeof info;
614+#if OS2 >= 2
615+ if (DosQueryFSAttach(drive, 0, FSAIL_QUERYNAME, (PVOID)info, &infolen))
616+ return 0;
617+ if (infolen >= sizeof(FSQBUFFER2)) {
618+ FSQBUFFER2 *p = (FSQBUFFER2 *)info;
619+ r = p->szFSDName[p->cbName];
620+ } else
621+#else
622+ if (DosQFSAttach((PSZ)drive, 0, FSAIL_QUERYNAME, (PVOID)info, &infolen, 0))
623+ return 0;
624+ if (infolen >= 9) {
625+ char *p = info + sizeof(USHORT);
626+ p += sizeof(USHORT) + *(USHORT *)p + 1 + sizeof(USHORT);
627+ r = *p;
628+ } else
629+#endif
630+ r = 0;
631+ return cache [unit] = r;
632+}
633+
634+char *
635+abs_path(const char *name, char *buffer, int len)
636+{
637+ char buf[4];
638+ if (isalpha(name[0]) && name[1] == ':' && name[2] == '\0') {
639+ buf[0] = name[0];
640+ buf[1] = name[1];
641+ buf[2] = '.';
642+ buf[3] = '\0';
643+ name = buf;
644+ }
645+#if OS2 >= 2
646+ if (DosQueryPathInfo((PSZ)name, FIL_QUERYFULLNAME, buffer, len))
647+#else
648+ if (DosQPathInfo((PSZ)name, FIL_QUERYFULLNAME, (PBYTE)buffer, len, 0L))
649+#endif
650+ return NULL;
651+ return buffer;
652+}
653+
654+DIR *
655+openxdir(const char *path, unsigned att_mask)
656+{
657+ DIR *dir;
658+ char name[MAXPATHLEN+3];
659+ Word rc;
660+
661+ dir = malloc(sizeof(DIR));
662+ if (dir == NULL) {
663+ errno = ENOMEM;
664+ return NULL;
665+ }
666+
667+ strncpy(name, path, MAXPATHLEN);
668+ name[MAXPATHLEN] = '\0';
669+ switch (name[strlen(name)-1]) {
670+ default:
671+ strcat(name, "\\");
672+ case '\\':
673+ case '/':
674+ case ':':
675+ ;
676+ }
677+ strcat(name, ".");
678+ if (!abs_path(name, dir->name, MAXPATHLEN+1))
679+ strcpy(dir->name, name);
680+ if (dir->name[strlen(dir->name)-1] == '\\')
681+ strcat(dir->name, "*");
682+ else
683+ strcat(dir->name, "\\*");
684+
685+ dir->fstype = getFSType(dir->name);
686+ dir->attrmask = att_mask | A_DIR;
687+
688+ dir->handle = HDIR_CREATE;
689+ dir->count = 100;
690+#if OS2 >= 2
691+ rc = DosFindFirst(dir->name, &dir->handle, dir->attrmask,
692+ dir->ffbuf, sizeof dir->ffbuf, &dir->count, FIL_STANDARD);
693+#else
694+ rc = DosFindFirst((PSZ)dir->name, &dir->handle, dir->attrmask,
695+ (PFILEFINDBUF)dir->ffbuf, sizeof dir->ffbuf, &dir->count, 0);
696+#endif
697+ switch (rc) {
698+ default:
699+ free(dir);
700+ error(rc);
701+ return NULL;
702+ case NO_ERROR:
703+ case ERROR_NO_MORE_FILES:
704+ ;
705+ }
706+
707+ dir->number = 0;
708+ dir->index = 0;
709+ dir->next = (FFBUF *)dir->ffbuf;
710+
711+ return (DIR *)dir;
712+}
713+
714+DIR *
715+opendir(const char *pathname)
716+{
717+ return openxdir(pathname, 0);
718+}
719+
720+struct dirent *
721+readdir(DIR *dir)
722+{
723+ static int dummy_ino = 2;
724+
725+ if (dir->index == dir->count) {
726+ Word rc;
727+ dir->count = 100;
728+#if OS2 >= 2
729+ rc = DosFindNext(dir->handle, dir->ffbuf,
730+ sizeof dir->ffbuf, &dir->count);
731+#else
732+ rc = DosFindNext(dir->handle, (PFILEFINDBUF)dir->ffbuf,
733+ sizeof dir->ffbuf, &dir->count);
734+#endif
735+ if (rc) {
736+ error(rc);
737+ return NULL;
738+ }
739+
740+ dir->index = 0;
741+ dir->next = (FFBUF *)dir->ffbuf;
742+ }
743+
744+ if (dir->index == dir->count)
745+ return NULL;
746+
747+ memcpy(dir->entry.d_name, dir->next->achName, dir->next->cchName);
748+ dir->entry.d_name[dir->next->cchName] = '\0';
749+ dir->entry.d_ino = dummy_ino++;
750+ dir->entry.d_reclen = dir->next->cchName;
751+ dir->entry.d_namlen = dir->next->cchName;
752+ dir->entry.d_size = dir->next->cbFile;
753+ dir->entry.d_attribute = dir->next->attrFile;
754+ dir->entry.d_time = *(USHORT *)&dir->next->ftimeLastWrite;
755+ dir->entry.d_date = *(USHORT *)&dir->next->fdateLastWrite;
756+
757+ switch (dir->fstype) {
758+ case 'F': /* FAT */
759+ case 'C': /* CDFS */
760+ if (dir->next->attrFile & FILE_DIRECTORY)
761+ strupr(dir->entry.d_name);
762+ else
763+ strlwr(dir->entry.d_name);
764+ }
765+
766+#if OS2 >= 2
767+ dir->next = (FFBUF *)((BYTE *)dir->next + dir->next->oNextEntryOffset);
768+#else
769+ dir->next = (FFBUF *)((BYTE *)dir->next->achName + dir->next->cchName + 1);
770+#endif
771+ ++dir->number;
772+ ++dir->index;
773+
774+ return &dir->entry;
775+}
776+
777+long
778+telldir(DIR *dir)
779+{
780+ return dir->number;
781+}
782+
783+void
784+seekdir(DIR *dir, long off)
785+{
786+ if (dir->number > off) {
787+ char name[MAXPATHLEN+2];
788+ Word rc;
789+
790+ DosFindClose(dir->handle);
791+
792+ strcpy(name, dir->name);
793+ strcat(name, "*");
794+
795+ dir->handle = HDIR_CREATE;
796+ dir->count = 32767;
797+#if OS2 >= 2
798+ rc = DosFindFirst(name, &dir->handle, dir->attrmask,
799+ dir->ffbuf, sizeof dir->ffbuf, &dir->count, FIL_STANDARD);
800+#else
801+ rc = DosFindFirst((PSZ)name, &dir->handle, dir->attrmask,
802+ (PFILEFINDBUF)dir->ffbuf, sizeof dir->ffbuf, &dir->count, 0);
803+#endif
804+ switch (rc) {
805+ default:
806+ error(rc);
807+ return;
808+ case NO_ERROR:
809+ case ERROR_NO_MORE_FILES:
810+ ;
811+ }
812+
813+ dir->number = 0;
814+ dir->index = 0;
815+ dir->next = (FFBUF *)dir->ffbuf;
816+ }
817+
818+ while (dir->number < off && readdir(dir))
819+ ;
820+}
821+
822+void
823+closedir(DIR *dir)
824+{
825+ DosFindClose(dir->handle);
826+ free(dir);
827+}
828+
829+/*****************************************************************************/
830+
831+#ifdef TEST
832+
833+main(int argc, char **argv)
834+{
835+ int i;
836+ DIR *dir;
837+ struct dirent *ep;
838+
839+ for (i = 1; i < argc; ++i) {
840+ dir = opendir(argv[i]);
841+ if (!dir)
842+ continue;
843+ while (ep = readdir(dir))
844+ if (strchr("\\/:", argv[i] [strlen(argv[i]) - 1]))
845+ printf("%s%s\n", argv[i], ep->d_name);
846+ else
847+ printf("%s/%s\n", argv[i], ep->d_name);
848+ closedir(dir);
849+ }
850+
851+ return 0;
852+}
853+
854+#endif
855+
856+#endif /* OS2 */
857+
858diff -Nur nss-3.10/mozilla/security/dbm.orig/src/dirent.h nss-3.10/mozilla/security/dbm/src/dirent.h
859--- nss-3.10/mozilla/security/dbm.orig/src/dirent.h 1970-01-01 01:00:00.000000000 +0100
860+++ nss-3.10/mozilla/security/dbm/src/dirent.h 2001-11-22 01:13:54.000000000 +0100
861@@ -0,0 +1,97 @@
862+#ifndef __DIRENT_H__
863+#define __DIRENT_H__
864+/*
865+ * @(#)msd_dir.h 1.4 87/11/06 Public Domain.
866+ *
867+ * A public domain implementation of BSD directory routines for
868+ * MS-DOS. Written by Michael Rendell ({uunet,utai}michael@garfield),
869+ * August 1897
870+ *
871+ * Extended by Peter Lim (lim@mullian.oz) to overcome some MS DOS quirks
872+ * and returns 2 more pieces of information - file size & attribute.
873+ * Plus a little reshuffling of some #define's positions December 1987
874+ *
875+ * Some modifications by Martin Junius 02-14-89
876+ *
877+ * AK900712
878+ * AK910410 abs_path - make absolute path
879+ *
880+ */
881+
882+#ifdef __EMX__
883+#include <sys/param.h>
884+#else
885+#if defined(__IBMC__) || defined(__IBMCPP__) || defined(XP_W32_MSVC)
886+#include <stdio.h>
887+#ifdef MAXPATHLEN
888+ #undef MAXPATHLEN
889+#endif
890+#define MAXPATHLEN (FILENAME_MAX*4)
891+#define MAXNAMLEN FILENAME_MAX
892+
893+#else
894+#include <param.h>
895+#endif
896+#endif
897+
898+#ifdef __cplusplus
899+extern "C" {
900+#endif
901+
902+/* attribute stuff */
903+#ifndef A_RONLY
904+# define A_RONLY 0x01
905+# define A_HIDDEN 0x02
906+# define A_SYSTEM 0x04
907+# define A_LABEL 0x08
908+# define A_DIR 0x10
909+# define A_ARCHIVE 0x20
910+#endif
911+
912+struct dirent {
913+#if defined(OS2) || defined(WIN32) /* use the layout of EMX to avoid trouble */
914+ int d_ino; /* Dummy */
915+ int d_reclen; /* Dummy, same as d_namlen */
916+ int d_namlen; /* length of name */
917+ char d_name[MAXNAMLEN + 1];
918+ unsigned long d_size;
919+ unsigned short d_attribute; /* attributes (see above) */
920+ unsigned short d_time; /* modification time */
921+ unsigned short d_date; /* modification date */
922+#else
923+ char d_name[MAXNAMLEN + 1]; /* garentee null termination */
924+ char d_attribute; /* .. extension .. */
925+ unsigned long d_size; /* .. extension .. */
926+#endif
927+};
928+
929+typedef struct _dirdescr DIR;
930+/* the structs do not have to be defined here */
931+
932+extern DIR *opendir(const char *);
933+extern DIR *openxdir(const char *, unsigned);
934+extern struct dirent *readdir(DIR *);
935+extern void seekdir(DIR *, long);
936+extern long telldir(DIR *);
937+extern void closedir(DIR *);
938+#define rewinddir(dirp) seekdir(dirp, 0L)
939+
940+extern char * abs_path(const char *name, char *buffer, int len);
941+
942+#ifndef S_IFMT
943+#define S_IFMT ( S_IFDIR | S_IFREG )
944+#endif
945+
946+#ifndef S_ISDIR
947+#define S_ISDIR( m ) (((m) & S_IFMT) == S_IFDIR)
948+#endif
949+
950+#ifndef S_ISREG
951+#define S_ISREG( m ) (((m) & S_IFMT) == S_IFREG)
952+#endif
953+
954+#ifdef __cplusplus
955+}
956+#endif
957+
958+#endif
959diff -Nur nss-3.10/mozilla/security/dbm.orig/src/Makefile nss-3.10/mozilla/security/dbm/src/Makefile
960--- nss-3.10/mozilla/security/dbm.orig/src/Makefile 1970-01-01 01:00:00.000000000 +0100
961+++ nss-3.10/mozilla/security/dbm/src/Makefile 2001-10-14 04:33:16.000000000 +0200
962@@ -0,0 +1,76 @@
963+#! gmake
964+#
965+# The contents of this file are subject to the Mozilla Public
966+# License Version 1.1 (the "License"); you may not use this file
967+# except in compliance with the License. You may obtain a copy of
968+# the License at http://www.mozilla.org/MPL/
969+#
970+# Software distributed under the License is distributed on an "AS
971+# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
972+# implied. See the License for the specific language governing
973+# rights and limitations under the License.
974+#
975+# The Original Code is the Netscape security libraries.
976+#
977+# The Initial Developer of the Original Code is Netscape
978+# Communications Corporation. Portions created by Netscape are
979+# Copyright (C) 1994-2000 Netscape Communications Corporation. All
980+# Rights Reserved.
981+#
982+# Contributor(s):
983+#
984+# Alternatively, the contents of this file may be used under the
985+# terms of the GNU General Public License Version 2 or later (the
986+# "GPL"), in which case the provisions of the GPL are applicable
987+# instead of those above. If you wish to allow use of your
988+# version of this file only under the terms of the GPL and not to
989+# allow others to use your version of this file under the MPL,
990+# indicate your decision by deleting the provisions above and
991+# replace them with the notice and other provisions required by
992+# the GPL. If you do not delete the provisions above, a recipient
993+# may use your version of this file under either the MPL or the
994+# GPL.
995+#
996+
997+#######################################################################
998+# (1) Include initial platform-independent assignments (MANDATORY). #
999+#######################################################################
1000+
1001+include manifest.mn
1002+
1003+#######################################################################
1004+# (2) Include "global" configuration information. (OPTIONAL) #
1005+#######################################################################
1006+
1007+include $(CORE_DEPTH)/coreconf/config.mk
1008+
1009+#######################################################################
1010+# (3) Include "component" configuration information. (OPTIONAL) #
1011+#######################################################################
1012+
1013+include $(CORE_DEPTH)/dbm/config/config.mk
1014+
1015+#######################################################################
1016+# (4) Include "local" platform-dependent assignments (OPTIONAL). #
1017+#######################################################################
1018+
1019+include config.mk
1020+
1021+#######################################################################
1022+# (5) Execute "global" rules. (OPTIONAL) #
1023+#######################################################################
1024+
1025+include $(CORE_DEPTH)/coreconf/rules.mk
1026+
1027+#######################################################################
1028+# (6) Execute "component" rules. (OPTIONAL) #
1029+#######################################################################
1030+
1031+
1032+
1033+#######################################################################
1034+# (7) Execute "local" rules. (OPTIONAL). #
1035+#######################################################################
1036+
1037+
1038+
1039diff -Nur nss-3.10/mozilla/security/dbm.orig/src/manifest.mn nss-3.10/mozilla/security/dbm/src/manifest.mn
1040--- nss-3.10/mozilla/security/dbm.orig/src/manifest.mn 1970-01-01 01:00:00.000000000 +0100
1041+++ nss-3.10/mozilla/security/dbm/src/manifest.mn 2001-11-22 01:13:56.000000000 +0100
1042@@ -0,0 +1,61 @@
1043+#! gmake
1044+#
1045+# The contents of this file are subject to the Mozilla Public
1046+# License Version 1.1 (the "License"); you may not use this file
1047+# except in compliance with the License. You may obtain a copy of
1048+# the License at http://www.mozilla.org/MPL/
1049+#
1050+# Software distributed under the License is distributed on an "AS
1051+# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
1052+# implied. See the License for the specific language governing
1053+# rights and limitations under the License.
1054+#
1055+# The Original Code is the Netscape security libraries.
1056+#
1057+# The Initial Developer of the Original Code is Netscape
1058+# Communications Corporation. Portions created by Netscape are
1059+# Copyright (C) 1994-2000 Netscape Communications Corporation. All
1060+# Rights Reserved.
1061+#
1062+# Contributor(s):
1063+#
1064+# Alternatively, the contents of this file may be used under the
1065+# terms of the GNU General Public License Version 2 or later (the
1066+# "GPL"), in which case the provisions of the GPL are applicable
1067+# instead of those above. If you wish to allow use of your
1068+# version of this file only under the terms of the GPL and not to
1069+# allow others to use your version of this file under the MPL,
1070+# indicate your decision by deleting the provisions above and
1071+# replace them with the notice and other provisions required by
1072+# the GPL. If you do not delete the provisions above, a recipient
1073+# may use your version of this file under either the MPL or the
1074+# GPL.
1075+#
1076+
1077+CORE_DEPTH = ../..
1078+
1079+VPATH = $(CORE_DEPTH)/../dbm/src
1080+
1081+MODULE = dbm
1082+
1083+#
1084+# memmove.c, snprintf.c, and strerror.c are not in CSRCS because
1085+# the Standard C Library has memmove and strerror and DBM is not
1086+# using snprintf.
1087+#
1088+
1089+CSRCS = db.c \
1090+ h_bigkey.c \
1091+ h_func.c \
1092+ h_log2.c \
1093+ h_page.c \
1094+ hash.c \
1095+ hash_buf.c \
1096+ hsearch.c \
1097+ mktemp.c \
1098+ ndbm.c \
1099+ nsres.c \
1100+ dirent.c \
1101+ $(NULL)
1102+
1103+LIBRARY_NAME = dbm
1104diff -Nur nss-3.10/mozilla/security/dbm.orig/tests/CVS/Entries nss-3.10/mozilla/security/dbm/tests/CVS/Entries
1105--- nss-3.10/mozilla/security/dbm.orig/tests/CVS/Entries 1970-01-01 01:00:00.000000000 +0100
1106+++ nss-3.10/mozilla/security/dbm/tests/CVS/Entries 2005-04-29 09:18:43.997607296 +0200
1107@@ -0,0 +1,2 @@
1108+/Makefile/1.4/Fri Apr 29 07:18:43 2005//TNSS_3_10_RTM
1109+D
1110diff -Nur nss-3.10/mozilla/security/dbm.orig/tests/CVS/Repository nss-3.10/mozilla/security/dbm/tests/CVS/Repository
1111--- nss-3.10/mozilla/security/dbm.orig/tests/CVS/Repository 1970-01-01 01:00:00.000000000 +0100
1112+++ nss-3.10/mozilla/security/dbm/tests/CVS/Repository 2004-07-03 02:41:37.000000000 +0200
1113@@ -0,0 +1 @@
1114+mozilla/security/dbm/tests
1115diff -Nur nss-3.10/mozilla/security/dbm.orig/tests/CVS/Root nss-3.10/mozilla/security/dbm/tests/CVS/Root
1116--- nss-3.10/mozilla/security/dbm.orig/tests/CVS/Root 1970-01-01 01:00:00.000000000 +0100
1117+++ nss-3.10/mozilla/security/dbm/tests/CVS/Root 2004-07-03 02:41:37.000000000 +0200
1118@@ -0,0 +1 @@
1119+:pserver:tfox%netscape.com@cvs.mozilla.org:/cvsroot
1120diff -Nur nss-3.10/mozilla/security/dbm.orig/tests/CVS/Tag nss-3.10/mozilla/security/dbm/tests/CVS/Tag
1121--- nss-3.10/mozilla/security/dbm.orig/tests/CVS/Tag 1970-01-01 01:00:00.000000000 +0100
1122+++ nss-3.10/mozilla/security/dbm/tests/CVS/Tag 2005-04-29 09:18:43.995607600 +0200
1123@@ -0,0 +1 @@
1124+NNSS_3_10_RTM
1125diff -Nur nss-3.10/mozilla/security/dbm.orig/tests/Makefile nss-3.10/mozilla/security/dbm/tests/Makefile
1126--- nss-3.10/mozilla/security/dbm.orig/tests/Makefile 1970-01-01 01:00:00.000000000 +0100
1127+++ nss-3.10/mozilla/security/dbm/tests/Makefile 2005-04-29 09:18:43.994607752 +0200
1128@@ -0,0 +1,69 @@
1129+#! gmake
1130+#
1131+# The contents of this file are subject to the Mozilla Public
1132+# License Version 1.1 (the "License"); you may not use this file
1133+# except in compliance with the License. You may obtain a copy of
1134+# the License at http://www.mozilla.org/MPL/
1135+#
1136+# Software distributed under the License is distributed on an "AS
1137+# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
1138+# implied. See the License for the specific language governing
1139+# rights and limitations under the License.
1140+#
1141+# The Original Code is the Netscape security libraries.
1142+#
1143+# The Initial Developer of the Original Code is Netscape
1144+# Communications Corporation. Portions created by Netscape are
1145+# Copyright (C) 1994-2000 Netscape Communications Corporation. All
1146+# Rights Reserved.
1147+#
1148+# Contributor(s):
1149+#
1150+# Alternatively, the contents of this file may be used under the
1151+# terms of the GNU General Public License Version 2 or later (the
1152+# "GPL"), in which case the provisions of the GPL are applicable
1153+# instead of those above. If you wish to allow use of your
1154+# version of this file only under the terms of the GPL and not to
1155+# allow others to use your version of this file under the MPL,
1156+# indicate your decision by deleting the provisions above and
1157+# replace them with the notice and other provisions required by
1158+# the GPL. If you do not delete the provisions above, a recipient
1159+# may use your version of this file under either the MPL or the
1160+# GPL.
1161+#
1162+DEPTH = ../..
1163+CORE_DEPTH = ../..
1164+
1165+VPATH = $(CORE_DEPTH)/../dbm/tests
1166+
1167+MODULE = dbm
1168+
1169+CSRCS = lots.c
1170+
1171+PROGRAM = lots
1172+
1173+include $(DEPTH)/coreconf/config.mk
1174+
1175+include $(DEPTH)/dbm/config/config.mk
1176+
1177+ifeq (,$(filter-out WIN%,$(OS_TARGET)))
1178+LIBDBM = ../src/$(PLATFORM)/dbm$(STATIC_LIB_SUFFIX)
1179+else
1180+LIBDBM = ../src/$(PLATFORM)/libdbm$(STATIC_LIB_SUFFIX)
1181+endif
1182+
1183+INCLUDES += -I$(CORE_DEPTH)/../dbm/include
1184+
1185+LDFLAGS = $(LDOPTS) $(LIBDBM)
1186+
1187+include $(DEPTH)/coreconf/rules.mk
1188+
1189+lots.pure: lots
1190+ purify $(CC) -o lots.pure $(CFLAGS) $(OBJS) $(MYLIBS)
1191+
1192+crash: crash.o $(MYLIBS)
1193+ $(CC) -o crash $(CFLAGS) $^
1194+
1195+crash.pure: crash.o $(MYLIBS)
1196+ purify $(CC) -o crash.pure $(CFLAGS) $^
1197+
This page took 0.228674 seconds and 4 git commands to generate.