Jim Meyering
d1e34222a8
Include <string.h> or <strings.h>, as appropriate, for declaration of strcmp.
2000-06-29 11:29:55 +00:00
Jim Meyering
13f4d23214
*** empty log message ***
2000-06-29 11:24:14 +00:00
Jim Meyering
2aab0b6a6c
Include <stdlib.h>, for declaration of exit.
2000-06-29 11:24:09 +00:00
Jim Meyering
13225e0c76
*** empty log message ***
2000-06-29 08:37:00 +00:00
Jim Meyering
a1fd5e91ff
(fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
...
Avoid warning by casting result to `char *' to remove `const'.
2000-06-29 08:30:03 +00:00
Jim Meyering
f4e62844cb
.
2000-06-27 10:10:13 +00:00
Jim Meyering
738611829c
*** empty log message ***
2000-06-27 10:09:54 +00:00
Jim Meyering
4189da9d74
(libfetish_a_SOURCES): Remove readutmp.c.
2000-06-27 10:09:49 +00:00
Jim Meyering
0a43597bb8
*** empty log message ***
2000-06-27 07:08:52 +00:00
Jim Meyering
211b5731d7
savedir now sets errno on failure and invokes xmalloc to get memory.
...
Fix a couple of other minor bugs while we're at it.
(<unistd.h>): Do not include; there's no need.
(NAMLEN): Remove macro.
(malloc, realloc): Remove decls.
(stpcpy): Likewise.
("xalloc.h"): Include.
(NAME_SIZE_DEFAULT): New macro.
(savedir): Use xmalloc / xrealloc to allocate memory.
Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
Skip "" directory entries.
Use strlen to calculate directory entry length, since the old method
is rarely used these days and isn't worth supporting.
Don't use a pointer after freeing it.
Check for integer overflow when calculating allocation size.
Use memcpy to copy entries, instead of stpcpy.
Set errno properly when returning NULL.
Check for readdir error.
2000-06-27 07:08:48 +00:00
Jim Meyering
dfaf03f037
*** empty log message ***
2000-06-26 10:55:57 +00:00
Jim Meyering
204a9ee115
[HAVE_STDLIB_H]: Include stdlib.h.
2000-06-26 10:55:18 +00:00
Jim Meyering
ac4e995ed3
*** empty log message ***
2000-06-25 21:19:41 +00:00
Jim Meyering
d705cb724b
(xmalloc, xrealloc): Remove functions.
...
Include xalloc.h.
Don't include <stdlib.h>. Don't declare malloc, realloc.
2000-06-25 21:17:32 +00:00
Jim Meyering
484752fa80
*** empty log message ***
2000-06-25 06:54:36 +00:00
Jim Meyering
a9fad38c18
(print_unicode_char): Work around ansi2knr deficiency.
2000-06-25 06:54:32 +00:00
Jim Meyering
806c3e7fb8
.
2000-06-24 12:25:39 +00:00
Jim Meyering
790705a7c1
*** empty log message ***
2000-06-24 12:01:29 +00:00
Jim Meyering
5061035e88
[!HAVE_DECL_STRERROR_R]: Declare strerror_r.
2000-06-24 12:01:03 +00:00
Jim Meyering
957ec50ac0
*** empty log message ***
2000-06-23 21:06:45 +00:00
Jim Meyering
fef29da8fb
Include <wctype.h> after <wchar.h>,
...
for Solaris 2.5.
(mbrtowc, mbstate_t): Define substitutes if
HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
(iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
2000-06-23 21:05:50 +00:00
Jim Meyering
085cdb43ed
*** empty log message ***
2000-06-23 14:03:02 +00:00
Jim Meyering
c514878446
ansideclify
2000-06-21 20:21:03 +00:00
Jim Meyering
9f0aa11144
New file, from Bruno Haible. Required for BeOS.
2000-06-21 20:20:27 +00:00
Jim Meyering
50f86c9fe7
*** empty log message ***
2000-06-21 20:16:10 +00:00
Jim Meyering
978bf5f750
(xgetcwd): If the required pathname length is smaller
...
than 1024, return a memory chunk of least possible size, instead
of size PATH_MAX + 2. In the loop, increment the size proportionally.
Use free/xmalloc instead of xrealloc to avoid copying for very long paths.
2000-06-21 20:16:03 +00:00
Jim Meyering
0ce8428a9d
*** empty log message ***
2000-06-21 13:00:54 +00:00
Jim Meyering
fc71e28b65
(canon_host): Use malloc and memcpy to copy an
...
address, not strdup. Include <stdlib.h> and don't declare free().
2000-06-21 13:00:49 +00:00
Jim Meyering
d32395693a
*** empty log message ***
2000-06-21 12:56:40 +00:00
Jim Meyering
bb6ebcc333
(path_concat): Don't access dir[-1] if dir is the empty string.
2000-06-21 12:56:33 +00:00
Jim Meyering
08cd18bc45
include getstr.h
2000-06-21 09:56:42 +00:00
Jim Meyering
c60941056f
*** empty log message ***
2000-06-21 09:21:52 +00:00
Jim Meyering
ddcbe0decc
(libfetish_a_SOURCES): Add getstr.c.
...
(noinst_HEADERS): Add getstr.h.
2000-06-21 09:21:22 +00:00
Jim Meyering
912179f001
(getstr): Move into a separate file.
2000-06-21 09:12:30 +00:00
Jim Meyering
b41ca587a1
copyright date
2000-06-21 09:10:32 +00:00
Jim Meyering
671fdfa887
*** empty log message ***
2000-06-21 09:09:57 +00:00
Jim Meyering
b865bd0619
New file, extracted from getline.c, with the following
...
changes: new parameter, delim2; both delim[12] parameters have type
`int', not `char'. The latter would lose with 8-bit delimiters.
2000-06-21 09:09:22 +00:00
Jim Meyering
f4bfd0cb38
.
2000-06-19 09:48:46 +00:00
Jim Meyering
243036c5fb
[HAVE_NLIST_H] (NLIST_STRUCT): Define.
2000-06-19 07:25:01 +00:00
Jim Meyering
5debbcc139
revert last change
2000-06-19 07:19:41 +00:00
Jim Meyering
5b728e9bad
*** empty log message ***
2000-06-19 06:55:11 +00:00
Jim Meyering
a49d66ffdf
.
2000-06-19 06:51:58 +00:00
Jim Meyering
fa168b1e06
*** empty log message ***
2000-06-18 18:17:03 +00:00
Jim Meyering
570ad2486a
Include memory.h, string.h, and/or strings.h as needed.
...
(this snippet comes from src/system.h).
2000-06-18 18:16:54 +00:00
Jim Meyering
47f6723289
.
2000-06-18 17:47:39 +00:00
Jim Meyering
890e86b6f9
s/NLIST_STRUCT/HAVE_NLIST_H/. Remove big
...
multi-platform `#ifndef NLIST_STRUCT' block.
2000-06-18 06:17:54 +00:00
Jim Meyering
a6ef8dfbab
.
2000-06-17 18:47:21 +00:00
Jim Meyering
bb03de1c1d
.
2000-06-17 18:46:16 +00:00
Jim Meyering
eea83d97cb
*** empty log message ***
2000-06-16 12:51:33 +00:00
Jim Meyering
ff5aea354f
(adjust_value): New function.
...
(human_readable_inexact): Apply rounding style even when
printing approximate values.
2000-06-16 12:51:28 +00:00