[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
_POSIX_PATH_MAX is 256, not 255
From: |
Paul Eggert |
Subject: |
_POSIX_PATH_MAX is 256, not 255 |
Date: |
Mon, 30 May 2005 00:08:05 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.4 (gnu/linux) |
In 2001 or thereabouts POSIX changed _POSIX_PATH_MAX from 255 to 256.
So I installed this into coreutils. This doesn't affect coreutils
on POSIX hosts, since they pick up _POSIX_PATH_MAX from the headers.
2005-05-29 Paul Eggert <address@hidden>
* lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
Define to 256, not 255, as per modern POSIX.
* src/pathchk.c (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
Likewise.
Index: lib/pathmax.h
===================================================================
RCS file: /fetish/cu/lib/pathmax.h,v
retrieving revision 1.10
diff -p -u -r1.10 pathmax.h
--- lib/pathmax.h 14 May 2005 07:58:06 -0000 1.10
+++ lib/pathmax.h 30 May 2005 05:43:28 -0000
@@ -1,5 +1,5 @@
/* Define PATH_MAX somehow. Requires sys/types.h.
- Copyright (C) 1992, 1999, 2001, 2003 Free Software Foundation, Inc.
+ Copyright (C) 1992, 1999, 2001, 2003, 2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -30,7 +30,7 @@
# endif
# ifndef _POSIX_PATH_MAX
-# define _POSIX_PATH_MAX 255
+# define _POSIX_PATH_MAX 256
# endif
# if !defined PATH_MAX && defined _PC_PATH_MAX
Index: src/pathchk.c
===================================================================
RCS file: /fetish/cu/src/pathchk.c,v
retrieving revision 1.87
diff -p -u -r1.87 pathchk.c
--- src/pathchk.c 14 May 2005 07:58:37 -0000 1.87
+++ src/pathchk.c 30 May 2005 05:43:28 -0000
@@ -40,7 +40,7 @@
#define AUTHORS "Paul Eggert", "David MacKenzie", "Jim Meyering"
#ifndef _POSIX_PATH_MAX
-# define _POSIX_PATH_MAX 255
+# define _POSIX_PATH_MAX 256
#endif
#ifndef _POSIX_NAME_MAX
# define _POSIX_NAME_MAX 14
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- _POSIX_PATH_MAX is 256, not 255,
Paul Eggert <=