xman and section "9" manpages
I have been using xman while working on a systems with a GUI for years. (It's nice to have the xman icon sitting up there on the panel in case I need to look something up.) Earlier I ran across something odd. While using the "apropos" option in xman to search for a topic, it listed a slew of pages that are in section "9". I'd never heard of that section before. It appears to have topics that I would have thought should be in section "8" (system administration) or "2" or "3" (system calls and subroutines). Even though the output of the "apropos" search option listed pages in section "9", the xman ""Sections" drop down menu doesn't show a section "9". The pages are out there under /usr/share/man but they're only accessible via the CLI.
Q1: What is the general category you'd place the section 9 pages in? It looks like a lot of the topics are for hardware configuration, low-level device programming, etc. The file /etc/manpath.config lists a whole lot of sections that but there's no section names to associate with each numbered section. Q2: Is there a way to get xman to recognize the pages under "man9"? "/usr/share/man" seems to be specified in /etc/manpath.config but only sections up to "8" are being listed. (Then it skips to "n".) Q3: If the answer to Q2 is "no", is there another tool like xman that I can use instead? TIA... -- Rick |
Member Response
Hi,
In your profile it shows Solaris. Is this the OS that you are querying about man(9)? If so then man(9) references kernel interfaces. I believe most Unix-like Gnu/Linux use pages 1-8 unless modified by the maintainer. UNIX Sys V does use (9) for kernel routines. It would be nice to know which distribution you are working with so we can specify properly. 'man man'; Quote:
'man xman'; Quote:
Hope this helps. :hattip: |
Quote:
I could fire up my old Ultra60 and see what xman shows on that system but I'd have to haul the thing out of the back room and get it reconnected to the LAN. For now I'll take your word that section 9 shows up on Solaris's xman. I've fixed the missing Section "9" entry though it took some doing. (Caution: long-winded description of the fix process follows. If it feels a little disjointed, I blame that on constant interruptions from phone calls, folks asking me questions, etc.) There is a manpath.config file under /etc but as far as I can tell, it appears to be OK. It appears to set up the man subsystem for all of the section 1-8 manpages and for a slew of other sections as well. Code:
. I tried manually adding the "man[1-9]" directories to MANPATH, exported it, and fired up xman. Only the numbered sections 1-8 appear in the 'Section' drop down menu; "9" did not show up. (I didn't really expect this to work as I've never seen a MANPATH specify anything deeper than a "man" directory on any Unix system.) Just for fun, I ran Code:
strace -v xman 2>&1 | tee /tmp/xman.trace Everything I've read says that MANPATH controls what directories xman will display but that's not exactly true as I saw with the strace output. Information over at the Xorg web site indicates that /etc/man.conf is used but I saw no evidence that xman was even trying to open that file -- I didn't see an attempt to access it in my strace log -- and, as I expected, when I created one, it had no effect on the menus. (Outdated documentation?) Recalling all the open() fails I saw in the strace output for "mandesc" files, I found a description of the format for that file on the X.org web site. (It was basically a prettier version of what you posted.) The docs mention that a "mandesc" file may also be used to control xman. I created one -- using an example shown on the Xorg/Xman pages -- and that is -- so far -- the only thing that has made the section "9" pages show up. My version of the mandesc page is: Code:
no default sections Code:
9(9) Kernel Routines Now on to figuring out what those manpages under the "man0p" directory are all about and getting those added to the menu. (Looks like descriptions of POSIX header files.) I suspect I'll have to get creative if I try and add menu entries for the manpages for many of the sections that are listed in the entries in that SECTION variable in manpath.config. Xman's mandesc doesn't use more than one character to define a section entry. Anyway... thanks for the hint. Well, maybe not a hint exactly but faced with the prospect of schlepping 50+ pounds of Sparcstation around and reconnecting it to the network just to see how Solaris had things set up and perhaps copying that, I found I'd rather scour the Internet for whatever information I could find on xman. And I got to use a few tools I hadn't touched for a while, too. Later... -- Rick |
All times are GMT -5. The time now is 01:37 AM. |