+RSET rstemp_create( NMEM nmem, int key_size,
+ int (*cmp)(const void *p1, const void *p2),
+ const char *temp_path)
+{
+ RSET rnew=rset_create_base(&control, nmem);
+ struct rset_temp_info *info;
+
+ info = (struct rset_temp_info *) nmem_malloc ( rnew->nmem, sizeof(*info));
+ info->fd = -1;
+ info->fname = NULL;
+ info->key_size = key_size;
+ info->buf_size = 4096;
+ info->buf_mem = (char *) nmem_malloc (rnew->nmem, info->buf_size);
+ info->pos_end = 0;
+ info->pos_buf = 0;
+ info->dirty = 0;
+ info->hits = 0;
+ info->cmp = cmp;
+ info->rfd_list = NULL;
+
+ if (!temp_path)
+ info->temp_path = NULL;
+ else
+ info->temp_path = nmem_strdup(rnew->nmem,temp_path);
+ rnew->priv=info;
+ return rnew;
+} /* rstemp_create */
+
+#if 0