summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Separate _posix1e_acl_id_to_name() into a separate file, tokientzle2010-06-143-55/+101
| | | | | | break an unnecessary dependency on getpwuid() and getgrgid(). MFC after: 1 month
* In threaded processes, destroy the mutex atexit_mutex when we'vecperciva2010-06-131-0/+3
| | | | | | | | | | finished using it. This allows the mutex's allocated memory to be freed. This is one sense a rather silly change, since at this point we're less than a microsecond away from calling _exit; but fixing this memory leak is likely to make life easier for anyone trying to track down other memory leaks.
* sctp_recvmsg returns the number of bytes received, not sent.brucec2010-06-111-1/+1
| | | | | Approved by: rrs (mentor) MFC after: 1 month
* mdoc: stop abusing -column lists and use .Bl -tag insteaduqs2010-06-111-19/+21
|
* mdoc: remove literal tabs where they don't belonguqs2010-06-0810-17/+17
|
* Don't use pointer to 64 bit value (id_t) to point to 32 bit value (uid_t).trasz2010-06-051-5/+5
| | | | | | Found with: Coverity Prevent CID: 7466, 7467 MFC after: 2 weeks
* Don't forget to free the string in error case.trasz2010-06-031-0/+1
| | | | | Found with: Coverity Prevent CID: 6585
* _posix1e_acl_sort() never returns anything other than 0; change itstrasz2010-06-034-55/+15
| | | | | | | | return type to void and update callers. This simplifies code and fixes one place where the returned value was not actually checked. Found with: Coverity Prevent CID: 4791
* Fix usage of uninitialized variable.trasz2010-06-031-1/+1
| | | | | | Found with: Coverity Prevent CID: 7517 MFC after: 2 weeks
* The 'acl_cnt' field is unsigned; no point in checking if it's >= 0.trasz2010-06-031-2/+1
| | | | | Found with: Coverity Prevent CID: 6192
* The 'acl_cnt' field is unsigned; no point in checking if it's >= 0.trasz2010-06-031-1/+1
| | | | | Found with: Coverity Prevent CID: 6193
* mdoc: spell macros correctly, there's no need for the backslash escapeuqs2010-06-021-1/+1
|
* Change the current working directory to be inside the jail created bycperciva2010-05-271-1/+8
| | | | | | | | | | | | | | the jail(8) command. [10:04] Fix a one-NUL-byte buffer overflow in libopie. [10:05] Correctly sanity-check a buffer length in nfs mount. [10:06] Approved by: so (cperciva) Approved by: re (kensmith) Security: FreeBSD-SA-10:04.jail Security: FreeBSD-SA-10:05.opie Security: FreeBSD-SA-10:06.nfsclient
* Improve the documentation for PT_LWPINFO. Note that some features arekib2010-05-241-3/+58
| | | | | | not implemented on MIPS and ARM. MFC after: 1 month
* These features will first appear in 8.1, soon to be releaseduqs2010-05-241-1/+1
| | | | MFC after: 3 days
* Make acl_get_perm_np(3) work with NFSv4 ACLs.trasz2010-05-232-24/+18
| | | | | Reviewed by: kientzle@ MFC after: 1 week
* mdoc: consistently spell our email addresses <foo@FreeBSD.org>uqs2010-05-194-4/+4
| | | | Reviewed by: ru
* Make branding less intrusive - in acl_set(3), in case ACL brandtrasz2010-05-131-0/+3
| | | | | | is ACL_BRAND_UNKNOWN, do what the programmer says instead of failing. MFC after: 1 week
* Make it possible to actually use NFSv4 permission bits with acl_set_perm(3)trasz2010-05-131-20/+32
| | | | | | | and acl_delete_perm(3). It went undetected, because neither setfacl(1) nor Samba use this routines. D'oh. MFC after: 1 week
* mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to theuqs2010-05-1311-221/+221
| | | | | | | | | | | bottom of the manpages and order them consistently. GNU groff doesn't care about the ordering, and doesn't even mention CAVEATS and SECURITY CONSIDERATIONS as common sections and where to put them. Found by: mdocml lint run Reviewed by: ru
* Fix a bug due to a type conversion from 64 to 32 bits. The side effect ofgordon2010-05-121-2/+2
| | | | | | | | | | this type conversion is the high bits which were used to indicate if a special character was a literal or special were dropped. As a result, all special character were treated as special, even if they were supposed to be literals. Reviewed by: gad@ Approved by: mentor (wes@)
* The previous revision actually removed the bug being hinted at, sobrueffer2010-05-121-3/+2
| | | | | | | | go ahead and remove the hint. PR: 143944 Submitted by: Jeremy Huddleston <jeremyhu@apple.com> MFC after: 1 week
* mdoc: simplify quotation schemeuqs2010-05-111-3/+2
| | | | Reviewed by: brueffer
* mdoc: fix parenthesisuqs2010-05-111-2/+2
| | | | Reviewed by: brueffer
* mdoc: use macro for +- that is understood by mdocmluqs2010-05-112-4/+4
| | | | Reviewed by: brueffer
* Document FIONREAD, FIONWRITE and FIONSPACE.brueffer2010-05-111-1/+25
| | | | | | Obtained from: NetBSD Submitted by: emaste MFC after: 1 week
* strptime(3) confused July with June with the fr_FR locale.edwin2010-05-091-0/+8
| | | | | | | | | | | | | When parsing the month "juillet" (abbr "jul"), %B recognized it as "juin" (abbr "jui") because the full name of the month names is checked at the same time as the abbrevation. The new behaviour checks the full names first before checking the abbrevation names. PR: kern/141939 Submitted by: Denis Chatelain <denis@tikuts.com> MFC after: 1 week
* sigprocmask(2): pthread_sigmask(3) must be used in threaded processes.jilles2010-05-071-1/+7
| | | | | | | Although libthr's pthread_sigmask() just calls sigprocmask() and this is unlikely to change, mention this POSIX requirement on applications. MFC after: 1 week
* raise(3): Note that this sends a signal to the current thread, not process.jilles2010-05-071-3/+3
| | | | | | | This is how it works (with threading libraries loaded) and what POSIX requires. MFC after: 1 week
* Merger of the quota64 project into head.mckusick2010-05-071-4/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This joint work of Dag-Erling Smørgrav and myself updates the FFS quota system to support both traditional 32-bit and new 64-bit quotas (for those of you who want to put 2+Tb quotas on your users). By default quotas are not compiled into the kernel. To include them in your kernel configuration you need to specify: options QUOTA # Enable FFS quotas If you are already running with the current 32-bit quotas, they should continue to work just as they have in the past. If you wish to convert to using 64-bit quotas, use `quotacheck -c 64'; if you wish to revert from 64-bit quotas back to 32-bit quotas, use `quotacheck -c 32'. There is a new library of functions to simplify the use of the quota system, do `man quotafile' for details. If your application is currently using the quotactl(2), it is highly recommended that you convert your application to use the quotafile interface. Note that existing binaries will continue to work. Special thanks to John Kozubik of rsync.net for getting me interested in pursuing 64-bit quota support and for funding part of my development time on this project.
| * Final update to current version of head in preparation for reintegration.mckusick2010-05-061-3/+9
| |\
| * \ Update to current version of head.mckusick2010-04-2894-572/+744
| |\ \
| * | | Debugging nits found while testing the new 64-bit quota code.mckusick2010-03-161-4/+18
| | | |
| * | | IFH@204581des2010-03-04192-7021/+7849
| |\ \ \
OpenPOWER on IntegriCloud