OpenSSL options min-version, max-version
[socat.git] / filan.h
blob15c5f2f64c4aac6508844b3c626053d2f6d35789
1 /* source: filan.h */
2 /* Copyright Gerhard Rieger and contributors (see file CHANGES) */
4 /* Published under the GNU General Public License V.2, see file COPYING */
6 #ifndef __filan_h_included
7 #define __filan_h_included 1
9 struct sockaddr; /* prevent gcc from spitting silly warning */
10 struct sockaddr_un; /* prevent gcc from spitting silly warning */
11 struct sockaddr_in; /* prevent gcc from spitting silly warning */
12 struct sockaddr_in6; /* prevent gcc from spitting silly warning */
14 extern bool filan_followsymlinks;
15 extern bool filan_rawoutput;
17 extern int filan_file(const char *filename, FILE *outfile);
18 extern int filan_fd(int fd, FILE *outfile);
19 extern int filan_stat(
20 #if HAVE_STAT64
21 struct stat64 *buf
22 #else
23 struct stat *buf
24 #endif /* !HAVE_STAT64 */
25 , int statfd, int dynfd, FILE *outfile);
27 extern int cdevan(int fd, FILE *outfile);
29 #if _WITH_SOCKET
30 extern int isasocket(int fd);
31 extern int sockan(int fd, FILE *outfile);
32 extern int ipan(int fd, FILE *outfile);
33 extern int ip6an(int fd, FILE *outfile);
34 #endif /* _WITH_SOCKET */
36 extern
37 int fdname(const char *file, int fd, FILE *outfile, const char *numform);
39 #endif /* !defined(__filan_h_included) */