OSDN Git Service

* new-features.sgml (ov-new1.7.7): Document change to binmode/textmode
authorcorinna <corinna>
Mon, 30 Aug 2010 13:19:39 +0000 (13:19 +0000)
committercorinna <corinna>
Mon, 30 Aug 2010 13:19:39 +0000 (13:19 +0000)
link libs.
* textbinary.sgml (textbin-devel): Ditto.

winsup/doc/ChangeLog
winsup/doc/new-features.sgml
winsup/doc/textbinary.sgml

index 3e231b5..fe47e95 100644 (file)
@@ -1,3 +1,9 @@
+2010-08-30  Corinna Vinschen  <corinna@vinschen.de>
+
+       * new-features.sgml (ov-new1.7.7): Document change to binmode/textmode
+       link libs.
+       * textbinary.sgml (textbin-devel): Ditto.
+
 2010-08-28  Corinna Vinschen  <corinna@vinschen.de>
 
        * new-features.sgml (ov-new1.7.7): Document change to avoid DLL
index e459d5f..fdaa01a 100644 (file)
@@ -17,6 +17,12 @@ Make sure to follow the Microsoft security advisory concerning DLL hijacking.
 See the <ulink url="http://www.microsoft.com/technet/security/advisory/2269637.mspx">Microsoft Security Advisory (2269637) "Insecure Library Loading Could Allow Remote Code Execution"</ulink> for details.
 </para></listitem>
 
+<listitem><para>
+Allow to link against -lbinmode instead of /lib/binmode.o.  Same for
+-ltextmode, -ltextreadmode and -lautomode. 
+See <xref linkend="textbin-devel"></xref> for details.
+</para></listitem>
+
 </itemizedlist>
 
 </sect2>
index 7f4aae5..6e6e830 100644 (file)
@@ -142,38 +142,46 @@ in your project, like this:</para>
   $ gcc my_tiny_app.c /lib/binmode.o -o my_tiny_app
 </screen>
 
+<para>Starting with Cygwin 1.7.7, you can use the even simpler:</para>
+
+<screen>
+  $ gcc my_tiny_app.c -lbinmode -o my_tiny_app
+</screen>
+
 <para>This adds code which sets the default open mode for all files
 opened by <command>my_tiny_app</command> to binary for reading and
 writing.</para>
 
-<para>Cygwin provides the following object files to set the default open mode
-just by linking an application against them:</para>
+<para>Cygwin provides the following libraries and object files to set the
+default open mode just by linking an application against them:</para>
 
 <itemizedlist mark="bullet">
 
 <listitem>
 <screen>
-/lib/automode.o      -  Open files for reading in textmode
-                        Open files for writing in binary mode
+/lib/libautomode.a      -  Open files for reading in textmode,
+/lib/automode.o            open files for writing in binary mode
 </screen>
 </listitem>
 
 <listitem>
 <screen>
-/lib/binmode.o       -  Open files for reading and writing in binary mode
+/lib/libbinmode.a       -  Open files for reading and writing in binary mode
+/lib/binmode.o
 </screen>
 </listitem>
 
 <listitem>
 <screen>
-/lib/textmode.o      -  Open files for reading and writing in textmode
+/lib/libtextmode.a      -  Open files for reading and writing in textmode
+/lib/textmode.o
 </screen>
 </listitem>
 
 <listitem>
 <screen>
-/lib/textreadmode.o  -  Open files for reading in textmode
-                        Keep default behaviour for writing.
+/lib/libtextreadmode.a  -  Open files for reading in textmode,
+/lib/textreadmode.o        keep default behaviour for writing.
 </screen>
 </listitem>