libexplain  1.2.D001
open.h
Go to the documentation of this file.
1 /*
2  * libexplain - Explain errno values returned by libc functions
3  * Copyright (C) 2008, 2009 Peter Miller
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU Lesser General Public License as published by
7  * the Free Software Foundation; either version 3 of the License, or (at
8  * your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef LIBEXPLAIN_OPEN_H
20 #define LIBEXPLAIN_OPEN_H
21 
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
58 int explain_open_or_die(const char *pathname, int flags, int mode);
59 
88 int explain_open_on_error(const char *pathname, int flags, int mode)
90 
134 const char *explain_open(const char *pathname, int flags, int mode)
136 
184 const char *explain_errno_open(int errnum, const char *pathname, int flags,
185  int mode)
187 
230 void explain_message_open(char *message, int message_size, const char *pathname,
231  int flags, int mode);
232 
280 void explain_message_errno_open(char *message, int message_size, int errnum,
281  const char *pathname, int flags, int mode);
282 
283 #ifdef __cplusplus
284 }
285 #endif
286 
287 /* vim: set ts=8 sw=4 et */
288 #endif /* LIBEXPLAIN_OPEN_H */