1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\" This page is in the public domain. - aeb
4 .\" Japanese Version Copyright (c) 2003 Akihiro MOTOKI
5 .\" all rights reserved.
6 .\" Translated Tue Jul 8 02:25:57 JST 2003
7 .\" by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
9 .TH UNLOCKPT 3 2008-06-14 "" "Linux Programmer's Manual"
11 .\"O unlockpt \- unlock a pseudoterminal master/slave pair
13 unlockpt \- µ¼»÷üËö¥Þ¥¹¥¿/¥¹¥ì¡¼¥Ö¤Î¥Ú¥¢¤Î¥í¥Ã¥¯¤ò²ò½ü¤¹¤ë
17 .\"O .BR "#define _XOPEN_SOURCE" " /* See feature_test_macros(7) */"
18 .BR "#define _XOPEN_SOURCE" " /* feature_test_macros(7) »²¾È */"
20 .B #include <stdlib.h>
22 .BI "int unlockpt(int " fd ");"
28 .\"O function unlocks the slave pseudoterminal device
29 .\"O corresponding to the master pseudoterminal referred to by
34 ¤Ç»²¾È¤µ¤ì¤ë¥Þ¥¹¥¿µ¼»÷üËö¤ËÂбþ¤¹¤ë¥¹¥ì¡¼¥Öµ¼»÷üËö¤Î¥í¥Ã¥¯¤ò
38 .\"O should be called before opening the slave side of a pseudoterminal.
39 µ¼»÷üËö¤Î¥¹¥ì¡¼¥Ö¦¤ò¥ª¡¼¥×¥ó¤¹¤ëÁ°¤Ë¡¢
41 ¤ò¸Æ¤Ó½Ð¤¹É¬Íפ¬¤¢¤ë¡£
42 .\"O .SH "RETURN VALUE"
47 .\"O Otherwise, it returns \-1 and sets
52 ¤Ï 0 ¤òÊÖ¤¹¡£¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¡¢\-1 ¤òÊÖ¤·¡¢
54 ¤ËŬÀÚ¤ÊÃͤ¬¥»¥Ã¥È¤µ¤ì¤ë¡£
61 .\"O argument is not a file descriptor open for writing.
64 ¤¬½ñ¤¹þ¤ßÍѤ˥ª¡¼¥×¥ó¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¡¦¥Ç¥£¥¹¥¯¥ê¥×¥¿¤Ç¤Ê¤¤¡£
69 .\"O argument is not associated with a master pseudoterminal.
72 ¤¬¥Þ¥¹¥¿µ¼»÷üËö¤ËÂбþ¤¹¤ë¤â¤Î¤Ç¤Ï¤Ê¤¤¡£
76 .\"O is provided in glibc since version 2.1.
78 ¤Ï¡¢¥Ð¡¼¥¸¥ç¥ó 2.1 °Ê¹ß¤Î glibc ¤ÇÄ󶡤µ¤ì¤Æ¤¤¤ë¡£
79 .\"O .SH "CONFORMING TO"