summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Only build the bsnmpd netgraph module if MK_NETGRAPH_SUPPORT is set.bms2008-10-021-1/+4
|
* - Improve error message given on g_providername call failure.lulf2008-09-301-2/+2
| | | | | | - While there, make error messages consistent with the rest. Approved by: kib (mentor)
* - Build jexec (1) and slstat.antoine2008-09-271-6/+6
| | | | | - style.Makefile Noticed by: Marius (1)
* The previous commit re-introduced sade on platformsmarcel2008-09-261-0/+2
| | | | | where it doesn't work. Re-limit sade to amd64 and i386.
* Add a flag, -T, that tells syslogd to always replace the timestamp ondwmalone2008-09-252-7/+24
| | | | | | | | | | messages from the network. We already replace malformatted timestamps and this option lets us replace timestamps that are correctly formatted but wrong. PR: 120891 Submitted by: Thomas Vogt <thomas@bsdunix.ch> MFC after: 1 week
* Remove spurious duplicated defination of sock.delphij2008-09-241-2/+0
|
* Introduce a hooks layer for the MPSAFE TTY layer.ed2008-09-222-0/+3
| | | | | | | | | | | | | | | | | | | | One of the features that prevented us from fixing some of the TTY consumers to work once again, was an interface that allowed consumers to do the following: - `Sniff' incoming data, which is used by the snp(4) driver. - Take direct control of the input and output paths of a TTY, which is used by ng_tty(4), ppp(4), sl(4), etc. There's no practical advantage in committing a hooks layer without having any consumers. In P4 there is a preliminary port of snp(4) and thompsa@ is busy porting ng_tty(4) to this interface. I already want to have it in the tree, because this may stimulate others to work on the remaining modules. Discussed with: thompsa Obtained from: //depot/projects/mpsafetty/...
* add new build knobs and jigger some existing controls to improvesam2008-09-211-61/+181
| | | | | | | | control over the result of buildworld and installworld; this especially helps packaging systems such as nanobsd Reviewed by: various (posted to arch) MFC after: 1 month
* crunchgen doesn't work yet on mips. So sysinstall can't be built there.imp2008-09-191-1/+1
| | | | omit it like we do for arm.
* Bring the usage message in sync with the manual page.jkoshy2008-09-191-1/+2
|
* Add an example illustrating the use sleep(1) for performing timedjkoshy2008-09-191-2/+7
| | | | measurements.
* - remove superfluous worddanger2008-09-151-2/+2
| | | | | | PR: docs/127401 Submitted by: Mick Charles Beaver <mick@cs.wisc.edu> MFC after: 1 week
* Don't rely on private RPC data structures when there is a perfectly gooddfr2008-09-151-22/+4
| | | | public API.
* Make `quot -a' work when we've got slashes in the device name.ed2008-09-141-10/+2
| | | | | | | | | | | | | A very long time ago we had raw device nodes. quot(8) was supposed to use these when running `quot -a'. For some reason the code got once changed to strip the device name until it reaches the last slash. This is not reliable, because this means /dev/mirror/foo will be stripped to /dev/foo. This bug also exists on RELENG_7 and RELENG_6, but I think I'll just merge them back somewhere after the upcoming releases. There's no rush. MFC after: 2 months
* Make mlxcontrol work with more than one system drive:sepotvin2008-09-122-4/+6
| | | | | | | | | | | | | - When searching for the next system drive, return the next one instead of always returning the first one. - Plug fd lead and make sure that the MLX_NEXT_CHILD ioctl is called on the controller fd, not the disk's one. While there, fix a cut-n-pase error in a warning. Reviewed by: jhb Approved by: kan (mentor) MFC after: 1 month
* Sweep this man page a bit:danger2008-09-111-15/+25
| | | | | | | | - new sentence = new line - use .Dq macro to quote words - some minor rewording MFC after: 2 weeks
* Makefile.inc already defines OPENSSL if crypto is available/wanted.roberto2008-09-111-1/+1
| | | | | | PR: bin/127296 Submitted by: oliver MFC after: 3 days
* Fix the device name spacing.adrian2008-09-111-5/+5
| | | | | | | | The old logic padded the device name out but assumed the unit number was one digit long; this fails for things like SATA devices which (for me) begin at ad10. Assemble the full device name in a temporary buffer and then calcluate padding based on that string.
* Beginning of overhaul of fwcontrol:sbruno2008-09-102-125/+384
| | | | | | | | | | | | | | | | | | - Documentation of send_phy_config() - cleanup of malloc's() and added error checking throughout - new capability to iterate over multiple firewire buses - update usage() display - cleanup command line parsing to allow out of order switches - cleanup command line parsing to allow multiple switches per invocation - cleanup grammar of man page a bit - add some ranges to the man page to indicate what values are valid Since fwcontrol's code is the same across 6/7/head this can be applied to all branches after the MFC period. Reviewed by: Dieter freebsd@sopwith.solgatos.com Approved by: mentor Scott scottl@samsco.org MFC after: 60 days
* - Fix regression with GETMEMkmacy2008-09-101-7/+4
| | | | | | | | - Remove gratuitous bswap macros - check for rev 3 with t3b Obtained from: Chelsio Inc. MFC after: 3 days
* Use %d to print numfibsmatteo2008-09-071-1/+1
| | | | MFC after: 1 day
* - Make use of the new and g_device_path utility function in libgeom to avoidlulf2008-09-071-33/+23
| | | | | | | | | duplication of code in fdisk and boot0cfg. Also make use of g_providername to fix an issue with fdisk and boot0cfg not using the correct provider when writing the MBR. Reviewed by: phk Approved by: pjd (mentor)
* Introduce crunchide to the ELF e_machine MIPS values.obrien2008-09-031-0/+8
|
* style nit: indent continuation lines correctly, use style(9) styleimp2008-09-031-15/+16
| | | | if() statement.
* minor style(9) police: sort getopt options alphabetically. Theimp2008-09-031-9/+9
| | | | | semi-logical segregation of 'b' and 'h' doesn't seem to make sense and makes it harder to read.
* Add support for t3c to cxgbtoolkmacy2008-09-021-0/+3119
| | | | Obtained from: Chelsio Inc.
* Allow again compilation w/o GNU readline. There are conditionals inroberto2008-09-021-3/+3
| | | | | | {ntpdc,ntpq}/Makefile. Submitted by: Ben Kelly <bkelly@vadev.org>
* Remove extraneous NULL pointer check - the pointer is guaranteed to be non-NULL.obrien2008-09-011-2/+1
|
* use bigger local variable to calculate free spaceticso2008-09-011-1/+1
| | | | int overflows at 1T free space
* Bring cxgbtool up to date with version 1.5kmacy2008-09-014-670/+280
| | | | | Obtained from: Chelsio Inc. MFC after: 3 days
* Use the correct systime.c file instead of the "simulation mode" one.roberto2008-08-241-1/+1
| | | | | | | | | Should fix the current weirdness in ntpd/ntpdate where the current system time is not read/updated. Submitted by: naddy MFC after: 2 weeks Pointy hat to: me
* Hook back ntp to the build now that I fixed it.roberto2008-08-221-1/+1
| | | | Pointy hat to: me
* Add forgotten libopts subdir.roberto2008-08-221-0/+13
| | | | MFC after: 2 weeks
* Temporary unhook ntp from the build until the missing net/libopts/Makefilebz2008-08-221-1/+1
| | | | is in place. The TB is too busy sending mails.
* Update the various files to sync with vendor import of 4.2.4p5.roberto2008-08-2213-106/+326
| | | | | | | | sntp includes a copy of libopts in itself in vendor code, rewrite the Makefile to compile and use only one copy. It is an internal library, not installed. MFC after: 2 weeks
* Fix a small typo in the pstat(8) manual page.ed2008-08-201-1/+1
| | | | | The second LOW column of the pstat(8) command refers to the low watermark of the output queue.
* Remove sysinstall's ability to adjust the tape block size. Installs fromkensmith2008-08-205-21/+6
| | | | | | | | tape have been broken for quite a while, and I'll be removing the rest of sysinstall's knowledge of tapes shortly. I'm doing this piece now because I want to switch from gnu's cpio to bsdcpio being integrated into the installation environment and bsdcpio doesn't seem to handle block sizes at all.
* Integrate the new MPSAFE TTY layer to the FreeBSD operating system.ed2008-08-202-163/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The last half year I've been working on a replacement TTY layer for the FreeBSD kernel. The new TTY layer was designed to improve the following: - Improved driver model: The old TTY layer has a driver model that is not abstract enough to make it friendly to use. A good example is the output path, where the device drivers directly access the output buffers. This means that an in-kernel PPP implementation must always convert network buffers into TTY buffers. If a PPP implementation would be built on top of the new TTY layer (still needs a hooks layer, though), it would allow the PPP implementation to directly hand the data to the TTY driver. - Improved hotplugging: With the old TTY layer, it isn't entirely safe to destroy TTY's from the system. This implementation has a two-step destructing design, where the driver first abandons the TTY. After all threads have left the TTY, the TTY layer calls a routine in the driver, which can be used to free resources (unit numbers, etc). The pts(4) driver also implements this feature, which means posix_openpt() will now return PTY's that are created on the fly. - Improved performance: One of the major improvements is the per-TTY mutex, which is expected to improve scalability when compared to the old Giant locking. Another change is the unbuffered copying to userspace, which is both used on TTY device nodes and PTY masters. Upgrading should be quite straightforward. Unlike previous versions, existing kernel configuration files do not need to be changed, except when they reference device drivers that are listed in UPDATING. Obtained from: //depot/projects/mpsafetty/... Approved by: philip (ex-mentor) Discussed: on the lists, at BSDCan, at the DevSummit Sponsored by: Snow B.V., the Netherlands dcons(4) fixed by: kan
* Use kvm_getcptime(3) to fetch the global CPU time stats from a crashdumpjhb2008-08-191-8/+14
| | | | | | | since the 'cp_time' symbol doesn't exist in recent kernels. This fixes iostat and vmstat on crash dumps. MFC after: 1 week
* Pass the right pointer to bzero() when clearing cp_time.jhb2008-08-191-1/+1
| | | | MFC after: 1 week
* Use arc4random_uniform() to avoid "modulo bias"ache2008-08-161-55/+2
| | | | | | Remove pw_getrand() unneded now: arc4random_uniform() is stronger then pw_getrand()'s MD5 tricks (inactive) and its active version, mixing arc4random() bytes in one, not make things better at all.
* Convert the snp(4) driver to use cdevpriv.ed2008-08-151-16/+7
| | | | | | | | | | | | | Now we have a single /dev/snp device node, which can be opened by watch(8) multiple times. Even though snp(4) will be dead as of next week, it's nice having this in SVN, because: - We may want to MFC it to RELENG_7. - By the time we fix snp(4) again, it's already there, existing watch(8) binaries should already work. Just like bpf(4), I'm adding a symlink from snp0 to snp to remain binary compatible.
* Catch up with the removal of /usr/src/compat.kensmith2008-08-143-4/+0
| | | | MFC after: 3 days
* - Fix error reporting.stas2008-08-121-5/+5
| | | | Approved by: kib
* Add upgt(4) to the list of supported network interface.weongyo2008-08-111-0/+1
|
* - Add cpuctl(4) pseudo-device driver to provide access to some low-levelstas2008-08-089-0/+1133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | features of CPUs like reading/writing machine-specific registers, retrieving cpuid data, and updating microcode. - Add cpucontrol(8) utility, that provides userland access to the features of cpuctl(4). - Add subsequent manpages. The cpuctl(4) device operates as follows. The pseudo-device node cpuctlX is created for each cpu present in the systems. The pseudo-device minor number corresponds to the cpu number in the system. The cpuctl(4) pseudo- device allows a number of ioctl to be preformed, namely RDMSR/WRMSR/CPUID and UPDATE. The first pair alows the caller to read/write machine-specific registers from the correspondent CPU. cpuid data could be retrieved using the CPUID call, and microcode updates are applied via UPDATE. The permissions are inforced based on the pseudo-device file permissions. RDMSR/CPUID will be allowed when the caller has read access to the device node, while WRMSR/UPDATE will be granted only when the node is opened for writing. There're also a number of priv(9) checks. The cpucontrol(8) utility is intened to provide userland access to the cpuctl(4) device features. The utility also allows one to apply cpu microcode updates. Currently only Intel and AMD cpus are supported and were tested. Approved by: kib Reviewed by: rpaulo, cokane, Peter Jeremy MFC after: 1 month
* In `freebsd-update IDS`, strip out file flags before we look forcperciva2008-08-081-18/+18
| | | | | | | | non-matching index lines. This fixes a bug where bogus warnings would be printed file has the wrong file flags AND has been updated by FreeBSD Update. Reported by: Royce Williams
* Use humanize_number to report pen-sizes so people don't have to countphk2008-08-072-4/+18
| | | | the digits when trying to install openoffice.
* Add a script to perform simple analysis of a crash dump (either a fulljhb2008-08-054-0/+422
| | | | | | | | | dump or minidump). When the script is run, it generates a text file containing the output of several commands run againt the core dump such as kgdb (stack trace), ps, netstat, vmstat, iostat, dmesg, and fstat. Obtained from: Yahoo! MFC after: 2 weeks
* Remove a useless cast.cognet2008-08-021-1/+1
| | | | Spotted out by: stefanf
OpenPOWER on IntegriCloud