delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/08/14/10:52:20

Message-ID: <3997BA55.413E8CCD@softhome.net>
Date: Mon, 14 Aug 2000 11:22:29 +0200
From: Laurynas Biveinis <lauras AT softhome DOT net>
X-Mailer: Mozilla 4.74 [en] (Win98; U)
X-Accept-Language: lt,en
MIME-Version: 1.0
To: DJGPP Workers <djgpp-workers AT delorie DOT com>
Subject: <limits.h> change for symlinks
Reply-To: djgpp-workers AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019