Home | History | Annotate | Download | only in dist

Lines Matching refs:manual

41 static void AddToCurrentSection(Manual * local_manual, char *path);
42 static void InitManual(Manual * l_manual, char *label);
43 static void ReadCurrentSection(Manual * local_manual, char *path);
45 static void SortAndRemove(Manual * man, int number);
64 * Description: Builds a list of all manual directories and files.
66 * Returns: the number of manual sections.
109 * Get the list of manual directories in the users MANPATH that we should
110 * open to look for manual pages. The ``mandesc'' file is read here.
137 manual = (Manual *) XtMalloc(sizeof(Manual) * num_alloced);
138 InitManual(manual, list->label);
139 manual[sect].flags = list->flags;
146 AddToCurrentSection(manual + sect, list->directory);
148 if (manual[sect].nentries == 0) { /* empty section, re-use it. */
149 XtFree(manual[sect].blabel);
150 manual[sect].blabel = list->label;
151 manual[sect].flags = list->flags;
156 manual = (Manual *) XtRealloc((char *) manual,
157 (sizeof(Manual) * num_alloced));
158 if (manual == NULL)
160 ("Could not allocate memory for manual sections.");
162 InitManual(manual + sect, list->label);
163 manual[sect].flags = list->flags;
165 AddToCurrentSection(manual + sect, list->directory);
173 if (manual[sect].nentries != 0)
176 SortAndRemove(manual, sect);
183 * realloc manual to be minimum space necessary.
187 PrintError("No manual pages found.");
188 manual = (Manual *) XtRealloc((char *) manual, (sizeof(Manual) * sect));
189 if (manual == NULL)
190 PrintError("Could not allocate memory for manual sections.");
212 PrintError("No manual sections to read, exiting.");
352 * path - the path to the current manual section.
386 * Description: This function gets the names of the manual page
388 * Arguments: local_manual - a pointer to a manual pages structure.
394 AddToCurrentSection(Manual * local_manual, char *path)
411 * Arguments: local_manual - a pointer to a manual pages structure.
418 ReadCurrentSection(Manual * local_manual, char *path)
507 PrintError("Internal error while cataloging manual pages.");
520 * Arguments: man - a pointer to the manual structure.
521 * number - the number of manual sections.
522 * Returns: an improved manual stucure
526 SortAndRemove(Manual * man, int number)
570 ("Internal error while removing duplicate manual pages.");
576 ("Internal error while removing duplicate manual pages.");
903 * Description: Initializes this manual section.
904 * Arguments: l_manual - local copy of the manual structure.
910 InitManual(Manual * l_manual, char *label)
912 bzero(l_manual, sizeof(Manual)); /* clear it. */
919 * Description: Debugging function that dumps the entire manual page
931 printf("label: %s\n", manual[i].blabel);
932 for (j = 0; j < manual[i].nentries; j++)
933 printf("%s\n", manual[i].entries[j]);