📄 changelog.0
字号:
getugroups an array of gid_t instead of int. * system.h: New file. * Most programs: include it.Fri Jul 19 12:04:58 1991 David J. MacKenzie (djm at apple-gunkies) * env.c [!STDC_HEADERS]: Declare errno. * printf.c, pathchk.c: Don't include errno.h; not needed. * version.c: New file. * All C programs: Link with it, to get version number in the binary where at least `strings -' and grep can find it. * pathchk.c (strip_trailing_slashes): Function removed; use version in lib.Mon Jul 15 11:34:22 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu) * Version 1.0. * pathchk.c: Always check whether _POSIX_PATH_MAX and _POSIX_NAME_MAX need to be defined. [POSIX]: If no PATH_MAX or NAME_MAX and pathconf for the path returns -1 (some systems do this if the path does not exist), use pathconf for "/".Sun Jul 14 21:17:22 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu) * date.c (date_seconds): Function removed, replaced with posixtm.y in lib. (set_date): Change caller. * configure: Check for bison. * stty.c [!C_LINE_MISSING]: Add support for setting and printing the line discipline. * configure: Check for C_LINE_MISSING. * configure: Check for Minix.Sat Jul 13 01:33:59 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu) * Add `man' directory and manual pages. * configure: Set INSTALLDATA and MAN. * id.c: Add #ifdefs for POSIX ways of getting max groups list size. (print_group_list, print_full_info): Allocate list of groups with malloc since its size might not be constant. * nice.c (main): Don't adjust priority if printing it. Default adjustment of 10, not 0. * printf.c: Add \c escape and %b conversion. Implement '*' for field width and precision. Make all errors fatal. (print_esc_string, print_esc): New functions. * configure, date.c: Change SYS_TIME_H to TM_IN_SYS_TIME. * configure: Always check where to find struct tm. * yes.c: Rewrite to accept multiple arguments. * Add groups.sh.Fri Jul 12 10:57:00 1991 David J. MacKenzie (djm at wookumz.gnu.ai.mit.edu) * dirname.c: Move code from dirname function into main, simplifying things quite a bit. From Jim Meyering. * Omit strdup from lib; no longer used. * configure: Don't check for strdup. * printenv.c (main): If args given, print the values in the order given on the command line rather than the order given in the environment. * tee.c, tty.c (struct longopts): Revise to make short-option equivalents clear.Thu Jul 11 12:46:11 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu) * nice.c: Add long options. * Add date command and libraries it needs. * configure: Updated. * env.c: Add long options. Use GNU putenv instead of custom setenv function. * id.c: Add long options. * pathchk.c [POSIX]: Use pathconf if necessary to get NAME_MAX and PATH_MAX. * nice.c: Use exit status required for nohup by POSIX.2 (nohup execs nice). * sleep.c: Don't bother with hex and octal. * env.c: Fix exit status for POSIX.2 draft 11.1. * Many files: Remove private copies of xmalloc, error, xstrdup, etc. to use shared versions. Fix #includes for USG, STDC_HEADERS, POSIX.Mon Jul 8 18:56:24 1991 David J. MacKenzie (djm at churchy.gnu.ai.mit.edu) * date.c (main): For -u, set TZ to "" instead of "GMT0", unless on HP-UX or Ultrix. * Rename some feature-test macros. * stime.c: Created from code in date.c. * date.c (compute_tm_zone): New function. (date_seconds, show_date): Use it. (xmalloc, xrealloc): Functions removed; use xmalloc.c instead.Tue Jul 2 02:28:11 1991 David J. MacKenzie (djm at geech.gnu.ai.mit.edu) * tee.c (tee): Report errors in closing files.Mon Mar 18 10:13:59 1991 Jeffrey A. Law (law at geech.ai.mit.edu) * date.c (date_seconds, show_date): #if COMPUTE_TMZONE then compute the proper value to place in tm->tm_zone from information returned by localtime and gettimeofday.Fri Apr 26 11:38:09 1991 David J. MacKenzie (djm at mole.gnu.ai.mit.edu) * stty.c: Define default values for control chars if necessary. Complain about invalid options if no other options follow. Use POSIX functions instead of ioctl, for manipulating termios. * expr.c (main): Exit status was backwards.Thu Dec 20 00:36:01 1990 David J. MacKenzie (djm at apple-gunkies) * id.c: Reorganization and many changes to fix bugs and POSIX compliance problems.Mon Dec 10 03:09:13 1990 David J. MacKenzie (djm at apple-gunkies) * stty.c: Don't declare printf and some other functions that might have variable numbers of args in system header file decls.Tue Nov 14 23:37:22 1990 Roland McGrath (roland at geech.ai.mit.edu) * id.c (print_groups): Put spaces after commas. (print_group): New fn, to print a group id. Uses numeric fmt unless -n, in which case it uses group names. (print_groups): Call it. Find the rgid and egid, and print them as well as the supplementary groups. Make sure we print each group only once.Sun Sep 16 01:49:14 1990 David J. MacKenzie (djm at apple-gunkies) * id.c (main): Add -G option for POSIX.2 draft 10. Allow a username to be given. (print_groups): New function from code in main. (getugroups): New function.Sun Aug 12 00:32:01 1990 David J. MacKenzie (djm at albert.ai.mit.edu) * env.c (main): Instead of setting _POSIX_OPTION_ORDER, tell getopt to not permute, with `+'.Sat Aug 11 01:32:53 1990 David J. MacKenzie (djm at albert.ai.mit.edu) * expr.c: Use regex.c library instead of private regex routines. * nice.c (main): Add -n option for POSIX.2a. (usage): New function.Fri Aug 10 23:58:11 1990 David J. MacKenzie (djm at albert.ai.mit.edu) * who.c: Add -m, -i, -w options for POSIX.2a.Tue Aug 7 00:01:02 1990 David J. MacKenzie (djm at apple-gunkies) * expr.c: Use exit directly instead of longjmp on error. Use argv[0] instead of hardcoded "expr" in messages. Make some functions void.Sat Aug 4 21:19:25 1990 David J. MacKenzie (djm at pogo.ai.mit.edu) * env.c: Change exit statuses for POSIX draft 10.Wed Jul 4 04:32:51 1990 David J. MacKenzie (djm at apple-gunkies) * tee.c: Use error instead of perror_with_name and out_of_memory.Wed Jun 20 02:39:49 1990 David J. MacKenzie (djm at albert.ai.mit.edu) * date.c: Change -DSETTOD to -DSTIME_MISSING, -DSIZE_T to -DSIZE_T_IN_TYPES, and -DSTDC_HDRS to -DSTDC_HEADERS. Declare some more functions. Replace fatal, memory_out, and nonfatal_perror with error.Mon Jun 18 00:16:52 1990 David J. MacKenzie (djm at apple-gunkies) * stty.c: Add some Unix compatibility modes.Sat Jun 16 21:05:59 1990 David J. MacKenzie (djm at apple-gunkies) * stty.c (display_changed, display_all): Print values of min and time.Thu Jun 14 17:49:31 1990 David J. MacKenzie (djm at apple-gunkies) * stty.c: Implement tab, backspace, etc. delay args.Thu May 31 12:25:40 1990 David J. MacKenzie (djm at albert.ai.mit.edu) * nohup.sh: Don't ignore SIGTERM. If ./nohup.out is unwritable, try $HOME/nohup.out.Thu May 3 22:33:32 1990 David J. MacKenzie (djm at albert.ai.mit.edu) * who.c: Use error instead of fatal and fatal_perror. (print_headings): Print headings in all caps, like SYSV does. (list_entries): New function for -q to make it like SYSV -q. (valid_entries): Function removed.Mon Apr 2 01:27:23 1990 David J. MacKenzie (djm at albert.ai.mit.edu) * id.c (main): Don't strip off leading path from program name. Revise a couple of error messages. * whoami.c (main): Use geteuid, not getuid, for Unix compatibility.Tue Mar 20 14:28:25 1990 David J. MacKenzie (djm at pogo.ai.mit.edu) * tee.c (main): Pass list of files and its size as args to tee rather than as global vars. Exit with return value of tee instead of always 0. (tee): Use unbuffered I/O instead of stdio, for POSIX. Return an error status. (xwrite): New function.Tue Mar 13 00:38:13 1990 David J. MacKenzie (djm at albert.ai.mit.edu) * who.c (who_am_i): Print heading before checking to see whether there is an entry for the tty on stdin, for consistency with the who function. (main): Use argv[optind], not argv[1], as alternate file.Fri Mar 9 15:49:04 1990 David J. MacKenzie (djm at albert.ai.mit.edu) * who.c: Rename UTMP to UTMP_FILE for compatibility with SysV utmp.h. Include some additional header files. (main): Recognize some options from SysVr3 who. Call usage. Set new global var `program_name' from argv[0]. (usage): New function. (who): If -q given, only print count of users logged on. (print_entry): New function to format an entry on the output; make format more like that of the Unix who programs. (print_heading): New function to print a line describing each output field. (who, who_am_i): Call print_entry and print_heading. (valid_entries): New function to return count of nonempty entries in utmp. (search_entries): Compare with utmp tty field instead of username field. Don't assume null termination in utmp field. (who_am_i): Print the entry for the tty on stdin rather than the first entry found for the uid. If hostname is not available, use a null one instead of "<unknown>". Don't hardcode max hostname length. (idle_string): New function to format idle time field. (fatal, fatal_perror): Use program_name instead of hardcoded "who" in error messages.Tue Mar 6 00:59:03 1990 David J. MacKenzie (djm at albert.ai.mit.edu) * printenv.c (main): Allow multiple variables to be specified. (barf): Function removed.Sat Jan 20 18:41:48 1990 Jim Kingdon (kingdon at geech) * expr.c (nextarg): Do not pass *args to strcmp if NULL.Mon Dec 18 09:57:20 1989 David J. MacKenzie (djm at hobbes.ai.mit.edu) * printenv.c (main): Simplify error messages.Sat Dec 16 15:15:50 1989 David J. MacKenzie (djm at hobbes.ai.mit.edu) * expr.c: Indent to regularize spacing. (cmpv, arithf): Change '#define foo (args)' to '#define foo(args)' so they compile. (docolon): Remove unused vars. (multiply): Rename from times to avoid libc conflict. (error): Include program name in message. (xmalloc): Rename from Malloc. (re_compiled): Rename from re_comp to avoid libc conflict. * basename.c: Fix some weird indentation. (main): Print a clearer usage message. Use a simpler method for removing suffix, if given. (fatal): Function no longer used; removed. * sleep.c: (main): Rename `time' to `seconds'. Print usage message if given no args. Exit with status 0 instead of falling off end. (error): Print to stderr, not stdout. * tee.c: (main): Use getopt_long instead of custom parser, and adjust usage message. Use list of filenames in argv rather than making a copy. (tee): New function created from the second half of main. Fix bug where it tried to fclose a loop index instead of a stream. (xmalloc): Ok to return 0 if 0 bytes requested. (xrealloc): Unused function removed. * whoami.c: Canonicalize usage message and fix error message. * who.c: Declare some functions. (fatal_perror): New function for printing errors after system calls. Global: Use it when appropriate. (xmalloc): Return char *, not int. (read_utmp): Ok if utmp file is empty. Include filename in error messages. (scan_entries): Adjust columns to line up better, particularly when there are users with 8 character long usernames logged in.Sat Oct 28 13:20:43 1989 David J. MacKenzie (djm at spiff) * uname.c: Added long options. global: changed the word `part' to the word `element' (more precise). (program_name, long_options): New variables. (main): Support long options. (usage): Add long options summary to message.Local Variables:mode: indented-textleft-margin: 8version-control: neverEnd:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -