summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Bump modification date for last update.simon2006-12-281-1/+1
|
* Catch up struct cmsghdr and struct msghdr in the manual page with thesimon2006-12-281-11/+11
| | | | | | actual structures in socket.h (which were updated 7 years ago). MFC after: 1 week
* Correct spelling of "accommodate", "guarantee", "guaranteed", "guard",cperciva2006-12-288-11/+11
| | | | | | "return", "ridiculous", and "success". MFC after: 3 days
* Document the additional error returns possible when handling ELF objectsjkoshy2006-12-255-5/+25
| | | | that require extended numbering.
* Keep shadow copies of the `e_shnum', `e_phnum' and `e_shstrndx'jkoshy2006-12-2513-219/+432
| | | | | | | | | | | | | | | members of the ELF Executable Header inside the library-private `struct _Elf' descriptor and only update the underlying Elf{32,64}_Ehdr structure on an elf_update(3) call. These fields of the Ehdr structure are technically `out of bounds' for an application program per the ELF(3) API, but we've seen applications that initialize a new Ehdr structure using memcpy(), messing up the library's invariants. [1] Implement elf_getphnum() and handle ELF objects with more than 64K program header table entries. Reported by: jb [1]
* Use strncpy() instead of strlcpy() when copying members ofjkoshy2006-12-251-8/+11
| | | | | a `struct ar_hdr'. These members do not use NUL-termination while strlcpy() expects its source buffer to be NUL-terminated.
* Fix a typo in __fpu_ftox() that caused long double to long (and long long)marius2006-12-241-9/+10
| | | | | | | | | conversion of negative numbers to always result in -1. While at it, rearrange the nearby comment so it fits in 80 chars per line, like the rest of this file does. PR: 107130 MFC after: 1 day
* Correct a logic error.jkoshy2006-12-241-8/+15
|
* Implement chunk allocation/deallocation hysteresis by caching one sparejasone2006-12-231-51/+86
| | | | | | | | chunk per arena, rather than immediately deallocating all unused chunks. This fixes a potential performance issue when allocating/deallocating an object of size (4kB..1MB] in a loop. Reported by: davidxu
* get LIBPTHREAD_ADAPTIVE_SPIN early, so it can be used for some globaldavidxu2006-12-201-2/+5
| | | | mutexes.
* Check environment variable PTHREAD_ADAPTIVE_SPIN, if it is set, usedavidxu2006-12-205-1/+8
| | | | it as a default spin cycle count.
* add a missing the...jmg2006-12-191-1/+1
| | | | MFC after: 3 days
* Clean bound and non-bound pthread structures consistently beforepeadar2006-12-182-8/+10
| | | | | | | | | | | | they become candidates for reuse. Without this fix, some of the state from a thread structure's previous incarnation could interfere with its new one. Specifically, a non-bound thread started as "suspended" (see pthread_attr_setcreatesuspend_np()) might not get scheduled at all when resumed, as the "active" flag would be set spuriously. Reviewed by: deischen@, davidxu@ MFC after: 1 week
* Use <osreldate.h> rather than the OS version reported by the kerneljkoshy2006-12-189-67/+74
| | | | | | | | | | | | to determine which Elf Types are to be handled. Change the M4 templates to wrap an `#if __FreeBSD_version >= NNN'/`#endif' pair around the generated code for each ELF data type, where `NNN' is the OS version where the ELF type was added to the source tree. This change allows cross-builds of old sources on newer FreeBSD systems to work correctly. Problem reported by: ru
* Use the correct value of __FreeBSD_version.jkoshy2006-12-182-10/+9
|
* Fix a typo.jkoshy2006-12-161-1/+1
|
* Consistently use a socklen_t type where required, and eliminaterodrigc2006-12-161-6/+6
| | | | | | | GCC warning "dereferencing type-punned pointer will break strict-aliasing rules". Reviewed by: rrs
* Merge BIND9 9.3.3 into main chunk.ume2006-12-155-20/+17
| | | | | Obtained from: ISC MFC after: 1 week
* This commit was generated by cvs2svn to compensate for changes in r165254,ume2006-12-151-5/+5
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Vendor import of BIND 9.3.3ume2006-12-156-25/+22
| |
| * Import of BIND 9.3.3rc2ume2006-10-241-7/+7
| |
* | chflags(2) returns EPERM when user tries to set or remove the SF_SNAPSHOT flag.pjd2006-12-151-0/+4
| |
* | This adds the "system calls"rrs2006-12-152-1/+830
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sctp_getaddrlen() sctp_connectx() sctp_bindx() sctp_opt_info() sctp_getpaddrs() sctp_freepaddrs() sctp_getladdrs() sctp_freeladdrs() sctp_sendmsg() sctp_getassocid() sctp_send() sctp_sendx() sctp_sendmsgx() sctp_recvmsg() sctp_peeloff() Manual pages will be forthcoming (and the commit to porters-handbook)
* | - Remove variable _thr_scope_system, all threads are system scope.davidxu2006-12-1510-25/+19
| | | | | | | | | | - Rename _thr_smp_cpus to boolean variable _thr_is_smp. - Define CPU_SPINWAIT macro for each arch, only X86 supports it.
* | band-aide until _SC_PHYS_PAGES actually is definedimp2006-12-141-0/+2
| |
* | Add support for _SC_PHYS_PAGES, which is not standard, but can be found inpjd2006-12-142-1/+27
| | | | | | | | Solaris and Linux.
* | Document _SC_PAGESIZE. There are still 85 undocumented variables.pjd2006-12-141-1/+3
| | | | | | | | Obtained from: NetBSD
* | Create inline function _thr_umutex_trylock2 to only try one atomicdavidxu2006-12-142-3/+11
| | | | | | | | | | operation, if it is failed, we call syscall directly, this saves one atomic operation per lock contention.
* | - truncate(2) returns EFBIG if the length argument was greater than thepjd2006-12-131-1/+9
| | | | | | | | | | maximum file size. - truncate(2) returns EINVAL if the length argument was less than 0.
* | Append-only flag also denies chown(2).pjd2006-12-131-1/+1
| |
* | Name the functions documented by this manual page correctly.jkoshy2006-12-131-2/+2
| |
* | Much more correct EFTYPE description.pjd2006-12-131-1/+3
| |
* | Better wording.pjd2006-12-132-2/+2
| |
* | Append-only flag also denies chmod(2). Is this correct behaviour?pjd2006-12-131-1/+1
| |
* | Be more precise with EPERM description. When chown(2) is a no-op, it willpjd2006-12-131-1/+2
| | | | | | | | return 0.
* | Write permission if of course only needed for the parent directory ofpjd2006-12-132-8/+4
| | | | | | | | | | | | the object beeing created. Pointed out by: bde
* | mkfifo(2) returns EACCES when write permission is denied for a component ofpjd2006-12-131-0/+2
| | | | | | | | the path prefix.
* | Be more specific when ELOOP can be returned.pjd2006-12-121-1/+3
| |
* | symlink(2) return EACCES if a component of the name2 path prefix deniespjd2006-12-121-0/+4
| | | | | | | | write permission.
* | Correct ENOENT description.pjd2006-12-121-2/+4
| |
* | The 'name1' argument to symlink(2) is only limited to 1023 characters,pjd2006-12-121-1/+3
| | | | | | | | its components are not checked.
* | mkdir(2) creates directory, not file.pjd2006-12-121-1/+2
| |
* | Remove reference to confusing behaviour just removed fromjulian2006-12-121-6/+3
| | | | | | | | the kse_exit() syscall. Describe the correct behaviour.
* | Correctly check failed syscall.davidxu2006-12-121-10/+10
| |
* | Move checking for c_has_waiters into low level _thr_ucond_signal anddavidxu2006-12-122-16/+12
| | | | | | | | | | | | | | _thr_ucond_broadcast, clear condition variable pointer in cancellation info after returing from _thr_ucond_wait, since kernel has already dropped the internal lock, so we don't need to unlock it in cancellation handler again.
* | Document the ELF types supported by libelf.jkoshy2006-12-111-1/+93
| | | | | | | | | | Document the relationship between section types (SHT_*) and the types known to the libelf.
* | When directory is given as an argument for unlink(2), EPERM is returnedpjd2006-12-101-4/+1
| | | | | | | | not matter if this is regular directory or a mount point.
* | Changes to generated files related to the 9.3.3 import.dougb2006-12-109-93/+360
| |
* | If the named file has its immutable or append-only flag set, utimes(2)pjd2006-12-091-1/+6
| | | | | | | | returns EPERM.
* | If the parent directory of the named file has its immutable flag set,pjd2006-12-091-1/+6
| | | | | | | | mkfifo(2) returns EPERM.
OpenPOWER on IntegriCloud