#ifndef _ALLOCATE_H
#define _ALLOCATE_H
#ifdef __cplusplus
extern "C" {
#endif
#define LISTATTRS 0x00000001
#define CLASS 0x00000002
#define LISTDEFS 0x00000004
#define TYPE 0x00000008
#define LISTALL 0x00000010
#define LISTFREE 0x00000020
#define SILENT 0x00000040
#define LISTALLOC 0x00000080
#define WINDOWING 0x00000100
#define ZONENAME 0x00000200
#define BOOT 0x00000400
#define FORCE 0x00000800
#define FORCE_ALL 0x00001000
#define USERID 0x00002000
#define USERNAME 0x00004000
#define DEVCLEAN_OK 0
#define DEVCLEAN_ERROR 1
#define DEVCLEAN_SYSERR 2
#define DEVCLEAN_BADMOUNT 3
#define DEVCLEAN_MOUNTOK 4
#define ALLOCUERR 1
#define CHOWNERR 2
#define CNTDEXECERR 4
#define CNTFRCERR 5
#define DACACCERR 6
#define DAOFFERR 7
#define DAUTHERR 8
#define DEFATTRSERR 9
#define DEVLKERR 10
#define DEVLONGERR 11
#define DEVNALLOCERR 12
#define DEVNAMEERR 13
#define DEVSTATEERR 14
#define DEVZONEERR 15
#define DSPMISSERR 16
#define GLOBALERR 17
#define LABELRNGERR 18
#define LOGINDEVPERMERR 19
#define NODAERR 20
#define NODMAPERR 21
#define PREALLOCERR 22
#define SETACLERR 23
#define UAUTHERR 24
#define ZONEERR 25
#define CLEANERR 26
#define ALLOC_ERRID (uid_t)2
#define ALLOC_ERR_MODE 0100
extern int allocate(int optflg, uid_t uid, char *device, char *zonename);
extern int deallocate(int optflg, uid_t uid, char *device, char *zonename);
extern int list_devices(int optflg, uid_t uid, char *device, char *zonename);
#ifdef __cplusplus
}
#endif
#endif