Main Page   Data Structures   File List   Data Fields   Globals   Examples  

shbuferr.h

Go to the documentation of this file.
00001 #ifndef fooshbuferrhfoo
00002 #define fooshbuferrhfoo
00003 
00004 /* $Id: shbuferr.h,v 1.4 2003/09/09 22:14:58 poettering Exp $
00005  *
00006  * This file is part of libshbuf. 
00007  *
00008  * libshbuf is free software; you can redistribute it and/or modify it under
00009  * the terms of the GNU General Public License as published by the Free
00010  * Software Foundation; either version 2 of the License, or (at your
00011  * option) any later version.
00012  *
00013  * libshbuf is distributed in the hope that it will be useful, but WITHOUT
00014  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00015  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
00016  * for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with libshbuf; if not, write to the Free Software Foundation,
00020  * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
00021  */
00022 
00026 typedef enum { SHBUF_NOERROR,                   
00027                SHBUF_BUSY,                      
00028                SHBUF_NOTINNOTIFYMODE,           
00029                SHBUF_SYSTEM_ERROR_BASE = 100,   
00030                SHBUF_COULDNOTCREATEMSGQ,
00031                SHBUF_COULDNOTMAPBUFFERSHM,
00032                SHBUF_COULDNOTCREATEBUFFERSHM,
00033                SHBUF_COULDNOTRESETSEM,
00034                SHBUF_COULDNOTCREATESEM,
00035                SHBUF_COULDNOTMAPCONTROLSHM,
00036                SHBUF_COULDNOTCREATECONTROLSHM,
00037                SHBUF_COULDNOTOPENMSGQ,
00038                SHBUF_COULDNOTOPENCONTROLSHM,
00039                SHBUF_COULDNOTOPENSEM,
00040                SHBUF_COULDNOTOPENBUFFERSHM,
00041                SHBUF_MSGSNDFAILED,
00042                SHBUF_SELECTFAILED,
00043                SHBUF_READFAILED,
00044                SHBUF_ACCESSMODEFAILED,
00045                SHBUF_COULDNOTCREATEPIPE,
00046                SHBUF_COULDNOTCREATETHREAD,
00047                SHBUF_LOCKFAILED,
00048                SHBUF_UNLOCKFAILED,
00049                SHBUF_INCOMPATIBLEBUFFER,
00050                SHBUF_MALLOCFAILED,
00051 } shbuf_error;
00052 
00060 void shbuf_set_errno(shbuf_error e);
00061 
00067 shbuf_error shbuf_get_errno(void);
00068 
00079 const char *shbuf_strerror(shbuf_error e, int en);
00080 
00086 const char *shbuf_strerror2(void);
00087 
00094 void shbuf_perror(const char *p);
00095 
00096 #endif

Generated on Thu Sep 11 18:52:21 2003 for libshbuf by doxygen1.2.18