summaryrefslogtreecommitdiff
path: root/src/system.h
AgeCommit message (Collapse)Author
2003-06-02Always include <string.h>, since we assume C89.Jim Meyering
Include <limits.h> without checking for HAVE_LIMITS_H.
2003-04-04Include "localedir.h".Jim Meyering
2002-12-14[! HAVE_DECL_MEMRCHR]: Declare memrchr.Jim Meyering
This is necessary at least for Irix6.5 when using c89. Reported by Nelson Beebe.
2002-10-18(ST_BLKSIZE): Correct comment describing how toJim Meyering
reproduce HPUX-11 cat failure.
2002-10-17Fix a problem that could make cat misbehave on systems whichJim Meyering
give invalid (unreasonably large) values for stat.st_blksize. (ST_BLKSIZE): Ensure that the result is in [1..4MB].
2002-08-31Symlinks were always reported as using 0 blocks.Jim Meyering
(ST_NBLOCKS): Don't depend on file type. This reverts the change of 2000-01-30. Based on a report and patch from Neil Brown via Michael Stone.
2002-06-20Change `defined(X)' syntax to `defined X' in cpp directives.Jim Meyering
2002-06-15For GNU libc 2.2 and newer, ensure that <sys/types.h>Jim Meyering
has been included before this file.
2002-02-16(_POSIX2_VERSION, POSIX2_VERSION): Remove definitions.Jim Meyering
(OPTARG_POSIX, OBSOLETE_OPTION_WARNINGS): Likewise.
2002-02-02(OPTARG_POSIX, OBSOLETE_OPTION_WARNINGS): New macros.Jim Meyering
2002-01-16(_POSIX2_VERSION, POSIX2_VERSION): New macros.Jim Meyering
2001-11-27(SET_MODE) [O_BINARY]: Call setmode, not set_mode.Jim Meyering
2001-09-16(SET_MODE): Define.Jim Meyering
2001-08-31* src/remove.c: Move true/false definitions and include from here...Jim Meyering
* src/system.h: ...to here.
2001-05-13(NODEV): Remove, undoing previous change.Jim Meyering
2001-05-13(NODEV): New macro, if not already defined.Jim Meyering
2000-04-19[__BEOS__]: Ignore O_BINARY and O_TEXT.Jim Meyering
2000-03-12Merge from textutils.Jim Meyering
(O_BINARY, O_TEXT): Define if necessary. (SET_BINARY, SET_BINARY2): Define. (DEV_BSIZE): Define to BBSIZE if appropriate.
2000-03-04copyrightJim Meyering
2000-01-30(ST_NBLOCKS): Use st_size only for regular files andJim Meyering
for directories. From H. J. Lu.
1999-12-12Move 120+ lines of stat.h-related macros from system.h (not shared)Jim Meyering
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(S_IRUSR, S_IRGRP, S_IWGRP, S_IROTH, S_IWOTH): DefineJim Meyering
if not defined. This was necessary on a NeXT Turbostation running Mach 3.3. Reported by Nelson H. F. Beebe.
1999-11-05Use HAVE_STRUCT_STAT_ST_BLOCKS, not deprecated HAVE_ST_BLOCKS.Jim Meyering
1999-09-28Do s/#ifdef HAVE_/#if HAVE_/ -- solely for aesthetics.Jim Meyering
Do the same for other config.h macros like CLOSEDIR_VOID and MAJOR_*.
1999-05-08* src/system.h (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM,Jim Meyering
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-04-26(S_ISUID, S_ISGID, S_ISVTX, S_IRWXU, S_IRWXG, S_IRWXO):Jim Meyering
Define if not defined. (CHMOD_MODE_BITS): New macro.
1999-04-04(S_IWUSR): Define if not already defined.Jim Meyering
1999-04-03(S_IWUSR): Define if not already defined.Jim Meyering
1999-02-03(S_ISDOOR): Define if missing.Jim Meyering
1999-01-29Use TIME_WITH_SYS_TIME-based #if test rather thanJim Meyering
TM_IN_SYS_TIME based one (for shred).
1998-08-30(ST_TIME_CMP_NS, ATIME_CMP, CTIME_CMP, MTIME_CMP): Use new ST_MTIM_NSEC macro.Jim Meyering
1998-08-30(CHAR_MIN, CHAR_MAX):Jim Meyering
Renamed from SCHAR_MIN, SCHAR_MAX, since these macros apply to char, not signed char.
1998-08-02(ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP, MTIME_CMP): New macros.Jim Meyering
1998-03-31(TYPE_MAXIMUM): Cast result to `(t)' so this macro works with `unsigned char'.Jim Meyering
From Greg Wooledge. (SCHAR_MIN, SCHAR_MAX, SHRT_MIN, SHRT_MAX, LONG_MAX, ULONG_MAX): Define.
1998-01-24(TYPE_MINIMUM): Add extra outer cast to work aroundJim Meyering
bug in Cray C 5.0.3.0 when T == time_t.
1998-01-04copyrightJim Meyering
1997-12-14Remove lseek and memchr dcls.Jim Meyering
1997-11-30filter through cppiJim Meyering
1997-11-30(<limits.h>): Include if HAVE_LIMITS_H.Jim Meyering
(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-24move big chunk of defs to sys2Jim Meyering
1997-11-12[!HAVE_MEMPCPY] (mempcpy): Define.Jim Meyering
1997-10-25Include xalloc.h.Jim Meyering
Remove dcls of xmalloc, xcalloc and xrealloc.
1997-10-23[!HAVE_DECLARATION_FREE]: Declare free.Jim Meyering
[!HAVE_DECLARATION_MALLOC]: Declare malloc. [!HAVE_DECLARATION_REALLOC]: Declare realloc. [!HAVE_DECLARATION_STPCPY]: Declare stpcpy. [!HAVE_DECLARATION_STRSTR]: Declare strstr.
1997-05-25(convert_blocks): Remove definition.Jim Meyering
Indent cpp directives.
1997-02-09update copyrights for 1997Jim Meyering
1997-02-04[__GNUC__]: Don't define alloca to __builtin_alloca.Jim Meyering
1997-02-03[__GNUC__]: Don't define alloca to __builtin_alloca.Jim Meyering
1996-12-18(ISDIGIT): Replace with smaller, faster editionJim Meyering
that yields nonzero only on ASCII digits. (ISDIGIT_LOCALE): New macro, with same meaning that ISDIGIT used to have. From Paul Eggert.
1996-12-03[!S_IXUGO] (S_IXUGO): Define it.Jim Meyering
1996-09-07Add comments re ctype IS* macros.Jim Meyering