1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\" This page is in the public domain. - aeb
4 .\"*******************************************************************
6 .\" This file was generated with po4a. Translate the source file.
8 .\"*******************************************************************
9 .TH UNLOCKPT 3 2008\-06\-14 "" "Linux Programmer's Manual"
11 unlockpt \- 擬似端末マスタ/スレーブのペアのロックを解除する
14 \fB#define _XOPEN_SOURCE\fP /* feature_test_macros(7) 参照 */
16 \fB#include <stdlib.h>\fP
18 \fBint unlockpt(int \fP\fIfd\fP\fB);\fP
21 \fBunlockpt\fP() 関数は \fIfd\fP で参照されるマスタ擬似端末に対応するスレーブ擬似端末のロックを 解除する。
23 擬似端末のスレーブ側をオープンする前に、 \fBunlockpt\fP() を呼び出す必要がある。
25 成功した場合、 \fBgrantpt\fP() は 0 を返す。そうでない場合、\-1 を返し、 \fIerrno\fP に適切な値がセットされる。
29 引き数 \fIfd\fP が書き込み用にオープンされたファイル・ディスクリプタでない。
32 引き数 \fIfd\fP がマスタ擬似端末に対応するものではない。
34 \fBunlockpt\fP() は、バージョン 2.1 以降の glibc で提供されている。
38 \fBgrantpt\fP(3), \fBposix_openpt\fP(3), \fBptsname\fP(3), \fBpts\fP(4), \fBpty\fP(7)