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
488028199d
(S_IRUSR, S_IRGRP, S_IWGRP, S_IROTH, S_IWOTH): Define
...
if not defined. This was necessary on a NeXT Turbostation running
Mach 3.3. Reported by Nelson H. F. Beebe.
1999-12-12 21:45:34 +00:00
Jim Meyering
6b32b53027
Use HAVE_STRUCT_STAT_ST_BLOCKS, not deprecated HAVE_ST_BLOCKS.
1999-11-05 09:55:24 +00:00
Jim Meyering
ea0df9b67d
Do s/#ifdef HAVE_/#if HAVE_/ -- solely for aesthetics.
...
Do the same for other config.h macros like CLOSEDIR_VOID and MAJOR_*.
1999-09-28 16:22:54 +00:00
Jim Meyering
02d760e232
* 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:29:47 +00:00
Jim Meyering
9e37b40aa1
(S_ISUID, S_ISGID, S_ISVTX, S_IRWXU, S_IRWXG, S_IRWXO):
...
Define if not defined.
(CHMOD_MODE_BITS): New macro.
1999-04-26 12:48:12 +00:00
Jim Meyering
54ec5153c5
(S_IWUSR): Define if not already defined.
1999-04-04 14:32:58 +00:00
Jim Meyering
98327bba60
(S_IWUSR): Define if not already defined.
1999-04-03 03:29:17 +00:00
Jim Meyering
cd9a08e476
(S_ISDOOR): Define if missing.
1999-02-03 13:56:43 +00:00
Jim Meyering
a2f2ba51bc
Use TIME_WITH_SYS_TIME-based #if test rather than
...
TM_IN_SYS_TIME based one (for shred).
1999-01-29 04:58:32 +00:00
Jim Meyering
9a27c21fbf
(ST_TIME_CMP_NS, ATIME_CMP, CTIME_CMP, MTIME_CMP): Use new ST_MTIM_NSEC macro.
1998-08-30 03:21:02 +00:00
Jim Meyering
6f7507be50
(CHAR_MIN, CHAR_MAX):
...
Renamed from SCHAR_MIN, SCHAR_MAX, since these
macros apply to char, not signed char.
1998-08-30 02:29:35 +00:00
Jim Meyering
0f7ac75854
(ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP, MTIME_CMP): New macros.
1998-08-02 16:24:13 +00:00
Jim Meyering
a57d5061ff
(TYPE_MAXIMUM): Cast result to (t)' so this macro works with unsigned char'.
...
From Greg Wooledge.
(SCHAR_MIN, SCHAR_MAX, SHRT_MIN, SHRT_MAX, LONG_MAX, ULONG_MAX): Define.
1998-03-31 23:11:37 +00:00
Jim Meyering
cd4c2d0fdc
(TYPE_MINIMUM): Add extra outer cast to work around
...
bug in Cray C 5.0.3.0 when T == time_t.
1998-01-24 08:45:55 +00:00
Jim Meyering
2d69426882
copyright
1998-01-04 22:46:23 +00:00
Jim Meyering
f126c8d3a1
Remove lseek and memchr dcls.
1997-12-14 16:28:18 +00:00
Jim Meyering
5112b2973f
filter through cppi
1997-11-30 11:01:54 +00:00
Jim Meyering
10aa5f6fd7
(<limits.h>): Include if HAVE_LIMITS_H.
...
(CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX, UINT_MAX):
New macros.
(ST_NBLOCKS): Now counts actual blocks, not 512-byte blocks.
(ST_NBLOCKSIZE): New macro.
1997-11-30 10:25:21 +00:00
Jim Meyering
c781b840f2
move big chunk of defs to sys2
1997-11-24 14:19:32 +00:00
Jim Meyering
c0cc0c26ed
[!HAVE_MEMPCPY] (mempcpy): Define.
1997-11-12 17:19:21 +00:00
Jim Meyering
e2609be248
Include xalloc.h.
...
Remove dcls of xmalloc, xcalloc and xrealloc.
1997-10-25 22:01:13 +00:00
Jim Meyering
339afbb210
[!HAVE_DECLARATION_FREE]: Declare free.
...
[!HAVE_DECLARATION_MALLOC]: Declare malloc.
[!HAVE_DECLARATION_REALLOC]: Declare realloc.
[!HAVE_DECLARATION_STPCPY]: Declare stpcpy.
[!HAVE_DECLARATION_STRSTR]: Declare strstr.
1997-10-23 16:07:31 +00:00
Jim Meyering
11080b7544
(convert_blocks): Remove definition.
...
Indent cpp directives.
1997-05-25 14:22:55 +00:00
Jim Meyering
b7ffe8cdaf
update copyrights for 1997
1997-02-09 04:52:50 +00:00
Jim Meyering
c1e4806502
[__GNUC__]: Don't define alloca to __builtin_alloca.
1997-02-04 03:52:16 +00:00
Jim Meyering
a2ffd5db02
[__GNUC__]: Don't define alloca to __builtin_alloca.
1997-02-03 04:20:22 +00:00
Jim Meyering
357c53621f
(ISDIGIT): Replace with smaller, faster edition
...
that yields nonzero only on ASCII digits.
(ISDIGIT_LOCALE): New macro, with same meaning that ISDIGIT
used to have. From Paul Eggert.
1996-12-18 03:22:56 +00:00
Jim Meyering
4accfeb4e0
[!S_IXUGO] (S_IXUGO): Define it.
1996-12-03 02:32:44 +00:00
Jim Meyering
139408f867
Add comments re ctype IS* macros.
1996-09-07 17:50:05 +00:00
Jim Meyering
d5aa78b540
(ST_NBLOCKS) [_CRAY]: Special case for Cray.
...
From by Johan Danielsson.
1996-08-02 03:25:39 +00:00
Jim Meyering
6932ade12e
(bindtextdomain) [!ENABLE_NLS]: Undefine to avoid
...
redefinition warnings on solaris.
(textdomain) [!ENABLE_NLS]: Likewise.
1996-07-27 22:29:01 +00:00
Jim Meyering
7b2cea5ab2
[!EXIT_SUCCESS]: Define it.
...
[!EXIT_FAILURE]: Define it.
1996-07-03 04:00:36 +00:00
Jim Meyering
b4e8fc709e
(STREQ): New macro.
1996-06-19 02:00:24 +00:00
Jim Meyering
812fdadfca
[IN_CTYPE_DOMAIN]: Rename from ISASCII.
1996-05-05 01:55:16 +00:00
Jim Meyering
dc98736719
update Copyright years for 1996
1996-04-24 04:42:21 +00:00
Jim Meyering
5de0b392f2
Update FSF's address.
1996-03-24 18:47:09 +00:00
Jim Meyering
fe456215a6
[_]: Don't define this away.
1996-03-12 04:02:07 +00:00
Jim Meyering
8e8fd5439a
Add definitions and includes for NLS.
1996-03-12 03:06:47 +00:00
Jim Meyering
cfc48b6ee9
[_]: Define it.
1995-11-29 19:47:42 +00:00
Jim Meyering
dd084ce340
[__P]: Define it.
1995-11-10 12:56:15 +00:00
Jim Meyering
965c0bf39d
[!HAVE_UTIME_H]: Don't declare struct utimbuf here.
...
[!HAVE_STRUCT_UTIMBUF]: Declare struct utimbuf here instead.
1995-10-06 02:53:42 +00:00
Jim Meyering
a528bd5d9f
[!STDC_HEADERS && HAVE_MEMORY_H]: Include memory.h.
...
Without this, SunOS doesn't get type for memchr.
Reported by Kaveh Ghazi.
1995-05-27 11:41:00 +00:00
Jim Meyering
b743f8afc3
Remove index/rindex and bcmp/bcopy/bzero references.
...
Separate errno declaration from STDC_HEADERS.
1995-02-11 13:53:39 +00:00
Jim Meyering
7f58bbba88
* [!HAVE_STRING_H]: Define strchr to index and strrchr to
...
rindex instead of the other way around.
* Include <ctype.h> and define IS* macros.
1994-12-10 05:25:15 +00:00
Jim Meyering
5868a8d57c
.
1994-10-20 14:57:33 +00:00
Jim Meyering
e8670c071b
merge with 3.9j
1994-10-08 16:56:34 +00:00
Jim Meyering
f827615b89
merge with 3.9i
1994-10-08 04:54:06 +00:00
Jim Meyering
f17c045d21
.
1994-10-02 02:09:38 +00:00
Jim Meyering
94172d0764
.
1994-08-27 21:04:53 +00:00