Commit Graph
2811 Commits
Author SHA1 Message Date
Jim Meyering a0528d8bf2 *** empty log message *** 2003-03-11 10:08:21 +00:00
Jim Meyering d7103af2bc Include <wchar.h>. Needed for UnixWare 7.1.1.
Reported by John Hughes, see
http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
2003-03-11 10:08:15 +00:00
Jim Meyering 0f48190f5d *** empty log message *** 2003-03-11 10:07:21 +00:00
Jim Meyering c7cb614727 (EXIT_FAILURE): Define if the system doesn't.
Reported by Bruce Becker; see:
http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
2003-03-11 10:07:17 +00:00
Jim Meyering f380405cb6 . 2003-03-10 07:53:39 +00:00
Jim Meyering 3d23ede4eb Include "save-cwd.h".
(ftw_startup): Avoid use of getcwd, if possible.
Instead, use fopen/fchdir via save_cwd/restore_cwd.
2003-03-09 09:22:55 +00:00
Jim Meyering cb1dcb5818 . 2003-03-08 14:32:57 +00:00
Jim Meyering eff5758aaf Don't use `defined' in a #define directive. 2003-03-08 14:26:48 +00:00
Jim Meyering 684f41944e . 2003-03-07 23:37:10 +00:00
Jim Meyering b29dc802f7 (libfetish_a_SOURCES): Remove mmap-stack.h. 2003-03-07 19:49:56 +00:00
Jim Meyering 300807cd2f . 2003-03-07 19:49:20 +00:00
Jim Meyering 390a0fb48d *** empty log message *** 2003-03-07 10:16:50 +00:00
Jim Meyering 5635524114 #undef getcwd only after *all* included header files.
Declare getcwd unconditionally.
2003-03-07 10:13:55 +00:00
Jim Meyering 80ddb4bed4 *** empty log message *** 2003-03-07 09:52:34 +00:00
Jim Meyering 32ae6e8565 (same_name): Remove unnecessary inclusion of config.h.
It also happened to lead to infinite recursion in getcwd.c.
(PARAMS): Remove definition and use.
2003-03-07 09:52:28 +00:00
Jim Meyering b4e7a90ce6 #undef getcwd before including system headers.
This avoid a build failure on IRIX 6.5.  Reported by Nelson Beebe.
2003-03-06 22:23:26 +00:00
Jim Meyering 08e9a37430 *** empty log message *** 2003-03-06 22:04:54 +00:00
Jim Meyering a63a083879 [!HAVE_DECL_GETCWD]: Declare getcwd. 2003-03-06 22:04:45 +00:00
Jim Meyering c71e43ce1d *** empty log message *** 2003-03-06 14:14:22 +00:00
Jim Meyering b70ecc4de1 Fix a bug that causes du to dump core on 64-bit systems.
(ftw_startup): Declare `func' parameter to be of type
NFTW_FUNC_T, not void* which may be smaller on 64-bit systems.
Remove now-unnecessary cast.
(FTW_NAME): Cast func argument to type `NFTW_FUNC_T'.
2003-03-06 14:14:16 +00:00
Jim Meyering 0b41ba4064 *** empty log message *** 2003-03-05 11:06:41 +00:00
Jim Meyering 09fb1e2d6e (ARRAY_SIZE): Define it. 2003-03-05 11:06:18 +00:00
Jim Meyering 60660ec79c comments 2003-03-05 08:19:10 +00:00
Jim Meyering 998e0827e4 comments 2003-03-05 07:24:22 +00:00
Jim Meyering 18c3ace4b9 . 2003-03-04 22:02:42 +00:00
Jim Meyering 541c6da4ba *** empty log message *** 2003-03-04 21:29:16 +00:00
Jim Meyering ca1b088722 (CLEANUP_CWD): Call error here, now that restore_cwd no longer does it. 2003-03-04 21:29:13 +00:00
Jim Meyering 6c08bfe83f (restore_cwd): Update prototype. 2003-03-04 21:27:55 +00:00
Jim Meyering 7820b193f6 (restore_cwd): Remove two parameters.
Simplify.  Don't call error upon failure.  Let callers do that.
(save_cwd): Mention that Irix 5.3 has the same problem as SunOS4
when auditing is enabled.  But don't bother updating the #if.
2003-03-04 21:27:34 +00:00
Jim Meyering 4c1d653416 . 2003-03-04 19:35:41 +00:00
Jim Meyering ed1780effe *** empty log message *** 2003-03-04 18:08:06 +00:00
Jim Meyering d68a9cf4e9 Improve comment. 2003-03-04 18:07:59 +00:00
Jim Meyering 59bd90b877 *** empty log message *** 2003-03-04 18:07:52 +00:00
Jim Meyering d7b57a7571 *** empty log message *** 2003-03-04 18:00:42 +00:00
Jim Meyering 123cec6105 *** empty log message *** 2003-03-02 10:06:43 +00:00
Jim Meyering 5d1c377779 . 2003-03-02 10:04:48 +00:00
Jim Meyering ad9e0f6824 (ftw_startup): Return -1 if alloca fails. 2003-02-28 14:44:34 +00:00
Jim Meyering e660be4d86 *** empty log message *** 2003-02-28 12:42:47 +00:00
Jim Meyering 4433c9a082 (fts_children): If opening `.' fails, set the fts_child
member to NULL before returning.  From NetBSD.
2003-02-28 12:42:31 +00:00
Jim Meyering 3a4ac3a6a6 *** empty log message *** 2003-02-28 11:04:28 +00:00
Jim Meyering fb428bedfc (fts_children): If fchdir fails, close file descriptor
before returning.  From NetBSD.
2003-02-28 11:04:18 +00:00
Jim Meyering eb339c4303 *** empty log message *** 2003-02-27 20:21:24 +00:00
Jim Meyering 9c97727fb2 (physmem_total, physmem_available): Add comments. 2003-02-27 20:21:21 +00:00
Jim Meyering 1fc44fe183 *** empty log message *** 2003-02-27 17:52:41 +00:00
Jim Meyering 92fa74148d Merge in portability changes from gcc/libiberty
to support AIX, Tru64, and Windows.  See the ChangeLog there
for credits and details.
2003-02-27 17:52:37 +00:00
Jim Meyering 66d8a81ef3 filter through cppi 2003-02-24 10:09:19 +00:00
Jim Meyering 0eb448466a [__USE_FILE_OFFSET64]: Remove #error directive. 2003-02-24 10:08:57 +00:00
Jim Meyering eb85acc63a Include <search.h>.
(struct known_object): Define.
(object_compare, add_object, find_object): New functions, like
those in ftw.c.
(fts_open): Initialize new member.
(fts_close): Free memory allocated for new member.
(fts_stat): Detect a cycle in O(logN) time per directory processed.
2003-02-24 09:58:02 +00:00
Jim Meyering 06a0dc99c7 *** empty log message *** 2003-02-24 09:09:49 +00:00
Jim Meyering b3cac1155b [HAVE_CONFIG_H]: Include <config.h>.
Conditionalize inclusion of <sys/param.h>.
Conditionalize inclusion of <include/sys/stat.h> vs <sys/stat.h>.
Include autoconf-recommended block of dirent/NAMELEN-related
definitions and includes.  Use NAMLEN throughout, rather than
_D_EXACT_NAMLEN.
[_LIBC] (close, closedir, fchdir, open, opendir): Define.
[_LIBC] (readdir, tdestroy, tfind, tsearch): Define.
Remove `__' prefix from all uses of the above.  This will help
to merge *BSD changes.
[!_LIBC] (internal_function): Define.
[! _LIBC && ! LSTAT_FOLLOWS_SLASHED_SYMLINK]: Define lstat.
(__set_errno): Define if not already defined.
2003-02-24 09:09:42 +00:00