pkginc_HEADERS = \
rpmio.h rpmurl.h rpmmacro.h rpmlog.h rpmmessages.h rpmerr.h \
ugid.h
-noinst_HEADERS = rpmio_internal.h rpmpgp.h
+noinst_HEADERS = fts.h rpmio_internal.h rpmpgp.h
LIBS += @WITH_ZLIB_LIB@ -lrt -lpthread
BEECRYPTLOBJS = $(shell cat $(top_builddir)/beecrypt/listobjs)
lib_LTLIBRARIES = librpmio.la
-librpmio_la_SOURCES = digest.c macro.c rpmio.c rpmlog.c rpmmalloc.c \
+librpmio_la_SOURCES = digest.c fts.c macro.c rpmio.c rpmlog.c rpmmalloc.c \
rpmpgp.c rpmrpc.c strcasecmp.c stubs.c url.c ugid.c
librpmio_la_LDFLAGS = -release @VERSION@
librpmio_la_LIBADD = $(BEECRYPTLOBJS)
static char sccsid[] = "@(#)fts.c 8.6 (Berkeley) 8/14/94";
#endif /* LIBC_SCCS and not lint */
+#if defined(_LIBC)
#include <sys/param.h>
#include <include/sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#else
+#include "system.h"
+#include "fts.h"
+# define internal_function
+# define __set_errno(val) (*__errno_location ()) = (val)
+# define __open open
+# define __close close
+# define __fchdir fchdir
+# define __opendir opendir
+# define __closedir closedir
+# define __readdir readdir
+#endif
/* Largest alignment size needed, minus one.
#define BREAD 3 /* fts_read */
FTS *
-fts_open(argv, options, compar)
+Fts_open(argv, options, compar)
char * const *argv;
register int options;
int (*compar) __P((const FTSENT **, const FTSENT **));
}
int
-fts_close(sp)
+Fts_close(sp)
FTS *sp;
{
register FTSENT *freep, *p;
? p->fts_pathlen - 1 : p->fts_pathlen)
FTSENT *
-fts_read(sp)
+Fts_read(sp)
register FTS *sp;
{
register FTSENT *p, *tmp;
*/
/* ARGSUSED */
int
-fts_set(sp, p, instr)
+Fts_set(sp, p, instr)
FTS *sp;
FTSENT *p;
int instr;
}
FTSENT *
-fts_children(sp, instr)
+Fts_children(sp, instr)
register FTS *sp;
int instr;
{
} FTSENT;
__BEGIN_DECLS
-FTSENT *fts_children (FTS *, int) __THROW;
-int fts_close (FTS *) __THROW;
-FTS *fts_open (char * const *, int,
+FTSENT *Fts_children (FTS *, int) __THROW;
+int Fts_close (FTS *) __THROW;
+FTS *Fts_open (char * const *, int,
int (*)(const FTSENT **, const FTSENT **)) __THROW;
-FTSENT *fts_read (FTS *) __THROW;
-int fts_set (FTS *, FTSENT *, int) __THROW;
+FTSENT *Fts_read (FTS *) __THROW;
+int Fts_set (FTS *, FTSENT *, int) __THROW;
__END_DECLS
#endif /* fts.h */