--- a/usr/src/head/libzonecfg.h Fri Jan 30 11:54:57 2009 -0800
+++ b/usr/src/head/libzonecfg.h Fri Jan 30 12:25:48 2009 -0800
@@ -20,15 +20,13 @@
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _LIBZONECFG_H
#define _LIBZONECFG_H
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* Zone configuration header file.
*/
@@ -100,6 +98,7 @@
#define Z_NO_POOL 47 /* no such pool configured */
#define Z_POOL_CREATE 48 /* pool create failed */
#define Z_POOL_BIND 49 /* pool bind failed */
+#define Z_HOSTID_FUBAR 50 /* invalid hostid provided */
/*
* Warning: these are shared with the admin/install consolidation.
@@ -342,6 +341,13 @@
extern int zonecfg_lookup_nwif(zone_dochandle_t, struct zone_nwiftab *);
/*
+ * Hostid emulation configuration.
+ */
+extern int zonecfg_get_hostid(zone_dochandle_t, char *, size_t);
+extern int zonecfg_set_hostid(zone_dochandle_t, const char *);
+extern int zonecfg_valid_hostid(const char *);
+
+/*
* Device configuration and rule matching.
*/
extern int zonecfg_add_dev(zone_dochandle_t, struct zone_devtab *);