1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-08 23:04:15 +01:00

wmmenugen: Add file name validator function

Add optional interface parsers may choose to implement that, when
a directory is being scanned for files to parse, may, based on
the file name, decide whether or not said file should be parsed.

Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
This commit is contained in:
Tamas TEVESZ
2010-10-09 09:23:40 +02:00
committed by Carlos R. Mafra
parent 5377ec8fba
commit a23b72c32a
4 changed files with 72 additions and 7 deletions

View File

@@ -34,7 +34,17 @@
* Basic validation of the .desktop file is done.
*/
#if __GLIBC__ && \
(_XOPEN_SOURCE && _XOPEN_SOURCE < 500) || \
!_XOPEN_SOURCE
#define _XOPEN_SOURCE 500 /* nftw */
#endif
#include <sys/types.h>
#include <sys/stat.h>
#include <ctype.h>
#include <ftw.h>
#if DEBUG
#include <errno.h>
#endif