summaryrefslogtreecommitdiff
path: root/src/pinky.c
AgeCommit message (Collapse)Author
2005-06-02Don't use "path" or "filename".Paul Eggert
2005-05-14Update FSF postal mail address.Jim Meyering
2005-05-14Update FSF postal mail address.Jim Meyering
2005-03-30(short_pinky): Adjust to read_utmp signature change.Paul Eggert
2005-03-28(print_entry): Use NULL, not `0'.Jim Meyering
2004-11-30(gethostname): Remove decl.Paul Eggert
(scan_entries): Use IS_USER_PROCESS instead of by-hand code. * src/uptime.c (print_uptime): Use IS_USER_PROCESS and UT_TYPE_BOOT_TIME instead of by-hand code.
2004-11-16Fix memory leak.Paul Eggert
2004-09-21Remove unused "case 0".Paul Eggert
2004-08-02(include_idle, include_heading, include_fullname,Paul Eggert
include_project, include_plan, include_home_and_shell, do_short_format, include_where, main): Use bool for booleans. (count_ampersands, create_fullname, scan_entries, short_pinky): Use size_t for sizes. (create_fullname): Check for overflow in size calculations. (idle_string): Don't assume that the number of idle days is less than 10**8 and/or INT_MAX/(24*60*60). (main): No need to pass a non-NULL last arg to getopt_long.
2004-06-22The 2004-06-19 fix for who and pinky was incomplete, as ctimeJim Meyering
has undefined behavior if the year precedes -999 or follows 9999. Since we have to stop using ctime anyway, we might as well use strftime and fix the FIXME, and support internationalized dates. * src/who.c: Include "hard-locale.h". (time_format, time_format_width): New vars. (time_string, print_line): Use them. (main): Set them. (time_string): Use localtime + strftime instead of ctime, to avoid problems with years before -999 or after 9999. * src/pinky.c: Likewise.
2004-06-20Don't dump core if ctime returns NULL; this is possible onJim Meyering
hosts with 64-bit time_t and 32-bit int. Include "inttostr.h". (time_string): New function, copied from who.c. (print_entry): Use it.
2004-01-21(usage): Use EXIT_SUCCESS, not 0, for clarity.Jim Meyering
2003-10-18Most .c files (AUTHORS): Revert the WRITTEN_BY/AUTHORS changeJim Meyering
of 2003-09-19. Now, AUTHORS is a comma-separated list of strings. Update the call to parse_long_options so that `AUTHORS, NULL' are the last parameters. * src/true.c (main): Append NULL to version_etc argument list. * src/sys2.h (case_GETOPT_VERSION_CHAR): Likewise.
2003-09-18(WRITTEN_BY): Rename from AUTHORS.Jim Meyering
Begin each WRITTEN_BY string with `Written by ' and end it with `.'. Mark each WRITTEN_BY string as translatable.
2003-09-18revert previous changeJim Meyering
2003-09-18Update AUTHORS definition to be a comma-separated list of strings and/or updateJim Meyering
the call to parse_long_options so that `AUTHORS, NULL' are the last parameters.
2003-08-17Avoid unnecessary and sometimes time-consuming hostname lookups.Jim Meyering
(print_entry): Likewise. This fixes a typo I introduced in who-users.c on 1996-02-23.
2003-07-23Don't include headers already included by system.h:Jim Meyering
Don't include closeout.h.
2003-06-17(main): Call initialize_main.Jim Meyering
2002-10-19(print_heading): Align TTY and Name headings.Jim Meyering
2002-10-12(print_long_entry): fread returns size_t.Jim Meyering
Declare local `bytes' accordingly, to avoid warning.
2002-08-31Change `exit (0)' to `exit (EXIT_SUCCESS)',Jim Meyering
`exit (1)' to `exit (EXIT_FAILURE)', and `usage (1)' to `usage (EXIT_FAILURE)'.
2002-08-30Change `error (1, ...' to `error (EXIT_FAILURE, ...'.Jim Meyering
2002-07-02(usage): Use the PACKAGE_BUGREPORT e-mail address, rather than hard-coding it.Jim Meyering
2001-12-15Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTIONJim Meyering
instead of hard-coding --help and --version descriptions. Split --help output into smaller pieces. Use fputs, not printf.
2001-08-24Use `n_users' in place of `argc - optind' in two more places.Jim Meyering
2001-08-24(main): Fail if -l is specified with no username.Jim Meyering
2001-08-24(usage): Clarify description of -l. From Clark Morgan.Jim Meyering
2001-08-14(AUTHORS): Mark string for translation, since it contains the English word ↵Jim Meyering
`and'.
2000-11-17Explicitly include sys/types.h before including system.h.Jim Meyering
2000-05-07Include "closeout.h".Jim Meyering
(main): Call atexit with close_stdout.
2000-01-31Use UT_USER in place of hard-coded `->ut_name' here, too.Jim Meyering
1999-05-10Expand each `&' character in the gecos field.Jim Meyering
(count_ampersands): New function. (create_fullname): New function. (print_entry): Use create_fullname here. (print_long_entry): Use it here, too. From Kaveh Ghazi.
1999-03-31No longer include long-options.h.Jim Meyering
[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(PROGRAM_NAME, AUTHORS): Define and use.Jim Meyering
1999-03-06Include long-options.h.Jim Meyering
[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-02-16(usage): add \n\Jim Meyering
1999-02-16(usage): Add a one-line description.Jim Meyering
1999-02-08copyright dateJim Meyering
1999-02-08Include stdio.h.Jim Meyering
1999-01-25(usage): Remove static attribute.Jim Meyering
1998-09-19update bug-reporting addressJim Meyering
1998-06-29revert back to using lower case _unlocked wrapper namesJim Meyering
1998-06-29Change all uses of unlocked-wrapped functions to their upper case wrapper names.Jim Meyering
1997-10-25Remove old-style xmalloc and xrealloc decls.Jim Meyering
1997-10-07update bug-reporting addressJim Meyering
1997-08-03s/\<_ (/_(/gJim Meyering
1997-08-03indentJim Meyering
1997-08-03.Jim Meyering