OSDN Git Service

(split) LDP: Update draft pages
[linuxjm/LDP_man-pages.git] / draft / man2 / shmop.2
index ff28a27..9ce3761 100644 (file)
@@ -134,10 +134,9 @@ shmat, shmdt \- System V 共有メモリ (shared memory) の操作
 .\" SVr4 documents an additional error condition EMFILE.
 SVr4, POSIX.1\-2001.
 
-In SVID 3 (or perhaps earlier)  the type of the \fIshmaddr\fP argument was
-changed from \fIchar\ *\fP into \fIconst void\ *\fP, and the returned type of
-\fBshmat\fP()  from \fIchar\ *\fP into \fIvoid\ *\fP.  (Linux libc4 and libc5 have
-the \fIchar\ *\fP prototypes; glibc2 has \fIvoid\ *\fP.)
+SVID 3 で (たぶんそれより前だと思うが)  \fIshmaddr\fP 引き数の型は \fIchar\ *\fP から \fIconst void\ *\fP
+に、\fIshmat\fP() の返り値の型は \fIchar\ *\fP から \fIvoid\ *\fP に変更された (Linux では libc4 と libc5
+のプロトタイプは \fIchar\ *\fP であり、glibc2 のプロトタイプは \fIvoid\ *\fP である)。
 .SH 注意
 共有メモリセグメントを付加する場合の移植性の高い方法としては、 \fIshmaddr\fP を NULL にして \fBshmat\fP()  を使用するのがよい。
 このような方法で付加される共有メモリセグメントは、 プロセスが異なれば別のアドレスに付加される、という点に注意すること。