summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* opt_diagnostic.h isn't needed anymore.jhay1998-02-064-29/+9
|
* fsdb and fsck use the ffs code which needs opt_diagnostic.h.jhay1998-02-054-9/+29
|
* Fixed the previous fix. The original path was annulled when itbde1998-02-031-3/+4
| | | | | was a directory, so the error message for attempting to unmount an unmounted-on directory was more broken than before.
* Don't define KERNEL before including <nfs/nfs.h>. It is no longerbde1998-02-011-3/+1
| | | | | necessary. This fixes warnings about missing forward declarations for structs in kernel-only prototypes.
* Spell 'implements' correctly.steve1998-02-011-2/+2
| | | | | PR: 5614 Submitted by: Dag-Erling Coidan Smorgrav <dag-erli@ifi.uio.no>
* Revert last commit and SEE ALSO pstat(8) instead.steve1998-02-011-2/+2
| | | | Submitted by: Bruce Evans
* Retire dumplfs, mount_lfs and newlfsphk1998-01-3016-2674/+0
|
* Retire dumplfs mount_lfs newlfsphk1998-01-301-3/+3
|
* Make it clear that aliasing is done on the public interface, notbrian1998-01-291-2/+21
| | | | the private one.
* SEE ALSO swapinfo(8).steve1998-01-251-1/+2
| | | | | PR: 5447 Submitted by: Craig Leres <leres@ee.lbl.gov>
* signal() returns an pointer, so must be cast to long, not int beforejb1998-01-251-5/+5
| | | | comparing < 0.
* read() and write() return ssize_t not int, so the first arg to atomic()jb1998-01-251-2/+3
| | | | should be ssize_t too.
* Converted to Lite2 mount interface - use vfc_typenum from thebde1998-01-201-9/+3
| | | | | already looked up vfsconf struct for nfs instead of MOUNT_NFS. Removed related FreeBSD ifdefs.
* Removed definition of _NEW_VFSCONF. The new vfsconf interface is nowbde1998-01-2024-34/+10
| | | | the default.
* mount(8) only uses realpath() for the mountpoint, so don't look up thebde1998-01-191-6/+6
| | | | | | | | | | | | real path here for the mount device (or path). This fixes difficulties unmounting devices that are actually symlinks to real devices. Also, print the original path instead of the real path in early error messages. nfs path handling and later error messages may still be wrong, probably only in silly cases where the original path is both a symlink and a remote path. PR: 5208
* Don't create superblocks with size larger than SBSIZE (8192). Thebde1998-01-191-0/+4
| | | | | | | size was rounded up to a multiple of the fragment size, but this gave invalid file systems when the fragment size was > SBSIZE (fsck aborts early on them). Now a fragment size of 32768 seems to work (too-simple tests with fsck and iozone worked).
* Guard against a block size of 0 in the label. When the firstbde1998-01-193-0/+15
| | | | | | | | | | | | | | | | | superblock is invalid, fsck looks at the label to help guess where the next superblock should be. If the partition type is 4.2BSD, fsck assumed that the block size was valid and divided by it, so it dumped core if the size was 0. Initialization of the label was broken almost 3 years ago in rev.1.9 of newfs/newfs.c. Newfs does not change the label at all, so there is no problem (except the breakage of the automatic search for backup superblocks) unless something else sets the partition type to 4.2BSD. However, it is too easy to set partition types to 4.2.BSD by copying an old label or by using a disktab entry to create the label. PR: 2537
* Removed most unused includes of <net/if_var.h> outside the kernel.bde1998-01-161-2/+1
|
* Fixed some spelling errors.bde1998-01-161-2/+2
|
* Use err(3). Change exit(-1). Remove unused #include.charnier1998-01-141-35/+27
|
* Use err(3). Change exit(-1), and make exit values equal to 1 when errors.charnier1998-01-121-84/+52
| | | | Remove unused #includes.
* change s_port to ntohs(s_port) for printf in DEBUG.darrenr1998-01-112-4/+4
|
* Pass an actual empty environment to execle() as per POSIX rather thanalex1998-01-101-10/+28
| | | | | | | | | | | rely on undocumented behavior. The following fixes were obtained from OpenBSD: o -Wall fixes to tlist array initialization and assignment used as truth value. o Use a restricted environment. o Improved error message when shutdown fails to exec reboot or halt.
* Added environment parameter to execle calls.alex1998-01-081-3/+3
| | | | Obtained from: NetBSD PR2737 (augustss@cs.chalmers.se) via OpenBSD
* Bump up packet and byte counters to 64-bit unsigned ints. As aalex1998-01-081-14/+32
| | | | | | | | | | | | | consequence, ipfw's list command now adjusts its output at runtime based on the largest packet/byte counter values. NOTE: o The ipfw struct has changed requiring a recompile of both kernel and userland ipfw utility. o This probably should not be brought into 2.2. PR: 3738
* Correct a comment from my last commit.alex1998-01-081-2/+2
|
* Allow 'shutdown datespec' to work into the next century. Handle datesalex1998-01-081-1/+12
| | | | | in the 22nd century and beyond even though it's irrelevant with a 32-bit time_t which expires in the year 2038.
* Format mismatch in error message.alex1998-01-081-2/+2
| | | | Submitted by: bde
* Remove more unused #includes.charnier1998-01-071-3/+1
| | | | Obtained from: Bruce.
* Support listing/showing specific rules supplied on the command line.alex1998-01-072-29/+74
| | | | Use error codes from <sysexits.h>.
* Display a better error message and use a non-zero exit code whenalex1998-01-061-5/+16
| | | | | | | zero/delete operations fail. PR: 4231 Reviewed by: Archie Cobbs <archie@whistle.com>
* Add rcsid. Remove uneeded #include. Use fprintf() in usage() instead of err(3)charnier1998-01-051-8/+11
| | | | to make it print: usage: progname ...
* Sync. usage string and synopsis. Add rcsid.charnier1998-01-054-26/+27
|
* Add -v in usage string. Add rcsid.charnier1998-01-052-12/+12
|
* The default dumplevel is 0.steve1998-01-031-2/+2
| | | | | PR: 5413 Submitted by: NOKUBI Hirotaka <hnokubi@yyy.or.jp>
* Correct -r and -f descriptions.brian1998-01-031-9/+5
| | | | Suggested by: joerg
* Removed /etc/ld.so.conf reference from FILES section (people getalex1998-01-011-3/+1
| | | | | | | confused when they can't find it), but leave the reference to it as being a standard filename (which doesn't imply that it exists). Discussed with: jkh
* Properly drop group privs to open file names specified by the user.imp1997-12-301-1/+15
| | | | | Submitted by: Niall Smart rotel@indigo.ie Obtained from: OpenBSD (rev 1.7 and 1.8)
* Added copyright (taken from natd.c).alex1997-12-301-1/+9
| | | | Approved by: Ari Suutari <ari@suutari.iki.fi>
* Add a "scsi -f /dev/ssc -p" example and xref ssc(4).brian1997-12-291-9/+14
| | | | Make the other examples prettier.
* Mention that the -r flag reprobes the entire bus on which the givenbrian1997-12-291-14/+25
| | | | | device resides and that the -f flag must specify the `whole slice' if it's a disk.
* Fix a few style nits from previous commit.steve1997-12-291-11/+10
| | | | Submitted by: Bruce Evans <bde@zeta.org.au>
* Add missing .Ar.charnier1997-12-291-1/+1
|
* Get md5(1) to use getopt(3). Also some minor -Wall cleaningsteve1997-12-292-33/+50
| | | | | | | while here. PR: 5387 Submitted by: Matthew Hunt <mph@pobox.com>
* Typo/$Id$ police.alex1997-12-272-1/+6
|
* style(9) correctionsimp1997-12-264-8/+12
| | | | Submitted by: bde
* Put the return value of getopt into an int, not a char.alex1997-12-261-5/+4
|
* Be extra paranoid about trusting the length of the data returned byimp1997-12-241-1/+1
| | | | | gethostbyaddr. Submitted by: Julian Assange
* Two fixes:imp1997-12-241-6/+8
| | | | | 1) Correct strncpy usage 2) gethostbyaddr paranoia from Julian Assange
* Minor style nit noticed by bde.imp1997-12-241-2/+2
|
OpenPOWER on IntegriCloud