summaryrefslogtreecommitdiffstats
path: root/usr.bin/cu (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Replace list faked with a literal display with a real list.bentley2020-12-121-7/+11
| | | | | | Use character escapes for arrow symbols. no objection jmc@
* correct Research Unix edition "appeared in" use in HISTORYjsg2020-02-081-3/+3
| | | | | | | | | | | | | | | | | Starting from "Combined Table of Contents" in Doug McIlroy's "A Research UNIX Reader" a table of which edition manuals appeared in. Checked against manuals from bitsavers/TUHS and source from TUHS where available. Ingo points out there are cases where something is included but not documented until a later release. bcd(6) v6 v7 printf(3) v2 v4 abort(3) v5 v6 system(3) v6 v7 fmod(3) v5 v6 ok schwarze@
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-282-4/+4
| | | | | | value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
* Add -E to change the escape character, from Artturi Alm.nicm2019-03-224-24/+44
| | | | no objections from deraadt, ok millert
* document some more escapes which are hit by restricted mode,jmc2018-08-051-13/+19
| | | | | | | | | and move the documentation of which are relevant to the restricted mode (-r) description; from kris katterjohn while here, replace some Gt/Lt escapes;
* sort -r in the description list, and make its grammar match thosejmc2017-12-101-6/+6
| | | | of the other options in this page;
* -r restricted mode blocks certain operations as ~ operations.deraadt2017-12-104-8/+34
| | | | | from Jan Klemkow ok nicm
* Call isatty(3) prior to ioctl(TIOCEXCL) to check if cu(1) was invoked on amestre2017-08-221-1/+3
| | | | | | | | non-TTY and if that's the case then close the application. Otherwise without this verification if it's really a non-TTY then cu(1) will be aborted by pledge(2). feedback and OK by deraadt@
* Include stdint.h for the uint{8,16}_t types. OK nicm@millert2016-02-041-1/+2
|
* doug and I think the kernel has enough features to supportderaadt2015-10-161-1/+5
| | | | | | 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.
* Set the line file descriptor nonblocking and make it blocking again fornicm2015-10-054-6/+29
| | | | | 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
* Style nits on a couple of casts.nicm2015-10-051-3/+3
|
* Add -d flag and dc capability to open devices non-blocking, used for thenicm2015-05-182-8/+26
| | | | | | few drivers that do not support cua* so tty* must be used. ok miod millert
* remove the old tip SCCS notederaadt2015-04-241-4/+2
|
* Reduce usage of predefined strings in manpages.bentley2015-02-281-4/+4
| | | | | | | | | | | 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@
* Separate the two usages for cu so you can either give it -l and -s (likenicm2015-02-082-17/+23
| | | | | | | | | | | | | | | 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
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-3/+3
| | | | | | | | | 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)
* Fix an invalid escape sequence.daniel2014-09-211-3/+3
| | | | ok nicm@
* -l should override HOST, pointed out by claudio@nicm2014-04-121-4/+5
|
* If HOST or the host argument starts with a /, treat it as a device namenicm2014-03-311-6/+10
| | | | (so, for example, "cu /dev/cuaU0" will work).
* Fix REMOTE to work like tip(1) - it can be either a path to a remote(5)nicm2014-03-312-17/+31
| | | | | | | 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@.
* Add support for retrieving the line and speed from the /etc/remote dvnicm2014-03-262-22/+100
| | | | | | | | | 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@.
* unsigned char casts with ctype macros are pretty obvious when dealingderaadt2013-11-201-2/+2
| | | | | with argv or optarg ok ratchov
* simpler prototype repairsderaadt2013-11-122-2/+9
|
* Add support for XMODEM-CRC and fix transfer initiation. Successfullynaddy2013-07-201-7/+47
| | | | | tested in CRC and checksum modes against a Soekris net6501. tweaks and ok nicm@
* simplify tilde expand as seen in ssh. ok nicmtedu2013-04-241-13/+14
|
* Simplify text about -l and use cua not tty in examples.nicm2013-03-111-19/+7
|
* Add new cu to the build and disable tip. Also bump "first appeared in"nicm2013-03-091-3/+3
| | | | | | | | | 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
* Fix a couple of spacing/style nits.nicm2013-01-172-5/+5
|
* Instead of creating line termios from scratch, call tcgetattr() andnicm2013-01-171-7/+10
| | | | adjust it (per POSIX), reported by kettenis.
* Plug fp leak, from rustyBSD at gmx dot fr.nicm2012-11-211-2/+2
|
* Add a command (~D) to drop the DTR line for a second (similar to usingnicm2012-07-152-3/+11
| | | | | ~# for a BREAK). This is useful as it makes some microcontroller boards reset. From Visa Hankala.
* kill unused variablehalex2012-07-131-3/+3
| | | | | | ok dlg@ nicm@ while at it, kill one more and add #include <ctype.h> per nicm's request
* make the compat for -XXX to -s XXX simpler. sometimes you dont need to usedlg2012-07-131-21/+8
| | | | | | goto. ok nicm@
* Set CLOCAL in remove c_cflag or line noise is likely to make cu exit asnicm2012-07-121-2/+2
| | | | discovered by naddy.
* Add handler for SIGHUP.nicm2012-07-121-1/+4
|
* Describe ~X as "send" not "transfer" to be clearer.nicm2012-07-121-3/+3
|
* Make ~~ send a ~, pointed out by naddy.nicm2012-07-111-1/+4
|
* Separate total block counter (reported to user) from 8-bit block counternicm2012-07-111-3/+5
| | | | put into the header, pointed out by naddy.
* Fix usage.nicm2012-07-101-2/+3
|
* Add ~R command to start recording output to a file.nicm2012-07-104-4/+35
|
* Use function to restore termios and add ~X to help.nicm2012-07-102-6/+5
|
* Trim some unused externs.nicm2012-07-101-3/+1
|
* Add builtin XMODEM send support with ~X, only tested with lrz -X so far.nicm2012-07-105-5/+205
|
* +limits.h.nicm2012-07-101-1/+2
|
* Once we've set up termios, lines need to be \r\n terminated, and we neednicm2012-07-106-28/+117
| | | | | to reset termios before exiting. So add custom versions of err(), errx(), warn(), warnx() to handle this.
* closefrom(STDERR_FILENO + 1) not STDOUT_FILENO so that output actually appears ;-).nicm2012-07-101-3/+3
|
* Implement ~C.nicm2012-07-102-2/+65
|
* Restore termios and signal handlers before ~$ so ^C will kill child.nicm2012-07-102-2/+16
|
* Add a ~S escape to change the speed interactively (not using ~s sincenicm2012-07-104-17/+55
| | | | may want to use it for variables later).