summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add the BSD-licensed Citrus iconv to the base system with default offgabor2011-02-251032-9/+2289190
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | setting. It can be built by setting the WITH_ICONV knob. While this knob is unset, the library part, the binaries, the header file and the metadata files will not be built or installed so it makes no impact on the system if left turned off. This work is based on the iconv implementation in NetBSD but a great number of improvements and feature additions have been included: - Some utilities have been added. There is a conversion table generator, which can compare conversion tables to reference data generated by GNU libiconv. This helps ensuring conversion compatibility. - UTF-16 surrogate support and some endianness issues have been fixed. - The rather chaotic Makefiles to build metadata have been refactored and cleaned up, now it is easy to read and it is also easier to add support for new encodings. - A bunch of new encodings and encoding aliases have been added. - Support for 1->2, 1->3 and 1->4 mappings, which is needed for transliterating with flying accents as GNU does, like "u. - Lots of warnings have been fixed, the major part of the code is now WARNS=6 clean. - New section 1 and section 5 manual pages have been added. - Some GNU-specific calls have been implemented: iconvlist(), iconvctl(), iconv_canonicalize(), iconv_open_into() - Support for GNU's //IGNORE suffix has been added. - The "-" argument for stdin is now recognized in iconv(1) as per POSIX. - The Big5 conversion module has been fixed. - The iconv.h header files is supposed to be compatible with the GNU version, i.e. sources should build with base iconv.h and GNU libiconv. It also includes a macro magic to deal with the char ** and const char ** incompatibility. - GNU compatibility: "" or "char" means the current local encoding in use - Various cleanups and style(9) fixes. Approved by: delphij (mentor) Obtained from: The NetBSD Project Sponsored by: Google Summer of Code 2009
* Enable the check for negative permissions (the group on a file can't dobrooks2011-02-241-1/+1
| | | | | | something "everyone" can) by default. X-MFC after: never
* * Fix several bugs where the scaled versions of srtt and rttvartuexen2011-02-243-23/+23
| | | | | | | where used incorrectly. * Use appropriate variable names for RTO instead of RTT. MFC after: 3 months.
* * Cleanup the code computing the retransmission timeout.tuexen2011-02-243-77/+39
| | | | | | * Fix an initialization bug for the scaled variance of the RTO. MFC after: 3 months.
* Use ffs() to locate free bits in the inode and block bitmaps rather thanjhb2011-02-241-18/+10
| | | | loops with bit shifts.
* Recently, in upstream clang, a fix was done to add -L/usr/lib to thedim2011-02-241-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | arguments passed to ld, when linking. This was to appease configure scripts in several ports, that grep for such a -L option in "${CC} -v" output, to determine the startup objects passed to ld. Note ld itself does not need to be told about /usr/lib, since it has this path builtin anyway. However, if clang is built as a bootstrap tool during buildworld, it should not use *anything* outside ${WORLDTMP} to include or link with. The upstream fix to add -L/usr/lib breaks this assumption, and can thus cause libraries from /usr/lib to be linked in during buildworld. This can result in buildworld dying during linking of zinject, where it picks up the wrong copy of libzpool.so, eventually leading to: /usr/obj/usr/src/tmp/lib/libthr.so.3: undefined reference to `_rtld_get_stack_prot' Fix this issue by not adding any hardcoded paths, but by looping through the run-time library path list, which is already correctly set for the bootstrap phase. Reported by: datastream.freecity@gmail.com Pointy hat to: dim
* Add sticky.8 to the obsolete files since it had beenremko2011-02-241-0/+2
| | | | | | moved to sticky.7 Submitted by: maxim and pluknet
* - Add missing xhci(4) manual page.hselasky2011-02-247-14/+93
| | | | | | | - Minor update in some USB manual pages. MFC after: 3 days Approved by: thompsa (mentor)
* Add wording about the priority range andremko2011-02-241-1/+7
| | | | | | | | | mention what effect this has at certain values. PR: 124469 Obtained from: NetBSD nice.1 v1.14 MFC after: 1 week
* Update xz to release 5.0.1mm2011-02-2414-307/+688
| | | | MFC after: 1 week
* Move the sticky manual from section 8 to sectionremko2011-02-243-2/+2
| | | | | | | | 7 like NetBSD has, since this is not a command on itself. PR: 124468 MFC after: 1 week
* - Fix typogahr2011-02-241-1/+1
| | | | Approved by: davidxu
* Remove sysctl vm.max_proc_mmap used to protect from KVA space exhaustion.pluknet2011-02-242-42/+0
| | | | | | | | | | | | | | As it was pointed out by Alan Cox, that no longer serves its purpose with the modern UMA allocator compared to the old one used in 4.x days. The removal of sysctl eliminates max_proc_mmap type overflow leading to the broken mmap(2) seen with large amount of physical memory on arches with factually unbound KVA space (such as amd64). It was found that slightly less than 256GB of physmem was enough to trigger the overflow. Reviewed by: alc, kib Approved by: avg (mentor) MFC after: 2 months
* - Add support for some non-standard USB MIDI devices from Roland, byhselasky2011-02-244-21/+72
| | | | | | | | | means of allowing vendor specific interface class for audio and MIDI devices. - Add new quirks for this. The vendor and product list in OpenBSD's dev/usb/umidi_quirks.c was used as reference. MFC after: 14 days Approved by: thompsa (mentor)
* The new accounting file needs to be 644 so that unprivileged usersdougb2011-02-241-0/+1
| | | | can use lastcomm(1)
* Use the cprd_mem field when setting the start and length for a memorybrucec2011-02-231-2/+2
| | | | | | | | | resource - the layout of cprd_port is identical but using cprd_mem makes the code easier to understand. PR: kern/118493 Submitted by: Weongyo Jeong <weongyo.jeong at gmail.com> MFC after: 3 days
* Fix the 32-bit build stage on amd64 when WITH_CTF is enabled. It seemsdim2011-02-231-1/+1
| | | | | | | | | ctfconvert will corrupt object files that are compiled with -g, if it is not run with -g itself. To fix it, remove -g from CFLAGS in lib/librt/Makefile. If you need to compile this library with debug info, use DEBUG_FLAGS=-g instead, which will work correctly, even when using WITH_CTF.
* Clean up the now unused #include statement.pluknet2011-02-231-1/+0
| | | | | | Approved by: kib (mentor) MFC after: 1 week X-MFC with: r218972
* Alter comment to reflect change in code.jpaetzel2011-02-231-3/+8
| | | | | | Try atacontrol if camcontrol fails. Approved by: kib (mentor, implicit)
* Handle memory allocation failures in include().brucec2011-02-232-1/+12
| | | | | | PR: i386/85652 Submitted by: Ben Thomas <bthomas at virtualiron.com> MFC after: 3 days
* Add a catch-all for miscellaneous RAID volumes while seeking a betternwhitehorn2011-02-231-1/+2
| | | | solution here. It would really help if CAM devices were part of newbus.
* Move the max_threads_per_proc and max_threads_hits variables to thekib2011-02-232-13/+11
| | | | | | | | | file where they are used. Declare the kern.threads sysctl node at the same location. Since no external use for the variables exists, make them static. Discussed with: dchagin MFC after: 1 week
* Revert previous change, the existing check was correct.jhb2011-02-231-1/+1
| | | | Pointy hat to: jhb
* Use umtx_key objects to uniquely identify futexes. Private futexes injhb2011-02-232-17/+33
| | | | | | | | | | | | different processes that happen to use the same user address in the separate processes will now be treated as distinct futexes rather than the same futex. We can now honor shared futexes properly by mapping them to a PROCESS_SHARED umtx_key. Private futexes use THREAD_SHARED umtx_key objects. In conjunction with: dchagin Reviewed by: kib MFC after: 1 week
* Expose the umtx_key structure and API to the rest of the kernel.jhb2011-02-232-50/+53
| | | | MFC after: 3 days
* Properly handle BARs bigger than 4G. The '1' was treated as an intjhb2011-02-231-3/+3
| | | | | | | | causing the size calculation to be truncated to the size of an int (32-bits on all current architectures). Submitted by: Anish akgupt3 of gmail MFC after: 1 week
* Fix off-by-one error in check against max_threads_per_proc.jhb2011-02-231-1/+1
| | | | | Submitted by: arundel MFC after: 1 week
* Calculate and return the count in vmspace_swap_count as a vm_offset_tbrucec2011-02-232-8/+9
| | | | | | | | | | instead of an int to avoid overflow. While here, clean up some style(9) issues. PR: kern/152200 Reviewed by: kib MFC after: 2 weeks
* Fix typos - remove duplicate "is".brucec2011-02-238-8/+8
| | | | | | PR: docs/154934 Submitted by: Eitan Adler <lists at eitanadler.com> MFC after: 3 days
* Remove unnecessary controller reinitialization which resulted inyongari2011-02-231-5/+13
| | | | | | link flips during alias address insertion or dhclient operation. While I'm here remove dc_reset() in DC_ISR_BUS_ERR case. Device is fully reinitialized again in dc_init_locked().
* Update how accounting log files are rotated.dougb2011-02-222-11/+38
| | | | | | | | | | | | | | | | The old version had a race between the time that the old file was cp'ed to acct.0 and the time that 'sa -s' was run that prevented the commands that occurred in the meantime from being backed up. It's also arguable that the old version was inefficient in using cp which can be a problem on a space-constrained system. This version avoids both problems, albeit it's considerably more complicated. The advantage of putting the log rotation in the rc.d script is that it can handle the _enable and _file questions without having to do gymnastics to discover either value in the periodic script. As a side effect of reviewing the rc.d script I cleaned it up a bit.
* Added patch-functions-upgrade which should fix some kernel panicsjpaetzel2011-02-221-2/+2
| | | | | | | doing upgrades and uninstalling linux compat ports. Submitted by: Joerg-Christian Boehme <joerg@chaosdorf.de> Approved by: kib (mentor, implicit)
* Better method for grabbing disk name, dmesg may produce mangled output.jpaetzel2011-02-221-1/+1
| | | | Approved by: kib (mentor, implicit)
* Make sure to only accept and handle action frames which are for us. Inbschmidt2011-02-225-45/+58
| | | | | promiscuous mode we might receive stuff which otherwise gets filtered by hardware.
* Xref makefs(8).jh2011-02-221-1/+2
| | | | | PR: 154708 Submitted by: jhs
* Fix whitespace nit.jhb2011-02-221-1/+0
|
* Eliminate two dubious attempts at optimizing the implementation of aalc2011-02-221-12/+4
| | | | | | | | | | | | | | | | | | file's last accessed, modified, and changed times: TMPFS_NODE_ACCESSED and TMPFS_NODE_CHANGED should be set unconditionally in tmpfs_remove() without regard to the number of hard links to the file. Otherwise, after the last directory entry for a file has been removed, a process that still has the file open could read stale values for the last accessed and changed times with fstat(2). Similarly, tmpfs_close() should update the time-related fields even if all directory entries for a file have been removed. In this case, the effect is that the time-related fields will have values that are later than expected. They will correspond to the time at which fstat(2) is called. In collaboration with: kib MFC after: 1 week
* Add support for optional distributions, installation of the ports tree andnwhitehorn2011-02-223-2/+23
| | | | | src. Fitting all of this on a single CD along with a full system requires changing the default compression algorithm from gzip to xz.
* MFi386: revision 218926nyan2011-02-221-1/+1
| | | | | | | | In sys/boot/i386/boot2/boot2.c, change the type of the 'opts' variable from uint16_t back to uint32_t. The actual option bitmasks (RB_* and RBX_*) assume at least a 32 bit variable. Submitted by: rdivacky
* Use a single list to simplify future maintenance and ensure all list items arelstewart2011-02-221-2/+0
| | | | | | | | | aligned the same (no functional change at the moment as both list items are the same number of characters). Sponsored by: FreeBSD Foundation MFC after: 3 months X-MFC with: 218912
* Make code more friendly to the non-C99 compilers - don't allocatesobomax2011-02-221-4/+8
| | | | | | local variables in the `for' loop declaration. This allows trunk newsyslog.c to be compiled on 7.x. This change should be no-op from the functional POV.
* Regen src.conf(5) after r218941 and r218942.uqs2011-02-221-6/+10
|
* The default for FDT has changed, rename the flag/options file.uqs2011-02-221-1/+1
|
* Flesh out WITHOUT_GROFF support to DTRT.uqs2011-02-229-54/+567
| | | | | | | | | | | | A full featured groff is required during buildworld, so build it always and don't rely on it being present on the host system. vgrind(1) is tightly coupled to a roff processor and will not be built/installed when groff is disabled. Also much of the roff'ed documentation under share/doc will not be built/installed when WITHOUT_GROFF is defined. Reviewed by: ru (partial)
* Teach tools/install.sh the -d directory mode.uqs2011-02-222-4/+20
| | | | | | | | Sync up with flags understood by install(1) [1], and make install(1)'s usage output not hide the clearly documented -M flag. PR: misc/154739 [1] Submitted by: arundel
* Fix bzero() for 64-bit.jchandra2011-02-221-19/+1
| | | | | | | | The existing implementation of bzero incorrectly clears bytes when the start address is not word aligned. Fix it by using REG_SHI macro which works on both 32 and 64 bit. Submitted by: Artem Belevich (fbsdlist at src cx)
* - Fix QA issuesmiwi2011-02-221-45/+55
| | | | | | PR: misc/146687 Submitted by: Garrett Cooper <gcooper@FreeBSD.org> Approved by: rwatson (mentor)
* - Remove no longer in usemiwi2011-02-222-87/+0
| | | | | | | PR: kern/152354 Submitted by: vehemens <vehemens@verizon.net> Discussion with:kib Approved by: rwatson (mentor)
* Back out 218933 and 281934. The easy cases still worked, but someimp2011-02-222-17/+18
| | | | | hard cases broke in worse ways than the status quo. Back them out until that can be resolved.
* Don't set the RTS/CTS enable bit per-scenario if the global RTS/CTSadrian2011-02-221-8/+8
| | | | flags aren't set.
OpenPOWER on IntegriCloud