* This generates the zone files necessary to load a hesiod server.
* The following zones are generated: passwd, uid, pobox, group,
* grplist, gid, filsys, cluster, pcap, sloc, service.
+ *
+ * (c) Copyright 1988 by the Massachusetts Institute of Technology.
+ * For copying and distribution information, please see the file
+ * <mit-copyright.h>.
*/
+#include <mit-copyright.h>
#include <stdio.h>
#include <sms.h>
#include <sms_app.h>
## range of c is cluster
## begin transaction
## retrieve (maxclu = max(c.clu_id))
+ maxclu++;
setsize = howmany(maxclu, NSETBITS);
## range of m is machine
## retrieve (maxmach = max(m.mach_id))
+ maxmach++;
machs = (set_mask **)malloc((maxmach + 1) * sizeof(set_mask **));
bzero(machs, (maxmach + 1) * sizeof(int));