summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Bump date missed in r202756eadler2012-09-141-1/+1
| | | | | | | PR: docs/171624 Submitted by: bdrewery Approved by: gabor MFC after: 3 days
* Use libmd if and only if OpenSSL is not available.des2012-09-142-2/+10
| | | | | PR: bin/171402 MFC after: 3 days
* Adding missing return statements during error conditions.eadler2012-09-141-2/+8
| | | | | | | | PR: kern/171187 Submitted by: Mark Johnston <markjdb@gmail.com> Reviewed by: des Approved by: cperciva MFC after: 2 weeks
* According to a clarification at http://austingroupbugs.net/view.php?id=503emaste2012-09-122-4/+3
| | | | | | | ptsname may set errno, so avoid saving and restoring errno across the function. PR: standards/171572
* Avoid mapping ENOENT to ENOTDIR for non-existent path components.emaste2012-09-121-2/+0
| | | | | | | | | | | | | | | The ENOTDIR mapping was introduced in r235266 for kern/128933 based on an interpretation of the somewhat ambiguous language in the POSIX realpath specification. The interpretation is inconsistent with Solaris and Linux, a regression from 9.0, and does not appear to be permitted by the description of ENOTDIR: 20 ENOTDIR Not a directory. A component of the specified pathname existed, but it was not a directory, when a directory was expected. PR: standards/171577 MFC after: 3 days
* Fix IEC / SI binary prefixes (Ki, Mi, Gi, etc) production by humanize_number(3)bapt2012-09-121-1/+1
| | | | | | PR: bin/171487 Submitted by: matthew MFC after: 1 week
* Describe in detail required conditions for receiving the SCM_CREDSglebius2012-09-121-4/+18
| | | | | control message and suggest to use LOCAL_CREDS setsockopt() for reliability.
* r235638 is not the clean way to add support for building on ancient FreeBSDobrien2012-09-112-5/+3
| | | | | | | | versions. Instead use Imp's good work on "legacy" and follow the outcome of the previous TRB discussions on this topic. Now use the libc getline() if it exists, and only where it doesn't create a bootstraping version.
* Minor mdoc fix.joel2012-09-111-5/+5
|
* Add the same warning to rand48(3) as to rand(3) and random(3).des2012-09-112-5/+10
| | | | MFC after: 3 days
* If the IdlePDPT is not present, PAE is not activekevlo2012-09-101-1/+0
|
* When calling the C++ demangler, make sure to free the returned buffer,rpaulo2012-09-071-6/+24
| | | | | | which might have been reallocated. Pointed out by: stefanf
* libc/amd64: Do not export .cerror.jilles2012-09-0612-88/+9
| | | | | | | | | | | | | | | | | For some reason, libc exports the symbol .cerror (HIDENAME(cerror)), albeit in the FBSDprivate_1.0 version. It looks like there is no reason for this since it is not used from other libraries. Given that it cannot be accessed from C and its strange calling convention, it is rather unlikely that other things rely on it. Perhaps it is from a time when symbols could not be hidden. Most of the amd64 assembler code jumps to .cerror using the GOT. It can jump to it directly now, as in non-PIC mode. There are also some minor size optimizations to instructions but they yield virtually no benefit in the size of libc.so.7 due to padding. Reviewed by: kib
* Avoid segfault if name is invalid. Basically, onlytrhodes2012-09-061-2/+5
| | | | | | | check for CTL_USER if the sysctl fails with ENOENT. PR: 169056 Reviewed by: jhb
* Remove trailing whitespace.joel2012-09-061-53/+53
|
* Minor mdoc fix.joel2012-09-061-1/+0
|
* Add Intel Ivy Bridge support to hwpmc(9).fabient2012-09-064-52/+1017
| | | | | | | | | | Update offcore RSP token for Sandy Bridge. Note: No uncore support. Will works on Family 6 Model 3a. MFC after: 1 month Tested by: bapt, grehan
* Add support for demangling C++ symbols. This requires linking libproc withrpaulo2012-09-062-2/+22
| | | | | | libc++rt/libsupc++. Discussed with: theraven
* Fix test cases to work with the latest version of the API.rpaulo2012-09-062-3/+4
|
* libc/i386: Do not export .cerror.jilles2012-09-0511-41/+19
| | | | | | | | | | | | | | | | | | | | | | | For some reason, libc exports the symbol .cerror (HIDENAME(cerror)), albeit in the FBSDprivate_1.0 version. It looks like there is no reason for this since it is not used from other libraries. Given that it cannot be accessed from C and its strange calling convention, it is rather unlikely that other things rely on it. Perhaps it is from a time when symbols could not be hidden. Not exporting .cerror causes it to be jumped to directly instead of via the PLT. This change also takes advantage of .cerror's new status by not saving and loading %ebx before jumping to it. (Therefore, .cerror now saves and loads %ebx itself.) Where there was a conditional jump to a jump to .cerror, the conditional jump has been changed to jump to .cerror directly (many modern CPUs don't do static prediction and in any case it is not much of a benefit anyway). This change makes libc.so.7 a few kilobytes smaller. Reviewed by: kib
* When WIFCONTINUED was added, the number of "first" macros grew fromjhb2012-09-051-1/+1
| | | | | | three to four. MFC after: 1 week
* Bump dates.des2012-09-042-2/+2
| | | | Reminded by: bz@
* Add a prominent warning about these functions' unsuitability fordes2012-09-042-13/+17
| | | | cryptographic purposes, and recommend using arc4random(3) instead.
* Add __BEGIN_DECLS and __END_DECLS to make libprocstat more C++-friendly.trociny2012-09-041-0/+2
| | | | | Submitted by: Daniel Dettlaff <dmilith gmail com> MFC after: 1 week
* Make sure we visit both symbol sections even if one of them doesn'trpaulo2012-09-021-24/+21
| | | | exist. This makes it possible to dtrace some C++ programs like devd.
* Rework all non-contributed files that use `struct timezone'.ed2012-09-012-2/+2
| | | | | | | | | | | | | | This structure is not part of POSIX. According to POSIX, gettimeofday() has the following prototype: int gettimeofday(struct timeval *restrict tp, void *restrict tzp); Also, POSIX states that gettimeofday() shall return 0 (as long as tzp is not used). Remove dead error handling code. Also use NULL for a nul-pointer instead of integer 0. While there, change all pieces of code that only use tv_sec to use time(3), as this provides less overhead.
* Bring some changes from Bull's NFSv4 libtirpc implementation.pfg2012-09-019-19/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We especifically ignored the glibc compatibility changes but this should help interaction with Solaris and Linux. ____ Fixed infinite loop in svc_run() author Steve Dickson Tue, 10 Jun 2008 12:35:52 -0500 (13:35 -0400) Fixed infinite loop in svc_run() ____ __rpc_taddr2uaddr_af() assumes the netbuf to always have a non-zero data. This is a bad assumption and can lead to a seg-fault. This patch adds a check for zero length and returns NULL when found. author Steve Dickson Mon, 27 Oct 2008 11:46:54 -0500 (12:46 -0400) ____ Changed clnt_spcreateerror() to return clearer and more concise error messages. author Steve Dickson Thu, 20 Nov 2008 08:55:31 -0500 (08:55 -0500) ____ Converted all uid and gid variables of the type uid_t and gid_t. author Steve Dickson Wed, 28 Jan 2009 12:44:46 -0500 (12:44 -0500) ____ libtirpc: set r_netid and r_owner in __rpcb_findaddr_timed These fields in the rpcbind GETADDR call are being passed uninitialized to CLNT_CALL. In the case of x86_64 at least, this usually leads to a segfault. On x86, it sometimes causes segfaults and other times causes garbage to be sent on the wire. rpcbind generally ignores the r_owner field for calls that come in over the wire, so it really doesn't matter what we send in that slot. We just need to send something. The reference implementation from Sun seems to send a blank string. Have ours follow suit. author Jeff Layton Fri, 13 Mar 2009 11:44:16 -0500 (12:44 -0400) ____ libtirpc: be sure to free cl_netid and cl_tp When creating a client with clnt_tli_create, it uses strdup to copy strings for these fields if nconf is passed in. clnt_dg_destroy frees these strings already. Make sure clnt_vc_destroy frees them in the same way. author Jeff Layton Fri, 13 Mar 2009 11:47:36 -0500 (12:47 -0400) Obtained from: Bull GNU/Linux NFSv4 Project MFC after: 3 weeks
* Teach libdwarf about the DW_FORM_flag_present dwarf attribute, sodim2012-08-294-0/+9
| | | | | | | programs using libdwarf (such as ctfconvert) don't error out on files containing the attribute. MFC after: 2 weeks
* In suspend_common(), don't wait for a thread which is in creation, becausedavidxu2012-08-275-4/+64
| | | | | | | pthread_suspend_all_np() may have already suspended its parent thread. Add locking code in pthread_suspend_all_np() to only allow one thread to suspend other threads, this eliminates a deadlock where two or more threads try to suspend each others.
* Add libcxxrt's objects (prefixing them with cxxrt_ to avoid collisions)dim2012-08-251-1/+18
| | | | | | | to libc++.a and libc++_p.a, to make static linking of C++ executables with libc++ easier. This is similar to the approach used in libstdc++. MFC after: 2 weeks
* Sprinkle a bit of style.Makefile(5) across various clang Makefiles. Nodim2012-08-232-14/+14
| | | | | | functional changes. MFC after: 3 days
* Eliminate redundant code, _thr_spinlock_init() has already been calleddavidxu2012-08-231-3/+0
| | | | in init_private(), don't call it again in fork() wrapper.
* Add missing .Pp macro.zeising2012-08-211-0/+1
| | | | | | PR: docs/170380 Submitted by: Garrett Cooper <yanegomi@gmail.com> Approved by: joel (mentor)
* Remove trailing whitespace.joel2012-08-211-1/+1
|
* Add manual pages for clock_getcpuclockid and pthread_getcpuclockid.davidxu2012-08-212-1/+96
|
* Fix prototype. Also the function should return error code instead ofdavidxu2012-08-211-2/+4
| | | | -1 on error.
* Add three additional clang intrinsics headers, which I missed in thedim2012-08-201-1/+4
| | | | previous import.
*---. Upgrade our copy of llvm/clang to trunk r162107. With thanks todim2012-08-2039-34/+116
|\ \ \ | | | | | | | | | | | | Benjamin Kramer and Joerg Sonnenberger for their input and fixes.
| | | * Vendor import of clang trunk r161861:dim2012-08-15353-18662/+38404
| | | | | | | | | | | | | | | | http://llvm.org/svn/llvm-project/cfe/trunk@161861
| | | * Vendor import of clang release_31 r156863 (the actual 3.1 release):dim2012-05-231-1/+1
| | | | | | | | | | | | | | | | http://llvm.org/svn/llvm-project/cfe/branches/release_31@156863
| | | * Vendor import of clang release_31 final r156748:dim2012-05-2215-298/+102
| | | | | | | | | | | | | | | | http://llvm.org/svn/llvm-project/cfe/tags/RELEASE_31/final@156748
| | * | Vendor import of llvm trunk r162107:dim2012-08-1936-678/+1527
| |/ / | | | | | | | | | http://llvm.org/svn/llvm-project/llvm/trunk@162107
| * | Vendor import of llvm trunk r161861:dim2012-08-15801-31591/+68358
| | | | | | | | | | | | http://llvm.org/svn/llvm-project/llvm/trunk@161861
| * | Vendor import of llvm release_31 r156863 (the actual 3.1 release):dim2012-05-232-2/+2
| | | | | | | | | | | | http://llvm.org/svn/llvm-project/llvm/branches/release_31@156863
| * | Vendor import of llvm release_31 final r156748:dim2012-05-221-28/+58
| | | | | | | | | | | | http://llvm.org/svn/llvm-project/llvm/tags/RELEASE_31/final@156748
* | | Correct a regression introduced during the import of file(1) 5.11.mckay2012-08-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Magic tests containing "search" or "regex" directives were incorrectly compiled by "mkmagic" and were effectively ignored. This caused troff files (for example) to be detected as simply "ASCII text" instead of as "troff or preprocessor input, ASCII text". PR: bin/170415 Approved by: consensus on developers@ MFC after: 3 days
* | | Implement syscall clock_getcpuclockid2, so we can get a clock iddavidxu2012-08-176-6/+47
| | | | | | | | | | | | | | | | | | | | | | | | for process, thread or others we want to support. Use the syscall to implement POSIX API clock_getcpuclock and pthread_getcpuclockid. PR: 168417
* | | Make 'junk' volatile so that compilers won't be tempted to optimizekevlo2012-08-171-1/+1
| | | | | | | | | | | | | | | Reviewed by: ache MFC after: 3 days
* | | Merging of projects/armv6, part 2gonzo2012-08-152-0/+10
| | | | | | | | | | | | Handle TLS for ARMv6 and ARMv7
* | | Merging of projects/armv6, part 2gonzo2012-08-151-1/+13
| | | | | | | | | | | | Handle TLS for ARMv6 and ARMv7
OpenPOWER on IntegriCloud