summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
...
* - Denote PCI-e endpoints that support FLR.jhb2012-09-132-4/+72
| | | | | | | | | - Make parsing of PCI-e extended capabilities assume that future version numbers are backwards compatible. - Add new AER error descriptions. - Add descriptions for more PCI-e extended capabilities. MFC after: 1 week
* Add documentation for IPv6 supporteadler2012-09-121-1/+9
| | | | | | | | | PR: docs/171580 Submitted by: bdrewery Reviewed by: wblock Approved by: gjb MFC after: 1 month X-MFC-With: r240389
* Add support for ipv6 addresses as destinationbapt2012-09-121-1/+12
| | | | | | | PR: bin/150530 Submitted by: andy white <andywhite@gmail.com> Tested by: Olivier Cochard-Labbe <olivier@cochard.me> MFC after: 1 month
* Add missing braceskevlo2012-09-121-1/+2
| | | | Obtained from: DragonFly
* Do not count kernel threads as processes for hrSystemProcesses OID.glebius2012-09-111-1/+1
| | | | | PR: bin/160494 Submitted by: Jeremy Chadwick <freebsd jdc.parodius.com>
* Spelling.glebius2012-09-111-1/+1
|
* Remove unused valueskevlo2012-09-111-1/+1
|
* Remove dead return codekevlo2012-09-111-2/+0
|
* mdoc fixes.joel2012-09-081-41/+21
|
* Merge the projects/pf/head branch, that was worked on for last six months,glebius2012-09-083-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into head. The most significant achievements in the new code: o Fine grained locking, thus much better performance. o Fixes to many problems in pf, that were specific to FreeBSD port. New code doesn't have that many ifdefs and much less OpenBSDisms, thus is more attractive to our developers. Those interested in details, can browse through SVN log of the projects/pf/head branch. And for reference, here is exact list of revisions merged: r232043, r232044, r232062, r232148, r232149, r232150, r232298, r232330, r232332, r232340, r232386, r232390, r232391, r232605, r232655, r232656, r232661, r232662, r232663, r232664, r232673, r232691, r233309, r233782, r233829, r233830, r233834, r233835, r233836, r233865, r233866, r233868, r233873, r234056, r234096, r234100, r234108, r234175, r234187, r234223, r234271, r234272, r234282, r234307, r234309, r234382, r234384, r234456, r234486, r234606, r234640, r234641, r234642, r234644, r234651, r235505, r235506, r235535, r235605, r235606, r235826, r235991, r235993, r236168, r236173, r236179, r236180, r236181, r236186, r236223, r236227, r236230, r236252, r236254, r236298, r236299, r236300, r236301, r236397, r236398, r236399, r236499, r236512, r236513, r236525, r236526, r236545, r236548, r236553, r236554, r236556, r236557, r236561, r236570, r236630, r236672, r236673, r236679, r236706, r236710, r236718, r237154, r237155, r237169, r237314, r237363, r237364, r237368, r237369, r237376, r237440, r237442, r237751, r237783, r237784, r237785, r237788, r237791, r238421, r238522, r238523, r238524, r238525, r239173, r239186, r239644, r239652, r239661, r239773, r240125, r240130, r240131, r240136, r240186, r240196, r240212. I'd like to thank people who participated in early testing: Tested by: Florian Smeets <flo freebsd.org> Tested by: Chekaluk Vitaly <artemrts ukr.net> Tested by: Ben Wilber <ben desync.com> Tested by: Ian FREISLICH <ianf cloudseed.co.za>
* Add TRIM support, enabled by default.jpaetzel2012-09-066-21/+88
| | | | | | | | | | Fix a bug installing components from a localPath. Allow autosizing of any partition, not just the last partition. Adjust how ZFS is laid out to work with Boot Environments. Submitted by: kmoore Obtained from: PC-BSD MFC after: 3 days
* - If the PCIe "SLOT" flag is set, include this in the capability outputgavin2012-09-051-1/+3
| | | | | | - Fix printing of PCIe interrupt number, the shift was incorrect. MFC after: 1 week
* Provide a sysctl switch that allows to install ARP entriesglebius2012-09-031-0/+11
| | | | | | | | with multicast bit set. FreeBSD refuses to install such entries since 9.0, and this broke installations running Microsoft NLB, which are violating standards. Tested by: Tarasov Oleg <oleg_tarasov sg-tea.com>
* Explicitly document all variables in the net.link.ether.inet MIB.glebius2012-09-031-5/+38
|
* Rework all non-contributed files that use `struct timezone'.ed2012-09-019-52/+43
| | | | | | | | | | | | | | This structure is not part of POSIX. According to POSIX, gettimeofday() has the following prototype: int gettimeofday(struct timeval *restrict tp, void *restrict tzp); Also, POSIX states that gettimeofday() shall return 0 (as long as tzp is not used). Remove dead error handling code. Also use NULL for a nul-pointer instead of integer 0. While there, change all pieces of code that only use tv_sec to use time(3), as this provides less overhead.
* Rework time handling.ed2012-09-011-8/+7
| | | | | | | | | After I made the previous commit, I noticed the code does some things it shouldn't. It casts a struct timeval to a time_t, assuming tv_sec is the first member. Also, we are not interested in microseconds, so it is better to just call time(NULL). MFC after: 1 month
* Remove unneeded struct timezone.ed2012-09-011-2/+1
| | | | We're only interested in a timestamp -- not the timezone.
* Also relicense the ac(8) man page.ed2012-08-311-5/+0
| | | | | MFC after: 1 month Discussed with: Simon Gerraty and Chris Demetriou
* Relicense ac(8).ed2012-08-311-12/+25
| | | | | | | | | | | | | | | | | | | Though the license of the original ac(8) source code provides many liberties, we are already somewhat violating it. The license requires us to clearly comment any modifications to the source code, as the original authors of course do not want to get bug reports for modified versions of ac(8). This is something we have not done consistently. The need for such a license clause has become less over time. It is very unlikely that end users will contact the original authors, as the copyright is from 1994. I contacted both the copyright holders. They responded in a timely fashion and were more than willing to relicense it to a 2-clause BSD license. To address any concerns about bug reports going to the original authors instead of me, add my own name and email address to the copyright statements as well. MFC after: 1 month Special thanks to: Christopher Demetriou and Simon Gerraty
* Remove trailing whitespace.joel2012-08-311-1/+1
|
* Use better variable naming.ed2012-08-311-12/+7
| | | | MFC after: 1 month
* Massively refactor ac(8).ed2012-08-302-316/+189
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Use queue(3) -- not some homegrown implementation of linked lists. - Rename structures to _entry, as they are entries in the linked list -- not the lists themselves. - Don't store entire copies of struct utmpx in utmpx_entry, but only the members we're interested in. Large fields such as hostnames are not needed during the execution of the program. - Give structure members useful names, instead of `name'. - While there, use struct timevals instead of time_t's internally. This is not strictly useful, but while we're at it... - Mark stuff static. - Add missing const keywords. - Remove unneeded prototypes. - Remove workaround for sparc64-specific utmp problems. These don't apply to utmpx. - Don't discard entries when timestamps are not monotone. This shouldn't ever happen with utmpx, but discarding them is a bit too harsh. - Remove debug code. We nowadays have `getent utmpx', which can be used to analyze logfiles in depth. - Use proper uppercasing/periods in comments. - Print output of `ac -p' sorted alphabetically, instead of first occurrence. - Properly check against pts/* instead of tty[PQRSpqrs]* to determine whether a TTY is a pseudo-terminal. MFC after: 1 month
* - It's also need to lock current memory.zont2012-08-301-1/+1
| | | | | Approved by: kib (mentor) MFC after: 1 week
* Fix whitespace.ed2012-08-291-2/+1
|
* - Don't allow watchdogd(8) to be swapped out.zont2012-08-281-0/+2
| | | | | | | | | On machines with huge amount of swap and high IO activity, watchdogd(8) may wait for a swap memory longer than timeout and sometimes fires. Approved by: kib (mentor) MFC after: 1 week
* Show error messages if nmount() failed.delphij2012-08-271-4/+4
| | | | MFC after: 1 month
* Dont cast from char* to struct chrp_header* which has a bigger alignmentrdivacky2012-08-271-4/+8
| | | | | | | requirements. Copy it via union instead. Fixes a clang warning about alignment. Reviewed by: sobomax
* Add isf(4), a driver for the Intel StrataFlash family of NOR flash parts.brooks2012-08-254-0/+212
| | | | | | | | | | | The driver attempts to support all documented parts, but has only been tested with the 512Mbit part on the Terasic DE4 FPGA board. It should be trivial to adapt the driver's attach routine to other embedded boards using with any parts in the family. Also import isfctl(8) which can be used to erase sections of the flash. Sponsored by: DARPA, AFRL
* Fix confirmation logic when detecting a ttybapt2012-08-241-3/+3
| | | | Reported by: mjg
* - change ALWAYS_ASSUME_YES to ASSUME_ALWAYS_YES for consistency with pkg(8)bapt2012-08-241-3/+5
| | | | | | | - if not on a tty prompt about the missing pkg(8) but default on 'no' except if ASSUME_ALWAYS_YES is set MFC after: 2 days
* Partially roll back r239601 - keep parameter strings both length-delimitedjamie2012-08-231-4/+5
| | | | | | | | and null-terminated at the same time, because they're later passed to libjail as null-terminated. That means I also need to add a nul byte when comma-combining array parameters. MFC after: 6 days
* Pre-separate IP addresses passed on the command line, so they can bejamie2012-08-231-2/+26
| | | | | | | | properly parsed for interface prefixes and netmask suffixes. This was already done for the old-style (fixed) command line, but missed for the new-style. MFC after: 1 week
* Remember that I'm using length-defined strings in parameters:jamie2012-08-231-5/+3
| | | | | | | | | | | Remove a bogus null terminator when stripping the netmask from IP addresses. This was causing later addresses in a comma-separated string to disappear. Use memcpy instead of strcpy. This could just cause Bad Things. PR: 170832 MFC after: 1 week
* Sort options.hrs2012-08-222-3/+2
|
* Add -m option (for printing sampled PCs to a file) to pmcstat usagejimharris2012-08-221-0/+1
| | | | | | | message. Sponsored by: Intel MFC after: 3 days
* Add -p flag to create the image as a sparse file.hrs2012-08-224-11/+31
| | | | | Submitted by: Shesha Sreenivasamurthy PR: bin/167779
* Fix "unexpected operator" error when passed multi-word first-argumentdteske2012-08-211-4/+3
| | | | | | | | | | | containing whitespace. Also make other changes to support multi-word arguments. PR: bin/170759 Submitted by: dteske Reviewed by: emaste (mentor) Approved by: emaste (mentor) MFC after: 3 days
* Upgrade our copy of llvm/clang to trunk r162107. With thanks todim2012-08-201-0/+2
| | | | Benjamin Kramer and Joerg Sonnenberger for their input and fixes.
* Remove unused member of struct indir (in_exists) from UFS and EXT2 code.mjg2012-08-172-3/+0
| | | | | | Reviewed by: mckusick Approved by: trasz (mentor) MFC after: 1 week
* Merge ACPICA 20120816.jkim2012-08-161-1/+1
|
* Correct description of minfree to kilobytes rather than blocks.wblock2012-08-131-1/+1
| | | | | | PR: 125921 Submitted by: Andre Albsmeier <Andre.Albsmeier@siemens.com> MFC after: 3 days
* Add interactive option to override portsnap's automagical detection ofeadler2012-08-052-4/+24
| | | | | | | | a terminal. Submitted by: Hannes h2+fbsdports@fsfe.org Approved by: cperciva MFC after: 1 week
* In usr.sbin/ctladm/ctladm.c, function cctl_error_inject(), initializedim2012-08-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the 'retval' variable to zero, to avoid returning garbage in several cases. This fixes the following clang 3.2 warnings: usr.sbin/ctladm/ctladm.c:1234:6: error: variable 'retval' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] if (ioctl(fd, CTL_ERROR_INJECT, &err_desc) == -1) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ usr.sbin/ctladm/ctladm.c:1243:10: note: uninitialized use occurs here return (retval); ^~~~~~ usr.sbin/ctladm/ctladm.c:1234:2: note: remove the 'if' if its condition is always true if (ioctl(fd, CTL_ERROR_INJECT, &err_desc) == -1) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ usr.sbin/ctladm/ctladm.c:1161:7: error: variable 'retval' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] if (ioctl(fd, CTL_ERROR_INJECT_DELETE, &err_desc) == -1) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ usr.sbin/ctladm/ctladm.c:1243:10: note: uninitialized use occurs here return (retval); ^~~~~~ usr.sbin/ctladm/ctladm.c:1161:3: note: remove the 'if' if its condition is always true if (ioctl(fd, CTL_ERROR_INJECT_DELETE, &err_desc) == -1) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ usr.sbin/ctladm/ctladm.c:1029:12: note: initialize the variable 'retval' to silence this warning int retval; ^ = 0 MFC after: 1 week
* Update my e-mail to my FreeBSD one.zeising2012-07-191-2/+2
| | | | Approved by: joel (mentor)
* Xref mwl(4) and rum(4) in hostapd(8).gjb2012-07-181-1/+3
| | | | MFC after: 3 days
* Make sure that arraysz is initialized to a value larger than zero.jh2012-07-171-0/+2
| | | | | | | | | arraysz could get initialized to zero on ZFS because ZFS reports directory sizes differently compared to UFS. PR: bin/169493 Tested by: swills MFC after: 2 weeks
* Remove trailing whitespace.jh2012-07-171-4/+4
| | | | MFC after: 2 weeks
* Make pkg bootstrap program ask for confirmation before proceeding.kan2012-07-151-1/+35
| | | | | | | | The previous behaviour was to silently download and install the pkg package, without ever telling user about what it was doing and why. Discussed with: bapt Reviewed by: kib
* Mdoc and whitespace fixes.joel2012-07-141-16/+9
|
* Import bsdconfig(8) as a replacement for the post-install abilities ofdteske2012-07-14135-0/+19431
| | | | | | | | deprecated sysinstall(8). NOTE: WITH_BSDCONFIG is currently required. Submitted by: Devin Teske (dteske), Ron McDowell <rcm@fuzzwad.org> Reviewed by: Ron McDowell <rcm@fuzzwad.org> Approved by: Ed Maste (emaste)
OpenPOWER on IntegriCloud