summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | Unlock the malloc() locks in the child process after fork(). This giveskib2008-11-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | us working malloc in the fork child of the multithreaded process. Although POSIX requires that only async-signal safe functions shall be operable after fork in multithreaded process, not having malloc lower the quality of our implementation. Tested by: rink Discussed with: kan, davidxu Reviewed by: kan MFC after: 1 month
* | Parse the error string returned by the kernel. The format is:marcel2008-11-291-14/+39
| | | | | | | | | | | | | | | | <errno> [<parameter> <value>] So, rather than printing the error: gpart: 22 scheme 'gpt' gpart(8) now prints: gpart: scheme 'gpt': invalid argument
* | Format the output of -itv for real. In particular:kientzle2008-11-293-13/+225
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Lookup uname/gname if not provided by the archive (I copied the uname/gname lookup cache from bsdtar) * Format device number instead of size for device nodes * Format date. There's still a few improvements that I could copy from bsdtar, especially the locale-aware safe_fprintf() code and the locale-aware setup for day_first date formatting. (And, of course, I need to think through a clean way to push this stuff down into libarchive.) Thanks to Peter Wemm for reminding me of this overlooked TODO item.
* | Third argument to the vi_mmap_t function is vm_paddr_t *.kib2008-11-291-1/+1
| | | | | | | | MFC after: 3 days
* | When deciding which characters (of a filename, for instance)kientzle2008-11-292-49/+119
| | | | | | | | | | | | | | | | | | | | | | | | are safe to print, try to take into account the current locale. This iterates over output strings using mbtowc() to identify multi-byte sequences. If iswprint() claims the corresponding wide character is printable, the original bytes are passed through. Otherwise, we expand characters into C-style \-escape sequences. Submitted by: Michihiro NAKAJIMA MFC after: 30 days
* | Add standard MLINKs.brueffer2008-11-291-0/+3
| |
* | Bring this a little closer to our manpage style.brueffer2008-11-291-16/+30
| |
* | Add several missing MLINKs.brueffer2008-11-291-1/+10
| |
* | Fix typo.brueffer2008-11-291-1/+1
| |
* | Make linux_sendmsg() and linux_recvmsg() work on linux32/amd64.kib2008-11-294-52/+301
| | | | | | | | | | | | | | | | Change types used in the linux' struct msghdr and struct cmsghdr definitions to the properly-sized architecture-specific types. Move ancillary data handler from linux_sendit() to linux_sendmsg(). Submitted by: dchagin
* | Unbreak the no-networks (no INET/6) build that I broke withbz2008-11-291-0/+2
| | | | | | | | | | | | the commit in r185435. Pointyhat: no, but I could need a ski cap for the winter
* | Regeneratekib2008-11-293-9/+9
| |
* | Fix iovec32 for linux32/amd64.kib2008-11-293-14/+47
| | | | | | | | | | | | | | | | | | | | | | Add a custom version of copyiniov() to deal with the 32-bit iovec pointers from userland (to be used later). Adjust prototypes for linux_readv() and linux_writev() to use new l_iovec32 definition and to match actual linux code. In particular, use ulong for fd (why ?). Submitted by: dchagin
* | Regen after jail support was added in r185435.bz2008-11-294-7/+12
| |
* | MFp4:bz2008-11-2939-383/+2421
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bring in updated jail support from bz_jail branch. This enhances the current jail implementation to permit multiple addresses per jail. In addtion to IPv4, IPv6 is supported as well. Due to updated checks it is even possible to have jails without an IP address at all, which basically gives one a chroot with restricted process view, no networking,.. SCTP support was updated and supports IPv6 in jails as well. Cpuset support permits jails to be bound to specific processor sets after creation. Jails can have an unrestricted (no duplicate protection, etc.) name in addition to the hostname. The jail name cannot be changed from within a jail and is considered to be used for management purposes or as audit-token in the future. DDB 'show jails' command was added to aid debugging. Proper compat support permits 32bit jail binaries to be used on 64bit systems to manage jails. Also backward compatibility was preserved where possible: for jail v1 syscalls, as well as with user space management utilities. Both jail as well as prison version were updated for the new features. A gap was intentionally left as the intermediate versions had been used by various patches floating around the last years. Bump __FreeBSD_version for the afore mentioned and in kernel changes. Special thanks to: - Pawel Jakub Dawidek (pjd) for his multi-IPv4 patches and Olivier Houchard (cognet) for initial single-IPv6 patches. - Jeff Roberson (jeff) and Randall Stewart (rrs) for their help, ideas and review on cpuset and SCTP support. - Robert Watson (rwatson) for lots and lots of help, discussions, suggestions and review of most of the patch at various stages. - John Baldwin (jhb) for his help. - Simon L. Nielsen (simon) as early adopter testing changes on cluster machines as well as all the testers and people who provided feedback the last months on freebsd-jail and other channels. - My employer, CK Software GmbH, for the support so I could work on this. Reviewed by: (see above) MFC after: 3 months (this is just so that I get the mail) X-MFC Before: 7.2-RELEASE if possible
* | Check the return value of config_intrhook_establish().rpaulo2008-11-291-1/+5
| | | | | | | | | | Found with: Coverity Prevent(tm) CID: 2115
* | Check for non-existing model DMI string.rpaulo2008-11-291-0/+3
| | | | | | | | | | | | | | Submitted by: ganbold Found with: Coverity Prevent(tm) CID: 2434 MFC after: 1 week
* | In the nfsrv_fhtovp(), after the vfs_getvfs() function found the pointerkib2008-11-294-12/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to the fs, but before a vnode on the fs is locked, unmount may free fs structures, causing access to destroyed data and freed memory. Introduce a vfs_busymp() function that looks up and busies found fs while mountlist_mtx is held. Use it in nfsrv_fhtovp() and in the implementation of the handle syscalls. Two other uses of the vfs_getvfs() in the vfs_subr.c, namely in sysctl_vfs_ctl and vfs_getnewfsid seems to be ok. In particular, sysctl_vfs_ctl is protected by Giant by being a non-sleeping sysctl handler, that prevents Giant-locked unmount code to interfere with it. Noted by: tegge Reviewed by: dfr Tested by: pho MFC after: 1 month
* | Improve KASSERT() call a bit:pjd2008-11-291-1/+2
| | | | | | | | | | | | | | | | | | - Print flags in hex. - Note that flags can be fine and panic can be due unexpected error condition. - Remove redundant new line character. Eventhough panic message excess 80 characters keep it in one line so it is easier to grep.
* | MFp4: Remove assertion that is no longer valid - we now use VOP_CLOSE() inpjd2008-11-291-1/+0
| | | | | | | | more places (ie vdev_file.c).
* | make 'make universe' not complain aboutbz2008-11-291-0/+1
| | | | | | | | | | | | | | | | | | In file included from /src/sys/modules/powermac_nvram/../../dev/powermac_nvram/powermac_nvram.c:38: @/dev/ofw/ofw_bus.h:36:24: error: ofw_bus_if.h: No such file or directory I am not sure for how long this had not worked and if it was just the latest vimage commit that had revealed this or if nobody had built universe successfully in a while. Btw, the tinderbox did not complain either so that is probably the reason noone had noticed.
* | Unbreak mips build by taking first WAG at mb(), wmb() and rmb(). Theimp2008-11-291-0/+4
| | | | | | | | latter two are likely pessimal...
* | Noticed the following error message:imp2008-11-291-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | mount_msdosfs: /dev/cf0s1: : Operation not supported by device and thought I'd fix it to be: mount_msdosfs: /dev/cf0s1: Operation not supported by device Not sure why errmsg isn't getting filled in, or why this error is even happening at all... (fsck_msdosfs is clean, and I can mount this same CF elsewhere).
* | Renamed the FRAMELEN macro to TRUEPHY_FRAMELEN as for powerpcbz2008-11-281-2/+3
| | | | | | | | | | | | it seems to be possible to collide with FRAMELEN from machine/frame.h. Found by: zec
* | Add an essential .h file that skipped from the last commit (r185419).zec2008-11-281-0/+82
| | | | | | | | | | | | Pointy hat #1 on... Pointed out by: bz
* | Unhide declarations of network stack virtualization structs fromzec2008-11-2818-81/+40
|/ | | | | | | | | | | | | | | | | | underneath #ifdef VIMAGE blocks. This change introduces some churn in #include ordering and nesting throughout the network stack and drivers but is not expected to cause any additional issues. In the next step this will allow us to instantiate the virtualization container structures and switch from using global variables to their "containerized" counterparts. Reviewed by: bz, julian Approved by: julian (mentor) Obtained from: //depot/projects/vimage-commit2/... X-MFC after: never Sponsored by: NLnet Foundation, The FreeBSD Foundation
* o FreeBSD 6.4-RELEASE added.maxim2008-11-281-6/+8
|
* With the permissions of phk@ change the license on kern_jail.cbz2008-11-281-6/+22
| | | | to a 2 clause BSD license.
* Add missing 'THE'. This was discussed with core@ in the largerimp2008-11-281-2/+2
| | | | | | | | | | | | | context of making this text match the OSL text, but the changes that OSL silently made to the license to approve it haven't been brought back yet. Still working on that issue. We likely should start using the UTF-8 copyright symbol (What &copy; expands to in HTML), but I'm not 100% confident in my ability to tell Emacs to save it like that. And I haven't gotten approval for that change. Approved by: core@
* Update for 185401, errors now go to stderr.stefanf2008-11-281-0/+0
|
* Report error messages of the builtins 'type' and 'command -V' to stderr insteadstefanf2008-11-281-12/+11
| | | | | | of stdout. Noticed by: Zajcev Evgeny
* Fix a printing problem when using the -L flag to netstat causedgnn2008-11-281-13/+16
| | | | | | | by adding the -x flag earlier. Submitted by: Anton Yuzhaninov MFC after: 3 days
* Fix matching of message queues by name.ed2008-11-281-1/+2
| | | | | | | | | | | | | | | The mqfs_search() routine uses strncmp() to match message queue objects by name. This is because it can be called from environments where the file name is not null terminated (the VFS for example). Unfortunately it doesn't compare the lengths of the message queue names, which means if a system has "Queue12345", the name "Queue" will also match. I noticed this when a student of mine handed in an exercise using message queues with names "Queue2" and "Queue". Reviewed by: rink
* missing V_des2008-11-281-1/+1
|
* Add a reference to hwpmc_core.c most likely missed in r185363bz2008-11-281-0/+1
| | | | to try to unbreak universe (untested).
* Remove duplicate 2610SA entry.emaste2008-11-271-2/+0
| | | | Submitted by: jkim
* Let ARM loader(8) build with the man page.raj2008-11-271-4/+3
|
* Provide manual page for the mge(4) device driver.raj2008-11-272-1/+161
|
* Explicitely note that destroy_dev() sleeps.kib2008-11-271-0/+1
| | | | Requested by: ed (some time ago), Jaakko Heinonen <jh saunalahti fi>
* Replace most INP_CHECK_SOCKAF() uses checking if it is anbz2008-11-273-8/+4
| | | | | | | | | IPv6 socket by comparing a constant inp vflag. This is expected to help to reduce extra locking. Suggested by: rwatson Reviewed by: rwatson MFC after: 6 weeks
* Merge in6_pcbfree() into in_pcbfree() which after the previousbz2008-11-277-75/+17
| | | | | | | | | | IPsec change in r185366 only differed in two additonal IPv6 lines. Rather than splattering conditional code everywhere add the v6 check centrally at this single place. Reviewed by: rwatson (as part of a larger changset) MFC after: 6 weeks (*) (*) possibly need to leave a stub wrapper in 7 to keep the symbol.
* Add two rtld exported symbols, _rtld_atfork_pre and _rtld_atfork_post.kib2008-11-277-1/+46
| | | | | | | | | | | | | | Threading library calls _pre before the fork, allowing the rtld to lock itself to ensure that other threads of the process are out of dynamic linker. _post releases the locks. This allows the rtld to have consistent state in the child. Although child may legitimately call only async-safe functions, the call may need plt relocation resolution, and this requires working rtld. Reported and debugging help by: rink Reviewed by: kan, davidxu MFC after: 1 month (anyway, not before 7.1 is out)
* Unify ipsec[46]_delete_pcbpolicy in ipsec_delete_pcbpolicy.bz2008-11-276-27/+5
| | | | | | | | | Ignoring different names because of macros (in6pcb, in6p_sp) and inp vs. in6p variable name both functions were entirely identical. Reviewed by: rwatson (as part of a larger changeset) MFC after: 6 weeks (*) (*) possibly need to leave a stub wrappers in 7 to keep the symbols.
* Update description of an event.jkoshy2008-11-271-2/+1
| | | | Submitted by: "Verplanke, Edwin" <edwin dot verplanke at intel dot com>
* - Add support for PMCs in Intel CPUs of Family 6, model 0xE (Core Solojkoshy2008-11-2717-74/+3356
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and Core Duo), models 0xF (Core2), model 0x17 (Core2Extreme) and model 0x1C (Atom). In these CPUs, the actual numbers, kinds and widths of PMCs present need to queried at run time. Support for specific "architectural" events also needs to be queried at run time. Model 0xE CPUs support programmable PMCs, subsequent CPUs additionally support "fixed-function" counters. - Use event names that are close to vendor documentation, taking in account that: - events with identical semantics on two or more CPUs in this family can have differing names in vendor documentation, - identical vendor event names may map to differing events across CPUs, - each type of CPU supports a different subset of measurable events. Fixed-function and programmable counters both use the same vendor names for events. The use of a class name prefix ("iaf-" or "iap-" respectively) permits these to be distinguished. - In libpmc, refactor pmc_name_of_event() into a public interface and an internal helper function, for use by log handling code. - Minor code tweaks: staticize a global, freshen a few comments. Tested by: gnn
* Revert r184509: don't encourage the use of sysexits.h with err() andrwatson2008-11-271-2/+2
| | | | | | | errx(),, as there seems to be a general preference against this practice. Suggested by: bde, des, jhb
* The timezone byte is a signed value, treat it as such.kientzle2008-11-271-1/+1
| | | | | | | | | Otherwise, time zone information for time zones west of GMT gets discarded. PR: kern/128934 Submitted by: J.R. Oldroyd MFC after: 4 days
* After visiting a subdirectory, we use chdir("..") orkientzle2008-11-273-19/+57
| | | | | | | | | | fchdir() to return back to the parent. If those fail, we're just dead in the water. Add a new error value TREE_ERROR_FATAL to indicate that directory traversal cannot continue. Have write.c honor that by exiting immediately. MFC after: 30 days
* If we're unable to chdir() to a directory that we know exists,kientzle2008-11-271-1/+3
| | | | | | | | | | that should result in a non-zero return value. In particular, this should address the issue that David Wolfskill ran into with a somewhat flaky NFS mount resulting in a damaged archive even though tar returned success. MFC after: 4 days
* Remove unused variable.ganbold2008-11-271-2/+1
| | | | | | | Found with: Coverity Prevent(tm) CID: 3664 Approved by: kib
OpenPOWER on IntegriCloud