OSDN Git Service

(split) LDP: draft snapshot generated from latest ja.po files.
[linuxjm/LDP_man-pages.git] / draft / man3 / sem_destroy.3
index 77a812e..e9f3d6a 100644 (file)
@@ -1,4 +1,4 @@
-'\" t
+.\" t
 .\" Hey Emacs! This file is -*- nroff -*- source.
 .\"
 .\" Copyright (C) 2006 Michael Kerrisk <mtk.manpages@gmail.com>
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
 .\"
-.\" Japanese Version Copyright (c) 2006 Akihiro MOTOKI all rights reserved.
-.\" Translated 2006-04-18, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
+.\"*******************************************************************
 .\"
-.TH SEM_DESTROY 3 2006-03-25 "Linux" "Linux Programmer's Manual"
-.\"O .SH NAME
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.TH SEM_DESTROY 3 2006\-03\-25 Linux "Linux Programmer's Manual"
 .SH 名前
-.\"O sem_destroy \- destroy an unnamed semaphore
 sem_destroy \- 名前なしセマフォを破棄する
-.\"O .SH SYNOPSIS
 .SH 書式
 .nf
-.B #include <semaphore.h>
+\fB#include <semaphore.h>\fP
 .sp
-.BI "int sem_destroy(sem_t *" sem );
+\fBint sem_destroy(sem_t *\fP\fIsem\fP\fB);\fP
 .fi
 .sp
-.\"O Link with \fI\-lrt\fP or \fI\-pthread\fP.
 \fI\-lrt\fP または \fI\-pthread\fP でリンクする。
-.\"O .SH DESCRIPTION
 .SH 説明
-.\"O .BR sem_destroy ()
-.\"O destroys the unnamed semaphore at the address pointed to by
-.\"O .IR sem .
-.BR sem_destroy ()
-は
-.I sem
-が指すアドレスにある名前なしセマフォを破棄する。
+\fBsem_destroy\fP()  は \fIsem\fP が指すアドレスにある名前なしセマフォを破棄する。
 
-.\"O Only a semaphore that has been initialized by
-.\"O .BR sem_init (3)
-.\"O should be destroyed using
-.\"O .BR sem_destroy ().
-.BR sem_destroy ()
-を使って破棄するのは、
-.BR sem_init (3)
-で初期化したセマフォだけにすべきである。
+\fBsem_destroy\fP()  を使って破棄するのは、 \fBsem_init\fP(3)  で初期化したセマフォだけにすべきである。
 
-.\"O Destroying a semaphore that other processes or threads are
-.\"O currently blocked on (in
-.\"O .BR sem_wait (3))
-.\"O produces undefined behavior.
-他のプロセスやスレッドが
-.RB ( sem_wait (3)
-で) 待ち状態になっているセマフォを破棄した場合の挙動は定義されていない。
+他のプロセスやスレッドが (\fBsem_wait\fP(3)  で) 待ち状態になっているセマフォを破棄した場合の挙動は定義されていない。
 
-.\"O Using a semaphore that has been destroyed produces undefined results,
-.\"O until the semaphore has been reinitialized using
-.\"O .BR sem_init (3).
-すでに破棄されたセマフォを、
-.BR sem_init (3)
-を使って再初期化される前に使用した場合、その結果は未定義である。
-.\"O .SH RETURN VALUE
+すでに破棄されたセマフォを、 \fBsem_init\fP(3)  を使って再初期化される前に使用した場合、その結果は未定義である。
 .SH 返り値
-.\"O .BR sem_destroy ()
-.\"O returns 0 on success;
-.\"O on error, \-1 is returned, and
-.\"O .I errno
-.\"O is set to indicate the error.
-成功すると、
-.BR sem_destroy ()
-は 0 を返す。エラーの場合、\-1 を返し、
-.I errno
-にエラーを示す値をセットする。
-.\"O .SH ERRORS
+成功すると、 \fBsem_destroy\fP()  は 0 を返す。エラーの場合、\-1 を返し、 \fIerrno\fP にエラーを示す値をセットする。
 .SH エラー
-.TP
-.B EINVAL
-.\"O .I sem
-.\"O is not a valid semaphore.
-.I sem
-は有効なセマフォではない。
-.\"O .SH CONFORMING TO
+.TP 
+\fBEINVAL\fP
+\fIsem\fP は有効なセマフォではない。
 .SH 準拠
-POSIX.1-2001.
-.\"O .SH NOTES
+POSIX.1\-2001.
 .SH 注意
-.\"O An unnamed semaphore should be destroyed with
-.\"O .BR sem_destroy ()
-.\"O before the memory in which it is located is deallocated.
-.\"O Failure to do this can result in resource leaks on some implementations.
-.\"O .\" But not on NPTL, where sem_destroy () is a no-op..
-名前なしセマフォは、そのセマフォが置かれているメモリが解放される前に、
-.BR sem_destroy ()
-を使って破棄しておくべきである。これを行わなかった場合、実装によっては
-リソースのリークが起こりえる。
-.\" NPTL ではリークは起こらない。sem_destroy () は何もしないだけ..
-.\"O .SH "SEE ALSO"
+.\" But not on NPTL, where sem_destroy () is a no-op..
+名前なしセマフォは、そのセマフォが置かれているメモリが解放される前に、 \fBsem_destroy\fP()
+を使って破棄しておくべきである。これを行わなかった場合、実装によっては リソースのリークが起こりえる。
 .SH 関連項目
-.BR sem_init (3),
-.BR sem_post (3),
-.BR sem_wait (3),
-.BR sem_overview (7)
+\fBsem_init\fP(3), \fBsem_post\fP(3), \fBsem_wait\fP(3), \fBsem_overview\fP(7)