Commit Graph

37 Commits

Author SHA1 Message Date
stefanf
2e9ff9c3df - Signal handlers must have an int argument.
- Use prototypes.
- Add a cast for a signed vs unsigned comparison.
- Mark as WARNS?=3 clean.
2004-08-02 08:10:28 +00:00
markm
90f91e7879 Remove advertising clause from University of California Regent's license,
per letter dated July 22, 1999.

Approved by: core, imp
2004-04-09 19:58:40 +00:00
obrien
df429f4699 Centralize _PATH_* definitions.
Submitted by:	Tim Kientzle <kientzle@acm.org> (embellished by me)
2003-05-05 22:49:23 +00:00
imp
ec2a00af74 o remove __P
o remove main prototype
2002-03-21 13:20:49 +00:00
obrien
73c6870b18 Remove 'register' keyword.
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?)
2002-03-20 17:55:10 +00:00
joe
037a2d5b0f Fixes a potential buffer overflow with the pid filename.
Submitted by:	Mike Heffner <spock@techfour.net>
Submitted on:	audit@freebsd.org
2000-04-30 21:04:36 +00:00
peter
76f0c923fe $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
charnier
25f789f509 Correct use of .Nm and .Ev.
Add rcsid, rmove unused #include. Spelling.
1998-08-03 06:32:57 +00:00
bde
b7b0859c3f Fixed printf format errors. 1998-08-02 16:06:35 +00:00
bde
4e8e4d585c Fixed printf format errors, scanf format errors and scanf error handling. 1998-06-28 20:40:51 +00:00
eivind
6db96c372e Remove unused include files
Submitted by:	bde
1997-12-22 13:46:08 +00:00
eivind
a391c8a70f Remove unused private header.
Submitted by:	max
1997-12-21 15:35:22 +00:00
charnier
0c0624c76d Use err(3). Add missing prototypes. Cosmetic in usage string. 1997-06-19 14:38:53 +00:00
brian
cb7f5ad555 Remove the syslog stuff, and allow various return values
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
1997-03-31 22:51:00 +00:00
imp
167db52912 compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
1997-03-29 03:33:12 +00:00
peter
4968036f61 Revert $FreeBSD$ to $Id$ 1997-02-22 14:40:44 +00:00
jkh
808a36ef65 Make the long-awaited change from $Id$ to $FreeBSD$
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.
1997-01-14 07:20:47 +00:00
wollman
5972643f58 Update to match changes in <net/if.h>. 1997-01-03 20:19:50 +00:00
wollman
d3ecee07b3 Fix up programs which expect <net/if.h> to include <sys/time.h> to instead
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.
1996-12-10 17:11:53 +00:00
ache
acc1a409c6 Log user name with each info and total connection time elapsed
(for accounting purposes). Log few additional events like dialing
number and connection established. Set speed POSIXly.
1995-09-27 17:15:37 +00:00
ache
1954e30948 Make uucp-lock optional: -L option 1995-09-20 04:56:09 +00:00
ache
32649c9af4 Fix uucp locking
Remove unnecesary TIOCSETD
Move SLIO* before startup script call
1995-09-19 03:37:07 +00:00
ache
a23d159531 New option: -S #: set SLIP unit number 1995-09-18 14:01:11 +00:00
ache
b6cff6618d Add new options:
-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.
1995-09-17 21:47:24 +00:00
ache
acf78c78b9 Use daemon() instead of fork/setsid/close.
Rearrange things to do fork as later as possible.
1995-09-16 05:18:20 +00:00
ache
c8876de397 Oops. Fix my error with -W option 1995-09-15 22:18:45 +00:00
ache
fa6033fe95 Close line before fork, or becomes close twice.
Debug output cleanup.
1995-09-15 20:34:55 +00:00
ache
10da1882af Tune it to REALLY sense carrier drop.
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.
1995-09-15 20:06:50 +00:00
ache
ec511f8292 Restore TTYDISC on exit. Move setting of control terminal
after TTYDISC setting
1995-09-15 17:30:03 +00:00
ache
75bbddfdb8 Wait until login completed before starting SLIP (5 secs) 1995-09-15 17:08:42 +00:00
ache
71c209a0a0 Pass sequence number to called scripts via LINE env. variable.
It allows specific per phone number tunings
1995-09-15 16:41:10 +00:00
ache
4e31b924ed All changes still related to original version:
Don't close line twice.
Change typo == to = in assignment.
Don't restart, if ioctl fails.
Implement uucp-style locking to help dialout pgms.
1995-09-14 22:01:06 +00:00
ache
163e4e12ae Now understand "host!login:" style prompts additionly.
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.
1995-09-14 19:03:20 +00:00
ache
6fb1f6cbac Remove IMAXBEL clearing, our cfmakeraw() already fixed for it
Reviewed by:
Submitted by:
Obtained from:
1995-08-04 02:33:13 +00:00
rgrimes
f3a2b348da Remove trailing whitespace. 1995-05-30 06:12:45 +00:00
jkh
813d1d8c36 Joe Greco <jgreco@brasil.moneng.mei.com>'s enhancements to startslip.
Submitted by:	jgreco
1994-12-04 12:26:01 +00:00
rgrimes
d038e02fd6 BSD 4.4 Lite sbin Sources
Note:  XNSrouted and routed NOT imported here, they shall be imported with
usr.sbin.
1994-05-26 06:35:07 +00:00