Run latex
[egate.git] / zdist.patch
1 diff -r -c --exclude=*.[oa] --exclude=*.bak --exclude=Makefile* zdist102b1-1/libz3950/z3950.h zdist102b1-1f/libz3950/z3950.h
2 *** zdist102b1-1/libz3950/z3950.h       Fri Oct 28 18:42:20 1994
3 --- zdist102b1-1f/libz3950/z3950.h      Thu Feb 16 17:33:39 1995
4 ***************
5 *** 126,132 ****
6   
7   #define MEMCOPY(a,b,c) memcpy(a,b,c)
8   #define NEWSTRUCT(a) (a far *)imem_calloc(1,sizeof(a))
9 ! #define NEWSTRING(a) (PCHR)imem_calloc(1,a)
10   #define NEWUSTRING(a) (PUCHR)imem_calloc(1,a)
11   #define FREE(a) imem_free(a)
12   #define Z3950_VERSION_2 "11000000"
13 --- 126,132 ----
14   
15   #define MEMCOPY(a,b,c) memcpy(a,b,c)
16   #define NEWSTRUCT(a) (a far *)imem_calloc(1,sizeof(a))
17 ! #define NEWSTRING(a) (PCHR)imem_calloc(1,(a) + 1)
18   #define NEWUSTRING(a) (PUCHR)imem_calloc(1,a)
19   #define FREE(a) imem_free(a)
20   #define Z3950_VERSION_2 "11000000"
21 diff -r -c --exclude=*.[oa] --exclude=*.bak --exclude=Makefile* zdist102b1-1/libz3950/z3950sup.c zdist102b1-1f/libz3950/z3950sup.c
22 *** zdist102b1-1/libz3950/z3950sup.c    Sun Dec  4 14:28:04 1994
23 --- zdist102b1-1f/libz3950/z3950sup.c   Thu Jul  6 14:02:12 1995
24 ***************
25 *** 339,344 ****
26 --- 339,345 ----
27                         return rro;
28         
29                 /* Hang it under the Operator node */
30 +               OP->form = 0;
31                 Operator_SetType(Operator, OP);
32   
33                 RpnRpnOp_SetOp(rro, Operator);
34 ***************
35 *** 1605,1611 ****
36   {
37         PAND a;
38   
39 !       if((a=dmake(AND_TAG, ASN1_CONTEXT, 1))==NULL) {
40                   /* Enter any error logging here */
41                   return NULL;
42           }
43 --- 1606,1612 ----
44   {
45         PAND a;
46   
47 !       if((a=dmake(AND_TAG, ASN1_CONTEXT, 2))==NULL) {
48                   /* Enter any error logging here */
49                   return NULL;
50           }
51 ***************
52 *** 1616,1622 ****
53   {
54         POR a;
55   
56 !       if((a=dmake(OR_TAG, ASN1_CONTEXT, 1))==NULL) {
57                   /* Enter any error logging here */
58                   return NULL;
59           }
60 --- 1617,1623 ----
61   {
62         POR a;
63   
64 !       if((a=dmake(OR_TAG, ASN1_CONTEXT, 2))==NULL) {
65                   /* Enter any error logging here */
66                   return NULL;
67           }
68 ***************
69 *** 1627,1633 ****
70   {
71         PANDNOT a;
72   
73 !       if((a=dmake(ANDNOT_TAG, ASN1_CONTEXT, 1))==NULL) {
74                   /* Enter any error logging here */
75                   return NULL;
76           }
77 --- 1628,1634 ----
78   {
79         PANDNOT a;
80   
81 !       if((a=dmake(ANDNOT_TAG, ASN1_CONTEXT, 2))==NULL) {
82                   /* Enter any error logging here */
83                   return NULL;
84           }
85 diff -r -c --exclude=*.[oa] --exclude=*.bak --exclude=Makefile* zdist102b1-1/libz3950/zstats.c zdist102b1-1f/libz3950/zstats.c
86 *** zdist102b1-1/libz3950/zstats.c      Fri Oct 28 18:42:22 1994
87 --- zdist102b1-1f/libz3950/zstats.c     Tue Dec 20 16:17:45 1994
88 ***************
89 *** 203,213 ****
90 --- 203,215 ----
91   
92         fd = fileno(ffp);
93   
94 + #if 0
95         if(lockf(fd, F_LOCK, 0)!=0) {
96                 perror("zstats_WriteLog:locking");
97                 fclose(ffp);
98                 return;
99         }
100 + #endif
101   
102         fwrite(s->Host, sizeof(s->Host), 1, ffp);
103         fwrite(&s->Time, sizeof(time_t), 1, ffp);
104 ***************
105 *** 238,248 ****
106 --- 240,252 ----
107         fwrite(&s->ExtendedServicesResponseCount, sizeof(INT4), 1, ffp);
108         fwrite(&s->CloseRequestCount, sizeof(INT4), 1, ffp);
109   
110 + #if 0
111         if(lockf(fd, F_ULOCK, 0)!=0) {
112                 perror("zstats_WriteLog:unlocking");
113                 fclose(ffp);
114                 return;
115         }
116 + #endif
117   
118         fclose(ffp);
119   }