<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.26.0">
</HEAD>
<BODY>
On Mon, 2011-03-14 at 12:44 -0700, Dan Nicholson wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <TT><FONT COLOR="#1a1a1a">I think if you're going to make this change here, you'd also want to</FONT></TT><BR>
    <TT><FONT COLOR="#1a1a1a">make the change in sessreg.h and sessreg.c, right? The whole point of</FONT></TT><BR>
    <TT><FONT COLOR="#1a1a1a">filenames.sed.c is to mirror the configuration in the actual program.</FONT></TT><BR>
    <TT><FONT COLOR="#1a1a1a">Right now configure.ac checks for header files like lastlog.h to</FONT></TT><BR>
    <TT><FONT COLOR="#1a1a1a">determine if lastlog will be used, but further it uses that system's</FONT></TT><BR>
    <TT><FONT COLOR="#1a1a1a">particular definition of _PATH_LASTLOG. This could make the man page</FONT></TT><BR>
    <TT><FONT COLOR="#1a1a1a">divergent from the program.</FONT></TT><BR>
    <BR>
    <TT><FONT COLOR="#1a1a1a">I'm not sure I see a lot of benefit in removing that flexibility. I</FONT></TT><BR>
    <TT><FONT COLOR="#1a1a1a">realize that most users won't see any differences, but the</FONT></TT><BR>
    <TT><FONT COLOR="#1a1a1a">compatibility is already there to find the paths from standard unix</FONT></TT><BR>
    <TT><FONT COLOR="#1a1a1a">headers.</FONT></TT><BR>
    <BR>
</BLOCKQUOTE>
<BR>
I lost track of the details,&nbsp; but there were two main issues with the man pages:<BR>
<BR>
The man pages reflect the configuration of the actual program. I see this as a problem<BR>
rather than a helpful feature. Man pages are often read off the web. It is particularly<BR>
bad for this program as the tone of the information in the man page makes the user think<BR>
it provides all platform information. The program itself is platform neutral such that it <BR>
will not break given an option for the wrong platform.<BR>
<BR>
I recall that the attempt to reflect the configuration of the program is flawed.<BR>
Assumptions are made based on the presence of headers, but the reality is more<BR>
complex. Headers may be there, but are obsolete depending on the system<BR>
version. In the MAC, the new interface is used to read/write and the old interface<BR>
is maintained for read-only. There is no way to reflect that in the man pages.<BR>
<BR>
That's my general impression of the man pages. There are two opposing views<BR>
in the man page. One that gives info on multiple platforms, and one that<BR>
customizes info based on the platform where it is built.<BR>
<BR>
I chose to go with the first approach. I can accept the second approach,<BR>
but it would have to be implemented correctly which I don't think is possible.<BR>
How can you handle the case where utmp.h is shipped on a platform where<BR>
the docs tell you not to use it?<BR>
<BR>
I don't have much system knowledge, if you are convinced the current man page<BR>
contains no errors on any platform, I am fine.<BR>
<BR>
Thanks!<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
</BODY>
</HTML>