-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChangeLog
1335 lines (968 loc) · 43.6 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Thu Jun 22 11:31:24 2017 Jan Rybar <[email protected]>
* Added patch for --pid to 'lastcomm'.
Sat April 05 21:13:04 2017 Markus Gothe <[email protected]>
* Integrated patchsets from SUSE and Red Hat.
Sun Nov 09 13:09:44 2014 Colin Panisset <[email protected]>
* Add delimiter character between PID and PPID in print_pacct_record.
Sun Nov 09 13:09:44 2014 Jaromír Cápík <[email protected]>
* Add missing man-page for dump-acct. Fix missing switches
in man pages or / and usage.
Sat Nov 08 05:23:44 2014 Markus Gothe <[email protected]>
* Link with -lm when needed. Thanks to René Rhéaume.
Mon Mar 28 21:30:14 2013 Vitaliy Slyusar <[email protected]>
* Added the --group-summary functionality to 'sa' to print the number
of processes and number of CPU minutes on a per-group basis.
Mon Mar 8 21:03:32 2013 Markus Gothe <[email protected]>
* Fixed vulnabilities, due to automake. Thanks to Karl Berry
for pointing this out.
* Many thanks to my wife Yulia Lizneva for giving me inspiration
to keep this up.
* Update gnulib to latest git.
* Bumbing version to 6.6.1
Mon Feb 28 00:08:45 2011 Markus Gothe <[email protected]>
* Applied debian's patchset.
Tue Jan 25 13:54:33 2011 Jan Görig <gorig>
* direntry patch.
Fri Nov 05 19:37:23 2010 Markus Gothe <[email protected]>
* sa.c - Fix hzval.
* ac.8 - Rename to ac.1
Fri Oct 22 00:11:54 2010 Mats Erik Andersson <[email protected]>
* FreeBSD / kFreeBSD >= 7.0-STABLE patch.
Wen Sep 01 03:17:46 2010 Solar Designer <[email protected]>
* Fix potential buffer-overflows.
* UNIX 98 pty support.
* sa.c - correct --help.
* accounting.texi - grammar fix.
Thu Feb 11 23:30:05 2010 Markus Gothe <[email protected]>
* Fixed includes for BSDen. Removed last K & R remainings.
Bump version to 6.5.4.
Sun Sep 05 18:30:05 2009 Markus Gothe <[email protected]>
* Minor fixes, included getop, mktime, rename & xmalloc
from gnulib. Fixed HOST_LEN not defined issue.
Mon Aug 24 00:01:05 2009 Markus Gothe <[email protected]>
* Major overhaul, releasing GNU Acct 6.5.
Sat Jan 07 23:10:00 2006 Tim Schmielau <[email protected]>
* NEWS: document changes in the upcoming 6.4 release.
Sat Jan 07 22:40:00 2006 <[email protected]>
* accounting.texi: clarify sa sum line.
* accounting.info: regenerated.
Sat Jan 07 22:10:00 2006 Tim Schmielau <[email protected]>
* Makefile.am: reflect earlier ToDo -> TODO change.
* config.guess: added.
* config.sub: added.
* depcomp: added.
* texinfo.tex: added.
* INSTALL: regenerated.
* Makefile.in: regenerated.
* aclocal.m4: regenerated.
* ansi2knr.c: regenerated.
* config.h.in: regenerated.
* configure: regenerated.
* install-sh: regenerated.
* mdate-sh: regenerated.
* missing: regenerated.
* mkinstalldirs: regenerated.
* accounting.info: regenerated.
* config.h: regenerated.
* stamp-vti: regenerated.
* version.texi: regenerated.
Sat Jan 07 22:00:00 2006 Tim Schmielau <[email protected]>
* accounting.texi: document dump-acct command.
document new options (paging stats) for sa and lastcomm.
Mention Linux multiformat support. Update copyright.
* accton.c: fix incomplete prototypes.
* lastcomm.c: Simplify #ifdef AC*_COMPT constructs and
Fix HAVE_PAGING usage.
* sa.c: same.
* pacct_rd.c: same.
* configure.in: same. Also add comments from former acconfig.h file.
* common.h: same.
* lastcomm.1: Document new paging stats options.
* lastcomm.c: same.
* sa.8: same.
* sa.c: same.
* configure.in: Drop support for <linux/acct.h>, only look for
<sys/acct.h>.
* acconfig.h: removed.
* configure.in: re-add comments from the removed acconfig.h.
* ac.c: replace some '#if's with '#ifdef's because of above change.
* common.c: same.
* dev_hash.c: same.
* last.c: same.
* lastcomm.c: same.
* mktime.c: same.
* pacct_rd.c: same.
* sa.c: same.
* utmp_rd.c: same.
* al_share.cpp: same.
* pacct_rd.c: Actually use file parameter given to print_pacct_record.
Sat Jan 07 21:30:00 2006 Tim Schmielau <[email protected]>
* pacct_rd.c: Add Linux multiformat support.
* pacct_rd.h: same.
* lastcomm.c: same.
* sa.c: same.
* dump-acct.c: same.
* configure.in: same.
* files.h.in: same.
* Makefile.am: same.
* linux-acct.h: added.
Fri Feb 04 18:30:00 2005 Tim Schmielau <[email protected]>
* configure.in: Modernize AM_INIT_AUTOMAKE, Don't call AC_ARG_PROGRAM,
which already is invoked by AM_INIT_AUTOMAKE. Add quote to prevent
broken configure file.
* Makefile.am: Remove forbidden substitution and clean up generated
stamp-h file.
* lastcomm.c: Fix call to ctime for 64bit architectures.
* pacct_rd.c: likewise.
* lastcomm.c: Use AC[US]TIME_COMPT instead of HAVE_COMP_T.
Fri Oct 10 01:00:00 2003 Ciaran O'Riordan <[email protected]>
* lastcomm.c: integrated patch from Paul Jones which adds
paging and swapping support to lastcomm and sa
* sa.c: same as lastcomm.c
Thu Jun 5 17:55:14 2003 Ciaran O'Riordan <[email protected]>
* AUTHORS: added my name as new maintainer
* TODO: updated info (and renamed file from ToDo)
Tue May 26 21:59:50 1998 Noel Cragg <[email protected]>
* configure.in: reverted below change to acct.h search.
Incremented version number to 6.3.5.
* configure: regenerated.
* accounting.info: regenerated.
Tue May 26 15:51:41 1998 Noel Cragg <[email protected]>
* configure.in: changed the order in which configure looks for the
acct.h file from sys->linux to linux->sys. This will help out the
linux 2.1.xx folks use the newer definitions. Also incremented
version to 6.3.4.
* configure: regenerated.
* accounting.info: regenerated.
* accounting.texi (sa): make a note that column titles appear like
units of measurement and not as headings in the first row only.
Also add a note about which options may be available on a given
system based on the members in struct acct.
* sa.8: same.
Wed Apr 8 16:03:31 1998 Noel Cragg <[email protected]>
* configure.in: increment version to 6.3.3.
* configure: regenerated.
* accounting.info: regenerated.
* Makefile.am (EXTRA_DIST): add ToDo and mktime.c.
* Makefile.in: regenerated.
* accounting.texi (Preface): add Tuomo Pyhala to contributors.
* lastcomm.c (main): when using the `--strict-match' flag, make
sure that the user doesn't specify more than one item in each
category (tty, dev, comm), since no records would ever be matched.
(desired_entry): when using the `--strict-match' flag, match all
items in all_list to the current entry.
* hashtab.c (get_key_len): fix typo in error message.
Sun Mar 22 21:44:20 1998 Noel Cragg <[email protected]>
* accounting.texi (Preface): add Alexander Kourakos and Derek
Clegg to contributors.
* utmp_rd.h: change utmp_rd_never_used's type to extern, since we
really don't need any of this data -- we just use it for sizeof.
Thanks to Derek Clegg.
* pacct_rd.h: similar deal for pacct_rd_never_used.
* last.c: added global variables to keep track of field widths
that the user desires for printing. Added `-w' and `--wide' flags
which allow the user to specify maximum precision. Thanks to
Alexander Kourakos for the idea.
* last.1: updated docs.
* accounting.texi (last): updated docs.
* accounting.text (lastcomm): updated docs for `--ahz' flag.
(sa): same.
* lastcomm.1: same.
* sa.1: same.
Tue Mar 11 23:52:00 1998 Solar Designer <[email protected]>
* files.h.in: add workaround for a kernel includes problem with
Linux/Alpha.
* lastcomm.c (main): add `--ahz' option which lets us select a
different AHZ if we're trying to view files created on another
system (but with the same byte order and struct utmp).
* sa.c (main): same.
* sa.c (parse_acct_entries): don't divide elapsed time field by
AHZ.
Tue Mar 10 10:13:07 1998 Noel Cragg <[email protected]>
* sa.c (print_user_list): revert Solar Designer's change, since it
wasn't necessary (it fixed the same bug that was fixed on 19 Aug
1997).
* NEWS: document new features in this release.
* configure.in: increment version to 6.3.2.
* configure: regenerated.
* accounting.text: add Solar Designer to contributors.
Tue Mar 10 09:54:29 1998 Solar Designer <[email protected]>
* sa.c (print_user_list): off-by one error when allocating space
for entry_array.
1997-10-13 Noel Cragg <[email protected]>
* mktime.c: copied new version of this file from glibc (includes
fixes for leap days).
* files.h.in: move #ifndef AHZ statement from common.h so that we
make sure we've included the files that might define AHZ before
redefining it!
* common.h: removed #ifndef AHZ statement.
* Makefile.am (compare): still specifying old names (tests-*)
instead of new ones. Fixed.
* Makefile.in: regenerated.
* configure: regenerated.
Sun Oct 12 11:50:18 1997 Kaveh R. Ghazi <[email protected]>
* ac.c: Move inclusion of common.h ahead of all other local
headers so that the PARAMS() macro is always defined.
* dump-acct.c: Likewise.
* dump-utmp.c: Likewise.
* hashtab.c: Likewise.
* last.c: Likewise.
* lastcomm.c: Likewise.
* pacct_rd.c: Likewise.
* sa.c: Likewise.
* utmp_rd.c: Likewise.
* ac.c: Wrap prototype function arguments in the PARAMS() macro.
* accton.c: Likewise.
* common.h: Likewise.
* dev_hash.h: Likewise.
* dump-acct.c: Likewise.
* dump-utmp.c: Likewise.
* file_rd.h: Likewise.
* hashtab.h: Likewise.
* last.c: Likewise.
* lastcomm.c: Likewise.
* pacct_rd.h: Likewise.
* sa.c: Likewise.
* uid_hash.h: Likewise.
* utmp_rd.h: Likewise.
* ac.c (user_data): Avoid using automatic aggregate initialization.
* sa.c (empty_string): Likewise.
* al_share.cpp: Avoid using a "void" function signature argument
since ansi2knr doesn't parse included files, of which this is one.
* common.h: Define the PARAMS() macro.
* configure.in: Add AC_C_CONST. Also, avoid using an indented #
in cpp macros or the #elif directive. Avoid using ANSI string
concatination in fputs, use fprintf instead.
* dump-acct.c: Avoid ANSI string concatination.
* dump-utmp.c: Likewise.
* getopt.h: Remove unnecessary use of the PROTOTYPES macro.
1997-10-11 Noel Cragg <[email protected]>
* NEWS: document new features in this release.
* configure.in: increment version to 6.3.1 for prerelease testing.
* configure: regenerated.
1997-10-08 Noel Cragg <[email protected]>
* Makefile.am (compare): new target. Since what we're really
doing is comparing the output of these utils to the system's utils
(and not in anything resembling an automated fashion -- I'm not
sure _that_ can be accomplished), don't use the "check" target.
* Makefile.in: regenerated.
* common.h: include prototypes iff PROTOTYPES is set.
* dev_hash.h: same.
* file_rd.h: same.
* getopt.h: same.
* hashtab.h: same.
* pacct_rd.h: same.
* uid_hash.h: same.
* utmp_rd.h: same.
* .cvsignore: ignore version.texi and stamp-vti files.
* accounting.texi: include the automake-generated version.texi
file so we can automatically substitute VERSION and UPDATED
variables.
* texinfo.tex: removed -- automake supplies it.
Mon Sep 29 13:34:05 1997 Noel Cragg <[email protected]>
* configure: regenerated again (lots of changes today, no?).
* config.h.in: same.
* Makefile.in: same.
* configure.in: changed order around to make automake happy.
Changed the substitutions for pacct programs being built by
creating a variable for each program in question. This allows us
to place the definitions for those in different install targets in
the generated Makefile.
* acconfig.h: add a #define for PROTOTYPES. This will mean source
changes, too, but those haven't been completed yet.
* Makefile.am: choose the correct bin directories for each program
and fix the rules for man pages. Comment out tests for the time
being, until my tests can be munged into the correct form for
automake.
* Makefile.in: thought better of removing it, actually. We
include "configure" even though it is regenerated, no?
* accounting.texi: rms says that the manual shouldn't contain the
locations of the system files -- we want to be able to share
manuals between systems. Removed all locations and added a note
about default filesystem locations of wtmp and acct files. Also
made below change to common.c to make it easier for people to
track down their system files.
* ac.1: same, plus renamed from ac.1.in since we no longer need to
substitute pathnames into this file.
* accton.8: same, similar.
* last.1: same, similar.
* lastcomm.1: same, similar.
* sa.8: same, similar.
* common.c (print_acct_file_locations): new function. Display the
locations of the default process accouting files.
(print_wtmp_file_location): new function. Same as above, but for
the wtmp file.
* common.h: add prototypes for above.
* ac.c: call the appropriate function above when giving help.
* accton.c: same.
* dump-acct.c: same.
* dump-utmp.c: same.
* last.c: same.
* lastcomm.c: same.
* sa.c: same.
* Fixed copyright dates in all files to conform to
gnuorg/maintain.text.
* configure.in: add a default in the AC_TRY_RUN macro for
cross-compiling so autoconf doesn't complain every time it is run.
* configure: regenerated.
* install-sh: renamed from install.sh.
* mkinstalldirs: add to conform to automake.
* version.h.in: do text substitution via autoconf to get our
version number to conform to automake.
* version.h: removed -- now automatically generated.
* ac.c: use new #define -- VERSION_STRING -- from version.h
* accton.c: same.
* last.c: same.
* lastcomm.c: same.
* sa.c: same.
* Makefile.am: new file. Converted the package to use automake.
What a gas!
* Makefile.in: removed, since automake generates it.
* AUTHORS: new file, added to meet GNU standards.
* NEWS: same.
* INSTALL: new version from FSF.
* configure.in: convert old autoconf macro names to new.
* configure: regenerated.
* config.h.in: regenerated.
* Makefile.in (prefix): fix typo -- missing `@' signs. Thanks to
Walter Mueller <[email protected]>.
* file_rd.c (file_reader_get_entry): cast pointers to (char *)
before doing pointer arithmetic, also from Eric.
* configure.in: add fixes to support HP-UX 9.05 with /bin/cc.
Thanks to Eric Backus <[email protected]>.
* alloca.c: new file, for those system that don't have alloca.
* Makefile.in: add @ALLOCA@ to all object lists.
Tue Aug 19 10:20:55 1997 Noel Cragg <[email protected]>
* version.h: increment version to 6.3.
* ac.c: change version message -- remove `beta'.
* accton.c: same.
* last.c: same.
* lastcomm.c: same.
* sa.c: same.
* accounting.texi.in: integrate the below changes to the
documentation and add attributions for some of the below stuff.
* ac.c: rename `--year' to `--print-year' to be consistent with
last.
* ac.1.in: document it.
* sa.c: add a `--sort-real-time' option to sort by "real" (or
elapsed) time.
* sa.8.in: document it.
* last.c: add `--print-seconds' option and change name for
`--year' to `--print-year' and add docs.
* last.1.in: document it.
* sa.c (print_user_list): increment the number of users _before_
allocating the entry array, or else we'll clobber memory.
Thu Nov 21 21:03:31 1996 Noel Cragg <[email protected]>
* last.c (print_record): check for all printable ascii characters
rather than just alphanumerics.
Thu Sep 5 14:12:04 1996 Noel Cragg <[email protected]>
* last.c (print_record): print out '?' instead of control
characters for tty names.
Wed Aug 14 13:21:20 1996 Noel Cragg <[email protected]>
* hashtab.c (hashtab_resize): code to increase the number of
buckets in a hash table.
(hashtab_create): call hashtab_resize to keep performance near
O(1), if possible.
* last.c (main): fix typo in dereferencing argv.
Sat Apr 20 13:13:58 1996 Noel Cragg <noel@gargle>
* accounting.texi.in (sa): fix small typo (missing `@').
Fri Apr 19 00:20:53 1996 Noel Cragg <noel@gargle>
* version.h (RELEASE_MINOR): update to version 6.2.
* hashtab.c (hashtab_find): use MEMCMP instead of STRNCMP.
(hashtab_create): same.
* sa.c (parse_acct_entries): more typos! Damnit!
(print_stats_nicely): I hope this is finally the right formula.
(parse_acct_entries): fix memory printout for PRINT_USERS section.
* pacct_rd.c (comp_t_2_double): make this routine faster by doing
bit-shifts rather than floating-point math.
* sa.c (main): remove NUMBER_SORTING_OPTIONS because we want to be
ableo to include various fields (some flags have sorting
side-effects) but sort by the last thing specified.
(parse_acct_entries): fix four typos -- COMPT instead of COMP_T.
Ugh.
* dump-acct.c: add flags `-R', `--raw', `-n', and `-num' for both
raw output and number of records to print.
* dump-utmp.c: same.
* Makefile.in: fix test scripts not to check for SYS_XXX programs.
Also, put "-" before execution of TIME command so a bad return
status won't screw us up (hal.gnu.ai.mit.edu does this).
* configure.in: fix typo of AC_CHECK_PROGS --> AC_PATH_PROGS.
Thu Apr 18 11:07:02 1996 Noel Cragg <noel@gargle>
* install.sh: added to repository so we can support an INSTALL
target.
* configure.in: look for an INSTALL program.
* configure.in: don't use WHICH to find programs, since autoconf
now has AC_CHECK_PROGS.
* al_share.cpp (parse_entries): forgot to remove variable
LAST_TIME -- last reported the wrong date at the end of
processing.
* sa.c: use new hash routines.
* hashtab.h (hashtab_elem): change key type from CHAR * to VOID *
to support non-strings.
* hashtab.c (hashtab_find): same.
(hashtab_create): same.
* accounting.texi.in: fix docs -- all options for sa were actually
implemented some time ago.
* sa.8.in: same.
* al_share.cpp: new file -- since PARSE_ENTRIES is structurally
the same in both ac.c and last.c, let's only have one copy of it
with #ifdefs for the appropriate program.
* ac.c: use al_share.cpp.
* last.c: use al_share.cpp.
* sa.c: remove all of that #ifdef hair. Now it's half its
original size! Gee, looking at it before mods, you'd think I was
4 years old when I wrote that!
* dev_hash.c: use new generic hash table code.
(clear_dev_table): removed -- unused.
(setup_devices): declare static, since we do the setup here.
* lastcomm.c: don't call SETUP_DEVICES.
* hashtab.c (hashtab_init): accept a parameter that tells the code
whether or not the thing being hashed is a string or a number. If
it's a number, it shouldn't be truncated like a string might be.
Changed callers.
(get_key_len): modify to accept the numeric parameter also.
* uid_hash.c: use new generic hash table code.
(clear_uid_table): removed function, since it's no longer used.
* lastcomm.c: don't call CLEAR_UID_TABLE.
* sa.c: same.
* sa.c (init_flags_and_data): use MEMSET to clear summary record
rather than setting each individual field to zero.
* Makefile.in: general clean-up; remove deprecated targets and
reorganize.
* pacct_rd.c (print_pacct_record): new function (similar to mods
made earlier to utmp_rd.c). Change callers to use this function.
(pacct_get_entry): delete argument which made the file reader
print the entry. Use PRINT_PACCT_RECORD instead.
* lastcomm.c: use PRINT_PACCT_RECORD.
* sa.c: same.
* dump-acct.c: same.
* files.h.in: fix for multiple inclusion.
* Makefile.in: put @DEFS@ in for CFLAGS, so MKTIME.C gets defs
from CONFIG.H.
(realclean): fix realclean target to clean up newly
autoconf-generated files.
* ac.c: fixed #includes for time headers (use autoconf symbols).
Also change names of XXX_FILE to XXX_FILE_LOC.
* last.c: same.
* lastcomm.c: same.
* sa.c: same.
* ac.1.in: new file which has autoconf-substitution-style variable
names.
* accton.8.in: same.
* last.1.in: same.
* lastcomm.1.in: same.
* sa.8.in: same.
* accounting.texi.in: same.
* ac.1: removed, since we now use autoconf to substitute
filenames automatically.
* accton.8: same.
* last.1: same.
* lastcomm.1: same.
* sa.8: same.
* accounting.texi: same.
* files.h.in: automatic substitution of variable names by
autoconf.
* configure.in: add comments, include stuff that used to be in
FILES.H, substitute new files.
* files.h: move #ifdefs that were here into CONFIGURE.IN, so we
can insert those values into man pages and other docs. Removed
this file.
Wed Apr 17 20:51:40 1996 Noel Cragg <noel@gargle>
* utmp_rd.c (bad_utmp_record): new routine to check for obviously
bad records (like all zeroes).
* ac.c (parse_entries): use it.
* last.c (parse_entries): use it.
* ac.c (parse_entries): check for empty records (that is, where
UT_LINE and UT_NAME are both empty).
* last.c (parse_entries): same.
Wed Apr 17 23:43:18 1996 Noel Cragg <[email protected]>
* last.c (print_record): Don't print replacement TTY name if we're
on a BSD system.
* last.c (parse_entries): cast the argument of CTIME to the right
type.
* ac.c (parse_entries): same.
Wed Apr 17 10:40:07 1996 Noel Cragg <noel@gargle>
* utmp_rd.h (UTMAXTYPE): #define this to a reasonable default if
it wasn't done by the system.
* utmp_rd.c (fix_ut_type_field): fix records that have an
out-of-range UT_TYPE field.
* last.c: make sure all uses of print_which_recs are inside #ifdef
HAVE_UT_TYPE blocks.
* hashtab.c: forgot to #include "config.h"...
* dev_hash.c: add some #ifdefs for autoconfiscated headers
(string.h, stdlib.h, etc.).
* file_rd.c: same.
* hashtab.c: same.
* utmp_rd.c: same.
* last.c: remove #includes for INET_NTOA, since we get it from
utmp_rd.h.
* utmp_rd.c: same.
* utmp_rd.h: add #includes for INET_NTOA.
* last.c (parse_entries): fix an #ifdef so we don't define a label
unless we're under linux.
* Makefile.in (VPATH): add this to support different compilation
directories.
* ac.c (parse_entries): added TIME_WARP_SUSPICIOUS for time warps
forward that are greater than the value of that variable. Does
the same thing as the backwards time warps. Added command-line
flag `--tw-suspicious' to deal with it and updated usage string.
Renamed `--timewarp-value' to `--tw-leniency' for consistency.
* last.c (parse_entries): same.
* ac.1: updated docs.
* last.1: updated docs.
* accounting.texi: updated docs.
* ac.c (do_totals): removed the PRINT_FLAG argument, since all
callers were passing the same thing. Changed callers.
(main): add `-a' and `--all-days' flags -- user can choose whether
they want to see all of the days printed. Useful for graphing
programs.
* ac.1: updated docs.
* accounting.texi: updated docs.
* utmp_rd.c (fix_ut_type_field): new fix for machines that write
logouts of user processes with USER_PROCESS instead of
DEAD_PROCESS.
* ac.c (parse_entries): same -- handles this case in case
DEAD_PROCESS is not available.
* last.c (parse_entries): same.
* ac.c (main): move init for utmp reader before parsing options
because we might choose to use an alternate wtmp file.
* last.c (main): same.
* lastcomm.c (main): same, but for pacct files.
* sa.c (main): same, but for pacct files.
* ac.c (give_usage): forgot to change string to reflect new `-f'
and `--file' flags.
* hashtab.c (hashtab_create): use the TABLE_SIZE structure element
instead of the #defined HASH_SIZE.
* ac.c (main): add `-y' and `--year' flags.
(parse_entries): use DO_TOTALS instead of cutting & pasting the
code with minor changes.
(do_totals): accept a few more args so that we can use it in the
above.
* last.c (print_record): get rid of the EVENT_ENUM business and go
for a simpler solution: pass in values of strings that should
replace UT_NAME, UT_LINE, and the message at the end of the line.
This way, we don't have to switch on UT_TYPE and the enum all over
again.
* dump-utmp.c (main): use PRINT_UTMP_RECORD.
* ac.c: rename PRINT_FILE_INCONSISTENCIES to PRINT_FILE_PROBLEMS.
* last.c: same.
* Makefile.in: update dependencies.
* lastcomm.1: update documentation for new flags.
* last.1: same.
* ac.1: same.
* accounting.texi: same.
* lastcomm.c (main): add `-f' and change `--other-file' to
`--file' to save typing.
* ac.c (main): same.
* last.c (main): same, but also remove `--supplants' flag, since
this is really covered under the `--complain' flag. Add
`--more-records' and `-x' to give similar results as Miquel van
Smoorenburg's last program under Linux.
* ac.c (parse_entries): changed flow again and re-incorporated
RECORD_TYPE #define thing. Instead of trying to handle both types
of records with a bunch of kludges in the main switch statement,
we use FIX_UT_TYPE_FIELD.
* last.c (parse_entries): same.
* utmp_rd.c (fix_ut_type_field): new function -- makes bsd records
into sysv records. For those machines that have a combination of
bsd and sysv records in their log files (Linux).
* utmp_rd.h: re-insert #define RECORD_TYPE stuff so we can have a
single, unified switch statement for ac and last.
Tue Apr 16 01:57:28 1996 Noel Cragg <noel@gargle>
* utmp_rd.c (utmp_get_entry): change to take no parameters.
(print_utmp_record): new function. Changed callers to use this
function rather than pass a flag to UTMP_GET_ENTRY.
* last.c (log_everyone_in): fix bug that printed placeholder
records as real supplants.
* ac.c (parse_entries): change debugging print string for standard
column widths (easier to read).
* name_list.c: removed -- hash tables are more efficient. This
was mainly cut-and-paste, so there's not much work lost.
* name_list.h: removed.
* last.c: use hash tables.
* lastcomm.c: use hash tables.
* hashtab.c (hashtab_dump_keys): new file -- generic hash table
handling code to replace slow linked list stuff in all files.
* hashtab.h: new headers for above.
* ac.c: use hash tables.
* name_list.c: new file -- common code for linked lists of
strings. Changed callers.
* name_list.h: header for above.
* file_rd.c: new file -- common code from pacct_rd.c and
utmp_rd.c, to keep mistakes down. Changed callers.
* file_rd.h: protos & data for above.
Tue Apr 9 00:43:13 1996 Noel Cragg <noel@gargle>
* ac.c: a few casts needed for a clean compile under Ultrix.
(main): fix `-z' flag and change `--dont-print-zeroes' to
`--print-zeros.'
* accounting.texi: fix docs.
* ac.1: same.
* last.c: same.
* ac.c (parse_entries): reorganize switch loop so sysv-isms are
checked first. If no cases match, things fall through to
bsd-isms.
* last.c (parse_entries): same.
* configure.in: rename SYSTEM_V_STYLE_RECORDS to HAVE_UT_TYPE.
* acconfig.h: same.
* ac.c: same.
* last.c: same.
* ac.c: make all file problem strings contain the word "problem:"
for easy grepping.
(parse_entries): remove big switch statement and use IFs instead
(since we have to check for both sysv and bsd syntaxes).
* utmp_rd.h: removed definition of RECORD_TYPE, since some sysv
boxes use a combo of sysv and bsd syntaxes, so we have to check
for both. Yecch!
* configure.in: check for UT_ID and UT_PID fields in utmp.h.
* acconfig.h: #undefs for above.
* utmp_rd.c (utmp_get_entry): print out the above fields if
available.
* ac.c (update_system_time): change order of the debugging print
statement and the addition so the right values are reported.
(do_totals): put the call to localtime INSIDE the local scope of
the thing that needs to use it, otherwise it is wasted CPU.
(log_in): check for empty UT_LINE field.
(log_out): same.
* utmp_rd.c (utmp_get_entry): remove "bad record" stuff -- we
don't want to filter out any records, really.
* ac.h: removed this -- never used. Gee, I wrote this a long time
ago before I knew very much. Oh, well.
* last.h: same.
* lastcomm.h: same.
* sa.h: same.
* last.c: changed vars which keep track of times to TIME_T from
LONG.
* last.c (log_in): same bogosity as ac.c (log_in), below.
(log_everyone_in): same.
* ac.c: changed variables which keep track of times to TIME_T from
LONG. This way, we use the system's precision.
(log_out): the stuff about daylight savings time was completely
wrong -- while stuff returned by localtime may jump around, time_t
is always stepwise continuous. If there's a negative number, we
may have overflowed TIME_T. Removed bogus stuff.
(log_everyone_out): same.
(update_user_time): add a check for negative TIME_T values and
holler if we see one.
* ac.c (parse_entries): correct a bug when trying to print out
wtmp files which use dates in the future.
* utmp_rd.c: it was possible to print out an error message without
a filename and crash the program -- add a variable which should
always be set with the filename from which records were read.
* pacct_rd.c: same.
* ac.1: Dirk sent more changes that fix small typos and formatting
junk in the docs. Applied!
* accton.8: same.
* last.1: same.
* lastcomm.1: same.
* sa.8: same.
* accounting.texi: same.
Mon Apr 8 16:52:49 1996 Noel Cragg <noel@gargle>
* accounting.texi: documentation changes for new flags and
credits.
* version.h: increment to 6.1.
* Makefile.in (accton): include getopt.o and getopt1.o.
* ac.c (main): add short options "-h" and "-V" for "--help" and
"--version" respectively. Make sure usage strings match list of
commands passed to getopt.
* last.c (main): same.
* lastcomm (main): same.
* sa.c (main): same.
* accton.c (main): use getopt so we can provide the "--version"
and "--help" flags.
* last.c (print_record): print out the IP address if we have
UT_ADDR.
(main): rename "--print-address" to "--ip-address" to get printing
of IP addresses instead of hosts.
* utmp_rd.c (utmp_get_entry): don't print the IP address if it
isn't there.
* last.c (display_date): print out a given date, paying attention
to the PRINT_YEAR flag.
(main): add "--year" and "-y" flags, so the user can choose to
print out the year with dates.
* ac.c (main): fix long options to use enums.
* lastcomm.c (main): same.
* sa.c (main): same.
* mktime.c: new version from GNU C library. HOORAY! Paul Eggert
(the tz guru) has contributed his mktime routine to the C library!
Away with my broken routine!
* ac.c (midnight_after_me): bug fixed -- the code was skipping a
few days and attributing DST hours to the day AFTER the DST change
occurred because I forgot to set tm_isdst to something negative
(mktime figures out DST stuff then).
* pacct_rd.c (pacct_get_entry): change record print format (use
fixed field widths to make things easier to read).
* utmp_rd.c (utmp_get_entry): same.
* ac.c (midnight_after_me): use mktime instead of adding the "26
hours" business and handing off to MIDNIGHT_BEFORE_ME. Yecch!
Also, take a long instead of a pointer to such. Changed callers.
(midnight_before_me): removed function -- not used.
Sun Apr 7 00:25:42 1996 Noel Cragg <noel@gargle>
* ac.c (parse_entries): fix RUN_LVL special case for those
machines that incorrectly report shutdowns and reboots as RUN_LVL
instead of BOOT_TIME.
* dump-utmp.c (main): forgot to include case values for short
options.
* dump-acct.c (main): same.
* utmp_rd.c (utmp_get_entry): print ut_addr and ut_host if
available.
* last.c: add skeletal code to take advantage of the ut_addr field
(if a system has it). Need options yet.
* configure.in (HAVE_UT_ADDR): check for the ut_addr field in
the system's utmp.h.
* acconfig.h: add proto #undef.
Fri Apr 5 17:43:02 1996 Noel Cragg <noel@gargle>
* pacct_rd.c (comp_t_2_double): don't call POW! Since our
exponent will always be an integer, we can do this ourself much
faster than the library routine.
* dump-acct.c: add prototype for main to shut up gcc.
* dump-utmp.c: same.
* configure.in: have CFLAGS include -Wall and -Wmissing-prototypes
only if we're using gcc.
* Makefile.in: same.
* common.c (file_open): Actually, this stat business is a bad
idea. Who cares if we open regular files or named pipes (or
/dev/null, for that matter?). Modify the routine to recognize "-"
as an alias for stdin/stdout.
Fri Apr 5 20:17:09 1996 Noel Cragg <[email protected]>
* common.c: need to include sys/types.h for Ultrix.
(file_open): don't check for a specific error status from stat.
* Makefile.in (DA_LIBS): needs -lm for the comp_t stuff.
Fri Apr 5 11:08:22 1996 Noel Cragg <noel@gargle>