Simplify
Mark internal class members as private
Stop using utmp if utmpx is available This commit changes ptytty to use only utmpx on systems where both utmpx and utmp are available, as utmp is generally deprecated and pointless to use on these, glibc being the exception. The commit also refactors code to reduce the amount of ifdeffery.
Include sys/types.h to get __GLIBC__ definition
nuke pid check
Remove obsolete comments.
Fix writing of bsd login and logout utmp entry when close_tty is called before login and delete respectively.
Simplify.
Change PT_FIND_FILE to search only for fallback locations of utmp/wtmp/lastlog files and define the *_FILE macros at compile time.
Move some includes from ptytty.h to logging.C.
Remove useless member variables.
Merge code to write utmp login and logout entries into a single function.
Generate the utmp(x) id in the same way as openssh.
Fix compilation on systems with bsd style utmp and no utmpx, such as openbsd.
Remove unused define.
Remove dead code.
Remove useless and harmful check for utmpx file. Fixes build on freebsd-9 which provides utmpx but does not define a macro for the corresponding filename.
*** empty log message ***
*** empty log message ***
*** empty log message ***
*** empty log message ***
*** empty log message ***
*** empty log message ***
*** empty log message ***
*** empty log message ***
*** empty log message ***
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.