parallel (pthread-based) file tree walk (ftw) library

Dmitry Yu Okunev fa3d345364 Removed "ceph" from the manpage лет назад: 8
man fa3d345364 Removed "ceph" from the manpage лет назад: 8
.gitignore 5f49780e67 Initial commit, pt.3 лет назад: 8
GNUmakefile 7221bceafe Fixed more errors лет назад: 8
LICENSE 8870f67722 Initial commit лет назад: 8
README.md e181c728ed Removed "ceph" from the README.md лет назад: 8
pftw.c 7221bceafe Fixed more errors лет назад: 8
pftw.h be1e1d7f67 Initial commit, pt.1 лет назад: 8
test.c dafd655375 Fixed test лет назад: 8

README.md

NAME
       pftw - parallel file tree walk

SYNOPSIS
       #include <pftw.h>

       int pftw_init(int num_threads);

       int pftw(const char *dirpath,
               int (*fn) (const char *fpath, const struct stat *sb,
                          int typeflag, struct FTW *ftwbuf, void *arg),
               int nopenfd, int flags, void *arg);

       int pftw_deinit();


DESCRIPTION
       pftw()  does  the  same  as  nftw(3), but in parallel threads [based on
       pthreads(7)].  The additional argument arg is just an  arbitrary  user-
       defined   argument.   Before   running  pftw()  it's  required  to  run
       pftw_init() where num_threads  is  a  number  of  workers  threads  for
       pftw().   Argument  nopenfd  is  ignored. Some nftw(3) flags may be not
       supported.

RETURN VALUE
       Functions  pftw_init(),  pftw() and  pftw_deinit() returns 0 on success
       and errno if an error occurs.


AUTHOR
       Dmitry Yu Okunev <dyokunev@ut.mephi.ru> 0x8E30679C


SUPPORT
       You can get support on IRC-channel in Freenode "#clsync" or on github's
       issue     tracking     system     of     the     libpftw     repository
       https://github.com/xaionaro/libpftw.


SEE ALSO
       nftw(3)