⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _hdb.txt

📁 一个通讯程序源码
💻 TXT
字号:
.*s 1 "HoneyDanBer UUCP Interface".*s 2 "Control Files"This section describes how ecu uses verious HDB UUCP controlfiles found in the UUCP library directory (e.g., /usr/lib/uucp onSCO and ISC or /etc/uucp on SunOS and SVR4)..*s 3 "Devices"ECU reads this file to determine what tty devices are availablefor outgoing calls. The fourth field must contain a baud rate orrange of baud rates acceptable for the line.  The fifth field ofeach entry must contain either the full pathname of an (SCO)modem dialer program (with leading slash) or the name of an entryin the HDB Dialers file (no leading slash).  For moreinformation, consult the UUCP documentation for your system andsee "Dialers" and "Choosing a Dialout Line" below..*s 3 "Dialers".B Dialersentries may be specified in the Devices entry. ECU provides Dialers support that is largely compatiblewith most System V HDB uucico programs.  Refer toyour system's UUCP documentation for generalusage instructions.  Refer to the procedure command.B exprespfor a precise list of escape sequences supported by ECU..*s 3 "Sysfiles"Sysfiles support is not yet provided.  The Devices andDialers files must have their default names..*s 3 "Systems"No use is made of the.B Systemsfile at this time.  ECU provides theequivalent function with its dialing directory..*s 2 "Choosing a Dialout Line"When using the interactive.B dialcommand, or when dialing from the initial menu,if a logical or system name is specified, the directoryentry is fetched and examined.  If the tty field specifiesa value other than "Any", the specific line requested isopened, if available, and dialing commences. If the specified line is not available, the dial attemptfails.If "Any" is found in the dialing directory entry tty field, thenECU finds an available Devices line which matches the baud ratespecified in the entry. Other special tty field entries allow regular expression orliteral matching of Devices types.  See the description of the  dialingdirectory for more details.A line is selected only if its class begins with the threecharacters "ACU."  UUCP will only select a line whose Devicesentry class matches the active Systems entry class (usually"ACU"), so usually you may make a modem accessible to ECU, but notto UUCP, by setting it's class to ACUECU.On systems employing ecuungetty, if a line being considered forselectionis found to be a line enabled for login, butcurrently idle, the ecuungetty interface, described below,is used to acquire the line for outgoing use.The DCD watcher (see the interactive and procedure commands.B dcdwatch )depends upon the tty driver to return zeroon a read when DCD is low when the termio flag CLOCAL is reset.The tty driver must ignore DCD if CLOCAL is set.If your system offers a "modem" and "direct" choice (by choiceof filename), you probably need to use the "modem" choice forthis to work properly.  However, the choice depends uponthe needs of the underlying driver you are using.For instance, if you are using FAS in a shared modem application,your getty should use the "modem" choice and ECU shoulduse the "direct" choice.  Some experimentation may be required.One of the symptoms of an incorrect line choice is ECU hangs,line errors such as EIO and EBUSY.  These problems maybe caused by other problems, but incorrect line choice isthe most frequent cause..*s 2 "SCO Tty Naming"On SCO,TTY devices must be named in the style of:.DS I/dev/tty#N        ^^        ||        |`------ uppercase letter for modem control        |        lowercase for non-modem control        `--------digit (1-4).DEIf you are using FAS or other third-party driver, you mayuse ECU with ports not normally named in the /dev/tty#Nstyle in one of two ways under UNIX and one way under XENIX:.DS I1.  Under XENIX or UNIX, create a link to the port    with a compatible name:          ln /dev/ttyF00 /dev/tty1a          ln /dev/ttyFM00 /dev/tty1A2.  Under UNIX, add additional lines to the    /etc/conf/node.d file and rebuild the kernel    environment (this is the recommended approach    for UNIX):fas ttyF00  c   48fas tty1a   c   48fas ttyF01  c   49fas tty1b   c   49fas ttyFM00 c   208fas tty1A   c   208fas ttyFM01 c   209fas tty1B   c   209.DENote the device numbers are examples only.  Consult the driverdocumentation for proper choices.If you cannot live within this restriction, search for the #defineSCO_TTY_NAMING in ecu.h (that depends on SCO's M_SYSV) and disable it..*s 2 "Ecuungetty (Getty Interface)"This section applies to the SCO version of the program.  Itmay also apply to others in part.  Specifically, as of thiswriting, this section does not apply to the SunOS versiondue to the differences in utmp arrangement.  In some versions,the mechanism may execute and do no harm, yet essentially be a no-op.When an idle dialin (enabled) line is chosen for dialout,ECU makes use of.B ecuungetty(in the ecu library directory, normally /usr/local/lib/ecu)to signal the line's getty to release the line (via SIGUSR1)..B Ecuungettyis again employed to signal the getty to reacquire theline when outgoing communication is complete (via SIGUSR2).Ecuungetty is a privileged program, which must be owned by rootand have the setuid-on-execute bit set.  An encrypted id is passedby ecu to ecuungetty to validate requests and to prevent abuse ofecuungetty by crackers, malcontents and other twentieth-centuryphenomena..*s 2 "SCO Dialer Programs"The concept of a dialer program (an executable binaryas opposed to a Dialers entry) is an SCO enhancement andis unlikely to be of benefit to users of other versions (too bad!).ECU will support dialer programs under any version, but otherusers of the Devices file (read "your vendor-supplied uucico")will most likely barf on non-SCO systems.If the.B Devicesfile can be found in /usr/lib/uucp,and a valid entry for the attached line can be found,ECU will use the Dialers script or dialer program specified in the.B Devicesentry..*s 2 "Gendial Dialer Package"Sample SCO-style modem dialer program sources may be foundin the gendial/ subdirectory of the distribution.Some of them, particularly dialgHA24 and dialgT2500, are veryrobust and succeed where other programs may fail.  They retrymodem initialization and reset/hangup commands .The code is divided into one general module and several modem-and DCE-specific modules.  A program is built by combiningthe gendial.o with the appropriate dceFOO.o module to producea dialgFOO executable.To write a dialer for a modem not already in the gendial package,copy template.c to dceMYMODEM.c and edit it to contain thenecessary variable assignments and initialization, dialing and hangupcode.  The existing dce*.c modules provide examples.Edit the gendial/Make.src file to add rule lines for your program.(Do not modify Makefile alonesince a "Configure" will overwrite Makefile.).DS LdialgMYMODEM: gendial.o dceMYMODEM.o    $(CC) $(LDFLAGS) gendial.o dceMYMODEM.o $(LIBS) -o $@.DETo be "correct," you should run the Configure procedurein the main ecu directory to make a new Makefile,but this has the unfortunate side effect of rebuilding allof the Makefiles which are built from Make.src files.If this happens, the next make will rebuild all of theobjects.In this case, it is "OK" to cheat and copy the new Make.src lines toMakefile.  A later Configure will not cause loss of the new lines.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -