ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libptytty/src/logging.C
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 rel-9_14: (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