Rechercher une page de manuel
getttyent
Langue: ja
Version: 2002-07-18 (openSuse - 09/10/07)
Section: 3 (Bibliothèques de fonctions)
̾Á°
getttyent, getttynam, setttyent, endttyent - ttys ¥Õ¥¡¥¤¥ë¤Î¥¨¥ó¥È¥ê¤ò¼èÆÀ¤¹¤ë½ñ¼°
#include <ttyent.h>
struct ttyent *getttyent(void);
struct ttyent *getttynam(const char *name);
int setttyent(void);
int endttyent(void);
ÀâÌÀ
¤³¤ì¤é¤Î´Ø¿ô¤Ï¥Õ¥¡¥¤¥ë _PATH_TTYS (Î㤨¤Ð /etc/ttys) ¤Ø¤Î¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤òÄ󶡤¹¤ë¡£´Ø¿ô setttyent() ¤Ï¥Õ¥¡¥¤¥ë¤ò¥ª¡¼¥×¥ó¤¹¤ë¡£ ¤Þ¤¿´û¤Ë¥ª¡¼¥×¥ó¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢´¬¤Ì᤹¡£
´Ø¿ô endttyent() ¤Ï¥Õ¥¡¥¤¥ë¤ò¥¯¥í¡¼¥º¤¹¤ë¡£
´Ø¿ô getttynam() ¤Ï»ØÄꤵ¤ì¤¿Ã¼Ëö̾¤Ë¤Ä¤¤¤Æ¥Õ¥¡¥¤¥ë¤ò¸¡º÷¤¹¤ë¡£ ¤³¤Î´Ø¿ô¤Ï (°Ê²¼¤ÇÀâÌÀ¤µ¤ì¤Æ¤¤¤ë) struct ttyent ¤Ø¤Î¥Ý¥¤¥ó¥¿¤òÊÖ¤¹¡£
´Ø¿ô getttyent() ¤Ï (¤â¤·É¬ÍפǤ¢¤ì¤Ð) ¥Õ¥¡¥¤¥ë _PATH_TTYS ¤ò¥ª¡¼¥×¥ó¤·¡¢ ºÇ½é¤Î¥¨¥ó¥È¥ê¤òÊÖ¤¹¡£ ¥Õ¥¡¥¤¥ë¤¬´û¤Ë¥ª¡¼¥×¥ó¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¼¡¤Î¥¨¥ó¥È¥ê¤òÊÖ¤¹¡£
ttyent ¹½Â¤ÂÎ
struct ttyent { char *ty_name; /* üËö¥Ç¥Ð¥¤¥¹Ì¾ */ char *ty_getty; /* ¼Â¹Ô¤¹¤ë¥³¥Þ¥ó¥É¡£Ä̾ï¤Ï getty */ char *ty_type; /* termcap ¤Î¤¿¤á¤ÎüËö¥¿¥¤¥× */ int ty_status; /* ¾õÂ֥ե饰 */ char *ty_window; /* ¥¦¥£¥ó¥É¥¦¥Þ¥Í¡¼¥¸¥ã¤òµ¯Æ°¤¹¤ë¥³¥Þ¥ó¥É */ char *ty_comment; /* ¥³¥á¥ó¥È¥Õ¥£¡¼¥ë¥É */ };
ty_status ¤Ï°Ê²¼¤Î¤¤¤º¤ì¤«Ãͤò¤È¤ë¤³¤È¤¬¤Ç¤¤ë¡£
#define TTY_ON 0x01 /* ¥í¥°¥¤¥ó¤ò͸ú¤Ë¤¹¤ë (ty_getty ¥×¥í¥°¥é¥à¤ò³«»Ï¤¹¤ë) */ #define TTY_SECURE 0x02 /* ¥æ¡¼¥¶ ID 0 ¤Ç¤Î¥í¥°¥¤¥ó¤òµö²Ä¤¹¤ë */
½àµò
POSIX.1-2001 ¤Ë¤Ï¤Ê¤¤¡£ BSD ·Ï¤Ë¸ºß¤·¡¢¤ª¤½¤é¤¯Â¾¤Î¥·¥¹¥Æ¥à¤Ë¤â¤¢¤ë¤À¤í¤¦¡£Ãí°Õ
Linux ¤Ç¤Ï¡¢¥Õ¥¡¥¤¥ë /etc/ttys ¤È¾å¤ÇÀâÌÀ¤·¤¿´Ø¿ô¤Ï»È¤ï¤ì¤Æ¤¤¤Ê¤¤¡£´ØÏ¢¹àÌÜ
ttyname(3), ttyslot(3)Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre