mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-12-16 16:53:20 +08:00
a6e121aaa0
[sftp.c configure.ac openbsd-compat/glob.c openbsd-compat/glob.h] make use of new glob(3) GLOB_KEEPSTAT extension to save extra server rountrips to fetch per-file stat(2) information. NB. update openbsd-compat/ glob(3) implementation from OpenBSD libc to match.
32 lines
702 B
C
32 lines
702 B
C
/*
|
|
* Public domain, 2008, Todd C. Miller <Todd.Miller@courtesan.com>
|
|
*
|
|
* $OpenBSD: charclass.h,v 1.1 2008/10/01 23:04:13 millert Exp $
|
|
*/
|
|
|
|
/* OPENBSD ORIGINAL: lib/libc/gen/charclass.h */
|
|
|
|
/*
|
|
* POSIX character class support for fnmatch() and glob().
|
|
*/
|
|
static struct cclass {
|
|
const char *name;
|
|
int (*isctype)(int);
|
|
} cclasses[] = {
|
|
{ "alnum", isalnum },
|
|
{ "alpha", isalpha },
|
|
{ "blank", isblank },
|
|
{ "cntrl", iscntrl },
|
|
{ "digit", isdigit },
|
|
{ "graph", isgraph },
|
|
{ "lower", islower },
|
|
{ "print", isprint },
|
|
{ "punct", ispunct },
|
|
{ "space", isspace },
|
|
{ "upper", isupper },
|
|
{ "xdigit", isxdigit },
|
|
{ NULL, NULL }
|
|
};
|
|
|
|
#define NCCLASSES (sizeof(cclasses) / sizeof(cclasses[0]) - 1)
|