summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* posix_spawn: If an error is detected in the child process, reap the zombie.jilles2011-07-103-2/+95
| | | | | | | | | | Formerly, in this case an error was returned but the pid was also returned to the application, requiring the application to use unspecified behaviour (the returned pid in error situations) to avoid zombies. Now, reap the zombie and do not return the pid. MFC after: 2 weeks
* Revert the previous change and add xdr_sizeofkevlo2011-07-101-39/+37
| | | | Requested by: bde
* - Removing some unneeded definitions of NULL(cruft related to 1970's C).avatar2011-07-106-29/+15
| | | | | | | | | | | | | | | | | | | | | | In C90, NULL is guaranteed to be declared in <stddef.h> and also in <string.h>. Though the correct way to define NULL in FreeBSD is to include <sys/_null.h>, other parts of libstand still require <string.h> to build; therefore, we keep <string.h> in stand.h and add a note about this; - Removing no longer used 'Prototype' definition. Quote from bde@: 'Cruft related to getting incomplete struct declarations within prototypes forward-declared before the structs. It doesn't mean "prototype" but only part of a prototype-related hack. No longer used.' - Replacing iaddr_t with uintptr_t; - Removing use of long double to determine alignment. Use a fixed 16 byte alignment instead; Reviewed by: bde Obtained from: DragonFlyBSD (partially) MFC after: 1 month
* style(9) cleanupkevlo2011-07-101-1/+1
|
* Add a HISTORY sectionkevlo2011-07-101-0/+5
| | | | Requested by: arundel
* When first creating snapshots, we may free some blocks within it.mckusick2011-07-101-1/+5
| | | | | | These blocks should not have TRIM applied to them. Submitted by: Kostik Belousov
* Update tags build scriptmckusick2011-07-102-1/+3
|
* Allow disk partitions associated with UFS read-only mountedmckusick2011-07-102-16/+8
| | | | | | | | | filesystems to be opened for writing. This functionality used to be special-cased for just the root filesystem, but with this change is now available for all UFS filesystems. This change is needed for journaled soft updates recovery. Discussed with: Jeff Roberson
* Per request of the docs team, install docs as packages, instead of vianwhitehorn2011-07-095-12/+80
| | | | | | | the normal distfile mechanism. Thanks to Marc Fonvieille for the patch and for putting up with me taking entirely too long to commit this! Submitted by: blackend
* Remove reviewed line from copyright header.hselasky2011-07-091-1/+0
| | | | Suggested by: joel @
* Remove the old vm_map_clean man page.alc2011-07-091-85/+0
|
* vm_map_clean() was long ago renamed to vm_map_sync(). Also, it no longeralc2011-07-094-3/+86
| | | | | | acquires Giant. MFC after: 1 week
* Fix the definition for PCPU_NAME_LEN, which is intended to fitmarius2011-07-091-1/+1
| | | | | | | | | | | | | | | | ("CPU %d", cpuid) where cpuid <= MAXCPU. 1. sizeof(__XSTRING(MAXCPU) + 1) is a typo: typeof(__XSTRING(...) + 1) is 'char *', so sizeof() will return the size of the pointer, not the size of the string contents. The proper expression should be 'sizeof(__XSTRING(MAXCPU)) + 1'. 2. One should not add one, but substract it: sizeof() accounts for the trailing '\0' and we have two sizeof's, so the size of one '\0' should be substracted -- this will give the maximal string buffer length for CPU with its number, no less, no more. Submitted by: rea
* Oops. These changes should have been included in r223891.alc2011-07-092-75/+4
| | | | MFC after: 1 week
* Remove manual pages for functions that no longer exist.alc2011-07-094-119/+1
| | | | MFC after: 1 week
* Document copyin_nofault, copyout_nofault, uiomove_nofault.kib2011-07-093-22/+84
| | | | Submitted by: alc
* Add a facility to disable processing page faults. When activated,kib2011-07-096-11/+77
| | | | | | | | uiomove generates EFAULT if any accessed address is not mapped, as opposed to handling the fault. Sponsored by: The FreeBSD Foundation Reviewed by: alc (previous version)
* Use 'curthread_pflags' instead of 'thread_pflags' to signify that onlykib2011-07-092-14/+14
| | | | | | | curthread can be operated upon. Requested by: attilio MFC after: 1 week
* Use helper functions instead of manually managing TDP_INBDFLUSH.kib2011-07-091-16/+12
| | | | | | Sponsored by: The FreeBSD Foundation Reviewed by: alc (previous version) MFC after: 1 week
* Implement a helper functions to locally set thread-private flag, andkib2011-07-091-0/+19
| | | | | | | | | restore it to the previous state. Note that only setting a flag locally is supported. Sponsored by: The FreeBSD Foundation Reviewed by: alc (previous version) MFC after: 1 week
* Implement pci_find_class(9), the function to find a pci device by its class.kib2011-07-092-0/+16
| | | | | | Sponsored by: The FreeBSD Foundation Reviewed by: jhb MFC after: 1 week
* Implement bitcount16.kib2011-07-091-0/+11
| | | | | Sponsored by: The FreeBSD Foundation MFC after: 1 week
* Fix style, since this file has just been touched in a major way.se2011-07-091-96/+75
| | | | No actual code changes.
* Some refactoring for easier maintenance of the code. This is a follow-upse2011-07-091-146/+69
| | | | | | to re-establishment of 64bit arithmetic, but is committed separately, to not obscure that conversion. This commit does not change the observed behaviour of expr in any way. Style will be fixed in a follow-up commit.
* Make /bin/expr support 64bit numeric range and range checks by default,se2011-07-092-140/+152
| | | | | | | | | | | | | | | | | | | | | | | | again. This brings back the behaviour of expr in FreeBSD-4, which had been reverted due to an assumed incompatbility with POSIX.1 for FreeBSD-5. This issue has been discussed in the freebsd-standards list, and the consensus was, that POSIX.1 is in fact not violated by this extension, since it affects only cases of POSIX undefined behaviour (overflow of signed long). Other operating systems did upgrade their versions of expr to support 64bit range, after it had been initially brought to FreeBSD. They have used it for a decade without problems, meanwhile. The -e option is retained, but it will only select less strict checking of numeric parameters (leading white-space, leading "+" are allowed and skipped, an empty string is considered to represent 0 in numeric context.) The call of check_utility_compat() as a means of establishing backwards compatibility with FreeBSD-4 is considered obsolete, but preserved in this commit. It is expected to be removed in a later revision of this file. Reviewed by: bde, das, jilles MFC after: 2 month (those parts that do not violate POLA)
* Add missing "swapuse" resource limit.trasz2011-07-091-1/+2
|
* - Add xdr_sizeof(3) to libckevlo2011-07-095-41/+62
| | | | | | - Document xdr_sizeof(3); from NetBSD Discussed with: kib
* Add an option to have a fail point term only execute when run by amdf2011-07-082-1/+26
| | | | | | | specified pid. This is helpful for automated testing involving a global knob that would otherwise be executed by many other threads. MFC after: 1 week
* style(9) and cleanup fixes.mdf2011-07-081-80/+69
| | | | MFC after: 1 week
* Add device ID for the Davicom 56PDV PCI Modem.jhb2011-07-081-0/+1
| | | | | | PR: kern/75132 Submitted by: Mike Tancsa @ Sentex (older patch against puc(4)) MFC after: 1 week
* Implement basic support for memory attributes. At this time we onlymarcel2011-07-083-27/+121
| | | | | | | | | | | | | distinguish between UC and WB memory so that we can map the page to either a region 6 address (for UC) or a region 7 address (for WB). This change is only now possible, because previously we would map regions 6 and 7 with 256MB translations and on top of that had the kernel mapped in region 7 using a wired translation. The introduction of the PBVM moved the kernel into its own region and freed up region 7 and allowed us to revert to standard page-sized translations. This commit inroduces pmap_page_to_va() that respects the attribute.
* Note that -a, -C, -H, -j, and -z are also toggles.jhb2011-07-081-1/+6
| | | | | | PR: bin/158682 Reported by: arundel MFC after: 3 days
* Fix the "passability" test in fdcopy().jonathan2011-07-081-2/+2
| | | | | | | | | | | | | | | Rather than checking to see if a descriptor is a kqueue, check to see if its fileops flags include DFLAG_PASSABLE. At the moment, these two tests are equivalent, but this will change with the addition of capabilities that wrap kqueues but are themselves of type DTYPE_CAPABILITY. We already have the DFLAG_PASSABLE abstraction, so let's use it. This change has been tested with [the newly improved] tools/regression/kqueue. Approved by: mentor (rwatson), re (Capsicum blanket) Sponsored by: Google Inc
* Clarify the meaning of a test.jonathan2011-07-082-4/+4
| | | | | | | | | | | | Rather than using err() if either of two failure conditions fires (which can produce spurious error messages), just use errx() if the one condition that really matters fires. In practice, this single test is enough to detect the failure mode we're looking for (kqueue being inherited across fork). Approved by: mentor (rwatson), re (Capsicum blanket) Sponsored by: Google Inc
* Add new USB 3G driver.hselasky2011-07-086-3/+1883
| | | | | Submitted by: PseudoCylon <moonlightakkiy@yahoo.ca> MFC after: 14 days
* In the experimental soreceive_stream():andre2011-07-081-13/+9
| | | | | | | | | | | o Move the non-blocking socket test below the SBS_CANTRCVMORE so that EOF is correctly returned on a remote connection close. o In the non-blocking socket test compare SS_NBIO against the so->so_state field instead of the incorrect sb->sb_state field. o Simplify the ENOTCONN test by removing cases that can't occur. Submitted by: trociny (with some further tweaks by committer) Tested by: trociny
* Permit ARP to proceed for IPv4 host routes for which the gateway is thezec2011-07-083-7/+12
| | | | | | | | | same as the host address. This already works fine for INET6 and ND6. While here, remove two function pointers from struct lltable which are only initialized but never used. MFC after: 3 days
* Fixing building bustage on 32 bits platforms when WARNS >= 2. Note thatavatar2011-07-082-5/+10
| | | | | | | | | this fix only applies to zalloc.c, the other part of libstand such like qdivrem.c still gives compilation warnings on sparc64 tinderbox builds; therefore, WARNS level isn't changed for now. Submitted by: Garrett Cooper <yanegomi@gmail.com> Reviewed by: bde
* Delete the /etc/rc.d/nfsserver script, since it is normacklem2011-07-086-23/+6
| | | | | | | | longer used by /etc/rc.d/nfsd and it is no longer necessary to load the old nfs server by default, when nfs_server_enable="YES". Tested by: sgk at troutmask.apl.washington.edu Reviewed by: rc (Andrzej Tobola)
* Note the PF version.obrien2011-07-071-2/+7
| | | | Discussed with: bz
* Fix the /etc/rc.d/nfsd script so that it no longer usesrmacklem2011-07-071-3/+3
| | | | | | | | the /etc/rc.d/nfsserver script to load the old nfs server module. Tested by: sgk at troutmask.apl.washington.edu Reviewed by: rc (hrs)
* Grab the rlock before checking if our interface is enabled, it could bethompsa2011-07-071-1/+2
| | | | | | | | possible to hit a dead pointer when changing interfaces. PR: kern/156978 Submitted by: Andrew Boyer MFC after: 1 week
* Ensure that kqueue is not inherited across fork().jonathan2011-07-073-6/+21
| | | | | | | | | | | | | | | Modify the existing unit test (from libkqueue) which already exercises process events via fork() and kill(). Now, the child process simply checks that the 'kqfd' descriptor is invalid. Some minor modifications were required to make err() work correctly. It seems that this test was imported using the output of a configure script, but config.h was not included in key places, nor was its syntax correct (need '#define HAVE_FOO 1' rather than '#define HAVE_FOO'). Finally, change main() to run the "proc" suite by default, but widened the '#if TODO' in proc.c to include the non-functioning test event_trigger(). Approved by: mentor (rwatson), re (Capsicum blanket) Sponsored by: Google Inc
* Style fix - macros are supposed to be uppercase.trasz2011-07-073-23/+23
|
* Make a comment more accurate.jonathan2011-07-071-1/+1
| | | | | | | | | This comment refers to CAP_NT_SMBS, which does not exist; it should refer to SMB_CAP_NT_SMBS. Fixing this comment makes it easier for people interested in Capsicum to grep around for capability rights, whose identifiers are of the form 'CAP_[A-Z_]'. Approved by: mentor (rwatson), re (Capsicum blanket) Sponsored by: Google Inc
* Fix memset sizeofskevlo2011-07-072-2/+2
| | | | Reviewed by: bschmidt
* Always skip the kernel idle process if requested, it is not specific tojhb2011-07-071-5/+4
| | | | | | | | the 'CPU' mode. PR: bin/158677 Reported by: arundel MFC after: 3 days
* Add again the checking for log_arp_permanent_modify that was by accidentae2011-07-071-5/+7
| | | | | | | removed in the r186119. PR: kern/154831 MFC after: 1 week
* Remove the TCP_SORECEIVE_STREAM compile time option. The use ofandre2011-07-073-7/+2
| | | | | | | soreceive_stream() for TCP still has to be enabled with the loader tuneable net.inet.tcp.soreceive_stream. Suggested by: trociny and others
* Add an extra tab between fs_file and fs_vfstypekevlo2011-07-071-1/+1
| | | | Reviewed by: nwhitehorn
OpenPOWER on IntegriCloud