libexplain
1.4.D001
|
00001 /* 00002 * libexplain - Explain errno values returned by libc functions 00003 * Copyright (C) 2008-2011, 2013 Peter Miller 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU Lesser General Public License as 00007 * published by the Free Software Foundation; either version 3 of the 00008 * License, or (at your option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 * Lesser General Public License for more details. 00014 * 00015 * You should have received a copy of the GNU Lesser General Public License 00016 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00017 */ 00018 00019 #ifndef LIBEXPLAIN_BUFFER_EINVAL_H 00020 #define LIBEXPLAIN_BUFFER_EINVAL_H 00021 00022 #include <libexplain/string_buffer.h> 00023 00033 void explain_buffer_einval_bits(explain_string_buffer_t *sb, 00034 const char *caption); 00035 00047 void explain_buffer_einval_too_small(explain_string_buffer_t *sb, 00048 const char *caption, long data); 00049 00059 void explain_buffer_einval_too_large(explain_string_buffer_t *sb, 00060 const char *caption); 00061 00073 void explain_buffer_einval_too_large2(explain_string_buffer_t *sb, 00074 const char *caption, long max); 00075 00086 void explain_buffer_einval_vague(explain_string_buffer_t *sb, 00087 const char *caption); 00088 00100 void explain_buffer_einval_value(explain_string_buffer_t *sb, 00101 const char *caption, long value); 00102 00113 void explain_buffer_einval_not_a_number(explain_string_buffer_t *sb, 00114 const char *caption); 00115 00116 void explain_buffer_einval_not_listening(explain_string_buffer_t *sb); 00117 00132 void explain_buffer_einval_out_of_range(explain_string_buffer_t *sb, 00133 const char *caption, long lo, long hi); 00134 00147 void explain_buffer_einval_signalfd(explain_string_buffer_t *sb, 00148 const char *caption); 00149 00162 void explain_buffer_einval_multiple(explain_string_buffer_t *sb, 00163 const char *caption, int multiple); 00164 00178 void explain_buffer_einval_mknod(explain_string_buffer_t *sb, int mode, 00179 const char *mode_caption, const char *syscall_name); 00180 00192 void explain_buffer_einval_mkstemp(explain_string_buffer_t *sb, 00193 const char *templat, const char *templat_caption); 00194 00207 void explain_buffer_einval_setenv(explain_string_buffer_t *sb, const char *name, 00208 const char *name_caption); 00209 00210 struct sock_fprog; 00211 00221 void explain_buffer_einval_sock_fprog(explain_string_buffer_t *sb, 00222 const struct sock_fprog *data); 00223 00233 void explain_buffer_einval_ungetc(explain_string_buffer_t *sb, 00234 const char *syscall_name); 00235 00249 void explain_buffer_einval_format_string(explain_string_buffer_t *sb, 00250 const char *argument_name, const char *argument_value, size_t errpos); 00251 00264 void explain_buffer_einval_format_string_hole(explain_string_buffer_t *sb, 00265 const char *argument_name, int hole_index); 00266 00275 void explain_buffer_einval_no_vid_std(explain_string_buffer_t *sb); 00276 00277 #endif /* LIBEXPLAIN_BUFFER_EINVAL_H */ 00278 /* vim: set ts=8 sw=4 et : */