1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-07-26 02:30:35 +02:00
Commit Graph

59 Commits

Author SHA1 Message Date
Jim Meyering 7daa83a149 Explicitly include sys/types.h before including system.h. 2000-11-17 08:31:01 +00:00
Jim Meyering 72bdac7271 Include "closeout.h".
(main): Call atexit with close_stdout.
2000-05-07 14:46:33 +00:00
Jim Meyering 6b43446a33 Use UT_USER in place of hard-coded `->ut_name' here, too. 2000-01-31 08:38:07 +00:00
Jim Meyering a47deedda7 (print_entry): Correct do_lookup test so that who
prints whatever host information it has, even without --lookup.
1999-12-18 11:48:37 +00:00
Jim Meyering f90a5e94b8 (print_entry): Use #if', not #ifdef HAVE_UT_HOST'. 1999-04-24 21:29:22 +00:00
Jim Meyering fdd07e3d2b No longer include long-options.h.
[long_options]: Add entries for --help and --version.
Remove parse_long_options call.
(main) [getopt switch]: Add a case for each of --help and --version.
1999-03-31 05:52:46 +00:00
Jim Meyering 03c1b8518c (PROGRAM_NAME, AUTHORS): Define and use. 1999-03-31 04:16:08 +00:00
Jim Meyering 5b2aa1846b Include long-options.h.
[long_options]: Remove the "help" and "version" entries.
Remove declarations of show_help and show_version.
(main): Use parse_long_options, including author name(s).
Remove the show_version and show_help blocks.
1999-03-06 15:28:54 +00:00
Jim Meyering e9144d8d30 copyright date 1999-02-08 03:30:52 +00:00
Jim Meyering 3946ca7fc1 Include stdio.h. 1999-02-08 03:30:06 +00:00
Jim Meyering 276d118b10 (usage): Remove static attribute. 1999-01-25 14:33:38 +00:00
Jim Meyering 24a8bf2d3e update bug-reporting address 1998-09-19 17:32:35 +00:00
Jim Meyering 8ba97d963e Include system.h only after error.h and readutmp.h
so we don't get redefinition warnings about getc, etc.
Revert back to using lower case _unlocked wrapper names.
1998-06-29 16:23:15 +00:00
Jim Meyering c5eb9edf26 Change all uses of unlocked-wrapped functions to their upper case wrapper names. 1998-06-29 02:13:21 +00:00
Jim Meyering b3ab88e970 Remove old-style xmalloc and xrealloc decls. 1997-10-25 22:03:20 +00:00
Jim Meyering 5db3c9bdb4 update bug-reporting address 1997-10-07 23:51:39 +00:00
Jim Meyering bb22f10c37 (main): New option --lookup (-l).
(print_entry): Only call canon_host if user explicitly asks for it.
(usage): Describe --lookup.
From Galen Hazelwood.
1997-09-01 02:08:58 +00:00
Jim Meyering b05ff2249b Rename lots of `this' locals.
Make some parameters `const'.
(who): Update read_utmp caller.
(search_entries): Take additional param: utmp_buf.
Update read_utmp caller.
(who_am_i): Update read_utmp caller.
1997-07-13 04:13:40 +00:00
Jim Meyering b18c5abf1c (who): rename users to n_users 1997-07-13 02:51:34 +00:00
Jim Meyering 6341f011d7 . 1997-07-13 02:17:51 +00:00
Jim Meyering a4d2c17357 . 1996-02-25 12:55:48 +00:00
Jim Meyering 5e14cce7ae Define WHO and include new file, who-users.c. 1996-01-06 11:17:50 +00:00
Jim Meyering 57ec0f45c9 s/non-zero/nonzero/g 1995-11-27 05:34:31 +00:00
Jim Meyering f0556f3517 Annotate localizable strings with _(...). From Franc,ois. 1995-08-08 04:37:34 +00:00
Jim Meyering 635b1b5b6e (usage): Add one- and two-line descriptions to --help output.
From Karl.
1995-05-15 04:53:56 +00:00
Jim Meyering 274e5f86b5 Use l?stat, not safe_l?stat. 1995-05-13 02:31:46 +00:00
Jim Meyering 0d6850348c add 1995 to Copyright dates 1995-03-09 22:33:05 +00:00
Jim Meyering e9c2895a55 (userid_compare): K&R'ify function definition. 1995-02-27 14:47:40 +00:00
Jim Meyering a9f1783e20 * src/*.c: Include "error.h" instead of simply declaring
`void error ();'.
1994-12-20 05:26:44 +00:00
Jim Meyering 6d59e126b5 (print_entry): Use safe_stat instead of SAFE_STAT. 1994-12-20 04:50:25 +00:00
Jim Meyering 12042b2fa2 Use strr?chr instead of r?index. 1994-12-04 21:15:46 +00:00
Jim Meyering 5fce52076e (list_entries): Delete. Split in two actually...
(list_entries_users, list_entries_who, userid_compare): New functions.
(list_entries_users): Sort the user names.  Reported by
Michael I Bushnell.
Topologically sort the functions and remove fwd declarations.
1994-11-18 05:15:04 +00:00
Jim Meyering ec90359f34 . 1994-10-01 02:52:05 +00:00
Jim Meyering 0a0800fe25 merge with 1.10n2 1994-09-27 22:02:00 +00:00
Jim Meyering 4bac19f0bf . 1994-09-25 02:25:20 +00:00
Jim Meyering cbee99cebe (read_utmp): New variable: size to avoid type warnings. 1994-09-24 16:18:11 +00:00
Jim Meyering fe106be46b . 1994-09-18 00:28:34 +00:00
Jim Meyering fc0bbac463 * who.c (print_entry): Use SAFE_STAT. 1994-07-22 17:19:23 +00:00
Jim Meyering 323e95c8b3 . 1994-05-13 13:57:20 +00:00
Jim Meyering 92434b0b67 . 1994-05-01 13:28:12 +00:00
Jim Meyering 2812688dfc . 1994-04-29 22:26:57 +00:00
Jim Meyering e628e7bb9e . 1994-04-20 00:23:45 +00:00
Jim Meyering 75a474834b . 1994-02-01 14:11:50 +00:00
Jim Meyering 4f90578a4f * who.c (print_entry): Prepend `/dev/' only if ut_line is not
already an absolute filename.  Just to be safe.
1994-01-07 00:06:38 +00:00
Jim Meyering 704a7eba4a who.c 1993-12-28 21:18:17 +00:00
Jim Meyering 4ebaf0fd9c merge with 1.9.1b 1993-11-30 15:51:34 +00:00
Jim Meyering 22ba8f3323 merge with 1.9.1a 1993-11-20 17:00:37 +00:00
Jim Meyering 700f99c873 utmpx changes 1993-11-20 06:00:00 +00:00
Jim Meyering 4bce07bc25 merge with 1.9a 1993-11-15 14:32:17 +00:00
Jim Meyering d7c526e66d merge with 1.8.1i 1993-10-26 00:11:14 +00:00