[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Global-commit] global THANKS libutil/xargs.c
From: |
Shigio YAMAGUCHI |
Subject: |
[Global-commit] global THANKS libutil/xargs.c |
Date: |
Mon, 05 Jun 2006 22:40:59 +0000 |
CVSROOT: /sources/global
Module name: global
Changes by: Shigio YAMAGUCHI <shigio> 06/06/05 22:40:59
Modified files:
. : THANKS
libutil : xargs.c
Log message:
Added the code for Windows 32 environment.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/global/THANKS?cvsroot=global&r1=1.62&r2=1.63
http://cvs.savannah.gnu.org/viewcvs/global/libutil/xargs.c?cvsroot=global&r1=1.10&r2=1.11
Patches:
Index: THANKS
===================================================================
RCS file: /sources/global/global/THANKS,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -b -r1.62 -r1.63
--- THANKS 21 Apr 2006 02:36:11 -0000 1.62
+++ THANKS 5 Jun 2006 22:40:59 -0000 1.63
@@ -87,6 +87,7 @@
Ruppert Koch bug report about htags(1).
Sadaichi Hayashida idea about generating relative path.
Satoru SATOH profitable materrial for the support of XHTML.
+Sanpei Yoshiro Mihira bug report of xargs.c in Windows 32.
Sergio Talens-Oliag writing online manual for systags(1).
Shankar Chakkere useful method to use vim editor with GLOBAL.
Shigeyuki Yamano idea about -h option of htags(1).
Index: libutil/xargs.c
===================================================================
RCS file: /sources/global/global/libutil/xargs.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- libutil/xargs.c 1 Feb 2006 15:58:20 -0000 1.10
+++ libutil/xargs.c 5 Jun 2006 22:40:59 -0000 1.11
@@ -95,9 +95,17 @@
limit -= length + 80;
limit -= env_size();
+#endif
+#if !defined(ARG_MAX) && defined(_WIN32)
+ /*
+ * The limit lenght of the command line of cmd.exe is 2047
+ * characters on Windows 2000 or 8191 characters on Windows XP
+ * and later. The 80 below is for safety.
+ */
+ limit = 2047 - length - 80;
+#endif
if (limit < 0)
limit = 0;
-#endif
return limit;
}
/*
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Global-commit] global THANKS libutil/xargs.c,
Shigio YAMAGUCHI <=