aboutsummaryrefslogtreecommitdiff
path: root/sbin/savecore
Commit message (Collapse)AuthorAgeFilesLines
* Correct use of .Nm, add rcsid, remove unused #include.Philippe Charnier1998-07-282-12/+15
| | | | Notes: svn path=/head/; revision=37909
* Fixed printf format errors.Bruce Evans1998-06-281-1/+1
| | | | Notes: svn path=/head/; revision=37241
* Pickup _time_second instead of _timePoul-Henning Kamp1998-03-301-2/+2
| | | | Notes: svn path=/head/; revision=34963
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-291-1/+1
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24359
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22990
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Fix my yesterday's brain-o: don't account for the kilobytes twice.Joerg Wunsch1996-10-141-1/+1
| | | | Notes: svn path=/head/; revision=18934
* Yikes! Originally, i intended to apply the patch from PR # 1322,Joerg Wunsch1996-10-131-5/+6
| | | | | | | | | | | | | | | | but Bill has beaten me on this. ;-) However, he missed the part to compute the kernelsize in kilobytes, so the minfree consideration was now overcautious. (I've also changed the return type of dump_size() to void since int was useless.) Being here, the fact that `vmcore' was written world-readable was just a plain security hole: everybody who was able to crash a kernel could later read any confidential information out of it at his will. Create it with umask 077 instead. Notes: svn path=/head/; revision=18916
* Make the savecore command work like the man page says:Bill Fenner1996-10-132-10/+21
| | | | | | | | | | | | | | | | - make minfree work by getting the dump size before checking to see if the dump will fit on the filesystem - also fail to dump if no minfree is specified but there are not enough free blocks. Fix a typo in the man page. Fixes PR bin/1322 Submitted by: "Philippe C." <charnier@lirmm.fr> Notes: svn path=/head/; revision=18914
* Cast the partial result of an expression to an off_t to fix an overflowDavid Greenman1996-09-051-1/+1
| | | | | | | | | in the calculation of free disk space. Fixes PR#1569. Submitted by: Tor Egge <Tor.Egge@idt.ntnu.no> Notes: svn path=/head/; revision=18042
* a header file for zopen.3Wolfram Schneider1996-08-202-1/+5
| | | | | | | Pointed out by: Philippe Charnier <charnier@lirmm.fr> Notes: svn path=/head/; revision=17717
* NBPG -> getpagesize()Poul-Henning Kamp1996-05-021-1/+1
| | | | Notes: svn path=/head/; revision=15530
* Add #include <vm/pmap.h> in order to make savecore compile again after thePeter Wemm1995-12-131-0/+1
| | | | | | | last round of <vm/*.h> include file changes. Notes: svn path=/head/; revision=12806
* Delete bogus referneces to timezone code internal header file `tzfile.h',Garrett Wollman1995-08-071-2/+1
| | | | | | | which is no longer bogusly installed in /usr/include. Notes: svn path=/head/; revision=9987
* Remove a newline from the output of savecore(8), so the bogus numberJoerg Wunsch1995-07-301-1/+0
| | | | | | | | | | | | 1024 that used to remain on a line of its own after savecore completed its job will be overwritten later in the /etc/rc process. Reviewed by: Submitted by: graichen@sirius.physik.fu-berlin.de (Thomas Graichen) Obtained from: Notes: svn path=/head/; revision=9795
* Remove a bogus fclose. Normally the "w" stream for /var/crash/bounds wasBruce Evans1995-07-111-1/+0
| | | | | | | | | fclosed twice and this didn't seem to cause any problems, but when /var/crash was on an an unwritable nfs-mounted partition, fclose(NULL) caused a core dump. Notes: svn path=/head/; revision=9481
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-3/+3
| | | | Notes: svn path=/head/; revision=8871
* The -N option takes one argument, hence the getopt control stringJoerg Wunsch1995-01-021-1/+1
| | | | | | | | needs to have a colon for it. Looks like nobody has tested this so far. Notes: svn path=/head/; revision=5344
* Get rid of _PATH_UNIX completely; use getbootfile(3) instead.Garrett Wollman1994-09-242-21/+19
| | | | | | | | | | DANGER WILL ROBINSON! _PATH_UNIX is currently defined as the literal string "don't use this". I am of two minds about this myself, but wanted to get something into the tree as quickly as possible. Notes: svn path=/head/; revision=3041
* Converted 'vmunix' to 'kernel'.David Greenman1994-08-052-22/+22
| | | | Notes: svn path=/head/; revision=1856
* Convert to our man installation style. Also fixed long-standing bugGarrett Wollman1994-08-051-1/+1
| | | | | | | | in `fastboot'/`fasthalt' in which the interpreter would hang around after `reboot' or `halt' is run, causing an irritating ``Killed'' message. Notes: svn path=/head/; revision=1855
* I know better than to edit files on freefall, next time take a patch file.Rodney W. Grimes1994-05-281-1/+1
| | | | | | | Change vm_paramh. to vm_param.h Notes: svn path=/head/; revision=1618
* Must now include vm/vm.h and vm/vm_param.h due to the way we define KERNBASE.Rodney W. Grimes1994-05-281-0/+3
| | | | | | | Reviewed by: David Greenman Notes: svn path=/head/; revision=1599
* BSD 4.4 Lite sbin SourcesRodney W. Grimes1994-05-263-0/+781
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin. Notes: svn path=/head/; revision=1558