1 $NetBSD: patch-ac,v 1.1 2000/01/15 17:44:21 hubertf Exp $
3 diff -x *.orig -urN ./WWW/Library/Implementation/HTAAFile.h /usr/pkgsrc/www/lynx/work.unpatched/lynx2-8-2/WWW/Library/Implementation/HTAAFile.h
4 --- ./WWW/Library/Implementation/HTAAFile.h Thu Jan 1 01:00:00 1970
5 +++ /usr/pkgsrc/www/lynx/work.unpatched/lynx2-8-2/WWW/Library/Implementation/HTAAFile.h Sat Jan 15 07:57:17 2000
7 +/* FILE ROUTINES FOR ACCESS AUTHORIZATION PACKAGE
9 + This module implements the routines used for accessing (and parsing) the files used in
10 + the access authorization:
16 + access control list (ACL) file
24 +#include <HTList.h> /* HTList */
27 +#define HTAAFnRe HTAAFile_nextRec
28 +#define HTAAFrFi HTAAFile_readField
29 +#define HTAAFrLi HTAAFile_readList
30 +#endif /*SHORT_NAMES*/
33 +/* Used field separators */
35 +#define FIELD_SEPARATOR ':' /* Used to separate fields */
36 +#define LIST_SEPARATOR ',' /* Used to separate items in a list */
37 + /* in group and ALC files. */
43 + Record is an entire line in file.
45 + Field is an entity separated by colons and/or by end-of-line.
47 + List is a field in which there are items separated by commas.
49 +Record-oriented Read Routines
51 + Password, group and ACL are internally read in by the following functions:
53 + HTAAFile_nextRec() skips to the beginning of the next record (must be called even
54 + after the last field of a record is read to proceed to the next
57 + HTAAFile_readField() reads a field (separated by colons).
59 + HTAAFile_readList() reads a field containing a comma-separated list of items.
63 +/* PUBLIC HTAAFile_nextRec()
64 +** GO TO THE BEGINNING OF THE NEXT RECORD
66 +** fp is the file from which records are read from.
69 +** returns nothing. File read pointer is located at the beginning
70 +** of the next record.
73 +PUBLIC void HTAAFile_nextRec PARAMS((FILE * fp));
76 +/* PUBLIC HTAAFile_readField()
77 +** READ A FIELD FROM A PASSWORD, GROUP
78 +** OR ACCESS CONTROL LIST FILE
79 +** i.e. an item terminated by colon,
80 +** end-of-line, or end-of-file.
82 +** fp is the file to read the characters from
83 +** contents is the character array to put the characters
84 +** max_len is the maximum number of characters that may
85 +** be read (i.e. the size of dest minus one for
86 +** terminating null).
88 +** returns the terminating character
89 +** (i.e. either separator or CR or LF or EOF).
90 +** contents contains a null-terminated string representing
93 +** Ignores leading and trailing blanks and tabs.
95 +** If the field is more than max_len characters
96 +** long, the rest of the characters in that item
97 +** are ignored. However, contents is always
100 +PUBLIC int HTAAFile_readField PARAMS((FILE * fp,
105 +/* PUBLIC HTAAFile_readList()
107 +** READ A LIST OF STRINGS SEPARATED BY COMMAS
108 +** (FROM A GROUP OR ACCESS CONTROL LIST FILE)
110 +** fp is a pointer to the input file.
111 +** result is the list to which append the read items.
112 +** max_len is the maximum number of characters in each
113 +** list entry (extra characters are ignored).
115 +** returns the number of items read.
118 +PUBLIC int HTAAFile_readList PARAMS((FILE * fp,
125 +#endif /* not HTAAFILE_H */
128 + End of file HTAAFile.h. */