Mail Archives: djgpp-workers/2000/08/14/10:52:20
This one updates LINK_MAX and _POSIX_LINK_MAX macros to support
symlinks. I've sticked with default8 as a maximum link level count.
Any comments?
Laurynas
Index: limits.h
===================================================================
RCS file: /cvs/djgpp/djgpp/include/limits.h,v
retrieving revision 1.3
diff -u -r1.3 limits.h
--- limits.h 1998/09/09 18:14:52 1.3
+++ limits.h 2000/08/14 09:20:19
@@ -1,3 +1,4 @@
+/* Copyright (C) 2000 DJ Delorie, see COPYING.DJ for details */
/* Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details */
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#ifndef __dj_include_limits_h_
@@ -34,7 +35,9 @@
#define _POSIX_ARG_MAX 16384 /* but only for exec's to other djgpp programs */
#define _POSIX_CHILD_MAX 7 /* limited by memory; 7 for 386MAX */
-#define _POSIX_LINK_MAX 1 /* POSIX says 8, but DOS says 1 */
+#define _POSIX_LINK_MAX 8 /* POSIX says 8, but DOS says 1 */
+ /* We emulate symlinks and don't care */
+ /* what DOS says */
#define _POSIX_MAX_CANON 126 /* POSIX says 255, but DOS says 126 */
#define _POSIX_MAX_INPUT 126 /* POSIX says 255, but DOS says 126 */
#define _POSIX_NAME_MAX 12 /* 8.3 */
@@ -54,7 +57,7 @@
/* #define STREAM_MAX 20 - DOS can change this */
#define TZNAME_MAX 3
-#define LINK_MAX 1
+#define LINK_MAX 8
#define MAX_CANON 126
#define MAX_INPUT 126
#define NAME_MAX 12 /* 8.3 */
- Raw text -