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(
24 #endif /* !HAVE_STAT64 */
25 , int statfd
, int dynfd
, FILE *outfile
);
27 extern int cdevan(int fd
, FILE *outfile
);
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 */
37 int fdname(const char *file
, int fd
, FILE *outfile
, const char *numform
);
39 #endif /* !defined(__filan_h_included) */