summaryrefslogtreecommitdiffstats
path: root/sbin/dmesg
Commit message (Collapse)AuthorAgeFilesLines
* MFC r306599:sevan2016-10-081-2/+2
| | | | | | | | | | dmesg(8) first appeared in 3BSD. http://minnie.tuhs.org/cgi-bin/utree.pl?file=3BSD/usr/man/man1/dmesg.1m PR: 212443 Approved by: bcr (mentor) Obtained from: TUHS Differential Revision: https://reviews.freebsd.org/D8105
* Explicitly add more files to the 'runtime' package.gjb2016-02-091-0/+1
| | | | Sponsored by: The FreeBSD Foundation
* Update dependencies after r291406 added libelf to libkvm.bdrewery2015-12-011-0/+1
| | | | | | | | Unfortunately filemon/meta mode tracks all indirect dependencies here since ld(1) is reading libelf when linking in libkvm. Churn would be reduced if this was able to be limited to direct dependencies. Sponsored by: EMC / Isilon Storage Division
* Add META_MODE support.sjg2015-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
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-272-4/+10
| |\ | |/ |/|
| * Updated dependenciessjg2014-05-161-1/+0
| |
| * Updated dependenciessjg2014-05-101-0/+2
| |
| * Merge from headsjg2013-09-052-7/+18
| |\
| * | Updated dependenciessjg2013-03-111-0/+1
| | |
| * | Updated dependenciessjg2013-02-161-2/+0
| | |
| * | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+20
| | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | dmesg: accommodate message buffer growth between the sysctl callsvangyzen2015-04-201-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allocate 12.5% extra space to avoid ENOMEM when the message buffer is growing steadily. Reported by: Steve Wahl <steve_wahl@dell.com> (and tested) Approved by: kib (mentor) Obtained from: Dell Inc. MFC after: 1 week
* | | Fix minor fallout from sysctl strings being nulterminated now. The dmesgian2015-03-161-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | code can read the buffer via sysctl or from a core file. In the core file case there will be no nulterm, and the code copes with that, but now in the sysctl case there is a nulterm (there didn't used to be). The least disruptive way to restore the old behavior (and eliminate a spurious '\000' at the end of the output) is to remove the nulterm (by decrementing the buffer length) in the sysctl case.
* | | Convert sbin/ to LIBADDbapt2014-11-251-2/+1
| |/ |/| | | | | Reduce overlinking
* | Move the check whether the clear flag is set. This has 2 advantagesflo2013-06-111-4/+3
| | | | | | | | | | | | | | | | | | | | | | - When operating on a core file (-M) and -c is specified we don't clear the message buffer of the running system. - If we don't have permission to clear the buffer print the error message only. That's what Linux does in this case, where this feature was ported from, and it ensures that the error message doesn't get lost in the noise. Discussed with: antoine, cognet Approved by: cognet
* | Bump .Dd for recent content change.eadler2013-05-101-1/+1
| | | | | | | | Reported by: delphij
* | Add support for 'dmesg -c' which clears the dmesg buffer after it haseadler2013-05-102-6/+18
|/ | | | | | | | | | | been printed. This provides compatibility with other *nix systems (including Linux). While here use stdbool booleans for 'all'. PR: bin/178295 Submitted by: Levent Serinol <lserinol@gmail.com> Reviewed by: will
* Add missing static keywords for global variables to tools in sbin/.ed2011-11-041-4/+2
| | | | | | These tools declare global variables without using the static keyword, even though their use is limited to a single C-file, or without placing an extern declaration of them in the proper header file.
* Switch the default WARNS level for sbin/ to 6.ru2009-10-191-2/+0
| | | | Submitted by: Ulrich Spörlein
* Avoid moving onto a new line while testing if there is a syslog prioritydwmalone2006-02-271-1/+2
| | | | | | | | | in the buffer. This isn't exactly the patch that Stephen submitted, but is based on one of his suggestions. PR: 93841 Submitted by: Stephen Montgomery-Smith <stephen@math.missouri.edu> MFC after: 2 weeks
* WARNS=6 cleanup:delphij2005-01-172-4/+9
| | | | | | | - signed/unsigned conform. - Better initialization of nlist[]. I think we should have something like NLIST_NULL instead of the current (ugly) form...
* Print a usage message if a non-option is specified.schweikh2004-10-131-1/+2
| | | | MFC after: 3 weeks
* Don't add integers to void pointers.stefanf2004-10-031-2/+4
|
* Remove advertising clause from University of California Regent's license,markm2004-04-092-8/+0
| | | | | | per letter dated July 22, 1999. Approved by: core, imp
* Not too much point specifying -N but not specifying -M.ru2004-03-262-14/+12
|
* Further simplify the code for printing the message buffer:iedowse2004-02-081-33/+36
| | | | | | | | | | - Ensure that the buffer ends with "\n\0" to avoid special cases and allow the use of strtol(). - Use strvisx() on each complete line instead of character by character. Submitted by: bde MFC after: 1 week
* Don't print the oldest line in the message buffer if the buffer isiedowse2004-02-051-51/+54
| | | | | | | | | | full, since that line is almost always incomplete. Make the parsing of <%d> lines more strict. Also simplify the logic a little: - Start off by making the buffer linear so that we don't have to deal with it wrapping around (suggested by bde). - Process line by line rather than byte at a time.
* Replace the code for reading and writing the kernel message bufferiedowse2003-06-221-3/+1
| | | | | | | | | | | | | | | | | with a new implementation that has a mostly reentrant "addchar" routine, supports multiple message buffers in the kernel, and hides the implementation details from callers. The new code uses a kind of sequence number to represend the current read and write positions in the buffer. This approach (suggested mainly by bde) permits the read and write pointers to be maintained separately, which reduces the number of atomic operations that are required. The "mostly reentrant" above refers to the way that while it is now always safe to have any number of concurrent writers, readers could see the message buffer after a writer has advanced the pointers but before it has witten the new character. Discussed on: freebsd-arch
* bufpos is used in size_t contexts, so make it one.obrien2003-05-021-6/+5
|
* These are WARNS=2 clean, try to keep them that way.johan2003-02-231-1/+0
|
* s/filesystem/file system/g as discussed on -developerstrhodes2002-08-211-1/+1
|
* Include <nlist.h> for nlist interfaces instead of depending on namespacebde2002-08-181-0/+1
| | | | pollution in <kvm.h>.
* The .Nm utilitycharnier2002-07-061-3/+4
|
* o Remove __Pimp2002-03-191-5/+3
| | | | | o Use ANSI function definitions o mark usage() as __dead2
* Default to WARNS=2.obrien2001-12-041-0/+1
| | | | | | Binary builds that cannot handle this must explicitly set WARNS=0. Reviewed by: mike
* mdoc(7) police: compute the exact tag width.ru2001-08-101-1/+1
|
* Add mention of /var/run/dmesg.boot.sheldonh2001-08-081-0/+7
| | | | | Yes, this isn't really the right place for it. No, it really can't remain undocumented.
* add -a to usage()billf2001-07-141-1/+1
| | | | | Submitted by: Ashley Penney <ashp@unloved.org> MFC after: 3 days
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* Update the dmesg man page to reflect the recent changes to dmesg.tmm2001-07-051-8/+14
| | | | Reviewed by: ru
* Use the kern.msgbuf sysctl to get the message buffer on a runningtmm2001-07-032-32/+44
| | | | kernel, and remove setgid kmem, which is not needed any more.
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-261-0/+1
| | | | - MAN[1-9] -> MAN.
* Set the default manual section for sbin/ to 8.ru2001-03-201-1/+1
|
* Backout -a restriction hack.ru2001-02-262-7/+1
| | | | Requested by: rwatson
* Restrict -a to root only.ru2001-02-242-1/+7
| | | | PR: bin/25337
* Fix hard sentence break introduced in previous commit.sheldonh2000-12-201-2/+2
|
* Add a -a option to show the entire message buffer.phk2000-12-172-5/+26
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-1/+1
|
* Remove obsolete /dev/drum referencesjedgar2000-10-291-1/+0
| | | | Reviewed by: alex, asmodai, billf
OpenPOWER on IntegriCloud