* new-features.sgml (ov-new1.7.7): Document change to binmode/textmode
link libs. * textbinary.sgml (textbin-devel): Ditto.
This commit is contained in:
parent
92596190c4
commit
4da8ebe288
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue