?? rloglib.html
字號:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/rlogLib.html - generated by refgen from rlogLib.c --> <title> rlogLib </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.html"><i>VxWorks Reference Manual : Libraries</i></a></p></blockquote><h1>rlogLib</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>rlogLib</strong> - remote login library </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./rlogLib.html#rlogInit">rlogInit</a></i>( )</b> - initialize the remote login facility<br><b><i><a href="./rlogLib.html#rlogind">rlogind</a></i>( )</b> - the VxWorks remote login daemon<br><b><i><a href="./rlogLib.html#rlogin">rlogin</a></i>( )</b> - log in to a remote host<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library provides a remote login facility for VxWorks that uses theUNIX <b>rlogin</b> protocol (as implemented in UNIX BSD 4.3) to allow users at a VxWorks terminal to log in to remote systems via the network, and users at remote systems to log in to VxWorks via the network.<p>A VxWorks user may log in to any other remote VxWorks or UNIX system viathe network by calling <b><i><a href="./rlogLib.html#rlogin">rlogin</a></i>( )</b> from the shell.<p>The remote login daemon, <b><i><a href="./rlogLib.html#rlogind">rlogind</a></i>( )</b>, allows remote users to log in to VxWorks.The daemon is started by calling <b><i><a href="./rlogLib.html#rlogInit">rlogInit</a></i>( )</b>, which is called automaticallywhen the configuration macro <b>INCLUDE_RLOGIN</b> is defined.The remote login daemon accepts remote login requests from another VxWorksor UNIX system, and causes the shell's input and output to be redirectedto the remote user.<p>Internally, <b><i><a href="./rlogLib.html#rlogind">rlogind</a></i>( )</b> provides a tty-like interface to the remoteuser through the use of the VxWorks pseudo-terminal driver ptyDrv.<p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>rlogLib.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./rlogLib.html#top">rlogLib</a></b>, <b><a href="./ptyDrv.html#top">ptyDrv</a></b>, <b><a href="./telnetLib.html#top">telnetLib</a></b>, UNIX BSD 4.3 manual entries for <b>rlogin</b>, <b>rlogind</b>, and <b>pty</b><hr><a name="rlogInit"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>rlogInit</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>rlogInit</i>( )</strong> - initialize the remote login facility</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS rlogInit (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine initializes the remote login facility. It creates a pty (pseudo tty) device and spawns <b><i><a href="./rlogLib.html#rlogind">rlogind</a></i>( )</b>. If the configuratiion macro<b>INCLUDE_RLOGIN</b> is defined, <b><i><a href="./rlogLib.html#rlogInit">rlogInit</a></i>( )</b> is called automatically at boot time.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK or ERROR.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./rlogLib.html#top">rlogLib</a></b>, <b><a href="./ptyDrv.html#top">ptyDrv</a></b><hr><a name="rlogind"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>rlogind</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>rlogind</i>( )</strong> - the VxWorks remote login daemon</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>void rlogind (void)</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine provides a facility for remote users to log in to VxWorks overthe network. If the configuration macro <b>INCLUDE_RLOGIN</b> is defined,<b><i><a href="./rlogLib.html#rlogind">rlogind</a></i>( )</b> is spawned by <b><i><a href="./rlogLib.html#rlogInit">rlogInit</a></i>( )</b> at boot time.<p>Remote login requests will cause <b>stdin</b>, <b>stdout</b>, and <b>stderr</b> to bedirected away from the console. When the remote user disconnects,<b>stdin</b>, <b>stdout</b>, and <b>stderr</b> are restored, and the shell is restarted.The <b><i><a href="./rlogLib.html#rlogind">rlogind</a></i>( )</b> routine uses the remote user verification protocol specifiedby the UNIX remote shell daemon documentation, but ignores all theinformation except the user name, which is used to set the VxWorks remoteidentity (see the manual entry for <b><i><a href="./remLib.html#iam">iam</a></i>( )</b>).<p>The remote login daemon requires the existence of a pseudo-terminaldevice, which is created by <b><i><a href="./rlogLib.html#rlogInit">rlogInit</a></i>( )</b> before <b><i><a href="./rlogLib.html#rlogind">rlogind</a></i>( )</b> is spawned. The<b><i><a href="./rlogLib.html#rlogind">rlogind</a></i>( )</b> routine creates two child processes, <b>tRlogInTask</b> and<b>tRlogOutTask</b>, whenever a remote user is logged in. These processes exitwhen the remote connection is terminated.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./rlogLib.html#top">rlogLib</a></b>, <b><i><a href="./rlogLib.html#rlogInit">rlogInit</a></i>( )</b>, <b><i><a href="./remLib.html#iam">iam</a></i>( )</b><hr><a name="rlogin"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>rlogin</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>rlogin</i>( )</strong> - log in to a remote host</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS rlogin ( char * host /* name of host to connect to */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine allows users to log in to a remote host. It may be called fromthe VxWorks shell as follows:<pre> -> rlogin "remoteSystem"</pre>where <i>remoteSystem</i> is either a host name, which has been previously addedto the remote host table by a call to <b><i><a href="./hostLib.html#hostAdd">hostAdd</a></i>( )</b>, or an Internet address indot notation (e.g., "90.0.0.2"). The remote system will be logged intowith the current user name as set by a call to <b><i><a href="./remLib.html#iam">iam</a></i>( )</b>.<p>The user disconnects from the remote system by typing:<pre> ~.</pre>as the only characters on the line, or by simply logging out from the remotesystem using <b><i><a href="./usrLib.html#logout">logout</a></i>( )</b>.<p></blockquote><h4>RETURNS</h4><blockquote><p><p>OK, or ERROR if the host is unknown, no privileged ports are available,the routine is unable to connect to the host, or the child process cannotbe spawned.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./rlogLib.html#top">rlogLib</a></b>, <b><i><a href="./remLib.html#iam">iam</a></i>( )</b>, <b><i><a href="./usrLib.html#logout">logout</a></i>( )</b></body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -