summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Note O_SYNC and O_NOFOLLOW flags in dbopen(3) since r190497.gjb2010-09-101-2/+2
| | | | | | | | PR: 150030 Submitted by: Janne Snabb snabb at epipe com Patch by: Janne Snabb Approved by: keramida (mentor) MFC after: 1 week
* Add EINVAL to list of possible return values for cpuset_getaffinity(2).gjb2010-09-101-0/+6
| | | | | | | | PR: 149978 Submitted by: gcooper Patch by: gcooper Approved by: keramida (mentor) MFC after: 1 week
* Because POSIX does not allow EINTR to be returned from sigwait(),davidxu2010-09-104-1/+51
| | | | | | | | add a wrapper for it in libc and rework the code in libthr, the system call still can return EINTR, we keep this feature. Discussed on: thread Reviewed by: jilles
* Arrgh, tested wrong source tree _again_. Fix previous commit. Also,trasz2010-09-091-1/+1
| | | | | | this and previous one are MFC candidate. MFC after: 1 month
* Add minor optimization. It's less strict than its kernel counterparttrasz2010-09-091-0/+9
| | | | due to upcoming ACL changes required by the new ZFS.
* Add ECONNRESET to list of possible errors in connect(2).gjb2010-09-061-1/+3
| | | | | | | PR: 148683 Submitted by: Gennady Proskurin <gpr at mail dot ru> Approved by: keramida (mentor) MFC after: 1 week
* Use NULL instead of 0 for pointer in example.kib2010-08-291-1/+1
| | | | MFC after: 3 days
* Add the MAP_PREFAULT_READ option to mmap(2).alc2010-08-281-1/+14
| | | | Reviewed by: jhb, kib
* Fix incorrect usage of 'assure' and 'insure'.brucec2010-08-287-10/+10
| | | | Approved by: rrs (mentor)
* Do not call __pthread_cxa_finalize with invalid struct dl_phdr_info.kib2010-08-271-1/+1
| | | | | Reported and tested by: Fabian Keil <freebsd-listen fabiankeil de> MFC after: 17 days
* Allow ABIs to provide their own LIBC_ARCH in a more generic way. As a sidenwhitehorn2010-08-251-4/+5
| | | | | | effect, this fixes the build on powerpc64. Reviewed by: imp
* Fix an accidental sed...imp2010-08-241-2/+2
|
* Powerpc is special here. powerpc and powerpc64 use different ABIs, soimp2010-08-249-32/+35
| | | | | | their implementations aren't in the same files. Introduce LIBC_ARCH and use that in preference to MACHINE_CPUARCH. Tested by amd64 and powerpc64 builds (thanks nathanw@)
* Remove extra FreeBSD tag.kib2010-08-241-1/+0
| | | | MFC after: 3 days
* Move the __stack_chk_fail_local@FBSD_1.0 compat symbol definition intokib2010-08-243-4/+22
| | | | | | | | | | | the separate .o for libc_pic.a. This prevents rtld from making the symbol global. Putting the stack_protector_compat.c into the public domain acknowledged by kan. Reviewed by: kan MFC after: 2 weeks
* MFtbemd:imp2010-08-239-27/+27
| | | | | Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want to test of all the CPUs of a given family conform.
* On shared object unload, in __cxa_finalize, call and clear all installedkib2010-08-235-4/+71
| | | | | | | | | | | | | | | | | | | | | | atexit and __cxa_atexit handlers that are either installed by unloaded dso, or points to the functions provided by the dso. Use _rtld_addr_phdr to locate segment information from the address of private variable belonging to the dso, supplied by crtstuff.c. Provide utility function __elf_phdr_match_addr to do the match of address against dso executable segment. Call back into libthr from __cxa_finalize using weak __pthread_cxa_finalize symbol to remove any atfork handler which function points into unloaded object. The rtld needs private __pthread_cxa_finalize symbol to not require resolution of the weak undefined symbol at initialization time. This cannot work, since rtld is relocated before sym_zero is set up. Idea by: kan Reviewed by: kan (previous version) MFC after: 3 weeks
* Introduce implementation-private rtld interface _rtld_addr_phdr, whichkib2010-08-232-0/+9
| | | | | | | | fills struct dl_phdr_info for the shared object that contains the specified address, if any. Idea and reviewed by: kan MFC after: 3 weeks
* Style.kib2010-08-232-3/+3
| | | | MFC after: 3 days
* Use aux vector to get values for SSP canary, pagesize, pagesizes array,kib2010-08-1710-22/+217
| | | | | | | | | | | number of host CPUs and osreldate. This eliminates the last sysctl(2) calls from the dynamically linked image startup. No objections from: kan Tested by: marius (sparc64) MFC after: 1 month
* Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki whilejoel2010-08-1610-13/+14
| | | | | | translating these manual pages. Minor corrections by me. Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp>
* Correct the return code from _dns_gethostby*() to correspondume2010-08-151-4/+20
| | | | | | | with h_errno. Obtained from: NetBSD MFC after: 2 weeks
* - When there is no room for returning the result, nss backendume2010-08-1311-49/+109
| | | | | | | | | | have to return ERANGE and terminate with NS_RETURN. - When gethostbyname_r(3) and the friends end with an error, set errno to the value nss backend returns, and return errno value. PR: kern/131623 MFC after: 2 weeks
* Fix typos and spelling mistakes.joel2010-08-065-5/+5
|
* Comment out IEEE Std 1003.1-2001 conformance proclaimed too early,ache2010-08-051-5/+5
| | | | | see problems described in the comment to: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/128933
* Spelling fixes.joel2010-08-027-9/+9
|
* mdoc: remove unbalanced quotesuqs2010-08-022-6/+6
|
* mdoc: make sure to pass at least one argument to quotation macrosuqs2010-08-023-3/+3
|
* Disable all warnings when building gdtoa. This allows building libc withrpaulo2010-08-011-1/+1
| | | | | | | | | | clang. The general idea is that the vendor will not accept our compilation patches and so disabling the warnings is the best way to go as it makes future imports bearable. Submitted by: Dimitry Andric <dimitry at andric.com> Discussed with: das
* Fix a couple of typos.uqs2010-07-301-1/+1
| | | | | | PR: docs/148891 Submitted by: olgeni MFC after: 1 week
* Update mlockall(2) to mention that it's superuser-only syscall, justtrasz2010-07-272-4/+7
| | | | | | | like the mlock(2) manual page says. Update mlock(2) to say that hitting RLIMIT_MEMLOCK results in ENOMEM, not EAGAIN. MFC after: 1 month
* Apply a small grammar fix to {toupper,tolower}(3).bcr2010-07-252-4/+4
| | | | | | PR: docs/140458 Submitted by: Jeremy Huddleston (Jeremyhu at apple dot com) MFC after: 5 days
* Verify return value of the sigset manipulation functionskib2010-07-221-22/+14
| | | | | | | | to catch invalid signal numbers [1]. Use consistent style of not assigning the return value to a local variable. Reported by: Garrett Cooper <yanegomi gmail com> [1] MFC after: 1 week
* Also link getutxent.3 to utmpx.3.ed2010-07-211-1/+1
| | | | If you run `man utmpx', you expect to get some info on it.
* For xsi_sigpause(3), remove the supplied signal from the process maskkib2010-07-121-2/+10
| | | | | | | | during sigpause(2) call. It was backward. Check that the signal number is valid. Reported by: Garrett Cooper <yanegomi gmail com> MFC after: 1 week
* Provide 64-bit PowerPC support in libc.nwhitehorn2010-07-1038-2/+2443
| | | | Obtained from: projects/ppc64
* The 64-bit PowerPC ABI implemented in binutils 2.15 requires some specialnwhitehorn2010-07-101-1/+2
| | | | | | | | | | | quirks for weak-symbol handling. Text symbols require also marking weak the special dot-symbol associated with the function, and data symbols require that you not do that. To fix this, provide a hacked __weak_reference for powerpc64, and define a new __weak_reference_data for the single weak data symbol in base. Revert after: binutils 2.17 import Obtained from: projects/ppc64
* Document pl_siginfo and PT_FLAG_SI for PT_LWPINFO.kib2010-07-101-4/+20
| | | | MFC after: 1 month
* If a user calls sctp_sendx() with a NULLrrs2010-07-071-0/+5
| | | | | | | sinfo we will crash. Instead we should provide our own temp structure to use internally. MFC after: 1 month
* Fix acl_from_text(3) - and, therefore, setfacl(1) - for user and grouptrasz2010-07-063-40/+10
| | | | | | names names starting with a digit. MFC after: 1 month
* Remove comment which didn't match reality for a long time.trasz2010-07-051-3/+0
| | | | Reviewed by: rwatson
* Increment 'sa' at the end of the loop; otherwise, only the firstbrucec2010-07-051-1/+1
| | | | | | | address ever gets checked. Approved by: rrs (mentor) MFC after: 1 month
* Use ISO C99 integer types instead of the BSD-specific u_int*_t.brucec2010-07-043-29/+29
| | | | Approved by: rrs (mentor)
* Simplify the calculation of s_scale by rewriting the FP expression tomarcel2010-07-011-20/+5
| | | | | | | | | use uintmax_t instead of float and thereby eliminating the need for a non-FP version. Tested on: amd64, ia64 & powerpc (book-E) Suggested by: bde MFC after: 1 month
* On powerpc, calculate s_scale using the non-FP version previouslymarcel2010-06-301-1/+1
| | | | | | | | | | | | specific to hp300. Since FreeBSD does not support hp300, hp300 has been removed from the condition altogether. The FP version broke profiling on powerpc due to invalid results. Casting to double instead of float resolved the issue, but with Book-E not having a FP unit, the non-FP version looked preferrable. Note that even on AIM hardware the FP version yielded an invalid value for s_scale, so the problem is most likely with the compiler or with the expression itself.
* Just like in case of setgroups(2), for getgroups(2) also advice includingpjd2010-06-261-1/+1
| | | | | sys/param.h instead of sys/types.h so we get NGROUPS_MAX and NGROUPS definitions.
* use PTR_WORD for __curbrk and minbrk instead of .word, the new versionjchandra2010-06-252-2/+2
| | | | | | wil support all ABIs. Approved by: rrs (mentor)
* Merge from English r198040: add C message catalogue entries for newermaxim2010-06-201-0/+10
| | | | | | | | errnos: EBADMSG, EMULTIHOP, ENOLINK, EPROTO, ENOTCAPABLE. PR: docs/147983 Submitted by: pluknet MFC after: 1 week
* Merge jmallett@'s n64 work into HEAD - changeset 2jchandra2010-06-167-40/+117
| | | | | | | | | Update libc Makefiles. Add makecontext implementation. Changes from http://svn.freebsd.org/base/user/jmallett/octeon Approved by: rrs(mentor), jmallett
* Merge jmallett@'s n64 work into HEAD - changeset 1.jchandra2010-06-1620-521/+510
| | | | | | | | | Update libc assembly code to use macros that work on both o32 and n64. Merge string functions from NetBSD. The changes are from http://svn.freebsd.org/base/user/jmallett/octeon Approved by: rrs (mentor), jmallett
OpenPOWER on IntegriCloud