aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/msgs
Commit message (Collapse)AuthorAgeFilesLines
* Revert r330897:Eitan Adler2018-03-292-5/+1
| | | | | | | | | | | | | | | | | | | | This was intended to be a non-functional change. It wasn't. The commit message was thus wrong. In addition it broke arm, and merged crypto related code. Revert with prejudice. This revert skips files touched in r316370 since that commit was since MFCed. This revert also skips files that require $FreeBSD$ property changes. Thank you to those who helped me get out of this mess including but not limited to gonzo, kevans, rgrimes. Requested by: gjb (re) Notes: svn path=/stable/11/; revision=331722
* Partial merge of the SPDX changesEitan Adler2018-03-142-1/+5
| | | | | | | | | | These changes are incomplete but are making it difficult to determine what other changes can/should be merged. No objections from: pfg Notes: svn path=/stable/11/; revision=330897
* Use strlcpy() instead of strncpy() when copying date and subjDon Lewis2016-05-121-3/+3
| | | | | | | | | | | | to ensure that these are properly NUL terminated since they are passed to printf(). Reported by: Coverity CID: 974770 MFH: 1 week Notes: svn path=/head/; revision=299525
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Merge sync of headSimon J. Gerraty2015-05-271-2/+2
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge head from 7/28Simon J. Gerraty2014-08-192-3/+2
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | 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-41/+42
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | Convert to usr.bin/ to LIBADDBaptiste Daroussin2014-11-251-2/+2
| |_|/ |/| | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275042
* | | Replace all uses of libncurses and libtermcap with their wide characterBrooks Davis2014-07-171-2/+2
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | variants. This allows usable file system images (i.e. those with both a shell and an editor) to be created with only one copy of the curses library. Exp-run: antoine PR: 189842 Discussed with: bapt Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=268804
* | 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
* | More -Wmissing-variable-declarations fixes.Ed Schouten2012-10-191-40/+40
|/ | | | | | | | | | | | | | | | | | | In addition to adding `static' where possible: - bin/date: Move `retval' into extern.h to make it visible to date.c. - bin/ed: Move globally used variables into ed.h. - sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings. - usr.bin/calendar: Remove unneeded variables. - usr.bin/chat: Make `line' local instead of global. - usr.bin/elfdump: Comment out unneeded function. - usr.bin/rlogin: Use _Noreturn instead of __dead2. - usr.bin/tset: Pull `Ospeed' into extern.h. - usr.sbin/mfiutil: Put global variables in mfiutil.h. - usr.sbin/pkg: Remove unused `os_corres'. - usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'. Notes: svn path=/head/; revision=241737
* Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl2010-12-113-12/+2
| | | | | | | | | | | | 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
* Build usr.bin/ with WARNS=6 by default.Ed Schouten2010-01-021-1/+0
| | | | | | | Also add some missing $FreeBSD$ to keep svn happy. Notes: svn path=/head/; revision=201386
* Never use getenv("HOME") without checking for NULL and non-zeroKevin Lo2007-10-301-2/+7
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=173169
* Cleanup:Xin LI2005-01-172-17/+18
| | | | | | | | - Change signedness of nxtfld() to make msgs(1) WARNS=6 clean - Add several static's Notes: svn path=/head/; revision=140389
* Deal with double whitespace.Ruslan Ermilov2004-07-031-2/+2
| | | | Notes: svn path=/head/; revision=131507
* Fixed misspellings of '\0' as NULL.Bruce Evans2004-03-111-4/+4
| | | | Notes: svn path=/head/; revision=126838
* Fix singular/plural confusion in a printf.Mike Barcroft2003-02-061-1/+2
| | | | | | | | | PR: 47953 Submitted by: Volker Stolz <stolz@i2.informatik.rwth-aachen.de> MFC after: 3 days Notes: svn path=/head/; revision=110478
* ANSIify function definitions.David Malone2002-09-041-21/+12
| | | | | | | | | | | | Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings. Reviewed by: md5 Notes: svn path=/head/; revision=102944
* Remove local prototypes for main().Juli Mallett2002-08-191-1/+0
| | | | Notes: svn path=/head/; revision=102084
* mdoc style: break up sentencesGiorgos Keramidas2002-07-151-3/+6
| | | | Notes: svn path=/head/; revision=100041
* mdoc(7) police: removed unnecessary .Ns.Ruslan Ermilov2002-05-301-1/+1
| | | | Notes: svn path=/head/; revision=97539
* Use `The .Nm utility'Philippe Charnier2002-04-201-8/+12
| | | | Notes: svn path=/head/; revision=95124
* Fixed some style bugs:Bruce Evans2002-04-181-3/+4
| | | | | | | | | | - ifdefs around vendor sccsid were left reversed after switching to __FBSDID(). - vertical whitespace after some of the non-FALLTHROUGH cases was lost. - too much vertical whitespace before prototypes. Notes: svn path=/head/; revision=94992
* Backed out the style bugs in rev.1.17:Bruce Evans2002-04-181-41/+41
| | | | | | | | | | | | | - don't use unusual indentation for 39 lines of declarations when only 2 of the lines benefit from it. - don't use __DECONST(). This was the one use of it in the tree, and it was just wrong. It was used to hide the warning about tgetnum() having the wrong prototype (missing a `const') due to libncurses being misconfigured. libncurses has been fixed, so the original code now compiles cleanly with WARNS=4. Notes: svn path=/head/; revision=94991
* Document that only superuser can use -c option. Add FBSDID. Make use of uid_tPhilippe Charnier2002-04-122-13/+19
| | | | | | | | to silent lint. fprintf -> err conversion. Add some FALLTHROUGH and NOTREACHED comment to silent lint. Notes: svn path=/head/; revision=94504
* remove __PWarner Losh2002-03-221-10/+10
| | | | Notes: svn path=/head/; revision=92921
* Remove leaf node WARNS?=2 (that mainly I added). This shouldMark Murray2002-02-081-1/+0
| | | | | | | help the GCC3 transition and CURRENT in general. Notes: svn path=/head/; revision=90415
* File positions are off_t nowdays, not long, so:Andrey A. Chernov2001-09-031-13/+13
| | | | | | | | | | | | | | | | | fseek -> fseeko ftell -> ftello fseek(x, 0L, 0) -> rewind(x) NOTE: that fseek/ftell not works for >long offsets per POSIX: [EOVERFLOW] For fseek( ), the resulting file offset would be a value which cannot be represented correctly in an object of type long. [EOVERFLOW] For ftell ( ), the current file offset cannot be represented correctly in an object of type long. Notes: svn path=/head/; revision=82846
* Remove whitespace at EOL.Dima Dorfman2001-07-151-1/+1
| | | | Notes: svn path=/head/; revision=79755
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79535
* Fix WARNS=2 warnings on alpha and i386 and clamp it downKris Kennaway2001-05-262-43/+45
| | | | Notes: svn path=/head/; revision=77245
* mdoc(7) police: split punctuation characters + misc fixes.Ruslan Ermilov2001-02-011-1/+1
| | | | Notes: svn path=/head/; revision=71895
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-3/+3
| | | | Notes: svn path=/head/; revision=68963
* Complete migration of aliases file to /etc/mail/aliases.Gregory Neil Shapiro2000-08-131-1/+1
| | | | | | | | The maintainers of share/examples/diskless/README.TEMPLATING and mergemaster have been contacted so those may be updated as well. Notes: svn path=/head/; revision=64618
* MFS: Don't allow printf directives in PAGERKris Kennaway2000-07-071-1/+1
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=62726
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-011-1/+2
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57670
* $Id$ -> $FreeBSD$Peter Wemm1999-08-283-3/+3
| | | | Notes: svn path=/head/; revision=50477
* Apply suggested patch- seems reasonable.Matt Jacob1999-07-242-5/+29
| | | | | | | | PR: 12020 Submitted by: Matthew D. Fuller <fullermd@futuresouth.com> Notes: svn path=/head/; revision=49061
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-121-0/+1
| | | | | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde Notes: svn path=/head/; revision=48792
* Revert "POSIX saved uids change". seteuid(2) is not POSIX, andGuy Helmer1998-07-141-3/+2
| | | | | | | | | FreeBSD does not have _POSIX_SAVED_IDS enabled. Thanks to Warner Losh and Ollivier Robert for pointing this out, and Bruce Evans for explaining the role of _POSIX_SAVED_IDS. Notes: svn path=/head/; revision=37645
* Security and minor functionality changes based on OpenBSD msgs.c:Guy Helmer1998-07-091-14/+30
| | | | | | | | | tmp file (mktemp changed to mkstemp), saved POSIX uids, buffer overflow, and use PAGER environment variable if set. Obtained from: OpenBSD Notes: svn path=/head/; revision=37534
* Previous fix didn't make it past the Bruce filter. Clean upJordan K. Hubbard1998-07-071-5/+2
| | | | | | | non-KNF indentation and use err() properly. Notes: svn path=/head/; revision=37478
* msgs -p (and maybe other flags, too) gives misleading error messages,Jordan K. Hubbard1998-07-071-1/+7
| | | | | | | | | | | | | especially on a new install, where /var/msgs/bounds doesn't exist. I moved my bounds file out of the way to create this before and after on a quick 'n' dirty hack, which is probably the 23rd best way to do it, but it works: PR: 6963 Submitted by: Matthew Fuller <fullermd@mortis.futuresouth.com> Notes: svn path=/head/; revision=37476