From 82a709847437d01fc12ec90cb8670c470c40fb7e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 3 Jan 1994 05:22:20 +0000 Subject: merge with 1.9.2c --- src/date.c | 26 +++++++++++++------------- src/id.c | 2 +- src/tee.c | 4 ++-- 3 files changed, 16 insertions(+), 16 deletions(-) (limited to 'src') diff --git a/src/date.c b/src/date.c index 2fe4783d4..65a41d911 100644 --- a/src/date.c +++ b/src/date.c @@ -243,36 +243,36 @@ usage (status) FORMAT controls the output. Interpreted sequences are:\n\ \n\ %%%% a literal %%\n\ - %%A locale's full weekday name, variable length (Sunday..Saturday)\n\ - %%B locale's full month name, variable length (January..December)\n\ - %%D date (mm/dd/yy)\n\ - %%H hour (00..23)\n\ - %%I hour (01..12)\n\ - %%M minute (00..59)\n\ - %%S second (00..61)\n\ - %%T time, 24-hour (hh:mm:ss)\n\ - %%U week number of year with Sunday as first day of week (00..53)\n\ - %%W week number of year with Monday as first day of week (00..53)\n\ - %%X locale's time representation (%%H:%%M:%%S)\n\ - %%Y year (1970...)\n\ - %%Z time zone (e.g., EDT), or nothing if no time zone is determinable\n\ %%a locale's abbreviated weekday name (Sun..Sat)\n\ + %%A locale's full weekday name, variable length (Sunday..Saturday)\n\ %%b locale's abbreviated month name (Jan..Dec)\n\ + %%B locale's full month name, variable length (January..December)\n\ %%c locale's date and time (Sat Nov 04 12:02:33 EST 1989)\n\ %%d day of month (01..31)\n\ + %%D date (mm/dd/yy)\n\ %%h same as %%b\n\ + %%H hour (00..23)\n\ + %%I hour (01..12)\n\ %%j day of year (001..366)\n\ %%k hour ( 0..23)\n\ %%l hour ( 1..12)\n\ %%m month (01..12)\n\ + %%M minute (00..59)\n\ %%n a newline\n\ %%p locale's AM or PM\n\ %%r time, 12-hour (hh:mm:ss [AP]M)\n\ %%s seconds since 00:00:00, Jan 1, 1970 (a nonstandard extension)\n\ + %%S second (00..61)\n\ %%t a horizontal tab\n\ + %%T time, 24-hour (hh:mm:ss)\n\ + %%U week number of year with Sunday as first day of week (00..53)\n\ %%w day of week (0..6); 0 represents Sunday\n\ + %%W week number of year with Monday as first day of week (00..53)\n\ %%x locale's date representation (mm/dd/yy)\n\ + %%X locale's time representation (%%H:%%M:%%S)\n\ %%y last two digits of year (00..99)\n\ + %%Y year (1970...)\n\ + %%Z time zone (e.g., EDT), or nothing if no time zone is determinable\n\ "); } exit (status); diff --git a/src/id.c b/src/id.c index e5d12d16c..6af012907 100644 --- a/src/id.c +++ b/src/id.c @@ -373,10 +373,10 @@ usage (status) printf ("\ \n\ -g, --group print only the group ID\n\ + -G, --groups print only the supplementary groups\n\ -n, --name print a name instead of a number, for -ugG\n\ -r, --real print the real ID instead of effective ID, for -ugG\n\ -u, --user print only the user ID\n\ - -G, --groups print only the supplementary groups\n\ --help display this help and exit\n\ --version output version information and exit\n\ \n\ diff --git a/src/tee.c b/src/tee.c index 1444b2a01..ea257d1bc 100644 --- a/src/tee.c +++ b/src/tee.c @@ -38,7 +38,7 @@ char *xmalloc (); void error (); -int safe_write (); +int full_write (); static int tee (); @@ -207,7 +207,7 @@ tee (nfiles, files) for (i = 0; i <= nfiles; i++) { if (descriptors[i] != -1 - && safe_write (descriptors[i], buffer, bytes_read)) + && full_write (descriptors[i], buffer, bytes_read) < 0) { error (0, errno, "%s", files[i]); /* Don't close stdout. That's done in main. */ -- cgit v1.2.3-54-g00ecf