/*++ /* NAME /* match_list 3 /* SUMMARY /* generic list-based pattern matching /* SYNOPSIS /* #include <match_list.h> /* /* MATCH_LIST *match_list_init(pname, flags, pattern_list, count, func,...) /* const char *pname; /* int flags; /* const char *pattern_list; /* int count; /* int (*func)(int flags, const char *string, const char *pattern); /* /* int match_list_match(list, string,...) /* MATCH_LIST *list; /* const char *string; /* /* void match_list_free(list) /* MATCH_LIST *list; /* DESCRIPTION /* This module implements a framework for tests for list /* membership. The actual tests are done by user-supplied /* functions. /* /* Patterns are separated by whitespace and/or commas. A pattern /* is either a string, a file name (in which case the contents /* of the file are substituted for the file name) or a type:name /* lookup table specification. In order to reverse the result /* of a pattern match, precede a pattern with an exclamation /* point (!). /* /* match_list_init() performs initializations. When the global /* util_utf8_enable variable is non-zero, and when the code /* is compiled with EAI support, string comparison will use /* caseless UTF-8 mode. Otherwise, only ASCII characters will /* be casefolded. /* /* match_list_match() matches strings against the specified /* pattern list, passing the first string to the first function /* given to match_list_init(), the second string to the second /* function, and so on. /* /* match_list_free() releases storage allocated by match_list_init(). /* /* Arguments: /* .IP pname /* Parameter name or other identifying information that is /* prepended to error messages. /* .IP flags /* Specifies the bit-wise OR of zero or more of the following: /* .RS /* .IP MATCH_FLAG_PARENT /* The hostname pattern foo.com matches any name within the /* domain foo.com. If this flag is cleared, foo.com matches /* itself only, and .foo.com matches any name below the domain /* foo.com. /* .IP MATCH_FLAG_RETURN /* Request that match_list_match() logs a warning and returns /* zero (with list->error set to a non-zero dictionary error /* code) instead of raising a fatal run-time error. /* .RE /* Specify MATCH_FLAG_NONE to request none of the above. /* .IP pattern_list /* A list of patterns. /* .IP count /* Specifies how many match functions follow. /* .IP list /* Pattern list produced by match_list_init(). /* .IP string /* Search string. /* DIAGNOSTICS /* Fatal error: unable to open or read a match_list file; invalid /* match_list pattern; casefold error (UTF-8 mode only). /* SEE ALSO /* host_match(3) match hosts by name or by address /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* Wietse Venema /* IBM T.J. Watson Research /* P.O. Box 704 /* Yorktown Heights, NY 10598, USA
/*--*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.