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

Dmitry Yu Okunev fa3d345364 Removed "ceph" from the manpage 4 years ago
man fa3d345364 Removed "ceph" from the manpage 4 years ago
.gitignore 5f49780e67 Initial commit, pt.3 4 years ago
GNUmakefile 7221bceafe Fixed more errors 4 years ago
LICENSE 8870f67722 Initial commit 4 years ago
README.md e181c728ed Removed "ceph" from the README.md 4 years ago
pftw.c 7221bceafe Fixed more errors 4 years ago
pftw.h be1e1d7f67 Initial commit, pt.1 4 years ago
test.c dafd655375 Fixed test 4 years ago

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)