150764Smarkm/* 2127807Snectar * Copyright (c) 1997 - 2000 Kungliga Tekniska H�gskolan 350764Smarkm * (Royal Institute of Technology, Stockholm, Sweden). 450764Smarkm * All rights reserved. 550764Smarkm * 650764Smarkm * Redistribution and use in source and binary forms, with or without 750764Smarkm * modification, are permitted provided that the following conditions 850764Smarkm * are met: 950764Smarkm * 1050764Smarkm * 1. Redistributions of source code must retain the above copyright 1150764Smarkm * notice, this list of conditions and the following disclaimer. 1250764Smarkm * 1350764Smarkm * 2. Redistributions in binary form must reproduce the above copyright 1450764Smarkm * notice, this list of conditions and the following disclaimer in the 1550764Smarkm * documentation and/or other materials provided with the distribution. 1650764Smarkm * 17127807Snectar * 3. Neither the name of the Institute nor the names of its contributors 1850764Smarkm * may be used to endorse or promote products derived from this software 1950764Smarkm * without specific prior written permission. 2050764Smarkm * 2150764Smarkm * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 2250764Smarkm * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2350764Smarkm * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2450764Smarkm * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 2550764Smarkm * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2650764Smarkm * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2750764Smarkm * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2850764Smarkm * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2950764Smarkm * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3050764Smarkm * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3150764Smarkm * SUCH DAMAGE. 3250764Smarkm */ 3350764Smarkm 34178846Sdfr/* $Id: com_right.h 14551 2005-02-03 08:45:13Z lha $ */ 3555986Sbde/* $FreeBSD$ */ 3650764Smarkm 3750764Smarkm#ifndef __COM_RIGHT_H__ 3850764Smarkm#define __COM_RIGHT_H__ 3950764Smarkm 4055986Sbde#include <sys/cdefs.h> 41127807Snectar#include <stdarg.h> 4255986Sbde 4350764Smarkmstruct error_table { 4450764Smarkm char const * const * msgs; 4550764Smarkm long base; 4650764Smarkm int n_msgs; 4750764Smarkm}; 4850764Smarkmstruct et_list { 4950764Smarkm struct et_list *next; 5050764Smarkm struct error_table *table; 5150764Smarkm}; 5250764Smarkmextern struct et_list *_et_list; 5350764Smarkm 54178846Sdfrconst char *com_right (struct et_list *list, long code); 55178846Sdfrvoid initialize_error_table_r (struct et_list **, const char **, int, long); 56178846Sdfrvoid free_error_table (struct et_list *); 5750764Smarkm 5850764Smarkm#endif /* __COM_RIGHT_H__ */ 59