summaryrefslogtreecommitdiff
path: root/usr.bin/cu
AgeCommit message (Collapse)Author
2016-02-04Include stdint.h for the uint{8,16}_t types. OK nicm@Todd C. Miller
2015-10-16doug and I think the kernel has enough features to supportTheo de Raadt
pledge "stdio rpath wpath cpath getpw proc exec tty" now. It will be hard to drop many of those features unless cu becomes privsep for the "upload" commands.
2015-10-05Set the line file descriptor nonblocking and make it blocking again forNicholas Marriott
xmodem and child processes, makes xmodem work with -d. Reported by Kim Zeitler via guenther@, tested by Jiri B. ok (and a small change) guenther
2015-10-05Style nits on a couple of casts.Nicholas Marriott
2015-05-18Add -d flag and dc capability to open devices non-blocking, used for theNicholas Marriott
few drivers that do not support cua* so tty* must be used. ok miod millert
2015-04-24remove the old tip SCCS noteTheo de Raadt
2015-02-28Reduce usage of predefined strings in manpages.Anthony J. Bentley
Predefined strings are not very portable across troff implementations, and they make the source much harder to read. Usually the intended character can be written directly. No output changes, except for two instances where the incorrect escape was used in the first place. tweaks + ok schwarze@
2015-02-08Separate the two usages for cu so you can either give it -l and -s (likeNicholas Marriott
cu) or you can give it a host to look up in /etc/remote (like tip). Mixing the two was unclear and caused mixups with -l and the HOST environment variable. So usage is now: usage: cu [-l line] [-s speed | -speed] cu [host] And HOST and REMOTE are ignored for the first form. ok deraadt claudio
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2014-09-21Fix an invalid escape sequence.Daniel Dickman
ok nicm@
2014-04-12-l should override HOST, pointed out by claudio@Nicholas Marriott
2014-03-31If HOST or the host argument starts with a /, treat it as a device nameNicholas Marriott
(so, for example, "cu /dev/cuaU0" will work).
2014-03-31Fix REMOTE to work like tip(1) - it can be either a path to a remote(5)Nicholas Marriott
database or a description (for example "foo:dv=/dev/bar"). Add support for HOST which works as I thought REMOTE did. Manpage help from jmc@.
2014-03-26Add support for retrieving the line and speed from the /etc/remote dvNicholas Marriott
and br capabilities like tip(1). No other capabilities are supported. Also handle REMOTE in the environment as either a separate remote(5) file or a host. Discussed with and approval from several, man page help from schwarze@.
2013-11-20unsigned char casts with ctype macros are pretty obvious when dealingTheo de Raadt
with argv or optarg ok ratchov
2013-11-12simpler prototype repairsTheo de Raadt
2013-07-20Add support for XMODEM-CRC and fix transfer initiation. SuccessfullyChristian Weisgerber
tested in CRC and checksum modes against a Soekris net6501. tweaks and ok nicm@
2013-04-24simplify tilde expand as seen in ssh. ok nicmTed Unangst
2013-03-11Simplify text about -l and use cua not tty in examples.Nicholas Marriott
2013-03-09Add new cu to the build and disable tip. Also bump "first appeared in"Nicholas Marriott
to .Ox 5.4 in cu.1. New cu is a libevent-based implementation of the useful features of the old tip/cu, plus a few new things like basic xmodem support. ok deraadt
2013-01-17Fix a couple of spacing/style nits.Nicholas Marriott
2013-01-17Instead of creating line termios from scratch, call tcgetattr() andNicholas Marriott
adjust it (per POSIX), reported by kettenis.
2012-11-21Plug fp leak, from rustyBSD at gmx dot fr.Nicholas Marriott
2012-07-15Add a command (~D) to drop the DTR line for a second (similar to usingNicholas Marriott
~# for a BREAK). This is useful as it makes some microcontroller boards reset. From Visa Hankala.
2012-07-13kill unused variableAlexander Hall
ok dlg@ nicm@ while at it, kill one more and add #include <ctype.h> per nicm's request
2012-07-13make the compat for -XXX to -s XXX simpler. sometimes you dont need to useDavid Gwynne
goto. ok nicm@
2012-07-12Set CLOCAL in remove c_cflag or line noise is likely to make cu exit asNicholas Marriott
discovered by naddy.
2012-07-12Add handler for SIGHUP.Nicholas Marriott
2012-07-12Describe ~X as "send" not "transfer" to be clearer.Nicholas Marriott
2012-07-11Make ~~ send a ~, pointed out by naddy.Nicholas Marriott
2012-07-11Separate total block counter (reported to user) from 8-bit block counterNicholas Marriott
put into the header, pointed out by naddy.
2012-07-10Fix usage.Nicholas Marriott
2012-07-10Add ~R command to start recording output to a file.Nicholas Marriott
2012-07-10Use function to restore termios and add ~X to help.Nicholas Marriott
2012-07-10Trim some unused externs.Nicholas Marriott
2012-07-10Add builtin XMODEM send support with ~X, only tested with lrz -X so far.Nicholas Marriott
2012-07-10+limits.h.Nicholas Marriott
2012-07-10Once we've set up termios, lines need to be \r\n terminated, and we needNicholas Marriott
to reset termios before exiting. So add custom versions of err(), errx(), warn(), warnx() to handle this.
2012-07-10closefrom(STDERR_FILENO + 1) not STDOUT_FILENO so that output actually ↵Nicholas Marriott
appears ;-).
2012-07-10Implement ~C.Nicholas Marriott
2012-07-10Restore termios and signal handlers before ~$ so ^C will kill child.Nicholas Marriott
2012-07-10Add a ~S escape to change the speed interactively (not using ~s sinceNicholas Marriott
may want to use it for variables later).
2012-07-10Add first cut of replacement for tip/cu. Not linked to the build.Nicholas Marriott
Currently supports only -l and -s (no parity), no variables and ~., ~>, ~$, ~#, ~^Z, ~?. More to come. Tested by naddy, otto. ok miod deraadt