Debian Codegraph @

servers/slapd/back-wt/filterindex.c

raw
1 /* OpenLDAP WiredTiger backend */
2 /* $OpenLDAP$ */
3 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 *
5 * Copyright 2002-2024 The OpenLDAP Foundation.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted only as authorized by the OpenLDAP
10 * Public License.
11 *
12 * A copy of this license is available in the file LICENSE in the
13 * top-level directory of the distribution or, alternatively, at
14 * <http://www.OpenLDAP.org/license.html>.
15 */
16 /* ACKNOWLEDGEMENTS:
17 * This work was developed by HAMANO Tsukasa <[email protected]>
18 * based on back-bdb for inclusion in OpenLDAP Software.
19 * WiredTiger is a product of MongoDB Inc.
20 */
21
22 #include "portable.h"
23
24 #include <stdio.h>
25 #include <ac/string.h>
26 #include "back-wt.h"
27 #include "idl.h"
28
29 static int
30 presence_candidates(
31 Operation *op,
32 wt_ctx *wc,
33 AttributeDescription *desc,
34 ID *ids )
35 {
36 struct wt_info *wi = (struct wt_info *) op->o_bd->be_private;
37 slap_mask_t mask;
38 struct berval prefix = {0, NULL};
39 int rc;
40 WT_CURSOR *cursor = NULL;
41
42 Debug( LDAP_DEBUG_TRACE, "=> wt_presence_candidates (%s)\n",
43 desc->ad_cname.bv_val );
44
45 WT_IDL_ALL( wi, ids );
46
47 if( desc == slap_schema.si_ad_objectClass ) {
48 return 0;
49 }
50
51 rc = wt_index_param( op->o_bd, desc, LDAP_FILTER_PRESENT,
52 &mask, &prefix );
53
54 if( rc == LDAP_INAPPROPRIATE_MATCHING ) {
55 /* not indexed */
56 Debug( LDAP_DEBUG_FILTER,
57 "<= wt_presence_candidates: (%s) not indexed\n",
58 desc->ad_cname.bv_val );
59 return 0;
60 }
61
62 if( rc != LDAP_SUCCESS ) {
63 Debug( LDAP_DEBUG_TRACE,
64 "<= wt_presence_candidates: (%s) index_param "
65 "returned=%d\n",
66 desc->ad_cname.bv_val, rc );
67 return 0;
68 }
69
70 if( prefix.bv_val == NULL ) {
71 Debug( LDAP_DEBUG_TRACE,
72 "<= wt_presence_candidates: (%s) no prefix\n",
73 desc->ad_cname.bv_val );
74 return -1;
75 }
76
77 /* open index cursor */
78 cursor = wt_index_open(wc, &desc->ad_type->sat_cname, 0);
79 if( !cursor ) {
80 Debug( LDAP_DEBUG_ANY,
81 "<= wt_presence_candidates: open index cursor failed: %s\n",
82 desc->ad_type->sat_cname.bv_val );
83 return 0;
84 }
85
86 rc = wt_key_read( op->o_bd, cursor, &prefix, ids, NULL, 0 );
87
88 cursor->close(cursor);
89 Debug(LDAP_DEBUG_TRACE,
90 "<= wt_presence_candidates: id=%ld first=%ld last=%ld\n",
91 (long) ids[0],
92 (long) WT_IDL_FIRST(ids),
93 (long) WT_IDL_LAST(ids) );
94
95 return 0;
96 }
97
98 static int
99 equality_candidates(
100 Operation *op,
101 wt_ctx *wc,
102 AttributeAssertion *ava,
103 ID *ids,
104 ID *tmp)
105 {
106 struct wt_info *wi = (struct wt_info *) op->o_bd->be_private;
107 slap_mask_t mask;
108 struct berval prefix = {0, NULL};
109 struct berval *keys = NULL;
110 int i;
111 int rc;
112 MatchingRule *mr;
113 WT_CURSOR *cursor = NULL;
114
115 Debug( LDAP_DEBUG_TRACE, "=> wt_equality_candidates (%s=%s)\n",
116 ava->aa_desc->ad_cname.bv_val, ava->aa_value.bv_val );
117
118 if ( ava->aa_desc == slap_schema.si_ad_entryDN ) {
119 ID id = NOID;
120 rc = wt_dn2id(op, wc, &ava->aa_value, &id);
121 if( rc == 0 ){
122 wt_idl_append_one(ids, id);
123 }else if ( rc == WT_NOTFOUND ) {
124 WT_IDL_ZERO( ids );
125 rc = 0;
126 }
127 return rc;
128 }
129
130 WT_IDL_ALL( wi, ids );
131
132 rc = wt_index_param( op->o_bd, ava->aa_desc, LDAP_FILTER_EQUALITY,
133 &mask, &prefix );
134
135 if ( rc == LDAP_INAPPROPRIATE_MATCHING ) {
136 Debug( LDAP_DEBUG_FILTER,
137 "<= wt_equality_candidates: (%s) not indexed\n",
138 ava->aa_desc->ad_cname.bv_val );
139 return 0;
140 }
141
142 if( rc != LDAP_SUCCESS ) {
143 Debug( LDAP_DEBUG_ANY,
144 "<= wt_equality_candidates: (%s) index_param failed (%d)\n",
145 ava->aa_desc->ad_cname.bv_val, rc );
146 return 0;
147 }
148
149 mr = ava->aa_desc->ad_type->sat_equality;
150 if( !mr ) {
151 return 0;
152 }
153
154 if( !mr->smr_filter ) {
155 return 0;
156 }
157
158 rc = (mr->smr_filter)(
159 LDAP_FILTER_EQUALITY,
160 mask,
161 ava->aa_desc->ad_type->sat_syntax,
162 mr,
163 &prefix,
164 &ava->aa_value,
165 &keys, op->o_tmpmemctx );
166
167 if( rc != LDAP_SUCCESS ) {
168 Debug( LDAP_DEBUG_TRACE,
169 "<= wt_equality_candidates: (%s, %s) "
170 "MR filter failed (%d)\n",
171 prefix.bv_val, ava->aa_desc->ad_cname.bv_val, rc );
172 return 0;
173 }
174
175 if( keys == NULL ) {
176 Debug( LDAP_DEBUG_TRACE,
177 "<= wt_equality_candidates: (%s) no keys\n",
178 ava->aa_desc->ad_cname.bv_val );
179 return 0;
180 }
181
182 /* open index cursor */
183 cursor = wt_index_open(wc, &ava->aa_desc->ad_type->sat_cname, 0);
184 if( !cursor ) {
185 Debug( LDAP_DEBUG_ANY,
186 "<= wt_equality_candidates: open index cursor failed: %s\n",
187 ava->aa_desc->ad_type->sat_cname.bv_val );
188 return 0;
189 }
190
191 for ( i= 0; keys[i].bv_val != NULL; i++ ) {
192 rc = wt_key_read( op->o_bd, cursor, &keys[i], tmp, NULL, 0 );
193 if( rc == WT_NOTFOUND ) {
194 WT_IDL_ZERO( ids );
195 rc = 0;
196 break;
197 } else if( rc != LDAP_SUCCESS ) {
198 Debug( LDAP_DEBUG_TRACE,
199 "<= wt_equality_candidates: (%s) key read failed (%d)\n",
200 ava->aa_desc->ad_cname.bv_val, rc );
201 break;
202 }
203 if ( i == 0 ) {
204 WT_IDL_CPY( ids, tmp );
205 } else {
206 wt_idl_intersection( ids, tmp );
207 }
208
209 if( WT_IDL_IS_ZERO( ids ) )
210 break;
211 }
212
213 ber_bvarray_free_x( keys, op->o_tmpmemctx );
214
215 cursor->close(cursor);
216
217 Debug( LDAP_DEBUG_TRACE,
218 "<= wt_equality_candidates: id=%ld, first=%ld, last=%ld\n",
219 (long) ids[0],
220 (long) WT_IDL_FIRST(ids),
221 (long) WT_IDL_LAST(ids) );
222
223 return rc;
224 }
225
226 static int
227 approx_candidates(
228 Operation *op,
229 wt_ctx *wc,
230 AttributeAssertion *ava,
231 ID *ids,
232 ID *tmp )
233 {
234 struct wt_info *wi = (struct wt_info *) op->o_bd->be_private;
235 int i;
236 int rc;
237 slap_mask_t mask;
238 struct berval prefix = {0, NULL};
239 struct berval *keys = NULL;
240 MatchingRule *mr;
241 WT_CURSOR *cursor = NULL;
242
243 Debug( LDAP_DEBUG_TRACE, "=> wt_approx_candidates (%s)\n",
244 ava->aa_desc->ad_cname.bv_val );
245
246 WT_IDL_ALL( wi, ids );
247
248 rc = wt_index_param( op->o_bd, ava->aa_desc, LDAP_FILTER_APPROX,
249 &mask, &prefix );
250
251 if ( rc == LDAP_INAPPROPRIATE_MATCHING ) {
252 Debug( LDAP_DEBUG_FILTER,
253 "<= wt_approx_candidates: (%s) not indexed\n",
254 ava->aa_desc->ad_cname.bv_val );
255 return 0;
256 }
257
258 if( rc != LDAP_SUCCESS ) {
259 Debug( LDAP_DEBUG_ANY,
260 "<= wt_approx_candidates: (%s) index_param failed (%d)\n",
261 ava->aa_desc->ad_cname.bv_val, rc );
262 return 0;
263 }
264
265 mr = ava->aa_desc->ad_type->sat_approx;
266 if( !mr ) {
267 /* no approx matching rule, try equality matching rule */
268 mr = ava->aa_desc->ad_type->sat_equality;
269 }
270
271 if( !mr ) {
272 return 0;
273 }
274
275 if( !mr->smr_filter ) {
276 return 0;
277 }
278
279 rc = (mr->smr_filter)(
280 LDAP_FILTER_APPROX,
281 mask,
282 ava->aa_desc->ad_type->sat_syntax,
283 mr,
284 &prefix,
285 &ava->aa_value,
286 &keys, op->o_tmpmemctx );
287
288 if( rc != LDAP_SUCCESS ) {
289 Debug( LDAP_DEBUG_TRACE,
290 "<= wt_approx_candidates: (%s, %s) MR filter failed (%d)\n",
291 prefix.bv_val, ava->aa_desc->ad_cname.bv_val, rc );
292 return 0;
293 }
294
295 if( keys == NULL ) {
296 Debug( LDAP_DEBUG_TRACE,
297 "<= wt_approx_candidates: (%s) no keys (%s)\n",
298 prefix.bv_val, ava->aa_desc->ad_cname.bv_val );
299 return 0;
300 }
301
302 /* open index cursor */
303 cursor = wt_index_open(wc, &ava->aa_desc->ad_type->sat_cname, 0);
304 if( !cursor ) {
305 Debug( LDAP_DEBUG_ANY,
306 "<= wt_approx_candidates: open index cursor failed: %s\n",
307 ava->aa_desc->ad_type->sat_cname.bv_val );
308 return 0;
309 }
310
311 for ( i= 0; keys[i].bv_val != NULL; i++ ) {
312 rc = wt_key_read( op->o_bd, cursor, &keys[i], tmp, NULL, 0 );
313 if( rc == WT_NOTFOUND ) {
314 WT_IDL_ZERO( ids );
315 rc = 0;
316 break;
317 } else if( rc != LDAP_SUCCESS ) {
318 Debug( LDAP_DEBUG_TRACE,
319 "<= wt_approx_candidates: (%s) key read failed (%d)\n",
320 ava->aa_desc->ad_cname.bv_val, rc );
321 break;
322 }
323
324 if( WT_IDL_IS_ZERO( tmp ) ) {
325 Debug( LDAP_DEBUG_TRACE,
326 "<= wt_approx_candidates: (%s) NULL\n",
327 ava->aa_desc->ad_cname.bv_val );
328 WT_IDL_ZERO( ids );
329 break;
330 }
331
332 if ( i == 0 ) {
333 WT_IDL_CPY( ids, tmp );
334 } else {
335 wt_idl_intersection( ids, tmp );
336 }
337
338 if( WT_IDL_IS_ZERO( ids ) )
339 break;
340 }
341
342 ber_bvarray_free_x( keys, op->o_tmpmemctx );
343
344 cursor->close(cursor);
345
346 Debug( LDAP_DEBUG_TRACE,
347 "<= wt_approx_candidates %ld, first=%ld, last=%ld\n",
348 (long) ids[0],
349 (long) WT_IDL_FIRST(ids),
350 (long) WT_IDL_LAST(ids) );
351
352 return rc;
353 }
354
355 static int
356 substring_candidates(
357 Operation *op,
358 wt_ctx *wc,
359 SubstringsAssertion *sub,
360 ID *ids,
361 ID *tmp )
362 {
363 struct wt_info *wi = (struct wt_info *) op->o_bd->be_private;
364 int i;
365 int rc;
366 slap_mask_t mask;
367 struct berval prefix = {0, NULL};
368 struct berval *keys = NULL;
369 MatchingRule *mr;
370 WT_CURSOR *cursor = NULL;
371
372 Debug( LDAP_DEBUG_TRACE, "=> wt_substring_candidates (%s)\n",
373 sub->sa_desc->ad_cname.bv_val );
374
375 WT_IDL_ALL( wi, ids );
376
377 rc = wt_index_param( op->o_bd, sub->sa_desc, LDAP_FILTER_SUBSTRINGS,
378 &mask, &prefix );
379
380 if ( rc == LDAP_INAPPROPRIATE_MATCHING ) {
381 Debug( LDAP_DEBUG_FILTER,
382 "<= wt_substring_candidates: (%s) not indexed\n",
383 sub->sa_desc->ad_cname.bv_val );
384 return 0;
385 }
386
387 if( rc != LDAP_SUCCESS ) {
388 Debug( LDAP_DEBUG_ANY,
389 "<= wt_substring_candidates: (%s) index_param failed (%d)\n",
390 sub->sa_desc->ad_cname.bv_val, rc );
391 return 0;
392 }
393
394 mr = sub->sa_desc->ad_type->sat_substr;
395
396 if( !mr ) {
397 return 0;
398 }
399
400 if( !mr->smr_filter ) {
401 return 0;
402 }
403
404 rc = (mr->smr_filter)(
405 LDAP_FILTER_SUBSTRINGS,
406 mask,
407 sub->sa_desc->ad_type->sat_syntax,
408 mr,
409 &prefix,
410 sub,
411 &keys, op->o_tmpmemctx );
412
413 if( rc != LDAP_SUCCESS ) {
414 Debug( LDAP_DEBUG_TRACE,
415 "<= wt_substring_candidates: (%s) MR filter failed (%d)\n",
416 sub->sa_desc->ad_cname.bv_val, rc );
417 return 0;
418 }
419
420 if( keys == NULL ) {
421 Debug( LDAP_DEBUG_TRACE,
422 "<= wt_substring_candidates: (0x%04lx) no keys (%s)\n",
423 mask, sub->sa_desc->ad_cname.bv_val );
424 return 0;
425 }
426
427 /* open index cursor */
428 cursor = wt_index_open(wc, &sub->sa_desc->ad_cname, 0);
429 if( !cursor ) {
430 Debug( LDAP_DEBUG_ANY,
431 "<= wt_substring_candidates: open index cursor failed: %s\n",
432 sub->sa_desc->ad_cname.bv_val );
433 return 0;
434 }
435
436 for ( i= 0; keys[i].bv_val != NULL; i++ ) {
437 rc = wt_key_read( op->o_bd, cursor, &keys[i], tmp, NULL, 0 );
438
439 if( rc == WT_NOTFOUND ) {
440 WT_IDL_ZERO( ids );
441 rc = 0;
442 break;
443 } else if( rc != LDAP_SUCCESS ) {
444 Debug( LDAP_DEBUG_TRACE,
445 "<= wt_substring_candidates: (%s) key read failed (%d)\n",
446 sub->sa_desc->ad_cname.bv_val, rc );
447 break;
448 }
449
450 if( WT_IDL_IS_ZERO( tmp ) ) {
451 Debug( LDAP_DEBUG_TRACE,
452 "<= wt_substring_candidates: (%s) NULL\n",
453 sub->sa_desc->ad_cname.bv_val );
454 WT_IDL_ZERO( ids );
455 break;
456 }
457
458 if ( i == 0 ) {
459 WT_IDL_CPY( ids, tmp );
460 } else {
461 wt_idl_intersection( ids, tmp );
462 }
463
464 if( WT_IDL_IS_ZERO( ids ) )
465 break;
466 }
467
468 ber_bvarray_free_x( keys, op->o_tmpmemctx );
469
470 cursor->close(cursor);
471
472 Debug( LDAP_DEBUG_TRACE,
473 "<= wt_substring_candidates: %ld, first=%ld, last=%ld\n",
474 (long) ids[0],
475 (long) WT_IDL_FIRST(ids),
476 (long) WT_IDL_LAST(ids));
477 return rc;
478 }
479
480 #ifdef LDAP_COMP_MATCH
481 static int
482 comp_candidates (
483 Operation *op,
484 wt_ctx *wc,
485 MatchingRuleAssertion *mra,
486 ComponentFilter *f,
487 ID *ids,
488 ID *tmp,
489 ID *stack)
490 {
491 int rc = 0;
492
493 if ( !f ) return LDAP_PROTOCOL_ERROR;
494
495 Debug( LDAP_DEBUG_FILTER, "comp_candidates\n" );
496 /* TODO: */
497 Debug( LDAP_DEBUG_FILTER, "=> not implement yet\n" );
498 return( rc );
499 }
500
501 #endif
502
503 static int
504 ext_candidates(
505 Operation *op,
506 wt_ctx *wc,
507 MatchingRuleAssertion *mra,
508 ID *ids,
509 ID *tmp,
510 ID *stack )
511 {
512 struct wt_info *wi = (struct wt_info *) op->o_bd->be_private;
513
514 #ifdef LDAP_COMP_MATCH
515 /*
516 * Currently Only Component Indexing for componentFilterMatch is supported
517 * Indexing for an extensible filter is not supported yet
518 */
519 if ( mra->ma_cf ) {
520 return comp_candidates ( op, wc, mra, mra->ma_cf, ids, tmp, stack);
521 }
522 #endif
523 if ( mra->ma_desc == slap_schema.si_ad_entryDN ) {
524 /* TODO: */
525 Debug( LDAP_DEBUG_FILTER, "=> not implement yet.\n" );
526 }
527 WT_IDL_ALL( wi, ids );
528 return 0;
529 }
530
531 static int
532 list_candidates(
533 Operation *op,
534 wt_ctx *wc,
535 Filter *flist,
536 int ftype,
537 ID *ids,
538 ID *tmp,
539 ID *save )
540 {
541 int rc = 0;
542 Filter *f;
543
544 Debug( LDAP_DEBUG_FILTER, "=> wt_list_candidates 0x%x\n", ftype );
545 for ( f = flist; f != NULL; f = f->f_next ) {
546 /* ignore precomputed scopes */
547 if ( f->f_choice == SLAPD_FILTER_COMPUTED &&
548 f->f_result == LDAP_SUCCESS ) {
549 continue;
550 }
551 WT_IDL_ZERO( save );
552 rc = wt_filter_candidates( op, wc, f, save, tmp,
553 save+WT_IDL_UM_SIZE );
554
555 if ( rc != 0 ) {
556 /* TODO: error handling */
557 /*
558 if ( rc == DB_LOCK_DEADLOCK )
559 return rc;
560 */
561 if ( ftype == LDAP_FILTER_AND ) {
562 rc = 0;
563 continue;
564 }
565 break;
566 }
567
568
569 if ( ftype == LDAP_FILTER_AND ) {
570 if ( f == flist ) {
571 WT_IDL_CPY( ids, save );
572 } else {
573 wt_idl_intersection( ids, save );
574 }
575 if( WT_IDL_IS_ZERO( ids ) )
576 break;
577 } else {
578 if ( f == flist ) {
579 WT_IDL_CPY( ids, save );
580 } else {
581 wt_idl_union( ids, save );
582 }
583 }
584 }
585
586 if( rc == LDAP_SUCCESS ) {
587 Debug( LDAP_DEBUG_FILTER,
588 "<= wt_list_candidates: id=%ld first=%ld last=%ld\n",
589 (long) ids[0],
590 (long) WT_IDL_FIRST(ids),
591 (long) WT_IDL_LAST(ids) );
592
593 } else {
594 Debug( LDAP_DEBUG_FILTER,
595 "<= wt_list_candidates: undefined rc=%d\n",
596 rc );
597 }
598
599 return 0;
600 }
601
602 int
603 wt_filter_candidates(
604 Operation *op,
605 wt_ctx *wc,
606 Filter *f,
607 ID *ids,
608 ID *tmp,
609 ID *stack )
610 {
611 struct wt_info *wi = (struct wt_info *)op->o_bd->be_private;
612 int rc = LDAP_SUCCESS;
613 Debug( LDAP_DEBUG_FILTER, "=> wt_filter_candidates\n" );
614
615 if ( f->f_choice & SLAPD_FILTER_UNDEFINED ) {
616 WT_IDL_ZERO( ids );
617 goto done;
618 }
619
620 switch ( f->f_choice ) {
621 case SLAPD_FILTER_COMPUTED:
622 switch( f->f_result ) {
623 case SLAPD_COMPARE_UNDEFINED:
624 /* This technically is not the same as FALSE, but it
625 * certainly will produce no matches.
626 */
627 /* FALL THRU */
628 case LDAP_COMPARE_FALSE:
629 WT_IDL_ZERO( ids );
630 break;
631 case LDAP_COMPARE_TRUE: {
632
633 WT_IDL_ALL( wi, ids );
634 } break;
635 case LDAP_SUCCESS:
636 /* this is a pre-computed scope, leave it alone */
637 break;
638 }
639 break;
640 case LDAP_FILTER_PRESENT:
641 Debug( LDAP_DEBUG_FILTER, "\tPRESENT\n" );
642 rc = presence_candidates( op, wc, f->f_desc, ids );
643 break;
644
645 case LDAP_FILTER_EQUALITY:
646 Debug( LDAP_DEBUG_FILTER, "\tEQUALITY\n" );
647 rc = equality_candidates( op, wc, f->f_ava, ids, tmp );
648 break;
649
650 case LDAP_FILTER_APPROX:
651 Debug( LDAP_DEBUG_FILTER, "\tAPPROX\n" );
652 rc = approx_candidates( op, wc, f->f_ava, ids, tmp );
653 break;
654
655 case LDAP_FILTER_SUBSTRINGS:
656 Debug( LDAP_DEBUG_FILTER, "\tSUBSTRINGS\n" );
657 rc = substring_candidates( op, wc, f->f_sub, ids, tmp );
658 break;
659
660 case LDAP_FILTER_GE:
661 /* if no GE index, use pres */
662 /* TODO: not implement yet */
663 rc = presence_candidates( op, wc, f->f_ava->aa_desc, ids );
664 break;
665
666 case LDAP_FILTER_LE:
667 /* if no LE index, use pres */
668 /* TODO: not implement yet */
669 Debug( LDAP_DEBUG_FILTER, "\tLE\n" );
670 rc = presence_candidates( op, wc, f->f_ava->aa_desc, ids );
671 break;
672
673 case LDAP_FILTER_NOT:
674 /* no indexing to support NOT filters */
675 Debug( LDAP_DEBUG_FILTER, "\tNOT\n" );
676 WT_IDL_ALL( wi, ids );
677 break;
678
679 case LDAP_FILTER_AND:
680 Debug( LDAP_DEBUG_FILTER, "\tAND\n" );
681 rc = list_candidates( op, wc,
682 f->f_and, LDAP_FILTER_AND, ids, tmp, stack );
683 break;
684
685 case LDAP_FILTER_OR:
686 Debug( LDAP_DEBUG_FILTER, "\tOR\n" );
687 rc = list_candidates( op, wc,
688 f->f_or, LDAP_FILTER_OR, ids, tmp, stack );
689 break;
690
691 case LDAP_FILTER_EXT:
692 Debug( LDAP_DEBUG_FILTER, "\tEXT\n" );
693 rc = ext_candidates( op, wc, f->f_mra, ids, tmp, stack);
694 break;
695
696 default:
697 Debug( LDAP_DEBUG_FILTER, "\tUNKNOWN %lu\n",
698 (unsigned long) f->f_choice );
699 /* Must not return NULL, otherwise extended filters break */
700 WT_IDL_ALL( wi, ids );
701 }
702
703 done:
704 Debug( LDAP_DEBUG_FILTER,
705 "<= wt_filter_candidates: id=%ld first=%ld last=%ld\n",
706 (long) ids[0],
707 (long) WT_IDL_FIRST( ids ),
708 (long) WT_IDL_LAST( ids ) );
709 return rc;
710 }
711
712 /*
713 * Local variables:
714 * indent-tabs-mode: t
715 * tab-width: 4
716 * c-basic-offset: 4
717 * End:
718 */