ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libptytty/src/logging.C
Revision 1.75 - (view) (download) (annotate) - [select for diffs]
Sat Jul 24 09:05:17 2021 UTC (5 years, 1 month ago) by sf-exg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.74: +1 -1 lines
Diff to previous 1.74
Update my email address

Revision 1.74 - (view) (download) (annotate) - [select for diffs]
Sat Jun 26 14:31:15 2021 UTC (5 years, 2 months ago) by sf-exg
Branch: MAIN
Changes since 1.73: +0 -4 lines
Diff to previous 1.73
Remove PTYTTY_{WARN,FATAL} and throw on failure

Revision 1.73 - (view) (download) (annotate) - [select for diffs]
Wed Jun 16 05:08:48 2021 UTC (5 years, 3 months ago) by sf-exg
Branch: MAIN
Changes since 1.72: +14 -14 lines
Diff to previous 1.72
Fix style

Revision 1.72 - (view) (download) (annotate) - [select for diffs]
Tue May 25 13:51:22 2021 UTC (5 years, 3 months ago) by sf-exg
Branch: MAIN
Changes since 1.71: +4 -5 lines
Diff to previous 1.71
Include microseconds in utmpx and lastlogx time

Revision 1.71 - (view) (download) (annotate) - [select for diffs]
Mon May 24 14:22:50 2021 UTC (5 years, 3 months ago) by sf-exg
Branch: MAIN
Changes since 1.70: +139 -169 lines
Diff to previous 1.70
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.

Revision 1.70 - (view) (download) (annotate) - [select for diffs]
Mon May 24 13:54:45 2021 UTC (5 years, 3 months ago) by sf-exg
Branch: MAIN
Changes since 1.69: +11 -25 lines
Diff to previous 1.69
Factor code to write utmp and lastlog records

Revision 1.69 - (view) (download) (annotate) - [select for diffs]
Fri Oct 31 07:55:37 2014 UTC (11 years, 10 months ago) by sf-exg
Branch: MAIN
CVS Tags: rel-1_7, rel-1_8, rxvt-unicode-rel-9_21, rxvt-unicode-rel-9_22, rxvt-unicode-rel-9_25, rxvt-unicode-rel-9_26
Changes since 1.68: +2 -1 lines
Diff to previous 1.68
Fix compilation on fbsd/obsd.

Revision 1.68 - (view) (download) (annotate) - [select for diffs]
Mon Aug 25 13:33:46 2014 UTC (12 years ago) by sf-exg
Branch: MAIN
Changes since 1.67: +1 -1 lines
Diff to previous 1.67
Revert last change.

Revision 1.67 - (view) (download) (annotate) - [select for diffs]
Thu May 22 18:54:32 2014 UTC (12 years, 3 months ago) by root
Branch: MAIN
Changes since 1.66: +1 -1 lines
Diff to previous 1.66
GPLv3

Revision 1.66 - (view) (download) (annotate) - [select for diffs]
Sat Feb 4 18:22:07 2012 UTC (14 years, 7 months ago) by sf-exg
Branch: MAIN
CVS Tags: rxvt-unicode-rel-9_16, rxvt-unicode-rel-9_17, rxvt-unicode-rel-9_18, rxvt-unicode-rel-9_19, rxvt-unicode-rel-9_20
Changes since 1.65: +1 -1 lines
Diff to previous 1.65
Simplify.

Revision 1.65 - (view) (download) (annotate) - [select for diffs]
Thu Jan 19 13:30:58 2012 UTC (14 years, 7 months ago) by sf-exg
Branch: MAIN
CVS Tags: rel-1_6, rxvt-unicode-rel-9_15
Changes since 1.64: +1 -1 lines
Diff to previous 1.64
Include the C standard headers rather than the corresponding C++ version.

Revision 1.64 - (view) (download) (annotate) - [select for diffs]
Thu Jan 19 11:06:10 2012 UTC (14 years, 7 months ago) by sf-exg
Branch: MAIN
Changes since 1.63: +1 -1 lines
Diff to previous 1.63
Fix compilation on solaris.

Revision 1.63 - (view) (download) (annotate) - [select for diffs]
Wed Jan 18 12:19:31 2012 UTC (14 years, 7 months ago) by root
Branch: MAIN
Changes since 1.62: +0 -3 lines
Diff to previous 1.62
*** empty log message ***

Revision 1.62 - (view) (download) (annotate) - [select for diffs]
Thu Dec 22 10:32:22 2011 UTC (14 years, 8 months ago) by sf-exg
Branch: MAIN
CVS Tags: rel-1_5
Changes since 1.61: +0 -4 lines
Diff to previous 1.61
Always honour login_shell argument of login rather than only when an
urxvt feature macro is defined.

Revision 1.61 - (view) (download) (annotate) - [select for diffs]
Thu Dec 22 10:16:49 2011 UTC (14 years, 8 months ago) by sf-exg
Branch: MAIN
Changes since 1.60: +0 -3 lines
Diff to previous 1.60
Remove support for utmpx ut_session extension, it serves no purpose.

Revision 1.60 - (view) (download) (annotate) - [select for diffs]
Thu Dec 22 10:03:01 2011 UTC (14 years, 8 months ago) by sf-exg
Branch: MAIN
Changes since 1.59: +7 -10 lines
Diff to previous 1.59
Inhibit also update of lastlogx if there is no entry in the user
database for the real user id.

Revision 1.59 - (view) (download) (annotate) - [select for diffs]
Fri Dec 2 08:45:45 2011 UTC (14 years, 9 months ago) by sf-exg
Branch: MAIN
CVS Tags: rel-9_14
Changes since 1.58: +0 -7 lines
Diff to previous 1.58
Fix writing of bsd login and logout utmp entry when close_tty is called
before login and delete respectively.

Revision 1.58 - (view) (download) (annotate) - [select for diffs]
Sat Nov 26 13:39:04 2011 UTC (14 years, 9 months ago) by sf-exg
Branch: MAIN
Changes since 1.57: +36 -0 lines
Diff to previous 1.57
Change PT_FIND_FILE to search only for fallback locations of
utmp/wtmp/lastlog files and define the *_FILE macros at compile time.

Revision 1.57 - (view) (download) (annotate) - [select for diffs]
Fri Nov 25 16:31:38 2011 UTC (14 years, 9 months ago) by sf-exg
Branch: MAIN
Changes since 1.56: +8 -9 lines
Diff to previous 1.56
Simplify.

Revision 1.56 - (view) (download) (annotate) - [select for diffs]
Thu Nov 24 13:43:05 2011 UTC (14 years, 9 months ago) by sf-exg
Branch: MAIN
Changes since 1.55: +12 -0 lines
Diff to previous 1.55
Move some includes from ptytty.h to logging.C.

Revision 1.55 - (view) (download) (annotate) - [select for diffs]
Wed Nov 23 20:20:00 2011 UTC (14 years, 9 months ago) by sf-exg
Branch: MAIN
Changes since 1.54: +12 -12 lines
Diff to previous 1.54
Remove useless member variables.

Revision 1.54 - (view) (download) (annotate) - [select for diffs]
Fri Nov 18 13:48:32 2011 UTC (14 years, 9 months ago) by sf-exg
Branch: MAIN
Changes since 1.53: +28 -75 lines
Diff to previous 1.53
Merge code to write utmp login and logout entries into a single function.

Revision 1.53 - (view) (download) (annotate) - [select for diffs]
Thu Nov 17 11:59:54 2011 UTC (14 years, 10 months ago) by sf-exg
Branch: MAIN
Changes since 1.52: +3 -5 lines
Diff to previous 1.52
Simplify.

Avoiding an open when the utmp file cannot be opened is not worth the
extra conditional.

Revision 1.52 - (view) (download) (annotate) - [select for diffs]
Sun Nov 13 16:39:25 2011 UTC (14 years, 10 months ago) by sf-exg
Branch: MAIN
Changes since 1.51: +8 -1 lines
Diff to previous 1.51
do not clear ut_user in utmpx logout records because pututxline fails
otherwise on solaris.

Revision 1.51 - (view) (download) (annotate) - [select for diffs]
Sun Nov 13 16:01:07 2011 UTC (14 years, 10 months ago) by sf-exg
Branch: MAIN
Changes since 1.50: +21 -21 lines
Diff to previous 1.50
Undo part of previous commit that was not supposed to be checked-in.

Revision 1.50 - (view) (download) (annotate) - [select for diffs]
Sun Nov 13 15:34:40 2011 UTC (14 years, 10 months ago) by sf-exg
Branch: MAIN
Changes since 1.49: +22 -21 lines
Diff to previous 1.49
Cosmetics.

Revision 1.49 - (view) (download) (annotate) - [select for diffs]
Sun Nov 13 11:10:20 2011 UTC (14 years, 10 months ago) by sf-exg
Branch: MAIN
Changes since 1.48: +1 -6 lines
Diff to previous 1.48
Revert 2011-11-09 change.

Revision 1.48 - (view) (download) (annotate) - [select for diffs]
Thu Nov 10 15:48:52 2011 UTC (14 years, 10 months ago) by sf-exg
Branch: MAIN
Changes since 1.47: +5 -21 lines
Diff to previous 1.47
remove support for writing lastlog when the lastlog file is a directory.

Revision 1.47 - (view) (download) (annotate) - [select for diffs]
Thu Nov 10 11:33:59 2011 UTC (14 years, 10 months ago) by sf-exg
Branch: MAIN
Changes since 1.46: +6 -1 lines
Diff to previous 1.46
do not clear ut_user in utmpx logout records because pututxline fails
otherwise on solaris

Revision 1.46 - (view) (download) (annotate) - [select for diffs]
Sat Jul 9 11:26:22 2011 UTC (15 years, 2 months ago) by sf-exg
Branch: MAIN
Changes since 1.45: +3 -12 lines
Diff to previous 1.45
Merge ifdef blocks.

Revision 1.45 - (view) (download) (annotate) - [select for diffs]
Fri Jul 8 20:56:52 2011 UTC (15 years, 2 months ago) by sf-exg
Branch: MAIN
Changes since 1.44: +20 -21 lines
Diff to previous 1.44
Generate the utmp(x) id in the same way as openssh.

Revision 1.44 - (view) (download) (annotate) - [select for diffs]
Mon May 30 20:59:42 2011 UTC (15 years, 3 months ago) by sf-exg
Branch: MAIN
CVS Tags: rel-1_4, rel-9_12
Changes since 1.43: +2 -2 lines
Diff to previous 1.43
Make some stuff optional to ease embedding in urxvt.

Revision 1.43 - (view) (download) (annotate) - [select for diffs]
Mon May 30 10:45:16 2011 UTC (15 years, 3 months ago) by sf-exg
Branch: MAIN
Changes since 1.42: +4 -4 lines
Diff to previous 1.42
Cosmetics.

Revision 1.42 - (view) (download) (annotate) - [select for diffs]
Mon May 23 10:55:17 2011 UTC (15 years, 3 months ago) by sf-exg
Branch: MAIN
Changes since 1.41: +4 -4 lines
Diff to previous 1.41
Remove pointless comments.

Revision 1.41 - (view) (download) (annotate) - [select for diffs]
Fri May 20 08:00:12 2011 UTC (15 years, 3 months ago) by sf-exg
Branch: MAIN
Changes since 1.40: +1 -1 lines
Diff to previous 1.40
Fix typo.

