libexplain
1.4.D001
|
00001 /* 00002 * libexplain - Explain errno values returned by libc functions 00003 * Copyright (C) 2009-2011, 2013 Peter Miller 00004 * 00005 * This program is free software; you can redistribute it and/or modify it 00006 * under the terms of the GNU Lesser General Public License as published by 00007 * the Free Software Foundation; either version 3 of the License, or (at your 00008 * option) any later version. 00009 * 00010 * This program is distributed in the hope that it will be useful, but WITHOUT 00011 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00012 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 00013 * 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_IOCONTROL_GENERIC_H 00020 #define LIBEXPLAIN_IOCONTROL_GENERIC_H 00021 00022 #include <libexplain/iocontrol.h> 00023 00035 extern const explain_iocontrol_t explain_iocontrol_generic; 00036 00055 void explain_iocontrol_generic_print_explanation(const explain_iocontrol_t *p, 00056 struct explain_string_buffer_t *sb, int errnum, int fildes, int request, 00057 const void *data); 00058 00072 void explain_iocontrol_fake_syscall_name(char *output, int output_size, 00073 const explain_iocontrol_t *p, int request); 00074 00096 void explain_iocontrol_generic_print_data_int(const explain_iocontrol_t *p, 00097 struct explain_string_buffer_t *sb, int errnum, int fildes, int request, 00098 const void *data); 00099 00121 void explain_iocontrol_generic_print_data_uint(const explain_iocontrol_t *p, 00122 struct explain_string_buffer_t *sb, int errnum, int fildes, int request, 00123 const void *data); 00124 00146 void explain_iocontrol_generic_print_data_int_star(const explain_iocontrol_t *p, 00147 struct explain_string_buffer_t *sb, int errnum, int fildes, int request, 00148 const void *data); 00149 00171 void explain_iocontrol_generic_print_data_uint_star( 00172 const explain_iocontrol_t *p, struct explain_string_buffer_t *sb, 00173 int errnum, int fildes, int request, const void *data); 00174 00196 void explain_iocontrol_generic_print_data_long(const explain_iocontrol_t *p, 00197 struct explain_string_buffer_t *sb, int errnum, int fildes, int request, 00198 const void *data); 00199 00221 void explain_iocontrol_generic_print_data_ulong(const explain_iocontrol_t *p, 00222 struct explain_string_buffer_t *sb, int errnum, int fildes, int request, 00223 const void *data); 00224 00246 void explain_iocontrol_generic_print_data_long_star( 00247 const explain_iocontrol_t *p, struct explain_string_buffer_t *sb, 00248 int errnum, int fildes, int request, const void *data); 00249 00271 void explain_iocontrol_generic_print_data_ulong_star( 00272 const explain_iocontrol_t *p, struct explain_string_buffer_t *sb, 00273 int errnum, int fildes, int request, const void *data); 00274 00295 void explain_iocontrol_generic_print_data_pointer( 00296 const explain_iocontrol_t *p, struct explain_string_buffer_t *sb, 00297 int errnum, int fildes, int request, const void *data); 00298 00319 void explain_iocontrol_generic_print_data_int64_star( 00320 const explain_iocontrol_t *p, struct explain_string_buffer_t *sb, 00321 int errnum, int fildes, int request, const void *data); 00322 00343 void explain_iocontrol_generic_print_data_uint64_star( 00344 const explain_iocontrol_t *p, struct explain_string_buffer_t *sb, 00345 int errnum, int fildes, int request, const void *data); 00346 00368 void explain_iocontrol_generic_print_data_ignored( 00369 const explain_iocontrol_t *p, struct explain_string_buffer_t *sb, 00370 int errnum, int fildes, int request, const void *data); 00371 00392 void explain_iocontrol_generic_print_data_short_star( 00393 const explain_iocontrol_t *p, struct explain_string_buffer_t *sb, 00394 int errnum, int fildes, int request, const void *data); 00395 00416 void explain_iocontrol_generic_print_data_ushort_star( 00417 const explain_iocontrol_t *p, struct explain_string_buffer_t *sb, 00418 int errnum, int fildes, int request, const void *data); 00419 00440 void explain_iocontrol_generic_print_data_int8_star( 00441 const explain_iocontrol_t *p, struct explain_string_buffer_t *sb, 00442 int errnum, int fildes, int request, const void *data); 00443 00464 void explain_iocontrol_generic_print_data_uint8_star( 00465 const explain_iocontrol_t *p, struct explain_string_buffer_t *sb, 00466 int errnum, int fildes, int request, const void *data); 00467 00478 void explain_iocontrol_generic_print_hash_define( 00479 struct explain_string_buffer_t *sb, int request); 00480 00481 #endif /* LIBEXPLAIN_IOCONTROL_GENERIC_H */ 00482 /* vim: set ts=8 sw=4 et : */