2008-01-28 21:37:16 +00:00
|
|
|
/* source: filan.h */
|
2016-07-22 06:54:31 +00:00
|
|
|
/* Copyright Gerhard Rieger and contributors (see file CHANGES) */
|
2008-01-27 12:00:08 +00:00
|
|
|
|
|
|
|
/* Published under the GNU General Public License V.2, see file COPYING */
|
|
|
|
|
|
|
|
#ifndef __filan_h_included
|
|
|
|
#define __filan_h_included 1
|
|
|
|
|
|
|
|
struct sockaddr; /* prevent gcc from spitting silly warning */
|
|
|
|
struct sockaddr_un; /* prevent gcc from spitting silly warning */
|
|
|
|
struct sockaddr_in; /* prevent gcc from spitting silly warning */
|
|
|
|
struct sockaddr_in6; /* prevent gcc from spitting silly warning */
|
|
|
|
|
|
|
|
extern bool filan_followsymlinks;
|
|
|
|
extern bool filan_rawoutput;
|
|
|
|
|
|
|
|
extern int filan_file(const char *filename, FILE *outfile);
|
|
|
|
extern int filan_fd(int fd, FILE *outfile);
|
|
|
|
extern int filan_stat(
|
|
|
|
#if HAVE_STAT64
|
|
|
|
struct stat64 *buf
|
|
|
|
#else
|
|
|
|
struct stat *buf
|
|
|
|
#endif /* !HAVE_STAT64 */
|
|
|
|
, int statfd, int dynfd, FILE *outfile);
|
|
|
|
|
|
|
|
extern int cdevan(int fd, FILE *outfile);
|
|
|
|
|
2008-08-17 21:28:11 +00:00
|
|
|
#if _WITH_SOCKET
|
2008-01-27 12:00:08 +00:00
|
|
|
extern int isasocket(int fd);
|
2020-12-31 10:57:11 +00:00
|
|
|
extern int sockettype(int socktype, char *typename, size_t typenamemax);
|
2008-01-27 12:00:08 +00:00
|
|
|
extern int sockan(int fd, FILE *outfile);
|
|
|
|
extern int ipan(int fd, FILE *outfile);
|
|
|
|
extern int ip6an(int fd, FILE *outfile);
|
2008-08-17 21:28:11 +00:00
|
|
|
#endif /* _WITH_SOCKET */
|
2008-01-27 12:00:08 +00:00
|
|
|
|
2008-02-11 20:54:01 +00:00
|
|
|
extern
|
2020-12-31 10:57:11 +00:00
|
|
|
int fdname(const char *file, int fd, FILE *outfile, const char *numform,
|
|
|
|
char style);
|
2008-01-27 12:00:08 +00:00
|
|
|
|
|
|
|
#endif /* !defined(__filan_h_included) */
|