/usr/include/libexplain/libexplain.h is in libexplain-dev 1.4.D001-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 | /*
* libexplain - Explain errno values returned by libc functions
* Copyright (C) 2008-2013 Peter Miller
* Written by Peter Miller <pmiller@opensource.org.au>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef LIBEXPLAIN_LIBEXPLAIN_H
#define LIBEXPLAIN_LIBEXPLAIN_H
/**
* @file
* @brief This is the main user include file.
*
* The simplest way for users to access the functions in the library is
* to use a single include line, like this:
* @code
* #include <libexplain/libexplain.h>
* @endcode
*/
#include <libexplain/accept.h>
#include <libexplain/accept4.h>
#include <libexplain/access.h>
#include <libexplain/acct.h>
#include <libexplain/acl_from_text.h>
#include <libexplain/acl_get_fd.h>
#include <libexplain/acl_get_file.h>
#include <libexplain/acl_set_fd.h>
#include <libexplain/acl_set_file.h>
#include <libexplain/acl_to_text.h>
#include <libexplain/adjtime.h>
#include <libexplain/adjtimex.h>
#include <libexplain/asprintf.h>
#include <libexplain/bind.h>
#include <libexplain/calloc.h>
#include <libexplain/chdir.h>
#include <libexplain/chmod.h>
#include <libexplain/chown.h>
#include <libexplain/chroot.h>
#include <libexplain/close.h>
#include <libexplain/closedir.h>
#include <libexplain/connect.h>
#include <libexplain/creat.h>
#include <libexplain/dirfd.h>
#include <libexplain/dup.h>
#include <libexplain/dup2.h>
#include <libexplain/endgrent.h>
#include <libexplain/eventfd.h>
#include <libexplain/execlp.h>
#include <libexplain/execv.h>
#include <libexplain/execve.h>
#include <libexplain/execvp.h>
#include <libexplain/exit.h>
#include <libexplain/fchdir.h>
#include <libexplain/fchmod.h>
#include <libexplain/fchown.h>
#include <libexplain/fchownat.h>
#include <libexplain/fclose.h>
#include <libexplain/fcntl.h>
#include <libexplain/fdopen.h>
#include <libexplain/fdopendir.h>
#include <libexplain/feof.h>
#include <libexplain/ferror.h>
#include <libexplain/fflush.h>
#include <libexplain/fgetc.h>
#include <libexplain/fgetpos.h>
#include <libexplain/fgets.h>
#include <libexplain/filename.h>
#include <libexplain/fileno.h>
#include <libexplain/flock.h>
#include <libexplain/fopen.h>
#include <libexplain/fork.h>
#include <libexplain/fpathconf.h>
#include <libexplain/fprintf.h>
#include <libexplain/fpurge.h>
#include <libexplain/fputc.h>
#include <libexplain/fputs.h>
#include <libexplain/fread.h>
#include <libexplain/freopen.h>
#include <libexplain/fseek.h>
#include <libexplain/fseeko.h>
#include <libexplain/fsetpos.h>
#include <libexplain/fstat.h>
#include <libexplain/fstatat.h>
#include <libexplain/fstatfs.h>
#include <libexplain/fstatvfs.h>
#include <libexplain/fsync.h>
#include <libexplain/ftell.h>
#include <libexplain/ftello.h>
#include <libexplain/ftime.h>
#include <libexplain/ftruncate.h>
#include <libexplain/futimens.h>
#include <libexplain/futimes.h>
#include <libexplain/futimesat.h>
#include <libexplain/fwrite.h>
#include <libexplain/getaddrinfo.h>
#include <libexplain/getc.h>
#include <libexplain/getchar.h>
#include <libexplain/getcwd.h>
#include <libexplain/getdomainname.h>
#include <libexplain/getgrent.h>
#include <libexplain/getgrouplist.h>
#include <libexplain/getgroups.h>
#include <libexplain/gethostbyname.h>
#include <libexplain/gethostid.h>
#include <libexplain/gethostname.h>
#include <libexplain/getpeername.h>
#include <libexplain/getpgid.h>
#include <libexplain/getpgrp.h>
#include <libexplain/getpriority.h>
#include <libexplain/getresgid.h>
#include <libexplain/getresuid.h>
#include <libexplain/getrlimit.h>
#include <libexplain/getrusage.h>
#include <libexplain/getsockname.h>
#include <libexplain/getsockopt.h>
#include <libexplain/gettimeofday.h>
#include <libexplain/getw.h>
#include <libexplain/iconv.h>
#include <libexplain/iconv_close.h>
#include <libexplain/iconv_open.h>
#include <libexplain/ioctl.h>
#include <libexplain/kill.h>
#include <libexplain/lchmod.h>
#include <libexplain/lchown.h>
#include <libexplain/lchownat.h>
#include <libexplain/link.h>
#include <libexplain/linkat.h>
#include <libexplain/listen.h>
#include <libexplain/lseek.h>
#include <libexplain/lstat.h>
#include <libexplain/lutimes.h>
#include <libexplain/malloc.h>
#include <libexplain/mkdir.h>
#include <libexplain/mkdtemp.h>
#include <libexplain/mknod.h>
#include <libexplain/mkostemp.h>
#include <libexplain/mkstemp.h>
#include <libexplain/mktemp.h>
#include <libexplain/mmap.h>
#include <libexplain/mount.h>
#include <libexplain/munmap.h>
#include <libexplain/nanosleep.h>
#include <libexplain/nice.h>
#include <libexplain/open.h>
#include <libexplain/openat.h>
#include <libexplain/opendir.h>
#include <libexplain/output.h>
#include <libexplain/pathconf.h>
#include <libexplain/pclose.h>
#include <libexplain/pipe.h>
#include <libexplain/pipe2.h>
#include <libexplain/poll.h>
#include <libexplain/popen.h>
#include <libexplain/pread.h>
#include <libexplain/printf.h>
#include <libexplain/program_name.h>
#include <libexplain/ptrace.h>
#include <libexplain/public_config.h>
#include <libexplain/putc.h>
#include <libexplain/putchar.h>
#include <libexplain/putenv.h>
#include <libexplain/puts.h>
#include <libexplain/putw.h>
#include <libexplain/pwrite.h>
#include <libexplain/raise.h>
#include <libexplain/read.h>
#include <libexplain/readdir.h>
#include <libexplain/readlink.h>
#include <libexplain/readv.h>
#include <libexplain/realloc.h>
#include <libexplain/realpath.h>
#include <libexplain/remove.h>
#include <libexplain/rename.h>
#include <libexplain/rmdir.h>
#include <libexplain/select.h>
#include <libexplain/setbuf.h>
#include <libexplain/setbuffer.h>
#include <libexplain/setdomainname.h>
#include <libexplain/setenv.h>
#include <libexplain/setgid.h>
#include <libexplain/setgrent.h>
#include <libexplain/setgroups.h>
#include <libexplain/sethostname.h>
#include <libexplain/setlinebuf.h>
#include <libexplain/setpgid.h>
#include <libexplain/setpgrp.h>
#include <libexplain/setpriority.h>
#include <libexplain/setregid.h>
#include <libexplain/setreuid.h>
#include <libexplain/setresgid.h>
#include <libexplain/setresuid.h>
#include <libexplain/setreuid.h>
#include <libexplain/setsid.h>
#include <libexplain/setsockopt.h>
#include <libexplain/settimeofday.h>
#include <libexplain/setuid.h>
#include <libexplain/setvbuf.h>
#include <libexplain/shmat.h>
#include <libexplain/shmctl.h>
#include <libexplain/signalfd.h>
#include <libexplain/sleep.h>
#include <libexplain/snprintf.h>
#include <libexplain/socket.h>
#include <libexplain/socketpair.h>
#include <libexplain/sprintf.h>
#include <libexplain/stat.h>
#include <libexplain/statfs.h>
#include <libexplain/statvfs.h>
#include <libexplain/stime.h>
#include <libexplain/strcoll.h>
#include <libexplain/strdup.h>
#include <libexplain/strndup.h>
#include <libexplain/strtod.h>
#include <libexplain/strtof.h>
#include <libexplain/strtol.h>
#include <libexplain/strtold.h>
#include <libexplain/strtoll.h>
#include <libexplain/strtoul.h>
#include <libexplain/strtoull.h>
#include <libexplain/symlink.h>
#include <libexplain/system.h>
#include <libexplain/tcdrain.h>
#include <libexplain/tcflow.h>
#include <libexplain/tcflush.h>
#include <libexplain/tcgetattr.h>
#include <libexplain/tcsendbreak.h>
#include <libexplain/tcsetattr.h>
#include <libexplain/telldir.h>
#include <libexplain/tempnam.h>
#include <libexplain/time.h>
#include <libexplain/timerfd_create.h>
#include <libexplain/tmpfile.h>
#include <libexplain/tmpnam.h>
#include <libexplain/truncate.h>
#include <libexplain/uname.h>
#include <libexplain/ungetc.h>
#include <libexplain/unlink.h>
#include <libexplain/unsetenv.h>
#include <libexplain/usleep.h>
#include <libexplain/ustat.h>
#include <libexplain/utime.h>
#include <libexplain/utimens.h>
#include <libexplain/utimensat.h>
#include <libexplain/utimes.h>
#include <libexplain/vasprintf.h>
#include <libexplain/vfork.h>
#include <libexplain/vfprintf.h>
#include <libexplain/vprintf.h>
#include <libexplain/vsnprintf.h>
#include <libexplain/vsprintf.h>
#include <libexplain/wait.h>
#include <libexplain/wait3.h>
#include <libexplain/wait4.h>
#include <libexplain/waitpid.h>
#include <libexplain/write.h>
#include <libexplain/writev.h>
/**
* @mainpage
*
* The libexplain library provides a set of functions that may be used
* to explain Unix and Linux system call errors. This will make your
* application's error messages much more understandable to your users.
*
* The library is not quite a drop-in replacement for strerror, but it
* comes close. Each system call has a dedicated libexplain function,
* for example
* @code
* fd = open(path, flags, mode);
* if (fd < 0)
* {
* fprintf(stderr, "%s\n", explain_open(path, flags, mode));
* exit(EXIT_FAILURE);
* }
* @endcode
*
* If, for example, you were to try to open <tt>no-such-dir/some-file</tt>,
* the above code would print the following error message:
* @code
* open(path = "no-such-dir/some-file", flags = O_RDONLY)
* failed, No such file or directory (2, ENOENT) because there is no
* "no-such-dir" directory in the current directory
* @endcode
*
* The above code comes pre-packaged in the form of the
* #explain_open_or_die function. Using this helper function, the code
* fragment above may be written as:
* @code
* fd = explain_open_or_die(path, flags, mode);
* @endcode
*
* Helper functions are available for all supported system calls.
* They come in two varieties:
* <tt>explain_</tt><i>name</i><tt>_or_die</tt> and
* <tt>explain_</tt><i>name</i><tt>_on_error</tt>.
* The latter prints the error, but still returns to the caller
* with the original error code.
*
* The library also provides thread safe function variations.
*
* @ref lfs "Large File Support"
*
* <a href="http://libexplain.sourceforge.net/" >LibExplain Home Page</a>
*/
#endif /* LIBEXPLAIN_LIBEXPLAIN_H */
/* vim: set ts=8 sw=4 et : */
|