summaryrefslogtreecommitdiffstats
path: root/usr.bin/talk (follow)
Commit message (Collapse)AuthorAgeFilesLines
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-2/+2
| | | | | | 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.
* incompatibilities with 4.2 are no longer interestingtedu2017-05-251-10/+2
|
* More "(<blah> *)0" -> NULL, avoiding any stdarg functions.krw2016-03-161-2/+2
| | | | Feedback millert@ kettenis@
* Actually enforce what was done on rev 1.11:mestre2016-03-081-2/+2
| | | | if one of the parties is remote it needs to pledge for inet
* finish conversion select -> poll, error messages count too, sloppy theo.espie2016-02-181-2/+2
| | | | okay millert@
* pledge(2) for talk(1):mestre2016-02-051-1/+14
| | | | | | | | | | | | | | | | At the beginning the largest pledge is the following: rpath: read ~/.terminfo (the reason was changed pointed out by semarie@) inet/dns: talk may need to connect to a remote host and resolve it getpw: if getlogin(2) fails then it needs getpwuid(3) as a fallback tty: this is a typical tty application, so it'll always need this annotation Then just before the application main loop check if the talk is with local user so it only needs "stdio tty", if it's remote then it needs "stdio inet tty". I couldn't test this with a remote host to confirm if it needs inet or not but as per jca@'s comment "tighter settings - if possible - can happen later" ok jca@ and also discussed with tb@
* Remove unused headers and sort the remainingmestre2016-02-0112-40/+57
| | | | | | | Remove lint-style comments Swap hardcoded string on usage() for __progname OK tb@
* 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)
* - document SIGINT, because of its zero return valuejmc2014-06-021-3/+10
| | | | | | - \*Gt -> >, as recommended by schwarze ok guenther
* remove unused include dating from the pre-termios code and accidentallynaddy2013-12-111-2/+1
| | | | reintroduced with the 4.4lite merge 19 years ago
* unsigned char for ctypederaadt2013-11-281-2/+3
| | | | ok krw okan
* handle ECONNABORTED errors from accept(). In many code blocks they can bederaadt2013-03-111-2/+3
| | | | | ignored silently and without aborting, much like EINTR and EWOULDBLOCK are. ok's from various maintainers of these directories...
* more roff adjustments;jmc2010-10-281-5/+3
|
* more EXIT STATUS bits; from Daniel Dickmanjmc2010-10-211-2/+9
|
* some inconsequential cleanups. ok deraadttedu2010-08-128-45/+28
|
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-2711-94/+11
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* remove unused functionchl2009-05-092-17/+3
| | | | | | from tobias@ "just delete them" tedu@, ok millert@ tobias@
* STANDARDS:jmc2009-02-101-3/+3
| | | | | | | | mark these utilities as being either optional (SD/FR/UP); or as being compliant only with XPG4 (XSI); strip.1 and talk.1 are tweaked purely for consistency; thanks otto for feedback
* bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewjmc2009-02-081-3/+3
| | | | updates to follow;
* synchronize usage and synopsis.sobrado2008-05-311-4/+3
|
* convert to new .Dd format;jmc2007-05-311-2/+2
|
* - note some apps which are xpg4, not posixjmc2007-05-311-1/+12
| | | | | | - note that some apps are optional to posix after some discussion w/ otto
* "interupt" -> "interrupt" in various comments. Mostly from Diego Casati.krw2007-05-251-3/+3
|
* Plug a mem leak. Found in one of my trees. Forgat where it came from; mostotto2006-10-291-2/+3
| | | | likely from a NetBSD Coverity fix. ok ray@
* use STD{IN,OUT,ERR}_FILENOderaadt2005-04-131-3/+3
|
* .Xr talkd 8; from Scott Francis (PR #3884);jmc2004-08-041-4/+4
| | | | kill a .Pp/-compact combination in a display whilst here;
* errno is not specified to be int, but something from errno.h. ok millert@tedu2004-03-161-3/+2
|
* use socklen_t and better socket() checks. from Andrey Matveevtedu2004-03-0211-29/+29
| | | | -Wall for good measure
* handle failed strdup; reported by jjy2+@pitt.eduderaadt2003-10-011-2/+4
|
* retry for ECONNABORTED tooderaadt2003-09-261-3/+3
|
* use poll to replace the fd_set overflows. some input from fgsch; millert okderaadt2003-08-112-37/+23
|
* add missing includesdavid2003-07-102-4/+6
| | | | ok deraadt@ tedu@
* mostly ansi cleanup; pval okderaadt2003-06-107-44/+34
|
* - section reorderjmc2003-06-101-3/+3
| | | | | | | | | - COMPATIBILITY merge - macro cleanup - kill whitespace at EOL - new sentence, new line ssh pages ok markus@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-0314-95/+39
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* spelling; from jmc at prioris dot mini dot pw dot edu dot pl.fgsch2003-01-091-2/+2
|
* use $ or # before commands in examplesderaadt2002-11-141-2/+2
|
* o Resize nicely when we receive SIGWINCHmillert2002-06-216-16/+78
| | | | o Also change some 0-2 to *_FILENO
* Add a -s option to enable the smooth scrolling in revision 1.10millert2002-06-205-24/+46
| | | | The default behavior remains unchanged.
* undo last commit; deraadt@form2002-06-202-10/+11
|
* scrolling support.form2002-06-202-11/+10
| | | | ok millert@
* KNFderaadt2002-06-021-4/+4
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-26/+26
|
* kill more registersmpech2001-11-192-10/+10
| | | | millert@ ok
* select for a more accurate size; millert okderaadt2001-09-052-8/+13
|
* -Wall cleanup; ok deraadtpvalchev2001-07-172-4/+7
|
* exit(-#) is wrongderaadt2001-03-091-3/+3
|
* Redress PR 1547. Provide an option to pass high characters withouthugh2000-12-314-10/+24
| | | | escaping, and turn it off by default. Checked by angelos@.
* Allow printing characters > 0x80, thus permitting other charsetsangelos2000-12-301-3/+6
| | | | (dem0n@istc.kiev.ua, PR 1547)
* warnx?/errx? paranoia (use "%s" not a bare string unless it is amillert2000-06-301-4/+4
| | | | | | | | | constant). These are not security holes but it is worth fixing them anyway both for robustness and so folks looking for examples in the tree are not misled into doing something potentially dangerous. Furthermore, it is a bad idea to assume that pathnames will not include '%' in them and that error routines don't return strings with '%' in them (especially in light of the possibility of locales).