Jim Meyering
d404816448
(S_ISNAM): Add to list of S_IS* macros.
...
Rearrange #if directives for each S_IS macro.
From diffutils-2.8.2.
2002-06-15 06:53:57 +00:00
Jim Meyering
e9f9963e6b
fix typo: s/S_TYPEISTMO/S_TYPEISMQ/
2002-05-25 22:42:05 +00:00
Jim Meyering
925390f0bf
(S_ISREG, S_ISDIR): Define if not already defined.
...
(S_TYPEISSEM, S_TYPEISSHM, S_TYPEISTMO): Likewise.
2002-05-22 08:35:31 +00:00
Jim Meyering
fdadb32d0a
(S_ISLNK, S_ISFIFO, S_ISSOCK, S_ISCHR, S_ISBLK, S_ISDOOR): Define here instead.
2002-05-21 23:15:05 +00:00
Jim Meyering
17d3a3e28c
(HAVE_SETLOCALE): Define to 0 if not defined.
2002-04-30 09:21:21 +00:00
Jim Meyering
1bb22e3075
Remove ENABLE_NLS-related code.
...
(_, N_) Remove definitions.
Include "gettext.h" instead.
2002-04-25 15:38:17 +00:00
Jim Meyering
f8053809f8
remove the parens I just added to Paul's patch
2002-01-22 10:47:14 +00:00
Jim Meyering
ef95b3233e
(EOVERFLOW, fseeko): New macros.
2002-01-22 10:46:05 +00:00
Jim Meyering
2f8c0a3131
(ISDIGIT, S_ISVTX, S_IXUGO): Comment fix.
2002-01-16 23:04:06 +00:00
Jim Meyering
52f3031b24
Rename just-added macros. Here are the new names:
...
HELP_OPTION_DESCRIPTION
VERSION_OPTION_DESCRIPTION
2001-12-01 17:31:09 +00:00
Jim Meyering
a34483b143
(EMIT_HELP_DESCRIPTION): New macro.
...
(EMIT_VERSION_DESCRIPTION): New macro.
2001-12-01 17:21:57 +00:00
Jim Meyering
06e70ddab4
(alloca) [__GNUC__]: Define only if not already defined.
2001-11-11 13:17:49 +00:00
Jim Meyering
05c446084e
(alloca): Define to __builtin_alloca if __GNUC__,
...
to avoid a warning if -Wall.
2001-10-22 08:01:43 +00:00
Jim Meyering
5f19438017
Include "unlocked-io.h", rather than hard-coding the HAVE_*_UNLOCKED macros.
2001-07-15 14:39:04 +00:00
Jim Meyering
966d1cd6e6
(base_name): Remove decl; now in dirname.h.
2001-05-12 09:53:45 +00:00
Jim Meyering
9f9610d983
(INT_STRLEN_BOUND): New macro.
2001-03-17 08:50:51 +00:00
Jim Meyering
622dcc58ee
(case_GETOPT_VERSION_CHAR): Use PACKAGE, not GNU_PACKAGE.
2001-01-17 10:28:03 +00:00
Jim Meyering
5aa665a624
(dcgettext): New macro.
2001-01-03 09:44:56 +00:00
Jim Meyering
8c8f0df4f0
[HAVE_INTTYPES_H]: Include <inttypes.h>.
2000-12-23 10:43:33 +00:00
Jim Meyering
83a6c55c74
(UINTMAX_MAX): New macro, taken from C99.
2000-12-19 09:22:24 +00:00
Jim Meyering
4f96dfa43e
(CHAR_BIT): Define.
2000-12-03 10:59:44 +00:00
Jim Meyering
caae4ed5a7
(OFF_T_MIN): Define.
...
(OFF_T_MAX): Define.
2000-12-03 08:54:37 +00:00
Jim Meyering
a48a4d5c63
Include <stdint.h> if HAVE_STDINT_H.
...
(SIZE_MAX): Renamed from SIZE_T_MAX, as C99 uses SIZE_MAX.
All uses changed.
2000-11-30 20:27:49 +00:00
Jim Meyering
835a8fa634
(SIZE_T_MAX): Define.
2000-11-30 11:39:08 +00:00
Jim Meyering
aba2a0fd6d
(GETOPT_HELP_CHAR, GETOPT_VERSION_CHAR): Now enum
...
constants rather than macros. Use values that cannot conflict
with C characters or with -1, CHAR_MAX + 1, etc.
2000-11-19 07:41:20 +00:00
Jim Meyering
2c6fbbea7a
(ST_TIME_CMP_NS): Fix typo: ST_MTIM_NSEC should
...
be tested with #ifdef, not with #if.
2000-11-13 19:33:32 +00:00
Jim Meyering
93fe4a3b72
(S_IRWXUGO): Define here, instead.
2000-09-08 09:01:32 +00:00
Jim Meyering
e0be88dd59
(ISPRINT): Undef before defining to avoid warning.
2000-07-30 19:50:58 +00:00
Jim Meyering
6a3f36dacb
[!HAVE_DECL_GETPWUID]: Declare getpwuid.
...
[!HAVE_DECL_GETGRGID]: Declare getgrgid.
[!HAVE_DECL_GETUID]: Declare getuid.
2000-07-23 15:28:24 +00:00
Jim Meyering
418ae892b1
(ASSIGN_STRDUPA): New macro (moved here from remove.c).
2000-07-23 10:49:59 +00:00
Jim Meyering
babf9bb7ac
(case_GETOPT_VERSION_CHAR): Don't call close_stdout.
2000-05-09 06:32:24 +00:00
Jim Meyering
e6d69926e6
(!HAVE_DECL_STRNDUP): Declare strndup.
2000-05-03 08:37:40 +00:00
Jim Meyering
e1bf326a99
(getlogin, ttyname, geteuid): Declare them here, if needed.
2000-03-02 09:04:06 +00:00
Jim Meyering
e43759db0c
Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
2000-02-27 18:50:31 +00:00
Jim Meyering
c2f3af37bb
Use #if !HAVE_DECL...' instead of #ifndef HAVE_DECL...'
...
now that autoconf always defines the HAVE_DECL_ symbols.
2000-02-27 17:26:39 +00:00
Jim Meyering
aebba9cd1d
[! HAVE_DECL_STRTOUL]: Declare strtoul.
...
[! HAVE_DECL_STRTOULL]: Declare strtoull.
Required for some AIX systems. Reported by Christian Krackowizer.
2000-01-22 22:41:02 +00:00
Jim Meyering
63324e5e7e
Move 120+ lines of stat.h-related macros from system.h (not shared)
...
to sys2.h, which is shared between fileutils, sh-utils, textutils.
* src/system.h: Move them from here...
* src/sys2.h: ... to here.
1999-12-12 21:49:25 +00:00
Jim Meyering
17754acc90
(__attribute__): Wrap with #ifndef __attribute__.
1999-10-04 06:04:19 +00:00
Jim Meyering
0226382b34
(__attribute__): Define to empty if GCC claims to
...
be before 2.8; this is needed for OPENStep 4.2 cc. Also,
define to empty if strict ANSI.
1999-10-04 06:02:41 +00:00
Jim Meyering
98ba27811d
Do s/#ifdef HAVE_/#if HAVE_/ -- solely for aesthetics.
1999-09-28 16:22:38 +00:00
Jim Meyering
96949ef7f5
(__attribute__): Define.
...
(ATTRIBUTE_NORETURN): Remove #else clause.
(ATTRIBUTE_UNUSED): Define.
1999-09-19 16:21:26 +00:00
Jim Meyering
95b8288176
(ATTRIBUTE_NORETURN): Define.
1999-08-22 10:57:51 +00:00
Jim Meyering
1ec1017a23
(IF_LINT): Define new macro.
1999-08-22 09:43:48 +00:00
Jim Meyering
898a08f344
(PID_T_MAX): Define.
1999-07-30 19:29:53 +00:00
Jim Meyering
fae10f70e0
(mempcpy): Define only if not already defined.
...
Reported by Collin Rogowski.
1999-07-12 08:37:31 +00:00
Jim Meyering
27893412b2
white-space tweak
1999-05-23 19:27:36 +00:00
Jim Meyering
ff08632036
white-space tweak
1999-05-23 19:27:07 +00:00
Jim Meyering
4905751e2f
* src/system.h (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM,
...
and all the *_MIN and *_MAX symbols): Remove definitions.
* src/sys2.h: Put the definitions here instead (this file is shared
between all three *utils packages, while system.h is not).
1999-05-08 23:28:42 +00:00
Jim Meyering
85514c7e0b
(TOLOWER): Define.
...
(TOUPPER): Define.
1999-05-03 17:59:43 +00:00
Jim Meyering
b6d265e347
* src/od.c (MIN, MAX): Remove definitions.
...
* src/sys2.h (MIN, MAX): Define here instead.
1999-04-13 01:09:15 +00:00