Dash:
[t2-trunk.git] / package / base / musl / glob-onlydir.patch
blob7aa5856789e1d6daf5c2b7989503f7b98b10e17d
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../musl/glob-onlydir.patch
5 # Copyright (C) 2016 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 As this appears to be a pure optimization hint we should be save by ignoring it for now:
19 "If the information about the type of the file is easily available non-directories will be rejected but no extra work will be done to determine the information for each file. I.e., the caller must still be able to filter directories out."
21 - René Rebe <rene@exactcode.de>
23 --- musl-1.1.15/include/glob.h.vanilla 2016-12-18 22:56:25.587321296 +0000
24 +++ musl-1.1.15/include/glob.h 2016-12-18 22:57:37.859322537 +0000
25 @@ -31,6 +31,8 @@
26 #define GLOB_NOESCAPE 0x40
27 #define GLOB_PERIOD 0x80
29 +#define GLOB_ONLYDIR 0x00
31 #define GLOB_NOSPACE 1
32 #define GLOB_ABORTED 2
33 #define GLOB_NOMATCH 3