summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/include
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2005-06-18 19:04:25 +0000
committerCorinna Vinschen <corinna@vinschen.de>2005-06-18 19:04:25 +0000
commitfa2d9fc5282c677e6dbbe5e2bb85541b194ed6c4 (patch)
treee14a9548f714d11b9a2b247f4bec12ba23037849 /winsup/cygwin/include
parentdae4a4c93c88deee4d38fb88b6c66e5c87a8e828 (diff)
downloadcygnal-fa2d9fc5282c677e6dbbe5e2bb85541b194ed6c4.tar.gz
cygnal-fa2d9fc5282c677e6dbbe5e2bb85541b194ed6c4.tar.bz2
cygnal-fa2d9fc5282c677e6dbbe5e2bb85541b194ed6c4.zip
* glob.c: (glob0): New local variable `limit`. Use in calls to glob1
and globextend. (glob1): Add `limit' parameter. (glob2): Ditto. (glob3): Ditto. (globextend): Ditto. Implement GLOB_LIMIT handling. * include/glob.h (GLOB_LIMIT): New define. * include/cygwin/version.h: Bump API minor number.
Diffstat (limited to 'winsup/cygwin/include')
-rw-r--r--winsup/cygwin/include/cygwin/version.h3
-rw-r--r--winsup/cygwin/include/glob.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/include/cygwin/version.h b/winsup/cygwin/include/cygwin/version.h
index 88d95da0c..dcf9a6134 100644
--- a/winsup/cygwin/include/cygwin/version.h
+++ b/winsup/cygwin/include/cygwin/version.h
@@ -258,12 +258,13 @@ details. */
129: Export mkdtemp.
130: Export strtoimax, strtoumax, llabs, imaxabs, lldiv, imaxdiv.
131: Export inet_ntop, inet_pton.
+ 132: Add GLOB_LIMIT flag to glob.
*/
/* Note that we forgot to bump the api for ualarm, strtoll, strtoull */
#define CYGWIN_VERSION_API_MAJOR 0
-#define CYGWIN_VERSION_API_MINOR 131
+#define CYGWIN_VERSION_API_MINOR 132
/* There is also a compatibity version number associated with the
shared memory regions. It is incremented when incompatible
diff --git a/winsup/cygwin/include/glob.h b/winsup/cygwin/include/glob.h
index 6a393f004..bfcf306f4 100644
--- a/winsup/cygwin/include/glob.h
+++ b/winsup/cygwin/include/glob.h
@@ -90,6 +90,7 @@ typedef struct {
#define GLOB_NOMAGIC 0x0200 /* GLOB_NOCHECK without magic chars (csh). */
#define GLOB_QUOTE 0x0400 /* Quote special chars with \. */
#define GLOB_TILDE 0x0800 /* Expand tilde names from the passwd file. */
+#define GLOB_LIMIT 0x1000 /* Limit memory used by matches to ARG_MAX */
#endif
#define GLOB_NOSPACE (-1) /* Malloc call failed. */