summaryrefslogtreecommitdiffstats
path: root/sbin/startslip/startslip.c
Commit message (Collapse)AuthorAgeFilesLines
* Sync program's usage() with manpage's SYNOPSIS.ru2005-02-101-1/+1
|
* - Signal handlers must have an int argument.stefanf2004-08-021-15/+13
| | | | | | - Use prototypes. - Add a cast for a signed vs unsigned comparison. - Mark as WARNS?=3 clean.
* Remove advertising clause from University of California Regent's license,markm2004-04-091-4/+0
| | | | | | per letter dated July 22, 1999. Approved by: core, imp
* Centralize _PATH_* definitions.obrien2003-05-051-2/+2
| | | | Submitted by: Tim Kientzle <kientzle@acm.org> (embellished by me)
* o remove __Pimp2002-03-211-4/+4
| | | | o remove main prototype
* Remove 'register' keyword.obrien2002-03-201-1/+1
| | | | | | It does not help modern compilers, and some may take some hit from it. (I also found several functions that listed *every* of its 10 local vars with "register" -- just how many free registers do people think machines have?)
* Fixes a potential buffer overflow with the pid filename.joe2000-04-301-1/+3
| | | | | Submitted by: Mike Heffner <spock@techfour.net> Submitted on: audit@freebsd.org
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Correct use of .Nm and .Ev.charnier1998-08-031-7/+6
| | | | Add rcsid, rmove unused #include. Spelling.
* Fixed printf format errors.bde1998-08-021-2/+3
|
* Fixed printf format errors, scanf format errors and scanf error handling.bde1998-06-281-7/+9
|
* Remove unused include fileseivind1997-12-221-9/+3
| | | | Submitted by: bde
* Remove unused private header.eivind1997-12-211-2/+1
| | | | Submitted by: max
* Use err(3). Add missing prototypes. Cosmetic in usage string.charnier1997-06-191-11/+20
|
* Remove the syslog stuff, and allow various return valuesbrian1997-03-311-2/+6
| | | | | | | | | in uu_lock(). Add uu_lockerr() for turning the results of uu_lock into something printable. Remove bogus section in man page about race conditions allowing both processes to get the lock. Include libutil.h and use uu_lock() correctly where it should. Suggested by: ache@freebsd.org
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-2/+2
| | | | posix standard on the topic.
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Update to match changes in <net/if.h>.wollman1997-01-031-1/+2
|
* Fix up programs which expect <net/if.h> to include <sys/time.h> to insteadwollman1996-12-101-12/+15
| | | | | | do it themselves. (Some of these programs actually depended on this beyond compiling the definition of struct ifinfo!) Also fix up some other #include messes while we're at it.
* Log user name with each info and total connection time elapsedache1995-09-271-48/+55
| | | | | (for accounting purposes). Log few additional events like dialing number and connection established. Set speed POSIXly.
* Make uucp-lock optional: -L optionache1995-09-201-15/+21
|
* Fix uucp lockingache1995-09-191-24/+10
| | | | | Remove unnecesary TIOCSETD Move SLIO* before startup script call
* New option: -S #: set SLIP unit numberache1995-09-181-5/+13
|
* Add new options:ache1995-09-171-12/+40
| | | | | | | -K: set keepalive SLIP timeout -O: set outfill SLIP timeout Handle SIGURG from keepalive like SIGHUP now, i.e. reconnect. Back out background scription change, cause some synchro problems.
* Use daemon() instead of fork/setsid/close.ache1995-09-161-26/+15
| | | | Rearrange things to do fork as later as possible.
* Oops. Fix my error with -W optionache1995-09-151-2/+2
|
* Close line before fork, or becomes close twice.ache1995-09-151-28/+26
| | | | Debug output cleanup.
* Tune it to REALLY sense carrier drop.ache1995-09-151-92/+94
| | | | | | | | | Now works with dialin devices too. Add new option in slattach style -l: dont use modem control. Add new option -W: specify max number of dial tries for one phone. Remove -p option, this ugly hack not needed. Fix script timeout expires. Some code cleanups.
* Restore TTYDISC on exit. Move setting of control terminalache1995-09-151-9/+14
| | | | after TTYDISC setting
* Wait until login completed before starting SLIP (5 secs)ache1995-09-151-0/+3
|
* Pass sequence number to called scripts via LINE env. variable.ache1995-09-151-2/+6
| | | | It allows specific per phone number tunings
* All changes still related to original version:ache1995-09-141-58/+56
| | | | | | | Don't close line twice. Change typo == to = in assignment. Don't restart, if ioctl fails. Implement uucp-style locking to help dialout pgms.
* Now understand "host!login:" style prompts additionly.ache1995-09-141-70/+118
| | | | | | | | | | | | | | | | | Add -t to specify login script timeout. Add -w to specify retry wait time. Describe -p option. Now understand several -s sections (for several host phone numbers). Remove -F sw (software flow control), it is impossible with slip. Change -F hw (hardware flow control) option to -h as in slattach, we don't need option with argument for only one case. Call downscript on SIGTERM. Improve debug diagnostic. Allow startslip work with several slip lines without killing each other. Unlink pid file on exit. Skip \r and \0 in login script parsing instead making them \n. Use absolute path to default script (/sbin/ifconfig). Call up/down script in background to prevent hang on them.
* Remove IMAXBEL clearing, our cfmakeraw() already fixed for itache1995-08-041-1/+0
| | | | | | Reviewed by: Submitted by: Obtained from:
* Remove trailing whitespace.rgrimes1995-05-301-5/+5
|
* Joe Greco <jgreco@brasil.moneng.mei.com>'s enhancements to startslip.jkh1994-12-041-54/+108
| | | | Submitted by: jgreco
* BSD 4.4 Lite sbin Sourcesrgrimes1994-05-261-0/+452
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin.
OpenPOWER on IntegriCloud