OSDN Git Service

(split) LDP_man-pages: release ioctl.2 [JM:00378]
[linuxjm/LDP_man-pages.git] / draft / man3 / openpty.3
index 091ed0f..6dddf27 100644 (file)
 .\" 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
@@ -66,13 +68,13 @@ openpty, login_tty, forkpty \- ü
 .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
 ¤È
@@ -108,7 +110,7 @@ openpty, login_tty, forkpty \- ü
 .\"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
@@ -142,7 +144,7 @@ openpty, login_tty, forkpty \- ü
 .\"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 (),
@@ -150,7 +152,7 @@ openpty, login_tty, forkpty \- ü
 .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
@@ -168,7 +170,7 @@ openpty, login_tty, forkpty \- ü
 .\"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
@@ -247,7 +249,9 @@ openpty, login_tty, forkpty \- ü
 .\"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
@@ -258,12 +262,27 @@ openpty, login_tty, forkpty \- ü
 .\" .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 µ¿»÷üËö¥Ú¥¢¤Î¥Õ¥¡¥¤¥ë¡¦¥Ç¥£¥¹¥¯¥ê¥×¥¿¤òÊÖ¤¹¡£