summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Globally replace u_int*_t from (non-contributed) man pages.ed2012-02-1256-345/+345
| | | | | | | | | | | The reasoning behind this, is that if we are consistent in our documentation about the uint*_t stuff, people will be less tempted to write new code that uses the non-standard types. I am not going to bump the man page dates, as these changes can be considered style nits. The meaning of the man pages is unaffected. MFC after: 1 month
* start watchdogd before most of other daemons/serversavg2012-02-122-2/+2
| | | | | | | | | The main benefit is that watchdogd would shutdown after most of other daemons/servers and thus, for example, would remedy a system hang caused by unlucky X server shutdown. Reviewed by: dougb (earlier version) MFC after: 2 weeks
* Move WITHOUT_SOURCELESS_* files to sys/conf/ in order to avoid "universe"rmh2012-02-126-58/+0
| | | | | | | target processing them as if they were standalone kernel config files. Approved by: kib (mentor) MFC after: 5 days
* newvers.sh: unbreak git/git-svn supportavg2012-02-121-4/+8
| | | | MFC after: 2 weeks
* Avoid using BEFORE in the utx rc script.ed2012-02-122-2/+1
| | | | Requested by: dougb
* Include target names in diagnostic output.fjoe2012-02-122-68/+75
| | | | Submitted by: Garrett Cooper
* - Use fixed-width integer types.fjoe2012-02-122-21/+21
| | | | | | | | - Prefer to use C99 stdint types. This fixes ng_cisco on 64-bit architectures. MFC after: 1 week
* And of course, I forgot to add -a to the usage.ed2012-02-111-1/+1
|
* Attempt to implement who -a.ed2012-02-112-22/+16
| | | | | | According to POSIX, -a is equal to -bdlprtTu. It seems this is not true in practice, as -b normally restricts the output to BOOT_TIME entries and all implementations that I know of don't.
* sh: Make 'hash' return 1 if at least one utility is not found.jilles2012-02-112-8/+18
| | | | Reported by: lme
* Move utmpx handling out of init(8).ed2012-02-115-42/+25
| | | | | | | | | | | | | | | | | This has the following advantages: - During boot, the BOOT_TIME record is now written right after the file systems become writable, but before users are allowed to log in. This means that they can't cause `hidden logins' by logging in right before init(8) kicks in. - The pututxline(3) function may potentially block on file locking, though this is very rare to occur. By placing it in an rc script, the user can still kill it with ^C if needed. - Most importantly: jails don't use init(8). This means that a force reboot of a system running jails will leave stale entries in the accounting database of the jails individually.
* MFp4 204292:bz2012-02-111-0/+12
| | | | | | | | | | Ignore the NAT_T extension types so we can at least dump the SADB from the in-base libipsec/setkey without error when NAT_T support is present in the kernel, though not printing the additional information yet. However in case there is no NAT_T support in kernel still consider them to be an error. MFC after: 8 weeks
* Replace utxrm(8) by utx(8).ed2012-02-118-33/+103
| | | | | | | | | | At first, I added a utility called utxrm(8) to remove stale entries from the user accounting database. It seems there are cases in which we need to perform different operations on the database as well. Simply rename utxrm(8) to utx(8) and place the old code under the "rm" command. In addition to "rm", this tool supports "boot" and "shutdown", which are going to be used by an rc-script which I am going to commit separately.
* Close a race due to dropping of the map lock between creating map entrykib2012-02-113-10/+11
| | | | | | | | | for a shared mapping and marking the entry for inheritance. Other thread might execute vmspace_fork() in between (e.g. by fork(2)), resulting in the mapping becoming private. Noted and reviewed by: alc MFC after: 1 week
* Nice range comparison.pjd2012-02-111-5/+3
| | | | MFC after: 3 days
* Reverting last change r231449 (fix bin/164947) due to concerns voicedcracauer2012-02-111-23/+3
| | | | | on src-committers and the fact that I can only take care of this in a week.
* The PTRACESTOP() macro is used only once. Inline the only use and removekib2012-02-112-7/+5
| | | | | | the macro. MFC after: 1 week
* Properly name the sysctl to "iflistl" rather than "iflist2", which had beenbz2012-02-111-1/+1
| | | | | | | the prototype name and slipped in in r231505. Spotted in a reply from: bde MFC after: 3 days
* Flesh out support for SAS1078 and SAS1078DE (which are said to actuallymarius2012-02-115-33/+67
| | | | | | | | | | | | | | | | | be the same chip): - The I/O port resource may not be available with these. However, given that we actually only need this resource for some controllers that require their firmware to be up- and downloaded (which excludes the SAS1078{,DE}) just handle failure to allocate this resource gracefully when possible. While at it, generally put non-fatal resource allocation failures under bootverbose. - SAS1078{,DE} use a different hard reset protocol. - Add workarounds for the 36GB physical address limitation of scatter/ gather elements of these controllers. Tested by: Slawa Olhovchenkov PR: 149220 (remaining part)
* Add myself to calendar.dmarion2012-02-111-0/+1
| | | | Approved by: cognet (mentor)
* Use the correct constant (with same value) for comparying the SA type.bz2012-02-111-1/+1
| | | | | | PR: kern/142741 Submitted by: Matthijs Kooiman (matthijs stdin.nl) MFC after: 3 days
* Set read buffer size to multiple of sizeof(struct futx).ed2012-02-111-7/+12
| | | | | | | | | If the utmpx database gets updated while an application is reading it, there is a chance the reading application processes partially overwritten entries. To solve this, make sure we always read a multiple of sizeof(struct futx) at a time. MFC after: 2 weeks
* Depend on the relevant header files.bz2012-02-111-1/+1
|
* Start to try to hide LRO (and some TSO) bits behind #ifdefs as especiallybz2012-02-111-4/+48
| | | | | the symbols are not there when compiling a kernel without IP support and we do have users doing so.
* Remove unused variable miikevlo2012-02-111-2/+0
|
* Use the more common macro to set the if_baudrate to 10Gbit/s. Just usebz2012-02-111-1/+1
| | | | UL not ULL, which should make 32bit archs more happy.
* Make use of the read-only variant of the IF_ADDR_*LOCK() macros introducedbz2012-02-111-2/+2
| | | | in r229614 rather than the compat one.
* In the days before r208307 addswap was running early in the second stagedougb2012-02-112-2/+2
| | | | | | | | of rcorder. Somehow in the intervening period addswap got moved to the very end, which is almost certainly not what we want. This change moves it to right after kld so that for users who need it, they'll get it ASAP.
* Switch getifaddrs(3) to the new API introduced in r231505. Also removebz2012-02-112-122/+54
| | | | | | | | | | | | | conditional code parts not used by or applicable to FreeBSD. The new implementation is supposed to be able to cope with changes to the 'l' versions of the msghdr structs now used as well as to if_data allowing future changes without breaking things. This restores carp(4) config support in HEAD after r231504. Reviewed by: glebius, brooks MFC After: 3 months
* Introduce a new NET_RT_IFLISTL API to query the address list. It worksbz2012-02-115-47/+277
| | | | | | | | | | | on extended and extensible structs if_msghdrl and ifa_msghdrl. This will allow us to extend both the msghdrl structs and eventually if_data in the future without breaking the ABI. Bump __FreeBSD_version to allow ports to more easily detect the new API. Reviewed by: glebius, brooks MFC after: 3 days
* Backout changes from r228571. Remove if_data from struct ifa_msghdr again.bz2012-02-113-7/+1
| | | | | | | While this breaks carp on HEAD temporary, it restores the upgrade path from stable, and head before 20111215. Reviewed by: glebius, brooks
* Make code more stable by checking NULL pointers.davidxu2012-02-111-2/+6
|
* Add handlers for TLS-related relocation entriesgonzo2012-02-112-3/+87
|
* Return BUS_PROBE_DEFAULT instead of BUS_PROBE_VENDOR from the mps driverken2012-02-111-1/+1
| | | | | | | | | probe routine. This will allow LSI to ship drivers that return BUS_PROBE_VENDOR to override the in-tree version of the driver. MFC after: 3 days
* De-obfuscate acpi_acquire_global_lock(). It seems the function was directlyjkim2012-02-101-8/+6
| | | | translated from i386 assembly version.
* - Reverse logic so base tls is fixed up with correct numbergonzo2012-02-101-1/+1
|
* Fix bin/164947: tee looses data when writing to non-blocking file descriptorscracauer2012-02-101-3/+23
| | | | | | | | tee was not handling EAGAIN patch submitted by Diomidis Spinellis <dds@aueb.gr>. Thanks so much reproduced and re-tested locally
* Add a test program for recently added ptrace(2) interfaces.kib2012-02-102-0/+413
| | | | MFC after: 1 week
* In cpu_set_user_tls(), consistently set PCB_FULL_IRET pcb flag forkib2012-02-101-1/+1
| | | | | | | | | | | both 64bit and 32bit binaries, not for 64bit only. The set of the flag is not neccessary there, because the only current user of the cpu_set_user_tls() is create_thread(), which calls cpu_set_upcall() before and cpu_set_upcall() itself sets PCB_FULL_IRET. Change the function for consistency and preserve existing KPI for now. MFC after: 1 week
* Add a driver for Emulex OneConnect ethernet cards (10 Gbit PCIe)luigi2012-02-1012-0/+11552
| | | | | | A manpage will come in a future commit. Submitted by: Naresh Raju Gottumukkala (emulex)
* Remove debug outputgonzo2012-02-101-2/+0
|
* - Fix spelling of R_MIPS_RELGOTgonzo2012-02-101-2/+20
| | | | | | | - Add R_MIPS_JALR relocation - Add TLS relocation types Obtained from: NetBSD
* Reduce diffs against i386.nyan2012-02-101-12/+14
| | | | MFC after: 1 week
* Remove unneeded newline. It fits in 80 columns now.ed2012-02-101-2/+1
| | | | Pointed out by: jh
* Correct date. It seems to be 2012.ed2012-02-101-1/+1
|
* Unbreak build.ed2012-02-101-1/+1
| | | | libprocstat still uses __si_namebuf.
* Detect file modification properly by using tv_nsec.ed2012-02-102-9/+3
| | | | | | | POSIX 2008 standardizes st_mtim, meaning we can simply use nanosecond precision to detect file modification. MFC after: 2 weeks
* Merge si_name and __si_namebuf.ed2012-02-103-10/+9
| | | | | The si_name pointer always points to the __si_namebuf member inside the same object. Remove it and rename __si_namebuf to si_name.
* Remove direct access to si_name.ed2012-02-1012-40/+47
| | | | | | | | Code should just use the devtoname() function to obtain the name of a character device. Also add const keywords to pieces of code that need it to build properly. MFC after: 2 weeks
* Be more helpful about alternate superblocks.trasz2012-02-102-2/+7
|
OpenPOWER on IntegriCloud