Commit Graph

1618 Commits

Author SHA1 Message Date
Jim Meyering
98a94bfb23 *** empty log message *** 2000-07-04 08:44:35 +00:00
Jim Meyering
1358f7c4a8 [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
This is necessary to get a definition of e.g., UTMP_FILE on HP-UX 10.20.
From Bob Proulx.
2000-07-04 08:44:28 +00:00
Jim Meyering
266adb5302 *** empty log message *** 2000-07-04 07:03:26 +00:00
Jim Meyering
5a6fe4fd57 (mbrtowc): Assign to *pwc, and return 1 only if result is nonzero.
(iswprint): Use ISPRINT when substituting our own mbrtowc.
2000-07-04 07:03:16 +00:00
Jim Meyering
8d765a5946 . 2000-07-02 20:25:43 +00:00
Jim Meyering
b6ceaf9df1 (mbstate_t): Don't define here. 2000-07-02 18:32:05 +00:00
Jim Meyering
c6d5d9624c *** empty log message *** 2000-07-02 18:23:56 +00:00
Jim Meyering
e1919145a5 (SIGCONT): Define if not already defined. 2000-07-02 18:23:51 +00:00
Jim Meyering
a784ac670f . 2000-07-01 13:58:19 +00:00
Jim Meyering
7d25895457 *** empty log message *** 2000-07-01 13:35:33 +00:00
Jim Meyering
1ce3f3cca5 Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
per change in ../m4/ls-mntd-fs.m4.
(read_filesystem_list): Ignore symbolic links.
2000-07-01 13:35:28 +00:00
Jim Meyering
1e4dca2dd1 . 2000-07-01 07:13:53 +00:00
Jim Meyering
60cea0e8fe *** empty log message *** 2000-06-29 11:30:16 +00:00
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