I've massaged a glob.h / glob.c from FreeBSD to compile on Android. They might come in handy in your Android NDK adventures.
Download: glob.h | glob.c.
You'll need to add glob.c to the LOCAL_SRC_FILES in your Android.mk.
Before reMail, I was the VP Engineering at Xobni, where we invented a popular plugin for Outlook, and a Software Engineer at Google. I have an MS degree in Computer Science from ETH Zurich in Switzerland.