Paul Eggert
ac4b4fe418
Fix install.c int->bool conversion bug.
2004-08-10 20:32:32 +00:00
Paul Eggert
811c61b049
(change_timestamps): Fix int->bool conversion
...
bugs introduced on 2004-07-29.
2004-08-10 20:32:19 +00:00
Paul Eggert
145d804068
Regenerate.
2004-08-10 06:54:15 +00:00
Paul Eggert
1b26801391
Sync with gnulib.
2004-08-10 05:43:11 +00:00
Paul Eggert
557ed575e8
readlink.c cleanup
2004-08-09 23:40:58 +00:00
Paul Eggert
290ba4ab1d
(canonicalize_fname): Remove unneeded proxy function.
...
(can_mode): Make variable local.
2004-08-09 23:40:49 +00:00
Paul Eggert
f305d3a224
Improve code to work in some cases when files are writeable but not readable.
2004-08-09 23:35:15 +00:00
Paul Eggert
1def589bea
(wipename): Work even if the directory is writeable
...
and not readable. Prefer write access, since this should work
better with fdatasync.
2004-08-09 23:34:49 +00:00
Paul Eggert
e077b28593
(diropen): New function.
...
(fts_open, fts_read, fts_children, fts_safe_changedir):
Use it, so that the code works even if the directory
is writeable but not readable.
2004-08-09 23:34:15 +00:00
Paul Eggert
1ff6d6ea07
(rpl_chown): Work even if the file is writeable but not readable.
2004-08-09 23:33:53 +00:00
Paul Eggert
3038f02225
Switch to UTF-8.
2004-08-09 23:27:55 +00:00
Paul Eggert
6d8737eba8
Change to UTF-8.
2004-08-09 23:26:57 +00:00
Paul Eggert
b05866ea03
Import from gnulib.
2004-08-09 23:26:08 +00:00
Paul Eggert
5d204d4e2f
Regenerate.
2004-08-09 18:51:05 +00:00
Paul Eggert
884a7c36eb
(xalloc_die): New function.
...
(main): Remove now-obsolete initialization of xalloc_fail_func.
2004-08-09 18:45:10 +00:00
Paul Eggert
8ad3011df3
Remove dependency of xalloc on error, etc.
2004-08-09 18:44:46 +00:00
Paul Eggert
e5f309aaf3
Adjust to sha->sha1 renaming.
2004-08-09 18:18:41 +00:00
Paul Eggert
4573c9e81c
Finish renaming sha -> sha1.
2004-08-09 18:16:21 +00:00
Paul Eggert
81b4c13eb5
(O_BINARY) [!O_BINARY && defined O_BINARY]:
...
Do not define, to avoid annoying compiler messages on QNX 6.3.
2004-08-08 03:04:21 +00:00
Paul Eggert
a5b9e9d440
(O_BINARY) [!O_BINARY && defined O_BINARY]:
...
Do not define, to avoid annoying compiler messages on QNX 6.3.
2004-08-08 03:04:00 +00:00
Paul Eggert
a86c457f64
Merge from gnulib.
2004-08-07 07:16:54 +00:00
Paul Eggert
a3538ea055
Regenerate.
2004-08-05 23:11:21 +00:00
Paul Eggert
43d5c5b6c3
New file, imported from gnulib.
2004-08-05 23:09:29 +00:00
Paul Eggert
d86254a25a
Sync from gnulib.
2004-08-05 23:01:03 +00:00
Paul Eggert
71ff7490f9
Fixes for OpenBSD 3.4.
2004-08-04 22:51:23 +00:00
Paul Eggert
4cf9045aa3
Fixes for OpenBSD 3.4.
2004-08-04 22:51:03 +00:00
Paul Eggert
0e67d0e632
Fixes for OpenBSD 3.4.
2004-08-04 22:50:41 +00:00
Paul Eggert
9c4dc6f1f1
Fix parenthesization typo.
2004-08-04 22:35:37 +00:00
Paul Eggert
4bf7ed05e1
Remove bogus "*/" from shell comment.
2004-08-04 22:31:15 +00:00
Paul Eggert
af03dafa2e
Remove bogus "*/" from shell comment.
2004-08-04 22:30:38 +00:00
Paul Eggert
8902024a47
Include copyright notice.
...
(cu_PREREQ_STAT_PROG): Use the _ONCE variants when appropriate.
Include sys/param.h before testing for sys/mount.h.
2004-08-04 22:27:36 +00:00
Paul Eggert
3ebd8a1c2f
Include copyright notice.
...
(gl_LIST_MOUNTED_FILE_SYSTEMS): Include sys/param.h before
testing for sys/mount.h.
2004-08-04 22:27:24 +00:00
Paul Eggert
18087d1a6d
Include copyright notice.
...
(gl_MACROS): Use the _ONCE variants when appropriate.
Include sys/param.h before testing for sys/sysctl.h and sys/mount.h;
needed for OpenBSD 3.4.
2004-08-04 22:27:12 +00:00
Paul Eggert
204f9200ad
Add copyright notice.
...
(gl_FSUSAGE): Include sys/param.h before checking for sys/mount.h.
Needed for OpenBSD 3.4.
2004-08-04 22:27:00 +00:00
Paul Eggert
cc37c6c564
Add copyright notice.
...
(GNULIB_BOOT_TIME): Include sys/param.h before testing
for sys/sysctl.h; needed for OpenBSD 3.4.
2004-08-04 22:26:42 +00:00
Paul Eggert
01b9ae45c6
(PRIdMAX, PRIoMAX, PRIuMAX, PRIxMAX):
...
Define to a concatenation of string literals, not to an expression;
needed for concatenation contexts.
(INTMAX_MAX, INTMAX_MIN): New macros.
2004-08-04 22:26:23 +00:00
Paul Eggert
4e3640a010
(SIZE_MAX): Define after including files, to avoid
...
a collision on OpenBSD 3.4.
2004-08-04 22:08:33 +00:00
Paul Eggert
4e40831b0c
(print_stat): Don't assume st_ino / st_dev fits in
...
unsigned long; this isn't true for st_ino on Solaris 9.
2004-08-04 22:04:26 +00:00
Paul Eggert
0e591504c8
(LONGEST_MODIFIER): New macro.
...
(PRIuMAX) [!PRI_MACROS_BROKEN && !defined PRIuMAX]: New macro.
(find_matching_ancestor): Use it for dev_t and ino_t.
2004-08-04 21:58:46 +00:00
Paul Eggert
fade486c60
Sync from gnulib.
2004-08-04 20:58:57 +00:00
Paul Eggert
a617eff5dc
Work around bug in OpenBSD 3.4 sterror_r: it
...
sometimes returns a positive errno value even when it succeeds.
(print_errno_message) [!LIBC]: Fall back on strerror if
__strerror_r fails.
2004-08-04 19:35:24 +00:00
Paul Eggert
b3f620dd47
Add uname kludge to work around Mac OS X bug.
2004-08-04 05:59:25 +00:00
Paul Eggert
f37e35485f
Do not depend on HAVE_SYSCTL when deciding
...
whether to include files. Include <sys/param.h> if
HAVE_SYS_PARAM_H (not HAVE_SYSCTL).
(main) [defined __POWERPC__]: Add a kludge to work around a
Mac OS X bug, so that uname -p defaults to "powerpc" if
sysctl ((int[]) {CTL_HW, HW_MACHINE_ARCH}, 2, buffer, &bufsize, 0, 0)
fails. Problem reported by Petter Reinholdtsen in:
http://lists.gnu.org/archive/html/bug-gnu-utils/2003-02/msg00201.html
2004-08-04 05:58:43 +00:00
Paul Eggert
28e5967879
int cleanups for uniq, wc, who, whoami, unexpand, touch, tsort, tty,
...
test, tac, su, stty, remove.h, tee, ptx, printf, shred, split, stat, pr.
2004-08-03 23:40:20 +00:00
Paul Eggert
3e3a031475
(main): Print uids using unsigned long int, not unsigned int.
2004-08-03 23:38:40 +00:00
Paul Eggert
7512995b22
(scan_entries): 0 -> STDIN_FILENO.
2004-08-03 23:38:21 +00:00
Paul Eggert
44956bb6b0
(iswspace, wc): Use to_uchar rather than a cast.
...
(print_lines, print_words, print_chars, print_bytes, print_linelength,
have_read_stdin, wc, wc_file, main):
Use bool for booleans.
(exit_status): Remove.
(wc, wc_file): Return bool status. All callers changed.
2004-08-03 23:38:10 +00:00
Paul Eggert
a1e3a341a6
(hard_LC_COLLATE, ignore_case, different, check_file,
...
main): Use bool for booleans.
(writeline, check_file): Use uintmax_t for line counts.
(check_file): Check for and report line number overflow,
when that matters.
2004-08-03 23:37:56 +00:00
Paul Eggert
f55c9b41a2
Int cleanup and minor reorganization to be more like src/expand.c.
...
Include quote.h, xstrndup.h.
(TAB_STOP_SENTINEL): Increase from INT_MAX to INTMAX_MAX.
(convert_entire_line, have_read_stdin, parse_tabstops, next_file,
unexpand, main):
Use bool for booleans.
(tab_size, tab_list, add_tabstop, validate_tabstops, unexpand):
Use uintmax_t for column counts.
(first_free_tab, validate_tabstops, unexpand): Use size_t for sizes.
(add_tabstop, parse_tabstops, main): Don't reserve UINTMAX_MAX
as a tab stop.
(parse_tabstops): Don't use ISBLANK on possibly-signed char.
Detect overflow in tab stop string.
(next_file, main): Use EXIT_FAILURE/EXIT_SUCCESS instead of 1/0.
(unexpand): Concatenate input files the same way expand does.
2004-08-03 23:27:20 +00:00
Paul Eggert
eae57519cd
(print_element): Use bool for booleans.
2004-08-03 23:14:17 +00:00