[Lsb-messages] /var/www/bzr/lsb/devel/lsbspec r3806: fnmatch update (bug 2283)

Mats Wichmann mats at linuxfoundation.org
Fri May 18 14:40:16 UTC 2012


------------------------------------------------------------
revno: 3806
committer: Mats Wichmann <mats at linuxfoundation.org>
branch nick: lsbspec
timestamp: Fri 2012-05-18 08:40:16 -0600
message:
  fnmatch update (bug 2283)
modified:
  LSB/generic/baselib/baselib.sgml
  LSB/generic/baselib/libc.sgml
-------------- next part --------------
=== modified file 'LSB/generic/baselib/baselib.sgml'
--- a/LSB/generic/baselib/baselib.sgml	2012-05-18 14:28:18 +0000
+++ b/LSB/generic/baselib/baselib.sgml	2012-05-18 14:40:16 +0000
@@ -2290,7 +2290,7 @@
 <ROW>
 <ENTRY><indexterm><primary>fmemopen</primary></indexterm>fmemopen <LINK LINKEND="REFSTD.libc.6">[SUSv4]</LINK></ENTRY>
 <ENTRY><indexterm><primary>fmtmsg</primary></indexterm>fmtmsg <LINK LINKEND="REFSTD.libc.5">[SUSv3]</LINK></ENTRY>
-<ENTRY><indexterm><primary>fnmatch</primary></indexterm>fnmatch <LINK LINKEND="REFSTD.libc.5">[SUSv3]</LINK></ENTRY>
+<ENTRY><indexterm><primary>fnmatch</primary></indexterm>fnmatch <LINK LINKEND="REFSTD.libc.2">[LSB]</LINK></ENTRY>
 <ENTRY><indexterm><primary>fpathconf</primary></indexterm>fpathconf <LINK LINKEND="REFSTD.libc.5">[SUSv3]</LINK></ENTRY>
 </ROW>
 <ROW>
@@ -3978,6 +3978,9 @@
 </PARA>
 <SCREEN>
 
+#define FNM_CASEFOLD	(1&lt;&lt;4)
+#define FNM_FILE_NAME	FNM_PATHNAME
+
 #define FNM_PATHNAME	(1&lt;&lt;0)
 #define FNM_NOESCAPE	(1&lt;&lt;1)
 #define FNM_PERIOD	(1&lt;&lt;2)
@@ -19498,6 +19501,61 @@
 </REFENTRY>
 
 
+<REFENTRY ID="baselib-fnmatch-3"> <REFMETA>
+<REFENTRYTITLE>fnmatch</REFENTRYTITLE>
+<REFMISCINFO>Base Libraries</REFMISCINFO>
+</REFMETA>
+<REFNAMEDIV>
+<REFNAME>fnmatch
+</REFNAME>
+<REFPURPOSE>
+match a filename or a pathname
+</REFPURPOSE>
+</REFNAMEDIV>
+<REFSECT1>
+<TITLE>Description
+</TITLE>
+<PARA>
+<FUNCTION>fnmatch</FUNCTION> is as specified in 
+<XREF LINKEND=STD.SUSv4>,
+but with differences as listed below.
+</PARA>
+
+<REFSECT2>
+<TITLE>Additional flags</TITLE>
+<PARA>
+In addition to the available values that can be used to form <PARAMETER>flags</PARAMETER>, as documented in <XREF LINKEND=STD.SUSv4>, this specification permits the following constants.
+</PARA>
+
+<variablelist remap='TP'>
+  <varlistentry>
+  <term><CONSTANT>FNM_CASEFOLD</CONSTANT></term>
+  <listitem>
+<para>If this flag is set, the pattern is matched case-insensitively.</para>
+  </listitem>
+  </varlistentry>
+  <varlistentry>
+  <term><CONSTANT>FNM_FILE_NAME</CONSTANT></term>
+  <listitem>
+<para>A synonym for <CONSTANT>FNM_PATHNAME</CONSTANT> constant specified in <XREF LINKEND=STD.SUSv4>.</para>
+  </listitem>
+  </varlistentry>
+<!--
+  <varlistentry>
+  <term><CONSTANT>FNM_LEADING_DIR</CONSTANT></term>
+  <listitem>
+   <para>If this flag is set, the pattern is considered to be matched if it matches an initial segment of string which is followed by a &lt;slash&gt;.</para>
+  </listitem>
+ </varlistentry>
+-->
+</variablelist>
+
+</REFSECT2>
+
+</REFSECT1>
+</REFENTRY>
+
+
 <refentry id="baselib-fputc-unlocked-1">
 
 <refmeta>

=== modified file 'LSB/generic/baselib/libc.sgml'
--- a/LSB/generic/baselib/libc.sgml	2012-05-18 14:28:18 +0000
+++ b/LSB/generic/baselib/libc.sgml	2012-05-18 14:40:16 +0000
@@ -2221,7 +2221,7 @@
 <ROW>
 <ENTRY><indexterm><primary>fmemopen</primary></indexterm>fmemopen <LINK LINKEND="REFSTD.libc.6">[SUSv4]</LINK></ENTRY>
 <ENTRY><indexterm><primary>fmtmsg</primary></indexterm>fmtmsg <LINK LINKEND="REFSTD.libc.5">[SUSv3]</LINK></ENTRY>
-<ENTRY><indexterm><primary>fnmatch</primary></indexterm>fnmatch <LINK LINKEND="REFSTD.libc.5">[SUSv3]</LINK></ENTRY>
+<ENTRY><indexterm><primary>fnmatch</primary></indexterm>fnmatch <LINK LINKEND="REFSTD.libc.2">[LSB]</LINK></ENTRY>
 <ENTRY><indexterm><primary>fpathconf</primary></indexterm>fpathconf <LINK LINKEND="REFSTD.libc.5">[SUSv3]</LINK></ENTRY>
 </ROW>
 <ROW>
@@ -3909,6 +3909,9 @@
 </PARA>
 <SCREEN>
 
+#define FNM_CASEFOLD	(1&lt;&lt;4)
+#define FNM_FILE_NAME	FNM_PATHNAME
+
 #define FNM_PATHNAME	(1&lt;&lt;0)
 #define FNM_NOESCAPE	(1&lt;&lt;1)
 #define FNM_PERIOD	(1&lt;&lt;2)
@@ -9503,6 +9506,8 @@
 m4_define('fileno_unlocked','1')
 m4_sinclude(m4_ifdef('flock','',flock.sgml))
 m4_define('flock','1')
+m4_sinclude(m4_ifdef('fnmatch','',fnmatch.sgml))
+m4_define('fnmatch','1')
 m4_sinclude(m4_ifdef('fputc_unlocked','',fputc_unlocked.sgml))
 m4_define('fputc_unlocked','1')
 m4_sinclude(m4_ifdef('fputs_unlocked','',fputs_unlocked.sgml))



More information about the lsb-messages mailing list