* 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>
|
2010-08-28 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* new-features.sgml (ov-new1.7.7): Document change to avoid DLL
|
* 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.
|
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>
|
</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>
|
</itemizedlist>
|
||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
|
@ -142,38 +142,46 @@ in your project, like this:</para>
|
||||||
$ gcc my_tiny_app.c /lib/binmode.o -o my_tiny_app
|
$ gcc my_tiny_app.c /lib/binmode.o -o my_tiny_app
|
||||||
</screen>
|
</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
|
<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
|
opened by <command>my_tiny_app</command> to binary for reading and
|
||||||
writing.</para>
|
writing.</para>
|
||||||
|
|
||||||
<para>Cygwin provides the following object files to set the default open mode
|
<para>Cygwin provides the following libraries and object files to set the
|
||||||
just by linking an application against them:</para>
|
default open mode just by linking an application against them:</para>
|
||||||
|
|
||||||
<itemizedlist mark="bullet">
|
<itemizedlist mark="bullet">
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<screen>
|
<screen>
|
||||||
/lib/automode.o - Open files for reading in textmode
|
/lib/libautomode.a - Open files for reading in textmode,
|
||||||
Open files for writing in binary mode
|
/lib/automode.o open files for writing in binary mode
|
||||||
</screen>
|
</screen>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<screen>
|
<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>
|
</screen>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<screen>
|
<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>
|
</screen>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<screen>
|
<screen>
|
||||||
/lib/textreadmode.o - Open files for reading in textmode
|
/lib/libtextreadmode.a - Open files for reading in textmode,
|
||||||
Keep default behaviour for writing.
|
/lib/textreadmode.o keep default behaviour for writing.
|
||||||
</screen>
|
</screen>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue