File: unlockpt.3

package info (click to toggle)
manpages-ja 0.5.0.0.20120606-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 25,964 kB
  • sloc: perl: 161; makefile: 116
file content (42 lines) | stat: -rw-r--r-- 1,810 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
.\" Hey Emacs! This file is -*- nroff -*- source.
.\" This page is in the public domain. - aeb
.\"
.\"*******************************************************************
.\"
.\" This file was generated with po4a. Translate the source file.
.\"
.\"*******************************************************************
.TH UNLOCKPT 3 2008\-06\-14 "" "Linux Programmer's Manual"
.SH 名前
unlockpt \- 擬似端末マスタ/スレーブのペアのロックを解除する
.SH 書式
.nf
\fB#define _XOPEN_SOURCE\fP       /* feature_test_macros(7) 参照 */
.br
\fB#include <stdlib.h>\fP
.sp
\fBint unlockpt(int \fP\fIfd\fP\fB);\fP
.fi
.SH 説明
\fBunlockpt\fP()  関数は \fIfd\fP で参照されるマスタ擬似端末に対応するスレーブ擬似端末のロックを 解除する。
.PP
擬似端末のスレーブ側をオープンする前に、 \fBunlockpt\fP()  を呼び出す必要がある。
.SH 返り値
成功した場合、 \fBgrantpt\fP()  は 0 を返す。そうでない場合、\-1 を返し、 \fIerrno\fP に適切な値がセットされる。
.SH エラー
.TP 
\fBEBADF\fP
引き数 \fIfd\fP が書き込み用にオープンされたファイル・ディスクリプタでない。
.TP 
\fBEINVAL\fP
引き数 \fIfd\fP がマスタ擬似端末に対応するものではない。
.SH バージョン
\fBunlockpt\fP()  は、バージョン 2.1 以降の glibc で提供されている。
.SH 準拠
POSIX.1\-2001.
.SH 関連項目
\fBgrantpt\fP(3), \fBposix_openpt\fP(3), \fBptsname\fP(3), \fBpts\fP(4), \fBpty\fP(7)
.SH この文書について
この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.41 の一部
である。プロジェクトの説明とバグ報告に関する情報は
http://www.kernel.org/doc/man\-pages/ に書かれている。