Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xaionaro/libpftw
parallel (pthread-based) file tree walk (ftw) library
https://github.com/xaionaro/libpftw
Last synced: 27 days ago
JSON representation
parallel (pthread-based) file tree walk (ftw) library
- Host: GitHub
- URL: https://github.com/xaionaro/libpftw
- Owner: xaionaro
- License: gpl-3.0
- Created: 2015-08-02T19:59:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-06T18:16:59.000Z (over 9 years ago)
- Last Synced: 2024-05-08T21:27:00.395Z (6 months ago)
- Language: C
- Homepage: https://devel.mephi.ru/dyokunev/libpftw
- Size: 164 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
NAME
pftw - parallel file tree walk
SYNOPSIS
#include
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 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)