1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-06-03 08:16:33 +02:00
Commit Graph

3228 Commits

Author SHA1 Message Date
Jim Meyering e1ddafb2f0 Include <stdlib.h>.
(free): Remove decl.
2003-09-10 08:50:00 +00:00
Jim Meyering 0d87ae92fb Include makepath.h first, to test interface.
Include <stdlib.h> and <string.h> unconditionally.
2003-09-10 08:49:49 +00:00
Jim Meyering 06d7d0633c Include long-options.h first, to test interface.
Include <stdlib.h> unconditionally.
2003-09-10 08:49:38 +00:00
Jim Meyering 153a18589c Include <string.h> unconditionally. 2003-09-10 08:49:26 +00:00
Jim Meyering 890fdbf0c4 Include <stdlib.h>, <string.h> unconditionally.
(getenv): Do not declare.
2003-09-10 08:49:12 +00:00
Jim Meyering 9f8cacb16f (free, malloc): Remove decls.
Include <stdlib.h> unconditionally.
2003-09-10 08:48:43 +00:00
Jim Meyering 1561362640 Include hard-locale.h first.
Include <stdlib.h>, <string.h> unconditionally.
2003-09-10 08:48:30 +00:00
Jim Meyering ccddbf4faf Include group-member.h first.
Include <stdlib.h> unconditionally.
2003-09-10 08:47:38 +00:00
Jim Meyering e705d572fa Include <string.h> unconditionally. 2003-09-10 08:45:43 +00:00
Jim Meyering 7700fca526 (const): Remove macro.
(getopt_long, getopt_long_only, main): Define with prototype.
2003-09-10 08:45:08 +00:00
Jim Meyering f846451580 (const): Remove macro.
Include <string.h> unconditionally.
(my_index): Remove; all uses changed to strchr.
(strlen): Remove decl.
(exchange): Remove forward decl; no longer needed.
(exchange, _getopt_initialize, _getopt_internal, getopt, main):
Define with prototype.
2003-09-10 08:44:46 +00:00
Jim Meyering 9209af4c98 (struct option.name): Assume C89, and use 'const'.
(getopt, etopt_long, getopt_long_only, _getopt_internal)
[defined __GNU_LIBRARY__]: Assume C89, so we can always declare
with a prototype.
2003-09-10 08:44:28 +00:00
Jim Meyering 8f4368f10b (getloadavg, main): Define via prototypes. 2003-09-10 08:44:15 +00:00
Jim Meyering dfd16eff6d Assume stdlib.h per the C89 spec. 2003-09-10 08:42:04 +00:00
Jim Meyering 73ec01a112 Include <stddef.h>.
(gethostname): Define with prototype.  Length is size_t, not int.
2003-09-10 08:37:38 +00:00
Jim Meyering a8a090ae08 Include <stdlib.h>, <string.h> unconditionally. 2003-09-10 08:37:15 +00:00
Jim Meyering 07c211b0f8 (FCT): Remove forward decl; no longer needed.
(FCT): Define using a prototype.
2003-09-10 08:36:52 +00:00
Jim Meyering 2ce7736853 Include fnmatch.h first, to test interface.
Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
(getenv): Remove decl.
(fnmatch): Define using a prototype.
2003-09-10 08:36:22 +00:00
Jim Meyering 2939998ed7 (__P): Remove. All uses changed to assume prototypes. 2003-09-10 08:35:47 +00:00
Jim Meyering 74916e8628 Include <stdlib.h> unconditionally. 2003-09-10 08:31:57 +00:00
Jim Meyering bcbbea5319 Include <stdlib.h>, <string.h> unconditionally. 2003-09-10 08:31:47 +00:00
Jim Meyering 3db9acf5e6 (main): Define with a prototype. 2003-09-10 08:31:35 +00:00
Jim Meyering 012067ccf5 Include error.h first, to check interface.
Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
(VA_START): Remove; all uses changeed to va_start.
(exit, strerror): Remove decls.
(error_print_progname): Prototype uncondionally.
Don't include <errno.h>; no longer needed.
(private_strerror): Remove.
(error_tail): Always define.
(error, error_at_line): Assume C89 or better; always use prototypes.
2003-09-10 08:31:14 +00:00
Jim Meyering 86ee01bc32 (error, error_at_line, error_print_progname)
[! (defined (__STDC__) && __STDC__)]: Remove decls.
2003-09-10 08:30:18 +00:00
Jim Meyering 0364e73411 Include <stdlib.h>, <string.h> unconditionally. 2003-09-10 08:29:47 +00:00
Jim Meyering a57cb0b077 Include <stddef.h>.
(bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
2003-09-10 08:29:31 +00:00
Jim Meyering 3d82b922c1 Include <string.h> unconditionally. 2003-09-10 08:28:38 +00:00
Jim Meyering 02889673a1 (atexit): Define using a prototype. 2003-09-10 08:27:55 +00:00
Jim Meyering a76d1c83c1 Include <string.h>, <stdlib.h> unconditionally.
(POINTER_TYPE, pointer): Remove; all uses changed to void *.
(NULL): Remove.
(find_stack_direction, alloca): Use prototypes.
2003-09-10 08:27:32 +00:00
Jim Meyering 0d84cc66ee Include <string.h>, <stdlib.h> unconditionally.
Don't declare getenv or malloc.
2003-09-10 08:26:42 +00:00
Jim Meyering cf61cc9303 Include <string.h> unconditionally. 2003-09-10 08:25:43 +00:00
Jim Meyering 6634cb92ec Include <stdlib.h> unconditionally.
(getusershell, setusershell, endusershell, readname, main):
Define with prototypes.

(readname, default_index, line_size, readname):
Use size_t, not int, for sizes.
(readname): If the size overflows, report an error instead of
looping forever.
2003-09-10 08:24:00 +00:00
Jim Meyering fb24f78198 *** empty log message *** 2003-09-10 06:33:31 +00:00
Jim Meyering b24bc317c5 [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
(utime_null): Fix typo: 'st' was sometimes called 'sb'.
2003-09-10 06:33:25 +00:00
Jim Meyering 3edc0cce07 *** empty log message *** 2003-09-09 05:50:28 +00:00
Jim Meyering b706478b1b . 2003-09-09 05:46:48 +00:00
Jim Meyering 00b25daa96 . 2003-09-05 20:55:28 +00:00
Jim Meyering 7cda1f5373 *** empty log message *** 2003-09-03 20:30:40 +00:00
Jim Meyering 04191c7a34 *** empty log message *** 2003-09-03 20:30:31 +00:00
Jim Meyering a42a4b7bd3 (human_readable): Fix bug that rounded 10501 to 10k.
Bug reported by Lute Kamstra in
<http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
2003-09-03 20:30:25 +00:00
Jim Meyering ae8c5ba47a *** empty log message *** 2003-09-03 08:28:12 +00:00
Jim Meyering 54feed1c1a (relative_time_table): Use tDAY_UNIT for "tomorrow",
"yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
course with correspondingly smaller numbers for tomorrow and
yesterday.  From Tadayoshi Funaba.  Originally installed into
sh-utils on 1999-08-07, but the patch was mistakenly reverted by
the next change to that shared file (but this time in fileutils)
on 1999-08-29.
2003-09-03 08:28:08 +00:00
Jim Meyering dcb6dfae32 . 2003-08-19 10:25:37 +00:00
Jim Meyering 19853d3f0b *** empty log message *** 2003-08-19 10:03:22 +00:00
Jim Meyering d3bfb37e64 *** empty log message *** 2003-08-19 10:02:57 +00:00
Jim Meyering 7c4acc4f65 Include <stdlib.h> and <string.h> unconditionally,
as we're now assuming that part of hosted C89.
(free) [!HAVE_DECL_FREE]: Remove decl; no longer needed.
(same_name): Invoke pathconf on destination, not source, as
that's a bit clearer even if they are the same dir.
2003-08-19 10:02:53 +00:00
Jim Meyering 8ac00d52ce *** empty log message *** 2003-08-18 12:15:22 +00:00
Jim Meyering 111217fed2 Remove space before TAB. 2003-08-18 12:15:12 +00:00
Jim Meyering b1b4af8047 Sync with gnulib. 2003-08-18 09:44:49 +00:00
Jim Meyering 84a9ab5a07 *** empty log message *** 2003-08-18 09:44:40 +00:00