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 .B #define _XOPEN_SOURCE
19 .B #include <stdlib.h>
21 .BI "int unlockpt(int " fd ");"
27 .\"O function unlocks the slave pseudoterminal device
28 .\"O corresponding to the master pseudoterminal referred to by
33 ¤Ç»²¾È¤µ¤ì¤ë¥Þ¥¹¥¿µ¼»÷üËö¤ËÂбþ¤¹¤ë¥¹¥ì¡¼¥Öµ¼»÷üËö¤Î¥í¥Ã¥¯¤ò
37 .\"O should be called before opening the slave side of a pseudoterminal.
38 µ¼»÷üËö¤Î¥¹¥ì¡¼¥Ö¦¤ò¥ª¡¼¥×¥ó¤¹¤ëÁ°¤Ë¡¢
40 ¤ò¸Æ¤Ó½Ð¤¹É¬Íפ¬¤¢¤ë¡£
41 .\"O .SH "RETURN VALUE"
46 .\"O Otherwise, it returns \-1 and sets
51 ¤Ï 0 ¤òÊÖ¤¹¡£¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¡¢\-1 ¤òÊÖ¤·¡¢
53 ¤ËŬÀÚ¤ÊÃͤ¬¥»¥Ã¥È¤µ¤ì¤ë¡£
60 .\"O argument is not a file descriptor open for writing.
63 ¤¬½ñ¤¹þ¤ßÍѤ˥ª¡¼¥×¥ó¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¡¦¥Ç¥£¥¹¥¯¥ê¥×¥¿¤Ç¤Ê¤¤¡£
68 .\"O argument is not associated with a master pseudoterminal.
71 ¤¬¥Þ¥¹¥¿µ¼»÷üËö¤ËÂбþ¤¹¤ë¤â¤Î¤Ç¤Ï¤Ê¤¤¡£
75 .\"O is provided in glibc since version 2.1.
77 ¤Ï¡¢¥Ð¡¼¥¸¥ç¥ó 2.1 °Ê¹ß¤Î glibc ¤ÇÄ󶡤µ¤ì¤Æ¤¤¤ë¡£
78 .\"O .SH "CONFORMING TO"
87 .BR feature_test_macros (7),