* include/sys/param.h (NGROUPS): Redefine as NGROUPS_MAX.

(MAXHOSTNAMELEN): Redefine with same value as MAX_HOSTNAME_LEN.  Change
	comment.
	(MAXPATHLEN): Improve comment.
	(MAXSYMLINKS): Define and add comment.
This commit is contained in:
Corinna Vinschen 2011-07-01 12:45:25 +00:00
parent 9780b0da3c
commit 00994759b6
2 changed files with 17 additions and 5 deletions

View File

@ -1,3 +1,11 @@
2011-07-01 Corinna Vinschen <corinna@vinschen.de>
* include/sys/param.h (NGROUPS): Redefine as NGROUPS_MAX.
(MAXHOSTNAMELEN): Redefine with same value as MAX_HOSTNAME_LEN. Change
comment.
(MAXPATHLEN): Improve comment.
(MAXSYMLINKS): Define and add comment.
2011-07-01 Corinna Vinschen <corinna@vinschen.de>
* fhandler.cc (fhandler_base::open): Move NFS-specific code into the

View File

@ -19,19 +19,23 @@
#define NOFILE 8192
/* Max number of groups; must keep in sync with NGROUPS_MAX in limits.h */
#define NGROUPS 1024
#define NGROUPS NGROUPS_MAX
/* Ticks/second for system calls such as times() */
/* FIXME: is this the appropriate value? */
#define HZ 1000
/* Max hostname size that can be dealt with */
/* FIXME: is this the appropriate value? */
#define MAXHOSTNAMELEN 64
/* Max hostname size that can be dealt with (== Win32 MAX_HOSTNAME_LEN) */
#define MAXHOSTNAMELEN 128
/* The Posix version is PATH_MAX. MAXPATHLEN is the BSD variant. */
/* Maximum path length including trailing NUL; the Posix version is PATH_MAX.
MAXPATHLEN is the BSD variant. */
#define MAXPATHLEN PATH_MAX
/* Maximum number of nested symlinks; the Posix version is SYMLOOP_MAX.
MAXSYMLINKS is the BSD variant. */
#define MAXSYMLINKS SYMLOOP_MAX
/* This is the number of bytes per block given in the st_blocks stat member.
It should be in sync with S_BLKSIZE in sys/stat.h. S_BLKSIZE is the
BSD variant of this constant. */