cvs: phpdoc-it /reference/shmop/functions shmop-open.xml
| From: | Andrioli Darvin | Date: | Fri, 06 Jun 2003 20:14:26 +0000 |
| Subject: | cvs: phpdoc-it /reference/shmop/functions shmop-open.xml | ||
| Groups: | php.doc.it | ||
| Request: | Send a blank email to doc-it+get-402@lists.php.net to get a copy of this message | ||
darvina Fri Jun 6 16:14:26 2003 EDT
Modified files:
/phpdoc-it/reference/shmop/functions shmop-open.xml
Log:
Update to En 1.4
Index: phpdoc-it/reference/shmop/functions/shmop-open.xml
diff -u phpdoc-it/reference/shmop/functions/shmop-open.xml:1.2
phpdoc-it/reference/shmop/functions/shmop-open.xml:1.3
--- phpdoc-it/reference/shmop/functions/shmop-open.xml:1.2 Wed Apr 17 03:08:28 2002
+++ phpdoc-it/reference/shmop/functions/shmop-open.xml Fri Jun 6 16:14:26 2003
@@ -1,8 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- splitted from ./it/functions/shmop.xml, last change in rev 1.5 -->
-<!-- last change to 'shmop-open' in en/ tree in rev 1.12 -->
-<!-- EN-Revision: 1.2 Maintainer: darvina Status: ready -->
-<!-- OLD-Revision: 1.15/EN.1.12 -->
+<!-- EN-Revision: 1.4 Maintainer: darvina Status: ready -->
<refentry id="function.shmop-open">
<refnamediv>
<refname>shmop_open</refname>
@@ -28,14 +25,16 @@
<listitem>
<simpara>
"a" per accesso (SHM_RDONLY per shmat),
- usare questo flag quando occorre aprire un segmento di memoria condivisa esistente in sola
lettura
+ usare questo flag quando occorre aprire un segmento di memoria
+ condivisa esistente in sola lettura
</simpara>
</listitem>
<listitem>
<simpara>
"c" per creazione (IPC_CREATE),
usare questo flag quando si ha la necessità di creare un nuovo segmento di memoria
condivisa oppure,
- se esiste già un segmento con la medesima chiave, tentare di aprirlo in lettura e
scrittura
+ se esiste già un segmento con la medesima chiave, tentare di aprirlo in lettura
+ e scrittura
</simpara>
</listitem>
<listitem>
@@ -72,14 +71,16 @@
<programlisting role="php">
<![CDATA[
<?php
-$shm_id = shmop_open(0x0fff, "c", 0644, 100);
+$shm_key = ftok(__FILE__,'t');
+$shm_id = shmop_open($shm_key, "c", 0644, 100);
?>
]]>
</programlisting>
</example>
</para>
<para>
- Questo esempio apre un blocco di memoria condivisa con id di sistema pari a 0x0fff.
+ Questo esempio apre un blocco di memoria condivisa con id di sistema
+ restituito da <function>ftok</function>.
</para>
</refsect1>
</refentry>