cvs: phpdoc-fr /reference/dio configure.xml functions.xml reference.xml /reference/dio/functions dio-tcsetattr.xml
| From: | Damien Seguy | Date: | Wed, 18 Jun 2003 02:40:19 +0000 |
| Subject: | cvs: phpdoc-fr /reference/dio configure.xml functions.xml reference.xml /reference/dio/functions dio-tcsetattr.xml | ||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-543@lists.php.net to get a copy of this message | ||
dams Tue Jun 17 22:40:19 2003 EDT
Added files:
/phpdoc-fr/reference/dio configure.xml
/phpdoc-fr/reference/dio/functions dio-tcsetattr.xml
Modified files:
/phpdoc-fr/reference/dio functions.xml reference.xml
Log:
French translation
Index: phpdoc-fr/reference/dio/functions.xml
diff -u /dev/null phpdoc-fr/reference/dio/functions.xml:1.3
--- /dev/null Tue Jun 17 22:40:19 2003
+++ phpdoc-fr/reference/dio/functions.xml Tue Jun 17 22:40:19 2003
@@ -0,0 +1,9 @@
+&reference.dio.functions.dio-close;
+&reference.dio.functions.dio-fcntl;
+&reference.dio.functions.dio-open;
+&reference.dio.functions.dio-read;
+&reference.dio.functions.dio-seek;
+&reference.dio.functions.dio-stat;
+&reference.dio.functions.dio-tcsetattr;
+&reference.dio.functions.dio-truncate;
+&reference.dio.functions.dio-write;
Index: phpdoc-fr/reference/dio/reference.xml
diff -u phpdoc-fr/reference/dio/reference.xml:1.2 phpdoc-fr/reference/dio/reference.xml:1.3
--- phpdoc-fr/reference/dio/reference.xml:1.2 Mon Apr 15 20:53:16 2002
+++ phpdoc-fr/reference/dio/reference.xml Tue Jun 17 22:40:19 2003
@@ -1,26 +1,46 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<reference id="ref.dio">
<title>Direct IO</title>
<titleabbrev>DIO</titleabbrev>
<partintro>
<section id="dio.intro">
- <title>Fonctions d'entrée/sortie directes</title>
+ &reftitle.intro;
<para>
PHP supporte les entrées/sorties directes, comme décrites dans le
Standard Posixd (Section 6). Cela permet de réaliser des accès
en lecture écriture à un niveau inférieur aux fonctions
proposées
par le langage C (fopen, fread...).
</para>
+ ¬e.no-windows.extension;
</section>
- <section id="dio.installation">
- <title>Installation</title>
+
+ <section id="dio.requirements">
+ &reftitle.required;
+ &no.requirement;
+ </section>
+
+ &reference.dio.configure;
+
+ <section id="dio.configuration">
+ &reftitle.runtime;
+ &no.config;
+ </section>
+
+ <section id="dio.resources">
+ &reftitle.resources;
<para>
- Pour faire fonctionner ces fonctions, vous devez configurer
- PHP avec l'option <option role="configure">--enable-dio</option>.
+ Cette extension définit un type de ressource :
+ un descripteur de fichier, retourné par <function>dio_open</function>.
</para>
</section>
+
+ <section id="dio.constants">
+ &reftitle.constants;
+ &no.constants;
+ </section>
+
</partintro>
&reference.dio.functions;
Index: phpdoc-fr/reference/dio/configure.xml
+++ phpdoc-fr/reference/dio/configure.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<section id="dio.installation">
&reftitle.install;
<para>
Pour faire fonctionner ces fonctions, vous devez configurer
PHP avec l'option <option role="configure">--enable-dio</option>.
</para>
</section>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
Index: phpdoc-fr/reference/dio/functions/dio-tcsetattr.xml
+++ phpdoc-fr/reference/dio/functions/dio-tcsetattr.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<!-- splitted from ./en/functions/dio.xml, last change in rev 1.1 -->
<refentry id="function.dio-tcsetattr">
<refnamediv>
<refname>dio_tcsetattr</refname>
<refpurpose>
Modifie les attributs du terminal et le taux de baud du port série
</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type></type><methodname>dio_tcsetattr</methodname>
<methodparam><type>resource</type><parameter>fd</parameter></methodparam>
<methodparam><type>array</type><parameter>options</parameter></methodparam>
</methodsynopsis>
<para>
<function>dio_tcsetattr</function> modifie les attributs du terminal
et le taux de baud du port série, en les remplaçant par
<parameter>options</parameter>.
<parameter>fd</parameter> est une ressource déjà ouverte. Les
options
actuelles sont :
<itemizedlist>
<listitem>
<para>
'baud' - taux de baud du port : peut être 38400,19200,9600,4800,
2400,1800,1200,600,300,200,150,134,110,75 ou 50. Par défaut, c'est 9600.
</para>
</listitem>
<listitem>
<para>
'bits' - bits de données - peut être 8,7,6 ou 5. Par
défaut, c'est 8.
</para>
</listitem>
<listitem>
<para>
'stop' - bits de stop - peut être 1 ou 2. Par défaut,
c'est 1.
</para>
</listitem>
<listitem>
<para>
'parity' - peut être 0, 1 ou 2. Par défaut, c'est 0.
</para>
</listitem>
</itemizedlist>
<example><title>Modifier le taux de baud du port série</title>
<programlisting role="php">
<![CDATA[
<?php
$fd = dio_open('/dev/ttyS0', O_RDWR | O_NOCTTY | O_NONBLOCK);
dio_fcntl($fd,F_SETFL, O_SYNC );
dio_tcsetattr($fd, array(
'baud' => 9600,
'bits' => 8,
'stop' =>1,
'parity' => 0
));
while (1) {
$data = dio_read($fd,256);
if ($data) {
echo $data;
}
}
?>
]]>
</programlisting>
</example>
</para>
<note>
<para>
Cette fonction a été introduite en PHP 4.3.0.
</para>
</note>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->