Revision 1.40 - (view) (download) (annotate) - [select for diffs]
Fri May 20 07:51:07 2011 UTC (15 years, 3 months ago) by sf-exg
Branch: MAIN
Changes since 1.39: +12 -4 lines
Diff to previous 1.39
Set also ut_line in utmp(x) logout records, most implementations of last
use this field to associate records in wtmp file.

Revision 1.39 - (view) (download) (annotate) - [select for diffs]
Wed May 18 08:48:12 2011 UTC (15 years, 4 months ago) by sf-exg
Branch: MAIN
Changes since 1.38: +3 -3 lines
Diff to previous 1.38
Rename variable.

Revision 1.38 - (view) (download) (annotate) - [select for diffs]
Tue May 17 10:13:18 2011 UTC (15 years, 4 months ago) by sf-exg
Branch: MAIN
Changes since 1.37: +10 -16 lines
Diff to previous 1.37
Merge ifdef blocks.

Revision 1.37 - (view) (download) (annotate) - [select for diffs]
Tue May 17 09:46:58 2011 UTC (15 years, 4 months ago) by sf-exg
Branch: MAIN
Changes since 1.36: +6 -10 lines
Diff to previous 1.36
Merge ifdef blocks.

Revision 1.36 - (view) (download) (annotate) - [select for diffs]
Tue May 17 09:46:04 2011 UTC (15 years, 4 months ago) by sf-exg
Branch: MAIN
Changes since 1.35: +0 -2 lines
Diff to previous 1.35
Remove unneeded calls to getut(x)id.

Revision 1.35 - (view) (download) (annotate) - [select for diffs]
Tue May 17 09:45:10 2011 UTC (15 years, 4 months ago) by sf-exg
Branch: MAIN
Changes since 1.34: +2 -8 lines
Diff to previous 1.34
Simplify, getut(x)id matches by id not by type when type is {USER,DEAD}_PROCESS.

Revision 1.34 - (view) (download) (annotate) - [select for diffs]
Tue May 17 09:39:26 2011 UTC (15 years, 4 months ago) by sf-exg
Branch: MAIN
Changes since 1.33: +3 -5 lines
Diff to previous 1.33
Make sure that utmp_pos is initialized when write_bsd_utmp fails.

Revision 1.33 - (view) (download) (annotate) - [select for diffs]
Tue May 17 09:36:14 2011 UTC (15 years, 4 months ago) by sf-exg
Branch: MAIN
Changes since 1.32: +0 -8 lines
Diff to previous 1.32
Remove dead code.

Revision 1.32 - (view) (download) (annotate) - [select for diffs]
Mon May 16 09:24:54 2011 UTC (15 years, 4 months ago) by sf-exg
Branch: MAIN
Changes since 1.31: +68 -56 lines
Diff to previous 1.31
Factor code to fill utmp(x) records and consistently set only id, pid and time in utmp(x) logout records.

Revision 1.31 - (view) (download) (annotate) - [select for diffs]
Fri May 13 16:09:48 2011 UTC (15 years, 4 months ago) by sf-exg
Branch: MAIN
Changes since 1.30: +6 -6 lines
Diff to previous 1.30
Do not require LASTLOG_FILE definition for lastlogx support.

Revision 1.30 - (view) (download) (annotate) - [select for diffs]
Sun Mar 27 00:11:30 2011 UTC (15 years, 5 months ago) by sf-exg
Branch: MAIN
Changes since 1.29: +1 -1 lines
Diff to previous 1.29
*** empty log message ***

Revision 1.29 - (view) (download) (annotate) - [select for diffs]
Fri Apr 2 10:54:53 2010 UTC (16 years, 5 months ago) by sf-exg
Branch: MAIN
Changes since 1.28: +10 -8 lines
Diff to previous 1.28
Revert last change.

Revision 1.28 - (view) (download) (annotate) - [select for diffs]
Mon Mar 29 11:00:21 2010 UTC (16 years, 5 months ago) by sf-exg
Branch: MAIN
Changes since 1.27: +8 -10 lines
Diff to previous 1.27
Simplify.

Revision 1.27 - (view) (download) (annotate) - [select for diffs]
Mon Mar 29 08:17:21 2010 UTC (16 years, 5 months ago) by sf-exg
Branch: MAIN
Changes since 1.26: +1 -3 lines
Diff to previous 1.26
Simplify.

Revision 1.26 - (view) (download) (annotate) - [select for diffs]
Fri Jan 8 11:48:53 2010 UTC (16 years, 8 months ago) by sf-exg
Branch: MAIN
Changes since 1.25: +1 -1 lines
Diff to previous 1.25
Switch to automake.

Revision 1.25 - (view) (download) (annotate) - [select for diffs]
Sun May 3 21:54:08 2009 UTC (17 years, 4 months ago) by root
Branch: MAIN
CVS Tags: rel-1_3
Changes since 1.24: +1 -0 lines
Diff to previous 1.24
1.3

Revision 1.24 - (view) (download) (annotate) - [select for diffs]
Fri Dec 14 09:52:51 2007 UTC (18 years, 9 months ago) by ayin
Branch: MAIN
Changes since 1.23: +1 -0 lines
Diff to previous 1.23
Include errno.h for errno.

Revision 1.23 - (view) (download) (annotate) - [select for diffs]
Wed Dec 12 09:43:52 2007 UTC (18 years, 9 months ago) by ayin
Branch: MAIN
Changes since 1.22: +1 -1 lines
Diff to previous 1.22
Include fcntl.h rather than sys/fcntl.h.

Revision 1.22 - (view) (download) (annotate) - [select for diffs]
Mon Nov 26 10:41:09 2007 UTC (18 years, 9 months ago) by ayin
Branch: MAIN
Changes since 1.21: +2 -1 lines
Diff to previous 1.21
Cosmetics.

Revision 1.21 - (view) (download) (annotate) - [select for diffs]
Tue Nov 20 14:07:52 2007 UTC (18 years, 9 months ago) by ayin
Branch: MAIN
Changes since 1.20: +3 -7 lines
Diff to previous 1.20
Simplify.

Revision 1.20 - (view) (download) (annotate) - [select for diffs]
Mon Nov 19 14:20:27 2007 UTC (18 years, 9 months ago) by ayin
Branch: MAIN
Changes since 1.19: +1 -1 lines
Diff to previous 1.19
Remove always true test.

Revision 1.19 - (view) (download) (annotate) - [select for diffs]
Mon Nov 19 14:18:58 2007 UTC (18 years, 9 months ago) by ayin
Branch: MAIN
Changes since 1.18: +0 -2 lines
Diff to previous 1.18
Remove useless strncpy calls.

Revision 1.18 - (view) (download) (annotate) - [select for diffs]
Mon Nov 19 11:21:43 2007 UTC (18 years, 9 months ago) by ayin
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17
'precision' type is int.

Revision 1.17 - (view) (download) (annotate) - [select for diffs]
Thu Nov 15 10:49:04 2007 UTC (18 years, 10 months ago) by ayin
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16
Cosmetics.

Revision 1.16 - (view) (download) (annotate) - [select for diffs]
Mon Nov 5 09:31:50 2007 UTC (18 years, 10 months ago) by ayin
Branch: MAIN
Changes since 1.15: +4 -6 lines
Diff to previous 1.15
Factoring.

Revision 1.15 - (view) (download) (annotate) - [select for diffs]
Mon Nov 5 00:43:42 2007 UTC (18 years, 10 months ago) by ayin
Branch: MAIN
Changes since 1.14: +1 -25 lines
Diff to previous 1.14
Assume ttyslot availability for BSD utmp.

Revision 1.14 - (view) (download) (annotate) - [select for diffs]
Sun Nov 4 10:19:41 2007 UTC (18 years, 10 months ago) by ayin
Branch: MAIN
Changes since 1.13: +17 -17 lines
Diff to previous 1.13
Reindent.

