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]);
452 static void *bsd_comp_alloc (unsigned char *options, int opt_len)
454 return bsd_alloc (options, opt_len, 0);
457 static void *bsd_decomp_alloc (unsigned char *options, int opt_len)
459 return bsd_alloc (options, opt_len, 1);
466 static int bsd_init (void *state, unsigned char *options,
472 if ((opt_len != 3) || (options[0] != CI_BSD_COMPRESS) || (options[1] != 3)
473 || (BSD_VERSION(options[2]) != BSD_CURRENT_VERSION)
474 || (BSD_NBITS(options[2]) != db->maxbits)
509 static int bsd_comp_init (void *state, unsigned char *options,
512 return bsd_init (state, options, opt_len, unit, debug, 0);
515 static int bsd_decomp_init (void *state, unsigned char *options,
519 return bsd_init (state, options, opt_len, unit, debug, 1);