summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Add missing .Nm. Add FBSDID. fprintf -> warnx. Lowercase first letter insidecharnier2002-10-152-9/+8
| | | | err().
* Fix to check disk geometry.nyan2002-10-142-4/+8
| | | | Submitted by: kawanobe@st.rim.or.jp (Kawanobe Koh)
* The MACHINE variable on pc98 is "i386". So, use "pc98" directly in PC98 case.nyan2002-10-141-0/+6
|
* Use snprintf() instead of sprintf().nyan2002-10-141-3/+3
|
* Check correct machine name.nyan2002-10-141-0/+2
|
* * Negative #if's are harder to read as they don't tell exactly what archobrien2002-10-1113-52/+60
| | | | | | | | | something applies to. So change #ifndef to an explicit list of defines. * Treate sparc64 and ia64 as 64-bit platforms, which means larger roots. * sparc64 should halt back to the firmware, not reset. * sparc64 doesn't need to play MS-DOS/BIOS partition crap games. Reviewed by: jake
* Document the -n option and fix manpage Fl usage.green2002-10-101-6/+8
| | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Add an -n option to write the trailing nul byte to the extattr whengreen2002-10-101-4/+10
| | | | | | | using setextattr(8) to write a string. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Correct argc verification (don't crash).green2002-10-101-2/+7
| | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Add -h flags to each of the *extattr(8) commands, indicating thatrwatson2002-10-102-20/+43
| | | | | | | | | | the command should not follow the symlink if the target file is a symlink. Invoke the extattr_*_link(2) version of the system call in that situation, instead of extattr_*_file(2). This is consistent with other attribute management tools in the system. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Use basename(3) to derive the name of the binary from argv[0].rwatson2002-10-101-1/+2
| | | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Submitted by: green
* de-__P()alfred2002-10-108-175/+159
|
* Use __packed.jhb2002-10-091-5/+5
|
* Spell 'Temperature' correctly.jhb2002-10-081-1/+1
|
* Teach pkg_add -r how to find 4.7-RELEASE packages with an appropriatebmah2002-10-081-0/+1
| | | | | | | | osreldate. (Actually, due to differences in package compression formats, I'm not sure that a -CURRENT pkg_add -r will do the right thing in this case, once it finds them.)
* Add 'break' to empty 'default' 'switch' statements.alfred2002-10-071-4/+4
| | | | Requested by: mike
* WARNS=3 safety (mostly), use __unused for unused params and unsigned wherealfred2002-10-0710-40/+40
| | | | needed to avoid warnings about comparing signed and unsigned values.
* fix line wrap.alfred2002-10-071-15/+30
|
* cast xdr_rpcblist_ptr to xdrproc_t to silence warnings.alfred2002-10-071-4/+4
|
* Add ';' after 'default:' labels to avoid 'deprecated use of label at endalfred2002-10-071-0/+4
| | | | of compound statement' warnings.
* Don't pass a NULL pointer to syslog(3).alfred2002-10-071-0/+1
| | | | Submitted by: kris
* Avoid referencing a removed (and freed) queue entry. This partially revertsdes2002-10-061-2/+4
| | | | | | | | revision 1.101 (which did not introduce the bug but made it harder to fix) PR: misc/40363 Submitted by: David Dunham <dwdunham@isilon.com> MFC after: 2 weeks
* Actually use the exitstatus value that we maintain.dd2002-10-011-1/+1
| | | | | PR: 43562 Submitted by: Marc Olzheim <marcolz@ilse.nl>
* Split MBR and PC98 on-disk sliceformats out from disklabel.h, step 1:phk2002-10-011-0/+1
| | | | | | | | | | | | | | | | Peter had repocopied sys/disklabel.h to sys/diskpc98.h and sys/diskmbr.h. These two new copies are still intact copies of disklabel.h and therefore protected by #ifndef _SYS_DISKLABEL_H_ so #including them in programs which already include <sys.disklabel.h> is currently a no-op. This commit adds a number of such #includes. Once I have verified that I have fixed all the places which need fixing, I will commit the updated versions of the three #include files. Sponsored by: DARPA & NAI Labs.
* Remove bogus comments about why we do some silly things, and insteadimp2002-09-291-12/+1
| | | | | | | just say that the reasons are historical. Pr: 41104 Submitted by: hiten
* Add -x option. This causes pccardd to exit after probing the cards. Thisimp2002-09-292-2/+14
| | | | | | | is useful for low memory systems. PR: 36418 Submitted by: Forrest W. Christian
* Add a ; to make a non-null statementimp2002-09-291-1/+1
|
* Create symlink for /etc/group. MAKEDEV file will use this file (group namematusita2002-09-282-0/+2
| | | | | | | | to gid conversion). PR: 43455 Submitted by: n-kogane@syd.odn.ad.jp X-MFC after: immediately if re@ permits, or after 4.7-RELEASE is out
* Use the standardized CHAR_BIT constant instead of NBBY in userland.mike2002-09-251-2/+3
|
* Get howmany() macro from <sys/param.h>, instead of depending on itsmike2002-09-241-1/+1
| | | | existence in <sys/types.h>.
* Use POSIX-style sort syntax in exampleache2002-09-241-1/+1
|
* If the peer gives us 0.0.0.0 as his IP number, NAK it rather than acceptingbrian2002-09-231-1/+2
| | | | | | | | | | | it as being in range. set ifaddr 1.2.3.4/0 5.6.7.8/0 no longer allows 0.0.0.0 as a valid IP. Reported/tested by: Bohdan Horst <nexus@hoth.amu.edu.pl> MFC after: 3 days
* Do not add a start offset time to the track duration time.maxim2002-09-231-1/+2
| | | | | Submitted by: Dmitry Afanasiev, <KOT@MATPOCKuH.SPb.Ru> MFC after: 2 weeks
* Introduce to the !program specification a capability similar to the onedcs2002-09-232-2/+25
| | | | | | | | | | | | | | | | | | | | | | that already exists for hosts: being able to specify a section that applies to every program *except* the one in question. The normal syntax for program specification is still valid. For the new capability, one uses: !-program Since there is no way to specify a program beginning with a dash in the old syntax, as it would be interpreted as the case above, the following alternative syntax to the original capability is provided: !+program This shouldn't introduce incompatibilities with any syslogd configuration in production because -stable's syslogd does not support a dash anywhere in the program specification. MFC after: 2 weeks
* Make the threatened fts(3) ABI fix. FTSENT now avoids the use of the structwollman2002-09-213-6/+6
| | | | | | | | | | | | | | | | hack, thereby allowing future extensions to the structure (e.g., for extended attributes) without rebreaking the ABI. FTSENT now contains a pointer to the parent stream, which fts_compar() can then take advantage of, avoiding the undefined behavior previously warned about. As a consequence of this change, the prototype of the comparison function passed to fts_open() has changed to reflect the required amount of constness for its use. All callers in the tree are updated to use the correct prototype. Comparison functions can now make use of the new parent pointer to access the new stream-specific private data pointer, which is intended to assist creation of reentrant library routines which use fts(3) internally. Not objected to in spirit by: -arch
* The resolver library does a pretty acceptable set of domainmarkm2002-09-201-19/+2
| | | | | | | | | | suffix attempts before failing. No need to try again by hand, particularly when it fills your log with failures because localhost.example.com..example.com fails to resolve. Also improve the log message that helped find this error. There is still (maybe) an uninitialised pointer problem here, but in a month of testing I haven't triggered it.
* Kerberised NFS has never (as far as I can tell) worked outsidemarkm2002-09-201-12/+2
| | | | | | BSD 4.4. Nuke mention of Kerberos from the documentation here. MFC after: 1 week
* o Don't print devices that aren't attached unless run with the newlyimp2002-09-202-5/+13
| | | | | | | | minted -v flag. o Print devices that don't return a name as 'unknown' in -v mode. # Yea! Now I wont think I have 10 different ISA network adapters in my # laptop.
* Pppctl seems to compile again nowjulian2002-09-191-1/+1
|
* Use consistent terminology in the usage message, the man pagejdp2002-09-172-10/+10
| | | | | | | | synopsis, and the man page description ("selector" vs. "sel" and "addr" vs. "reg"). Fix the usage message and man page synopsis to show that the "value" argument is not optional.
* Don't depend on <sys/types.h> pollution in <sys/fcntl.h>.mike2002-09-172-0/+2
|
* Check for FD_SET overruns.nectar2002-09-171-0/+8
| | | | Approved by: peter
* Only include parent directory Makefile.inc if it exists. Now you canjhb2002-09-171-1/+3
| | | | cvs co acpi and build acpi utilities w/o needing the usr.sbin Makefile.inc.
* Add i386 to the list of architectures that libc_r is broken on. Thispeter2002-09-171-1/+1
| | | | | effectively removes pppctl from the build for now. It only compiles on alpha now (now ironic).
* Initiate deorbit burn for the i386-only a.out related support. Moves arepeter2002-09-172-32/+0
| | | | | | | | | | | | | | | under way to move the remnants of the a.out toolchain to ports. As the comment in src/Makefile said, this stuff is deprecated and one should not expect this to remain beyond 4.0-REL. It has already lasted WAY beyond that. Notable exceptions: gcc - I have not touched the a.out generation stuff there. ldd/ldconfig - still have some code to interface with a.out rtld. old as/ld/etc - I have not removed these yet, pending their move to ports. some includes - necessary for ldd/ldconfig for now. Tested on: i386 (extensively), alpha
* xids are u_int32_ts, which are not necessarily the same size as time_ts orfenner2002-09-161-2/+2
| | | | unsigned longs. This fixes "ypbind -S ... -m" on sparc64.
* Add sleep state explanation.takawata2002-09-161-4/+10
| | | | Requested by: murray at Cafe in Tokyo.
* Add "-t" to useage message and comment. (The -t option was addeddwmalone2002-09-151-3/+3
| | | | | | | | independently by Robert, but also proposed in the PR below). PR: 38126 Submitted by: Josh Elsasser <jre@vineyard.net> MFC after: 1 month
* Some BIOSs are using MTRR values that are only documented under NDAdwmalone2002-09-152-1/+3
| | | | | | | | | | | | | | | | | | | to control the mapping of things like the ACPI and APM into memory. The problem is that starting X changes these values, so if something was using the bits of BIOS mapped into memory (say ACPI or APM), then next time they access this memory the machine would hang. This patch refuse to change MTRR values it doesn't understand, unless a new "force" option is given. This means X doesn't change them by accident but someone can override that if they really want to. PR: 28418 Tested by: Christopher Masto <chris@netmonger.net>, David Bushong <david@bushong.net>, Santos <casd@myrealbox.com> MFC after: 1 week
* Update to use *.tbz suffix, also update example URL.bmah2002-09-101-3/+3
| | | | | | | | While I'm here, fix a gramm-o. PR: 42576 Submitted by: Jeff Ito <jeffi@rcn.com> MFC after: 1 day
OpenPOWER on IntegriCloud