/*
    LIB - a librarian for compatible OBJ/LIB files
    Copyright (C) 1995,1996  Steffen Kaiser

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
/* $Id: MLIB.H 3.3 1999/02/17 05:18:08 ska Rel ska $
   $Locker: ska $	$Name: v3_2 $	$State: Rel $

	write the library directory

*/

#ifndef __MLIB_H
#define __MLIB_H

#include <portable.h>

#define BUCKET_UNUSED 0
#define BUCKET_EMPTY 0xFF

unsigned nextPrime(unsigned min);
/* Return the lessest prime, which is greater or equal than min;
   == 0, there is no further prime fitting into 0..65535 */

int createDir(struct LIB_INFO *lib);
/* create the directory with the current amount of pages
   Return:
   	== 0, if failed (pages are not sufficient)
   	!= 0, otherwise (directory written)
*/

#endif
