aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/wall
Commit message (Collapse)AuthorAgeFilesLines
* Remove residual blank line at start of MakefileWarner Losh2024-07-151-1/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* Remove copyright strings ifdef'd outWarner Losh2023-11-271-8/+0
| | | | | | | | | | | We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals. These copyright strings are present in the comments and are largely from CSRG's attempt at adding their copyright to every binary file (which modern interpretations of the license doesn't require). Sponsored by: Netflix
* usr.bin: Remove ancient SCCS tags.Warner Losh2023-11-274-9/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* Remove $FreeBSD$: one-line nroff patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: two-line .c patternWarner Losh2023-08-162-6/+0
| | | | Remove /^#include\s+<sys/cdefs.h>.*$\n\s+__FBSDID\("\$FreeBSD\$"\);\n/
* Remove $FreeBSD$: one-line .c comment patternWarner Losh2023-08-161-1/+0
| | | | Remove /^/[*/]\s*\$FreeBSD\$.*\n/
* Mark usage function as __dead2 in programs where it does not returnAlfonso Gregory2023-07-071-1/+1
| | | | | | | | In most cases, usage does not return, so mark them as __dead2. For the cases where they do return, they have not been marked __dead2. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/735
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-1/+0
|
* Add RFC 5424 syslog message output to syslogd.Ed Schouten2018-04-152-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Move all of the code responsible for transmitting log messages into a separate function, fprintlog_write(). - Instead of manually modifying a list of iovecs, add a structure iovlist with some helper functions. - Alter the F_FORW (UDP message forwarding) case to also use iovecs like the other cases. Use sendmsg() instead of sendto(). - In the case of F_FORW, truncate the message to a size dependent on the address family (AF_INET, AF_INET6), as proposed by RFC 5426. - Move all traditional message formatting into fprintlog_bsd(). Get rid of some of the string copying and snprintf()'ing. Simply emit more iovecs to get the job done. - Increase ttymsg()'s limit of 7 iovecs to 32. Add a definition for this limit, so it can be reused by iovlist. - Add fprintlog_rfc5424() to emit RFC 5424 formatted log entries. - Add a "-O" command line option to enable RFC 5424 formatting. It would have been nicer if we supported "-o rfc5424", just like on NetBSD. Unfortunately, the "-o" flag is already used for a different purpose on FreeBSD. - Don't truncate hostnames in the RFC 5424 case, as suggested by that specific RFC. For people interested in using this, this feature can be enabled by adding the following line to /etc/rc.conf: syslogd_flags="-s -O rfc5424" Differential Revision: https://reviews.freebsd.org/D15011 Notes: svn path=/head/; revision=332510
* Close the fp rather than the fd since we fdopen the fd so we don'tWarner Losh2017-12-281-1/+1
| | | | | | | | | leak the FILE *. CID: 978383 Notes: svn path=/head/; revision=327277
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-202-2/+6
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Renumber copyright clause 4Warner Losh2017-02-283-3/+3
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Revert r286144 leaving the original fix to the buffer overflow.Pedro F. Giffuni2015-08-041-3/+2
| | | | | | | | | | Some developers consider the new code unnecessarily obfuscated. There was also a benign off-by-one. Discussed with: bde, vangyzen, jmallett Notes: svn path=/head/; revision=286268
* Buffer overflow in wall(1).Pedro F. Giffuni2015-08-011-2/+3
| | | | | | | | | | | | | Revert r286102 and apply a cleaner fix. Tested for overflows by FORTIFY_SOURCE GSoC (with clang). Suggested by: bde Reviewed by: Oliver Pinter Tested by: Oliver Pinter MFC after: 3 days Notes: svn path=/head/; revision=286144
* Buffer overflow in wall(1).Pedro F. Giffuni2015-07-311-2/+2
| | | | | | | | | | | | | This affected syslogd, wall and talkd. Detected by FORTIFY_SOURCE GSoC (with clang). Submitted by: Oliver Pinter Differential Revision: https://reviews.freebsd.org/D3254 Reviewed by: delphij, jmg MFC after: 3 days Notes: svn path=/head/; revision=286102
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * Sync from headSimon J. Gerraty2012-11-041-1/+2
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=242545
| * Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+19
| | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | Check the return error of set[e][ug]id. While this can never fail in theEitan Adler2012-10-221-1/+2
|/ | | | | | | | | | | | | current version of FreeBSD, this isn't guarenteed by the API. Custom security modules, or future implementations of the setuid and setgid may fail. Submitted by: Erik Cederstrand Approved by: cperciva MFC after: 3 days Notes: svn path=/head/; revision=241848
* Add multibyte char support.Gleb Smirnoff2012-03-212-53/+35
| | | | | | | | PR: 165429 Submitted by: amdmi3 Notes: svn path=/head/; revision=233269
* Add missing static keywords to wall(1)Ed Schouten2011-11-061-4/+4
| | | | Notes: svn path=/head/; revision=227200
* If one's message is longer than the buffer size, then we reset 'cnt' at theDavid E. O'Brien2011-07-121-1/+2
| | | | | | | wrong point and the actual column # get out of sync across the buffer size. Notes: svn path=/head/; revision=223940
* Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl2010-12-113-12/+0
| | | | | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson Notes: svn path=/head/; revision=216370
* Perform all trivial ports to utmpx for usr.bin/.Ed Schouten2010-01-132-5/+1
| | | | | | | | They were already converted to use libulog, so it's easy to convert them to utmpx. Notes: svn path=/head/; revision=202200
* Build usr.bin/ with WARNS=6 by default.Ed Schouten2010-01-021-2/+0
| | | | | | | Also add some missing $FreeBSD$ to keep svn happy. Notes: svn path=/head/; revision=201386
* Add missing `void' keyword.Ed Schouten2009-12-291-1/+1
| | | | Notes: svn path=/head/; revision=201224
* Revert most part of 200420 as requested, as more review and polish isXin LI2009-12-131-0/+1
| | | | | | | needed. Notes: svn path=/head/; revision=200462
* Remove unneeded header includes from usr.bin/ except contributed code.Xin LI2009-12-111-1/+0
| | | | | | | Tested with: make universe Notes: svn path=/head/; revision=200420
* Let wall(1) use utmpx.Ed Schouten2009-12-052-18/+17
| | | | | | | | | | | Because our implementation guarantees the strings inside struct utmpx to be null terminated, we don't need to copy everything out, which makes the code nicer to read. Also set WARNS to 6 and add $FreeBSD$ to keep SVN silent. Notes: svn path=/head/; revision=200156
* Fix some bugs in wall(1):David Schultz2008-01-151-6/+13
| | | | | | | | | | | | | - Handle wrapping correctly when \r appears in the input, and don't remove the \r from the output. - For lines longer than 79 characters, don't drop every 80th character. - Style: Braces around compound while statement. PR: 114498 Submitted by: Niclas Zeising <niclas.zeising@gmail.com> (earlier version) Notes: svn path=/head/; revision=175346
* In wall and who, check that the utmp entry isn't stalled, as it is done in w.Olivier Houchard2006-02-211-0/+15
| | | | | | | | | | Apparently with the new pts code stalled entries are printed, when they are not with the BSD ptys. Submitted by: Michal Mertl <mime at traveller dot cz> Notes: svn path=/head/; revision=155875
* make wall(1) work with pts.Hajimu UMEMOTO2006-01-271-2/+6
| | | | Notes: svn path=/head/; revision=154898
* Mention in the BUGS section that write and wall bogusly use the sender'sTim J. Robbins2004-07-171-0/+7
| | | | | | | | LC_CTYPE setting instead of the receiver's when determining which characters are printable. Notes: svn path=/head/; revision=132278
* Document incorrect handling of multibyte characters.Tim J. Robbins2004-07-171-1/+5
| | | | Notes: svn path=/head/; revision=132277
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-1/+2
| | | | Notes: svn path=/head/; revision=131491
* Remove "sleeper" nonsense.Tim J. Robbins2003-02-211-4/+1
| | | | Notes: svn path=/head/; revision=111209
* Change iov_base's type from `char *' to the standard `void *'. AllMike Barcroft2002-10-111-1/+1
| | | | | | | | uses of iov_base which assume its type is `char *' (in order to do pointer arithmetic) have been updated to cast iov_base to `char *'. Notes: svn path=/head/; revision=104908
* Note that this appeared at least as early as PWB UNIX.Juli Mallett2002-06-101-2/+1
| | | | | | | Use the literal string 'PWB UNIX', as we still have no .At macro for it. Notes: svn path=/head/; revision=98107
* Use `The .Nm utility'Philippe Charnier2002-04-201-2/+3
| | | | Notes: svn path=/head/; revision=95124
* WARNS=2 fix, use __FBSDID().Mark Murray2001-12-112-14/+15
| | | | | | | Not added to Makefile as WARNS=2 will be made default. Notes: svn path=/head/; revision=87675
* - Move the prototype of ttymsg() into ttymsg.h. syslogd and talkdDima Dorfman2001-09-093-7/+15
| | | | | | | | | | | | | also use this, and they shouldn't have to have their own prototypes. - Silence warnings about constness and signedness in ttymsg(). This includes changing the return value to a `const char *', and changing the types of `left' and `wret' (both byte counts) to ssize_t. Reviewed by: bde Notes: svn path=/head/; revision=83242
* Make ``wall -g'' really DTRT.Ruslan Ermilov2001-09-051-8/+11
| | | | | | | Reviewed by: imp, markm Notes: svn path=/head/; revision=83082
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79535