OSDN Git Service

(split) LDP: draft snapshot generated from latest ja.po files.
[linuxjm/LDP_man-pages.git] / draft / man3 / unlockpt.3
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\" This page is in the public domain. - aeb
3 .\"
4 .\"*******************************************************************
5 .\"
6 .\" This file was generated with po4a. Translate the source file.
7 .\"
8 .\"*******************************************************************
9 .TH UNLOCKPT 3 2008\-06\-14 "" "Linux Programmer's Manual"
10 .SH 名前
11 unlockpt \- 擬似端末マスタ/スレーブのペアのロックを解除する
12 .SH 書式
13 .nf
14 \fB#define _XOPEN_SOURCE\fP       /* feature_test_macros(7) 参照 */
15 .br
16 \fB#include <stdlib.h>\fP
17 .sp
18 \fBint unlockpt(int \fP\fIfd\fP\fB);\fP
19 .fi
20 .SH 説明
21 \fBunlockpt\fP()  関数は \fIfd\fP で参照されるマスタ擬似端末に対応するスレーブ擬似端末のロックを 解除する。
22 .PP
23 擬似端末のスレーブ側をオープンする前に、 \fBunlockpt\fP()  を呼び出す必要がある。
24 .SH 返り値
25 成功した場合、 \fBgrantpt\fP()  は 0 を返す。そうでない場合、\-1 を返し、 \fIerrno\fP に適切な値がセットされる。
26 .SH エラー
27 .TP 
28 \fBEBADF\fP
29 引き数 \fIfd\fP が書き込み用にオープンされたファイル・ディスクリプタでない。
30 .TP 
31 \fBEINVAL\fP
32 引き数 \fIfd\fP がマスタ擬似端末に対応するものではない。
33 .SH バージョン
34 \fBunlockpt\fP()  は、バージョン 2.1 以降の glibc で提供されている。
35 .SH 準拠
36 POSIX.1\-2001.
37 .SH 関連項目
38 \fBgrantpt\fP(3), \fBposix_openpt\fP(3), \fBptsname\fP(3), \fBpts\fP(4), \fBpty\fP(7)