summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fix style(9) issues in pututxline(3).ed2011-02-251-5/+10
| | | | | | | Also, make sure to initialize the `ret' variable properly. Reported by: Cedric Jonas <cedric c84 eu> Patch by: Garrett Cooper <yanegomi gmail com>
* Add the BSD-licensed Citrus iconv to the base system with default offgabor2011-02-25137-0/+19595
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Remove sysctl vm.max_proc_mmap used to protect from KVA space exhaustion.pluknet2011-02-241-3/+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
* 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.
* 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 typos - remove duplicate "the".brucec2011-02-218-8/+8
| | | | | | PR: bin/154928 Submitted by: Eitan Adler <lists at eitanadler.com> MFC after: 3 days
*-. Upgrade our copy of llvm/clang to r126079, from upstream's trunk.dim2011-02-2049-243/+303
|\ \ | | | | | | | | | | | | This contains many improvements, primarily better C++ support, an integrated assembler for x86 and support for -pg.
| | * Vendor import of clang trunk r126079:dim2011-02-20371-36139/+72718
| | | | | | | | | | | | http://llvm.org/svn/llvm-project/cfe/trunk@126079
| | * Vendor import of clang 2.8 release:dim2010-10-071-1/+1
| | | | | | | | | | | | | | | | | | http://llvm.org/svn/llvm-project/cfe/tags/RELEASE_28@115870 Approved by: rpaulo (mentor)
| * | Vendor import of llvm trunk r126079:dim2011-02-201040-74452/+116684
| | | | | | | | | | | | http://llvm.org/svn/llvm-project/llvm/trunk@126079
| * | Vendor import of llvm 2.8 release:dim2010-10-073-13/+18
| | | | | | | | | | | | | | | | | | http://llvm.org/svn/llvm-project/llvm/tags/RELEASE_28@115866 Approved by: rpaulo (mentor)
* | | Add complex(3) manual page documenting our partial support for C99murray2011-02-202-1/+130
| | | | | | | | | | | | | | | | | | | | | complex arithmetic in libm. Reviewed by: David Schultz <das@FreeBSD.org> MFC after: 2 weeks
* | | Add a utility, utxrm(8).ed2011-02-191-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most of the ports I broke when I imported utmpx, were simple management utilities for the utmp database, allowing you to add/remove entries manually. Add a small tool called utxrm(8), which allows you to remove an entry from the utmpx database by hand. This is useful when a login daemon crashes or fails to remove the entry during shutdown.
* | | Properly styleify utmpx code and document error codes in man page.ed2011-02-194-56/+107
| | | | | | | | | | | | Submitted by: Garrett Cooper
* | | Turn off default generation of userland dot symbols on powerpc64 now thatnwhitehorn2011-02-1810-31/+20
| | | | | | | | | | | | | | | we have a binutils that supports it. Kernel dot symbols remain on to assist DDB.
* | | Fix some leftover binaries and shared libraries in the system that stilldim2011-02-153-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | have an executable stack, due to linking in hand-assembled .S or .s files, that have no .GNU-stack sections: RWX --- --- /lib/libcrypto.so.6 RWX --- --- /lib/libmd.so.5 RWX --- --- /lib/libz.so.6 RWX --- --- /lib/libzpool.so.2 RWX --- --- /usr/lib/liblzma.so.5 These were found using scanelf, from the sysutils/pax-utils port. Reviewed by: kib
* | | Don't forget to bump man page date for r218711.ed2011-02-151-1/+1
| | |
* | | Remove dead reference to regexp(3). Use regex(3) instead.ed2011-02-151-1/+1
| | | | | | | | | | | | | | | PR: docs/149950 Submitted by: arundel@
* | | Document some more sysconf(3) variables.brucec2011-02-131-1/+58
| | | | | | | | | | | | MFC after: 1 month
* | | Replace ERROR() macro with inline function. In-tree gcc cannot toleratekib2011-02-121-28/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the construct like printf("%\s", NULL) resulting from macroexpand of ERROR(u, NULL), making it impossible to use LIBUFS_DEBUGGING. With inline function, compiler cannot detect the NULL argument to known function and does not try to convert it into puts(). In collaboration with: pho
* | | Revert last commit: CPUTYPE will be defined hereimp2011-02-111-1/+1
| | |
* | | Don't require CPUTYPE to be defined for ARM, but use it if it is.imp2011-02-111-1/+1
| | |
* | | Fix a bug where the wrong argument was passed to SET_FLOAT_WORD().das2011-02-101-2/+2
| | | | | | | | | | | | | | | | | | | | | This bug results in a type mismatch that happens to be harmless because of the way SET_FLOAT_WORD() works. Submitted by: bde
* | | Fix a bug where the wrong argument was passed to INSERT_WORDS().das2011-02-101-2/+2
| | | | | | | | | | | | | | | | | | | | | This bug results in a type mismatch that happens to be harmless because of the way INSERT_WORDS() works. Submitted by: bde
* | | For small arguments, these functions use simple approximations,das2011-02-105-5/+5
| | | | | | | | | | | | | | | | | | | | | e.g. cos(small) = 1, sin(small) = small. This commit tightens the thresholds at which the simple approximations are used. Reviewed by: bde
* | | Fix a bogus threshold that was copied from the double precision version.das2011-02-101-1/+1
| | | | | | | | | | | | | | | | | | | | | This commit should have no effect on correctness; it merely changes the threshold at which a simpler approximation can be used. Reviewed by: bde
* | | sys/rman.h now requires sys/types.h. Include it to make the API matchimp2011-02-102-1/+2
| | | | | | | | | | | | | | | | | | | | | the man page again. Submitted by: Raphael Kubo da Costa MFC after: 2 weeks
* | | Introduce a non-portable function pthread_getthreadid_np(3) to retrievejkim2011-02-075-0/+53
| | | | | | | | | | | | | | | | | | | | | calling thread's unique integral ID, which is similar to AIX function of the same name. Bump __FreeBSD_version to note its introduction. Reviewed by: kib
* | | rfork_thread(3): Mark deprecated in favor of pthread_create(3).jilles2011-02-061-2/+10
| | |
* | | Update to BIND 9.6.3, the latest from ISC on the 9.6 branch.dougb2011-02-066-6/+34
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All 9.6 users with DNSSEC validation enabled should upgrade to this version, or the latest version in the 9.7 branch, prior to 2011-03-31 in order to avoid validation failures for names in .COM as described here: https://www.isc.org/announcement/bind-9-dnssec-validation-fails-new-ds-record In addition the fixes for this and other bugs, there are also the following: * Various fixes to kerberos support, including GSS-TSIG * Various fixes to avoid leaking memory, and to problems that could prevent a clean shutdown of named
| * | | Vendor import of BIND 9.6.3dougb2011-02-0577-438/+964
| | | |
| * | | Vendor import of BIND 9.6-ESV-R3dougb2010-12-048-39/+131
| | | |
| * | | Vendor import of BIND 9.6-ESV-R2dougb2010-10-3040-411/+755
| | | |
| * | | Vendor import of BIND 9.6.2-P2dougb2010-05-202-3/+3
| | | |
| * | | Vendor import of BIND 9.6.2-P1dougb2010-03-1733-172/+774
| | | |
| * | | Vendor import of BIND 9.6.2dougb2010-03-0292-613/+1467
| | | |
| * | | Vendor import of BIND 9.6.1-P3dougb2010-01-2523-129/+124
| | | |
| * | | Vendor import of BIND 9.6.1-P2dougb2009-11-306-29/+65
| | | |
| * | | Vendor import of BIND 9.6.1dougb2009-06-258-33/+176
| | | |
* | | | Remove duplicate .note.GNU-stack section declaration.kib2011-02-042-4/+0
| | | | | | | | | | | | | | | | Reported by: arundel
* | | | Remove duplicate .note.GNU-stack section declaration. bcopy alreadykib2011-02-043-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | made the neccessary provisions. Reported by: arundel
* | | | Make sys_signame upper case.jilles2011-02-042-33/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This matches the constants from <signal.h> with 'SIG' removed, which POSIX requires kill and trap to accept and 'kill -l' to write. 'kill -l', 'trap', 'trap -l' output is now upper case. In Turkish locales, signal names with an upper case 'I' are now accepted, while signal names with a lower case 'i' are no longer accepted, and the output of 'killall -l' now contains proper capital 'I' without dot instead of a dotted capital 'I'.
* | | | libkvm: fix logic inversion introduced with last commituqs2011-02-021-2/+2
| | | | | | | | | | | | | | | | | | | | Reported by: Brandon Gooch <jamesbrandongooch@gmail.com> Pointy hat to: uqs
* | | | Whitespace nitimp2011-02-011-1/+1
| | | |
* | | | Reintroduce bugfix from r210103 and fix xz on strong-aligned architectures.mm2011-02-011-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fix was accidentially reverted with the 5.0.0 update in r215187. PR: bin/154310 Submitted by: Michael Moll <kvedulv@kvedulv.de> MFC after: 3 days
* | | | Fix n32 compile.jchandra2011-01-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | These changes are needed to fix n32 compile after the recent change of mips n32 MACHINE_ARCH to mipsn32eb/mipsn32el. Reviewed by: imp, bz (earlier version)
* | | | Emit .note.GNU-stack for the syscall stubs generated by libc only onkib2011-01-251-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | architectures that support this .note. In particular, do not unneccessary emit the notes on ia64 and sparc64, which ABI require non-executable stacks. Tested by: marcel
* | | | Do not allocate buffer to hold data for zero-sized sections.kan2011-01-251-1/+3
| | | |
* | | | Document PT_FLAG_FORKED, PT_FOLLOW_FORK, pl_tdname and pl_child_pid.kib2011-01-251-5/+40
| | | | | | | | | | | | | | | | MFC after: 2 weeks
* | | | libkvm: Unbreak build for powerpc64/powerpcuqs2011-01-241-0/+1
| | | | | | | | | | | | | | | | | | | | This slipped through my testing due to the recent roto-tiling of the ARCH/TARGET parts that I need to catch up with. Mea culpa.
OpenPOWER on IntegriCloud