Lines Matching defs:options
169 static void *bsd_alloc(unsigned char *options, int opt_len, int decomp);
170 static void *bsd_comp_alloc (unsigned char *options, int opt_len);
171 static void *bsd_decomp_alloc (unsigned char *options, int opt_len);
173 static int bsd_init (void *db, unsigned char *options,
175 static int bsd_comp_init (void *state, unsigned char *options,
177 static int bsd_decomp_init (void *state, unsigned char *options,
352 static void *bsd_alloc (unsigned char *options, int opt_len, int decomp)
358 if (opt_len != 3 || options[0] != CI_BSD_COMPRESS || options[1] != 3
359 || BSD_VERSION(options[2]) != BSD_CURRENT_VERSION)
364 bits = BSD_NBITS(options[2]);
449 static void *bsd_comp_alloc (unsigned char *options, int opt_len)
451 return bsd_alloc (options, opt_len, 0);
454 static void *bsd_decomp_alloc (unsigned char *options, int opt_len)
456 return bsd_alloc (options, opt_len, 1);
463 static int bsd_init (void *state, unsigned char *options,
469 if ((opt_len != 3) || (options[0] != CI_BSD_COMPRESS) || (options[1] != 3)
470 || (BSD_VERSION(options[2]) != BSD_CURRENT_VERSION)
471 || (BSD_NBITS(options[2]) != db->maxbits)
506 static int bsd_comp_init (void *state, unsigned char *options,
509 return bsd_init (state, options, opt_len, unit, debug, 0);
512 static int bsd_decomp_init (void *state, unsigned char *options,
516 return bsd_init (state, options, opt_len, unit, debug, 1);