summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add comment from CSRG rev 7.27 (1992/06/23 19:56:55; author: mckusick)obrien2011-06-171-0/+9
|
* Teach the compiler how to shift TSC value efficiently. As noted in r220631,jkim2011-06-171-2/+5
| | | | | | some times compiler inserts redundant instructions to preserve unused upper 32 bits even when it is casted to a 32-bit value. Unfortunately, it seems the problem becomes more serious when it is shifted, especially on amd64.
* Regenerate src.conf.5.ed2011-06-171-0/+11
|
* Add WITHOUT_UTMPX switch to the build system.ed2011-06-176-10/+50
| | | | | | | | | This knob removes the tools that are exclusively used to view and maintain the databases maintained by utmpx, namely last, users, who, wtmpcvt, ac, lastlogin and utxrm. The tool w is not in this list, because it has some other functionality which is unrelated to utmpx; it is hardlinked to the uptime tool.
* Don't remove the periodic script for ac(8) when setting WITHOUT_ACCT.ed2011-06-171-1/+0
|
* Don't create a device_t object or parse current resources (via _CRS) forjhb2011-06-172-20/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | ACPI Device() objects that do not have any device IDs available via the _HID or _CID methods. Without a device ID a device driver cannot attach to the device anyway. Namespace objects that are devices but not of type ACPI_TYPE_DEVICE are not affected. A few BIOSes have also attached a _CRS method to a PCI device to allocate resources that are not managed via a BAR. With the previous code those resources are allocated from acpi0 directly which can interfere with the new PCI-PCI bridge driver (since the PCI device in question may be behind a bridge and its resources should be allocated from that bridge's windows instead). The resources were also orphaned and and would end up associated with some other random device whose device_t reused the pointer of the original ACPI-enumerated device (after it was free'd by the ACPI PCI bus driver) in devinfo output which was confusing. If we want to handle _CRS on PCI devices we can adjust the ACPI PCI bus driver to do that in the future and associate the resources with the proper device object respecting PCI-PCI bridges, etc. Note that with this change the ACPI PCI bus driver no longer has to delete ACPI-enumerated device_t devices that mirror PCI devices since they should in general not exist. There are rare cases when a BIOS will give a PCI device a _HID (e.g. I've seen a PCI-ISA bridge given a _HID for a system resource device). In that case we leave both the ACPI and PCI-enumerated device_t objects around just as in the previous code.
* posix_spawn(3): Document r222511 (trying to close already closed fd).jilles2011-06-171-9/+14
| | | | MFC after: 1 week
* Update manpage.ed2011-06-171-6/+6
|
* Don't omit ac(8) as part of WITHOUT_ACCT.ed2011-06-174-13/+6
| | | | | | | The WITHOUT_ACCT switch is supposed to omit tools related to process accounting, namely accton and sa. ac(8) is just a simple tool that prints statistics based on data in the utx.log database. It has nothing to do with the former.
* - Use a dedicated task to handle deferred transmits from the if_transmitjhb2011-06-172-10/+64
| | | | | | | | | | | | | | | method instead of reusing the existing per-queue interrupt task. Reusing the per-queue interrupt task could result in both an interrupt thread and the taskqueue thread trying to handle received packets on a single queue resulting in out-of-order packet processing. - Don't define igb_start() at all on 8.0 and where if_transmit is used. Replace last remaining call to igb_start() with a loop to kick off transmit on each queue instead. - Call ether_ifdetach() earlier in igb_detach(). - Drain tasks and free taskqueues during igb_detach(). Reviewed by: jfv MFC after: 1 week
* Open the floppy disk device with O_RDONLY rather than O_RDWR. Afterjoerg2011-06-171-1/+1
| | | | | | | all, this is the fd*read* command, and thus should be able to read even write-protected disks. MFC after: 1 week
* sh: Add case statement fallthrough (with ';&' instead of ';;').jilles2011-06-176-7/+67
| | | | | | | | | | | | Replacing ;; with the new control operator ;& will cause the next list to be executed as well without checking its pattern, continuing until a list ends with ;; or until the end of the case statement. This is like omitting "break" in a C "switch" statement. The sequence ;& was formerly invalid. This feature is proposed for the next POSIX issue in Austin Group issue #449.
* - Fix my braino in the 220835, when I used strtok(). It isn'tglebius2011-06-171-14/+32
| | | | | | | | | | | applicable here, since modifies the string. Switch to strchr(). - Restore support for undocumented optional parameters of redir_port and redir_proto, that were disabled in 220835. - While here, change !isalpha() checks on optinal parameters for isdigit(). Submitted by: Alexander V. Chernikov <melifaro ipfw.ru> PR: kern/143653
* sh: Skip variables with invalid names in "set", "export -p", "readonly -p".jilles2011-06-173-0/+19
| | | | This ensures the output of these commands is valid shell input.
* Return empty cmdline/environ string for processes with kernel addresspluknet2011-06-171-0/+18
| | | | | | | | | | space. This is consistent with the behavior in linux. PR: kern/157871 Reported by: Petr Salinger <Petr Salinger att seznam cz> Verified on: GNU/kFreeBSD debian 8.2-1-amd64 (by reporter) Reviewed by: kib (some time ago) MFC after: 2 weeks
* In HAST we use two sockets - one for only sending the data and one fortrociny2011-06-172-0/+6
| | | | | | | | | | | | | | | | | | only receiving the data. In r220271 the unused directions were disabled using shutdown(2). Unfortunately, this broke automatic receive buffer sizing, which currently works only for connections in ETASBLISHED state. It was a root cause of the issue reported by users, when connection between primary and secondary could get stuck. Disable the code introduced in r220271 until the issue with automatic buffer sizing is not resolved. Reported by: Daniel Kalchev <daniel@digsys.bg>, danger, sobomax Tested by: Daniel Kalchev <daniel@digsys.bg>, danger Approved by: pjd (mentor) MFC after: 1 week
* Add SCTP_MAX_BURST support to sctp_opt_info().tuexen2011-06-171-0/+3
| | | | | | This only applies to 9.0 and higher, since the type of the values has changed since we introduced it. So it can't be MFCed.
* Update the list of supported socket options for sctp_opt_info().tuexen2011-06-171-3/+6
| | | | MFC after: 1 month.
* Add 2-clause BSD license.netchild2011-06-171-0/+23
| | | | | | Approved by: David Kirchner <dpk@dpk.net> (initial author) Requested by: Otto Moerbeek <otto@drijf.net> MFC after: 1 week
* Improve on style(9)marcel2011-06-171-94/+73
|
* Properly serialize the global shootdown with the instructionmarcel2011-06-172-2/+15
| | | | | | | stream of the local processor. Also explicitly invalidate the ALAT. This is done on the other CPUs in the coherence domain by virtue of the ptc.ga instruction, but does not apply to the local CPU.
* Drop the include of <ufs/ffs/ffs_extern.h> from usr.sbin/makefs/ffs/ffs_bswap.cmckusick2011-06-163-18/+6
| | | | | | | | | and usr.sbin/makefs/ffs/ffs_subr.c as they have no need of anything in that file. No other programs or libraries include <ufs/ffs/ffs_extern.h> (nor should they as it is totally in-kernel interfaces). For added protection I enclosed the entire contents of <ufs/ffs/ffs_extern.h> in ifdef _KERNEL. Feedback from: Bruce Evans and Tai-hwa Liang
* Regen.kib2011-06-164-7/+14
|
* Implement compat32 for old lseek, for the a.out binaries on amd64.kib2011-06-162-1/+15
|
* Do not trash the argv[0] pointer for an a.out process on amd64.kib2011-06-161-1/+1
| | | | Found with the binary provided by joerg.
* Fix silly typo that resulted in the a.out process stack to end atkib2011-06-161-1/+1
| | | | ~200MB instead of 3GB on amd64.
* sh: Reduce unnecessary forks with eval.jilles2011-06-162-1/+7
| | | | | | | | | | The eval special builtin now runs the code with EV_EXIT if it was run with EV_EXIT itself. In particular, this eliminates one fork when a command substitution contains an eval command that ends with an external program or a subshell. This is similar to what r220978 did for functions.
* Add SCTP_DEFAULT_PRINFO socket option.tuexen2011-06-163-0/+81
| | | | | | | Fix the SCTP_DEFAULT_SNDINFO socket option: Don't clear the PR SCTP policy when setting sinfo_flags. MFC after: 1 month.
* Fix some wording and grammar in the BUGS section.bcr2011-06-161-8/+12
| | | | | | | PR: docs/157901 Submitted by: Niclas Zeising (niclas dot zeising at gmail dot com) Reviewed by: mav MFC after: 3 days
* Add "alignment" param to the request before calling gpart_autofill().ae2011-06-161-0/+1
|
* Setting warnings without make universe considered harmful. Revert to WARNS=0imp2011-06-161-1/+1
| | | | until such time that the warnings at =2 are fixed for all platforms.
* Even if the loaded module has no symbols, we still need to notifymarcel2011-06-161-1/+1
| | | | MD code about it and update the link map for GDB's use.
* Fix two typos and remove redundant code.tuexen2011-06-161-5/+2
| | | | MFC after: 1 month.
* Add Digitizer-related usage IDs from HUTRR30 and HUTRR34.mav2011-06-161-0/+10
|
* * Fix the handling of addresses in sctp_sendv().tuexen2011-06-162-42/+84
| | | | | | | * Add support for SCTP_SENDV_NOINFO. * Improve the error handling of sctp_sendv() and sctp_recv(). MFC after: 1 month
* Using the correct format string(%zu) for size_t type. This should fix 64avatar2011-06-161-1/+1
| | | | | | bits builds. Submitted by: Garrett Cooper <yanegomi@gmail.com>
* It's a bit odd, but "make update" in src/ can also update the ports/,ru2011-06-165-19/+45
| | | | | | | | | | | | | | | | | | | | | | | | | doc/, and now www/ trees, but only using the "cvsup" transport. When "make update" is run using a tree's makefile, it can also use "cvs" (except for www/) and "svn" (only src/). Clean up documentation and code regarding "make update": - Increase oddness by adding support for WWWSUPFILE and NO_WWWUPDATE to Makefile.inc1 (analogous to PORTSSUPFILE/NO_PORTSUPDATE and DOCSUPFILE/NO_DOCUPDATE; WWWSUPFILE already supported by www/Makefile). - Document all trees that support CVS_UPDATE. - Document all trees that support SUP_UPDATE. - Document SVN_UPDATE. - Document NO_WWWUPDATE. - make.conf(5) mistakenly said that *SUPFILE* had defaults. - Add an example entry for WWWSUPFILE.
* Change i_len in ieee80211req to be unsigned and fix other signed/unsignedkevlo2011-06-163-8/+9
| | | | | | | issues. Reviewed by: bschmidt Obtained from: NetBSD
* Revert r222688.sobomax2011-06-161-14/+2
| | | | Requested by: Mikolaj Golub
* Unbreaking build on sparc64.avatar2011-06-161-3/+3
| | | | Submitted by: Garrett Cooper <yanegomi@gmail.com>
* Fixing compilation bustage by introducing another forward declaration.avatar2011-06-161-0/+1
|
* Clarify that the TFTP blocksize (RFC2348) or non-standardrodrigc2011-06-162-4/+6
| | | | TFTP rollover option can be used to transfer larger files.
* Use size of int to fetch sysctl kern.sched.cpusetsize because it haddavidxu2011-06-161-3/+3
| | | | | | switched from long to int type in kernel. Fixed by: pluknet
* Specify correct RFC2347 for TFTP options in diagnostic message.rodrigc2011-06-161-2/+2
|
* Make the bootonly CD smaller by discarding static libraries that are notnwhitehorn2011-06-151-4/+4
| | | | useful without a toolchain.
* Add support for the newly added SCTP API.tuexen2011-06-1511-632/+1909
| | | | | | | | | | | | | In particular add support for: * SCTP_SNDINFO, SCTP_PRINFO, SCTP_AUTHINFO, SCTP_DSTADDRV4, and SCTP_DSTADDRV6 cmsgs. * SCTP_NXTINFO and SCTP_RCVINFO cmgs. * SCTP_EVENT, SCTP_RECVRCVINFO, SCTP_RECVNXTINFO and SCTP_DEFAULT_SNDINFO socket option. * Special association ids (SCTP_FUTURE_ASSOC, ...) * sctp_recvv() and sctp_sendv() functions. MFC after: 1 month.
* Do not install the rescue tools onto the install CD. Since it is readnwhitehorn2011-06-151-1/+2
| | | | | only, they are very unlikely to be needed and take up a great deal of space.
* Bring back following change which was undone in previous commit:rodrigc2011-06-151-4/+4
| | | | | | | | | | | | | | | | | | | ------------------------------------------------------------------------ r172854 | marius | 2007-10-21 10:03:18 -0700 (Sun, 21 Oct 2007) | 16 lines Changed paths: M /head/lib/libstand/tftp.c - Given that we tell the compiler that struct ip is packed and 32-bit aligned, GCC 4.2.1 also generates code for sendudp() that assumes this alignment. GCC 4.2.1 however doesn't 32-bit align wbuf, causing the loader to crash due to an unaligned access of wbuf in sendudp() when netbooting sparc64. Solve this by specifying wbuf as packed and 32-bit aligned, too. As for lastdata and readudp() this currently is no issue when compiled with GCC 4.2.1, though give lastdata the same treatment as wbuf for consistency and possibility of being affected in the future. [1] - Sprinkle const on a lookup table. ------------------------------------------------------------------------
* Ensure that filesystem metadata contained within persistent snapshotsmckusick2011-06-157-42/+74
| | | | | | is always kept consistent. Suggested by: Jeff Roberson
* Don't include curcpu in the mask which is used as the IPI cookie as wemarius2011-06-151-12/+16
| | | | | | | have to ignore it when sending the IPI anyway. Actually I can't think of a good reason why this ever was done that way in the first place as it's not even usefull for debugging. While at it replace the use of pc_other_cpus as it's slated for deorbit.
OpenPOWER on IntegriCloud