Revision 1.13 - (view) (download) (annotate) - [select for diffs]
Sun Nov 4 10:16:59 2007 UTC (18 years, 10 months ago) by ayin
Branch: MAIN
Changes since 1.12: +7 -5 lines
Diff to previous 1.12
Detect if LASTLOG_FILE is a directory or a file at runtime.

Revision 1.12 - (view) (download) (annotate) - [select for diffs]
Sun Nov 4 09:24:50 2007 UTC (18 years, 10 months ago) by ayin
Branch: MAIN
Changes since 1.11: +126 -133 lines
Diff to previous 1.11
Move static functions before their use and remove their declarations.

Revision 1.11 - (view) (download) (annotate) - [select for diffs]
Sun Nov 4 09:08:42 2007 UTC (18 years, 10 months ago) by ayin
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10
Add check for updlastlogx and make lastlogx support conditional on its
availability.

Revision 1.10 - (view) (download) (annotate) - [select for diffs]
Wed Jan 25 11:14:26 2006 UTC (20 years, 7 months ago) by root
Branch: MAIN
CVS Tags: rel-0_1, rel-0_2, rel-1_0, rel-1_1, rel-1_2
Changes since 1.9: +5 -5 lines
Diff to previous 1.9
*** empty log message ***

Revision 1.9 - (view) (download) (annotate) - [select for diffs]
Sun Jan 22 12:22:37 2006 UTC (20 years, 7 months ago) by root
Branch: MAIN
Changes since 1.8: +1 -1 lines
Diff to previous 1.8
*** empty log message ***

Revision 1.8 - (view) (download) (annotate) - [select for diffs]
Sun Jan 22 10:19:44 2006 UTC (20 years, 7 months ago) by ayin
Branch: MAIN
Changes since 1.7: +1 -0 lines
Diff to previous 1.7
*** empty log message ***

Revision 1.7 - (view) (download) (annotate) - [select for diffs]
Sun Jan 22 04:05:18 2006 UTC (20 years, 7 months ago) by root
Branch: MAIN
Changes since 1.6: +10 -2 lines
Diff to previous 1.6
*** empty log message ***

Revision 1.6 - (view) (download) (annotate) - [select for diffs]
Sun Jan 22 00:58:18 2006 UTC (20 years, 7 months ago) by root
Branch: MAIN
Changes since 1.5: +4 -4 lines
Diff to previous 1.5
*** empty log message ***

Revision 1.5 - (view) (download) (annotate) - [select for diffs]
Sat Jan 21 22:36:46 2006 UTC (20 years, 7 months ago) by root
Branch: MAIN
Changes since 1.4: +9 -1 lines
Diff to previous 1.4
*** empty log message ***

Revision 1.4 - (view) (download) (annotate) - [select for diffs]
Sat Jan 21 22:17:37 2006 UTC (20 years, 7 months ago) by root
Branch: MAIN
Changes since 1.3: +1 -1 lines
Diff to previous 1.3
*** empty log message ***

Revision 1.3 - (view) (download) (annotate) - [select for diffs]
Sat Jan 21 22:10:45 2006 UTC (20 years, 7 months ago) by root
Branch: MAIN
Changes since 1.2: +23 -23 lines
Diff to previous 1.2
*** empty log message ***

Revision 1.2 - (view) (download) (annotate) - [select for diffs]
Sat Jan 21 22:09:33 2006 UTC (20 years, 7 months ago) by root
Branch: MAIN
Changes since 1.1: +54 -57 lines
Diff to previous 1.1
*** empty log message ***

Revision 1.1 - (view) (download) (annotate) - [select for diffs]
Sat Jan 21 21:40:00 2006 UTC (20 years, 7 months ago) by root
Branch: MAIN
*** empty log message ***

Convenience Links

Links to HEAD: (view) (download) (annotate) Links to MAIN: (view) (download) (annotate)

Compare Revisions

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.

  Diffs between and
  Type of Diff should be a