Commit Graph

22 Commits

Author SHA1 Message Date
dholland dfb86850e0 Remove broken snprintf usage (noted in PR 47976) and replace with
something simpler.
2014-07-27 04:32:23 +00:00
joerg f20d1d233d Use __dead. Make a bunch of local functions static. 2011-09-06 18:33:01 +00:00
christos ffe3445041 pass lint; from Anon Ymous 2006-12-14 17:09:43 +00:00
jdc 2ee4ce050d Add Taylor cu compatibility: -f and "dir" 2006-11-29 14:44:45 +00:00
yamt 2267ff751f cuhelp: fix a typo in usage. 2006-04-05 23:30:57 +00:00
christos c4341bc3e1 Pass a little lint. 2006-04-03 04:53:58 +00:00
perry d71f683e39 Remove vestiges of the ACULOG support. It depended on the suid support
(which is now gone) and it is woefully obsolete -- if something
analogous is ever needed in the future, syslog is the way to do it.
2006-04-03 02:25:27 +00:00
perry eee85da04c Remove support for uucp style locking.
This means we can get rid of the suid/sgid parts of the code (which
have been removed). The program is now installed with normal permissions.

To prevent accidents, we now flock the tty line, attempting to get an
exclusive lock.

Reviewed by: tls
2006-04-03 02:01:28 +00:00
tls 896b79dbc8 If we're not given a phone number or system name to dial, use "direct
connect" mode -- in other words, set CLOCAL so the user can talk to the
device before CD.
2006-04-03 01:48:22 +00:00
perry 58c2151f1e ANSIfy decls, de-__P, clean trailing whitespace 2006-04-03 00:51:13 +00:00
tls edddcc4ac8 Add another Taylor compat option, --nostop to disable software flow control
(a.k.a. "tandem" mode).  While we're here, fix a buglet with --halfduplex,
and add --flow {hard, soft, none}.  Note that you can't get *both* hard and
soft flow control using the command-line option; if you want that, you
have to set the variables in tiprc or with ~s once tip is running.

Move all setting of vars.c named variables to *after* the call to vinit().
2006-04-02 22:19:26 +00:00
tls 6b0f06d935 Fix the conditional compilation on ACULOG so it actually works.
Turn it off by default -- it hardly saves any space, but it's
one of the reasons why the executable is installed setuid, and
other versions of tip/cu don't write a log file anyway.  We can
add syslog support later if we ever really want this back, the
file-writing is all encapsulated in log.c.
2006-04-02 19:16:22 +00:00
tls ad69069bcc New 'cu' command-line handling, derived from Todd Miller's in OpenBSD,
but with some long options added for Taylor 'cu' compatibility, and
with some bugs fixed (in particular, the handling of -# now works as
documented and does not overwrite argv).
2006-04-02 19:04:24 +00:00
tls b8dc57b8d9 If we might have two links, we'd better print our program name when we
emit an error -- and it would be nice if it were the *right* program name.
Since it's convenient, change most perror calls to warn, and a lot of
fprintf ...  exit to errx.  Fix at least one fprintf that could run off
the end of its arguments (%s but no argument, how did we never catch this?).
2006-04-02 06:11:45 +00:00
christos d8a5b3caf5 warns=4 2006-03-16 23:25:17 +00:00
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
lukem e37283e126 WARNSify, KNFify, using ANSI string functions, cleanup .Nm usage 1997-11-22 07:28:39 +00:00
mrg 53fddda6b9 give buffers lengths; use strdup. 1997-02-11 09:24:03 +00:00
cgd 88caf985e6 replace old zzhack structure (YUCK!) and number(), boolean(), character(),
and address() macros with new macros of the same names (to get values),
and macros with those names but with "set" prepended and which take a
second argument (to set values).  The new macros use type casts to do
type conversion, which is much cleaner than using a union and making
endianness-related hacks to get the right 'short's and 'char's from
the right array indices.  (YUCK! again, for good measure.)
1996-12-29 10:34:03 +00:00
jtc 39801cccde Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id convention.
1994-12-08 09:30:36 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00