reference/sem/functions/shm-detach.xml
395ea247cf337110d795979e14841617aa9cefa9
...
...
@@ -1,6 +1,6 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.shm-detach">
3
+
<refentry xml:id="function.shm-detach" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>shm_detach</refname>
6
6
<refpurpose>Disconnects from shared memory segment</refpurpose>
...
...
@@ -10,11 +10,11 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>bool</type><methodname>shm_detach</methodname>
13
-
<methodparam><type>resource</type><parameter>shm_identifier</parameter></methodparam>
13
+
<methodparam><type>SysvSharedMemory</type><parameter>shm</parameter></methodparam>
14
14
</methodsynopsis>
15
15
<para>
16
16
<function>shm_detach</function> disconnects from the shared memory given
17
-
by the <parameter>shm_identifier</parameter> created by
17
+
by the <parameter>shm</parameter> created by
18
18
<function>shm_attach</function>. Remember, that shared memory still exist
19
19
in the Unix system and the data is still present.
20
20
</para>
...
...
@@ -25,11 +25,10 @@
25
25
<para>
26
26
<variablelist>
27
27
<varlistentry>
28
-
<term><parameter>shm_identifier</parameter></term>
28
+
<term><parameter>shm</parameter></term>
29
29
<listitem>
30
30
<para>
31
-
A shared memory resource handle as returned by
32
-
<function>shm_attach</function>
31
+
A shared memory segment obtained from <function>shm_attach</function>.
33
32
</para>
34
33
</listitem>
35
34
</varlistentry>
...
...
@@ -40,7 +39,32 @@
40
39
<refsect1 role="returnvalues">
41
40
&reftitle.returnvalues;
42
41
<para>
43
-
<function>shm_detach</function> always returns &true;.
42
+
&return.success;
43
+
</para>
44
+
</refsect1>
45
+

46
+
<refsect1 role="changelog">
47
+
&reftitle.changelog;
48
+
<para>
49
+
<informaltable>
50
+
<tgroup cols="2">
51
+
<thead>
52
+
<row>
53
+
<entry>&Version;</entry>
54
+
<entry>&Description;</entry>
55
+
</row>
56
+
</thead>
57
+
<tbody>
58
+
<row>
59
+
<entry>8.0.0</entry>
60
+
<entry>
61
+
<parameter>shm</parameter> expects a <classname>SysvSharedMemory</classname>
62
+
instance now; previously, a <type>resource</type> was expected.
63
+
</entry>
64
+
</row>
65
+
</tbody>
66
+
</tgroup>
67
+
</informaltable>
44
68
</para>
45
69
</refsect1>
46
70
...
...
@@ -56,7 +80,6 @@
56
80
</refsect1>
57
81

58
82
</refentry>
59
-

60
83
<!-- Keep this comment at the end of the file
61
84
Local variables:
62
85
mode: sgml
63
86