.\" Updated Sun Sep 14 2003 by Akihiro MOTOKI
.\"
.\"WORD: tty üËö
-.\"WORD: pseudo-tty µ¿»÷üËö
+.\"WORD: pseudoterminal µ¿»÷üËö
.\"
-.TH OPENPTY 3 2003-07-18 "GNU" "Linux Programmer's Manual"
+.TH OPENPTY 3 2010-06-13 "GNU" "Linux Programmer's Manual"
.\"O .SH NAME
.SH ̾Á°
.\"O openpty, login_tty, forkpty \- tty utility functions
-openpty, login_tty, forkpty \- üËö (tty) ¥æ¡¼¥Æ¥£¥ê¥Æ¥£´Ø¿ô
+openpty, login_tty, forkpty \- üËö¥æ¡¼¥Æ¥£¥ê¥Æ¥£´Ø¿ô
.\"O .SH SYNOPSIS
.SH ½ñ¼°
.nf
.B #include <pty.h>
.sp
.BI "int openpty(int *" amaster ", int *" aslave ", char *" name ,
-.BI " struct termios *" termp ", struct winsize *" winp );
+.BI " const struct termios *" termp ,
+.BI " const struct winsize *" winp );
.sp
-.BI "pid_t forkpty(int *" amaster ", char *" name ", struct termios *" termp ,
-.BI " struct winsize *" winp );
+.BI "pid_t forkpty(int *" amaster ", char *" name ,
+.BI " const struct termios *" termp ,
+.BI " const struct winsize *" winp );
.sp
.B #include <utmp.h>
.sp
.SH ÀâÌÀ
.\"O The
.\"O .BR openpty ()
-.\"O function finds an available pseudo-terminal and returns file descriptors
+.\"O function finds an available pseudoterminal and returns file descriptors
.\"O for the master and slave in
.\"O .I amaster
.\"O and
.\"O .IR aslave .
.BR openpty ()
-´Ø¿ô¤Ï¡¢»ÈÍѲÄǽ¤Êµ¿»÷üËö (pseudo-terminal) ¤ò¸«¤Ä¤±¤Æ¡¢
+´Ø¿ô¤Ï¡¢»ÈÍѲÄǽ¤Êµ¿»÷üËö (pseudoterminal) ¤ò¸«¤Ä¤±¤Æ¡¢
¥Þ¥¹¥¿¤È¥¹¥ì¡¼¥Ö¤Î¥Õ¥¡¥¤¥ë¡¦¥Ç¥£¥¹¥¯¥ê¥×¥¿¤ò
.I amaster
¤È
.\"O .BR login_tty ()
.\"O function prepares for a login on the tty
.\"O .I fd
-.\"O (which may be a real tty device, or the slave of a pseudo-terminal as
+.\"O (which may be a real tty device, or the slave of a pseudoterminal as
.\"O returned by
.\"O .BR openpty ())
.\"O by creating a new session, making
.\"O .BR fork (2),
.\"O and
.\"O .BR login_tty ()
-.\"O to create a new process operating in a pseudo-terminal.
+.\"O to create a new process operating in a pseudoterminal.
.BR forkpty ()
´Ø¿ô¤Ï
.BR openpty (),
.BR login_tty ()
¤òÁȤ߹ç¤ï¤»¡¢µ¿»÷üËö¤òÁàºî¤¹¤ë¿·¤·¤¤¥×¥í¥»¥¹¤òÀ¸À®¤¹¤ë¡£
.\"O The file
-.\"O descriptor of the master side of the pseudo-terminal is returned in
+.\"O descriptor of the master side of the pseudoterminal is returned in
.\"O .IR amaster ,
.\"O and the filename of the slave in
.\"O .I name
.\"O .I winp
.\"O arguments, if not NULL,
.\"O will determine the terminal attributes and window size of the slave
-.\"O side of the pseudo-terminal.
+.\"O side of the pseudoterminal.
.I termp
¤È
.I winp
.\"O .SH "CONFORMING TO"
.SH ½àµò
.\"O These are BSD functions, present in libc5 and glibc2.
+.\"O They are not standardized in POSIX.
¤³¤ì¤é¤Ï BSD ¤Î´Ø¿ô¤Ç¤¢¤ê¡¢libc5 ¤È glibc2 ¤Ë¸ºß¤¹¤ë¡£
+POSIX ¤Ç¤Îɸ½à²½¤Ï¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
.\"O .SH NOTES
.SH Ãí°Õ
.\"O .\" These functions are included in libutil, hence you'll need to add
.\" .B \-lutil
.\" ¤ò²Ã¤¨¤ëɬÍפ¬¤¢¤ë¡£
.\"
+.\"O The
+.\"O .B const
+.\"O modifiers were added to the structure pointer arguments of
+.\"O .BR openpty ()
+.\"O and
+.\"O .BR forkpty ()
+.\"O in glibc 2.8.
+glibc 2.8 ¤Ç¡¢
+.BR openpty ()
+¤È
+.BR forkpty ()
+¤Î¹½Â¤ÂΤؤΥݥ¤¥ó¥¿¤Î°ú¤¿ô¤Ë
+.B const
+½¤¾þ»Ò¤¬Äɲ䵤줿¡£
+
.\"O In versions of glibc before 2.0.92,
.\"O .BR openpty ()
-.\"O returns file descriptors for a BSD pseudo-terminal pair;
+.\"O returns file descriptors for a BSD pseudoterminal pair;
.\"O since glibc 2.0.92,
-.\"O it first attempts to open a Unix 98 pseudo-terminal pair,
-.\"O and falls back to opening a BSD pseudo-terminal pair if that fails.
+.\"O it first attempts to open a Unix 98 pseudoterminal pair,
+.\"O and falls back to opening a BSD pseudoterminal pair if that fails.
2.0.92 ¤è¤êÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Î glibc ¤Ç¤Ï¡¢
.BR openpty ()
¤Ï BSD µ¿»÷üËö¥Ú¥¢¤Î¥Õ¥¡¥¤¥ë¡¦¥Ç¥£¥¹¥¯¥ê¥×¥¿¤òÊÖ¤¹¡£