/*++ /* NAME /* dict_stream 3 /* SUMMARY /* /* SYNOPSIS /* #include <dict.h> /* /* VSTREAM *dict_stream_open( /* const char *dict_type, /* const char *mapname, /* int open_flags, /* int dict_flags, /* struct stat * st, /* VSTRING **why) /* DESCRIPTION /* dict_stream_open() opens a dictionary, which can be specified /* as a file name, or as inline text enclosed with {}. If successful, /* dict_stream_open() returns a non-null VSTREAM pointer. Otherwise, /* it returns an error text through the why argument, allocating /* storage for the error text if the why argument points to a /* null pointer. /* /* When the dictionary file is specified inline, dict_stream_open() /* removes the outer {} from the mapname value, and removes leading /* or trailing comma or whitespace from the result. It then expects /* to find zero or more rules enclosed in {}, separated by comma /* and/or whitespace. dict_stream() writes each rule as one text /* line to an in-memory stream, without its enclosing {} and without /* leading or trailing whitespace. The result value is a VSTREAM /* pointer for the in-memory stream that can be read as a regular /* file. /* .sp /* inline-file = "{" 0*(0*wsp-comma rule-spec) 0*wsp-comma "}" /* .sp /* rule-spec = "{" 0*wsp rule-text 0*wsp "}" /* .sp /* rule-text = any text containing zero or more balanced {} /* .sp /* wsp-comma = wsp | "," /* .sp /* wsp = whitespace /* /* Arguments: /* .IP dict_type /* .IP open_flags /* .IP dict_flags /* The same as with dict_open(3). /* .IP mapname /* Pathname of a file with dictionary content, or inline dictionary /* content as specified above. /* .IP st /* File metadata with the file owner, or fake metadata with the /* real UID and GID of the dict_stream_open() caller. This is /* used for "taint" tracking (zero=trusted, non-zero=untrusted). /* IP why /* Pointer to pointer to error message storage. dict_stream_open() /* updates this storage when reporting an error, and allocates /* memory if why points to a null pointer. /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* Wietse Venema /* Google, Inc. /* 111 8th Avenue /* New York, NY 10011, 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.