Colin Percival
29d7c2fce5
Quiet a compiler warning where (off_t + size_t) has a different sign
...
from (off_t).
Submitted by: delphij
2007-01-03 20:01:44 +00:00
Colin Percival
dbc258608e
Insert zero-padding between sparse blocks in archive_read_data(). This
...
fixes "tar -c @foo.tar" where "foo.tar" contains sparse entries.
MFC after: 1 week
2007-01-03 13:16:59 +00:00
David Schultz
266cb5ad57
The distinction between quiet and signaling NaN formats is
...
machine-dependent; these files tell the latest version of gdtoa
what to do.
2007-01-03 05:00:03 +00:00
David Schultz
ac9913a749
Fix rounding of 0xf for hex fp formats.
...
PR: 90333
2007-01-03 04:57:58 +00:00
Simon L. B. Nielsen
d076b71719
Bump modification date for last update.
2006-12-28 17:15:21 +00:00
Simon L. B. Nielsen
42d5d7751a
Catch up struct cmsghdr and struct msghdr in the manual page with the
...
actual structures in socket.h (which were updated 7 years ago).
MFC after: 1 week
2006-12-28 17:10:23 +00:00
Colin Percival
9d8f7dccb3
Correct spelling of "accommodate", "guarantee", "guaranteed", "guard",
...
"return", "ridiculous", and "success".
MFC after: 3 days
2006-12-28 05:21:48 +00:00
Joseph Koshy
5f2891aaa4
Document the additional error returns possible when handling ELF objects
...
that require extended numbering.
2006-12-25 02:24:39 +00:00
Joseph Koshy
f6c0f35e07
Keep shadow copies of the e_shnum',
e_phnum' and `e_shstrndx'
...
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]
2006-12-25 02:22:22 +00:00
Joseph Koshy
a2dc08f2b8
Use strncpy() instead of strlcpy() when copying members of
...
a `struct ar_hdr'. These members do not use NUL-termination
while strlcpy() expects its source buffer to be NUL-terminated.
2006-12-25 02:06:32 +00:00
Marius Strobl
63067c1af8
Fix a typo in __fpu_ftox() that caused long double to long (and long long)
...
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
2006-12-24 22:24:39 +00:00
Joseph Koshy
5eaae8bafd
Correct a logic error.
2006-12-24 09:45:10 +00:00
Jason Evans
ee0ab7cd86
Implement chunk allocation/deallocation hysteresis by caching one spare
...
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
2006-12-23 00:18:51 +00:00
David Xu
74c751131b
get LIBPTHREAD_ADAPTIVE_SPIN early, so it can be used for some global
...
mutexes.
2006-12-20 05:05:44 +00:00
David Xu
842a092b74
Check environment variable PTHREAD_ADAPTIVE_SPIN, if it is set, use
...
it as a default spin cycle count.
2006-12-20 04:43:34 +00:00
John-Mark Gurney
87a1c270c6
add a missing the...
...
MFC after: 3 days
2006-12-19 20:20:39 +00:00
Peter Edwards
977e36e94a
Clean bound and non-bound pthread structures consistently before
...
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
2006-12-18 17:08:07 +00:00
Joseph Koshy
2dacb27e06
Use <osreldate.h> rather than the OS version reported by the kernel
...
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
2006-12-18 05:40:01 +00:00
Joseph Koshy
c2f3db731e
Use the correct value of __FreeBSD_version.
2006-12-18 05:36:23 +00:00
Joseph Koshy
9d4618fd66
Fix a typo.
2006-12-16 10:45:43 +00:00
Craig Rodrigues
066f54d831
Consistently use a socklen_t type where required, and eliminate
...
GCC warning "dereferencing type-punned pointer will
break strict-aliasing rules".
Reviewed by: rrs
2006-12-16 06:03:43 +00:00
Hajimu UMEMOTO
2cd19db26a
Merge BIND9 9.3.3 into main chunk.
...
Obtained from: ISC
MFC after: 1 week
2006-12-15 20:59:55 +00:00
Hajimu UMEMOTO
994f330564
This commit was generated by cvs2svn to compensate for changes in r165254,
...
which included commits to RCS files with non-trunk default branches.
2006-12-15 20:49:44 +00:00
Hajimu UMEMOTO
3f25740ec6
Vendor import of BIND 9.3.3
2006-12-15 20:49:44 +00:00
Pawel Jakub Dawidek
b613495e3c
chflags(2) returns EPERM when user tries to set or remove the SF_SNAPSHOT flag.
2006-12-15 19:23:27 +00:00
Randall Stewart
d6dda9b282
This adds the "system calls"
...
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)
2006-12-15 12:01:50 +00:00
David Xu
d99f6dac14
- Remove variable _thr_scope_system, all threads are system scope.
...
- Rename _thr_smp_cpus to boolean variable _thr_is_smp.
- Define CPU_SPINWAIT macro for each arch, only X86 supports it.
2006-12-15 11:52:01 +00:00
Warner Losh
a7e88f95bd
band-aide until _SC_PHYS_PAGES actually is defined
2006-12-14 22:14:14 +00:00
Pawel Jakub Dawidek
93a8a97ce9
Add support for _SC_PHYS_PAGES, which is not standard, but can be found in
...
Solaris and Linux.
2006-12-14 14:32:59 +00:00
Pawel Jakub Dawidek
e5d6d64110
Document _SC_PAGESIZE. There are still 85 undocumented variables.
...
Obtained from: NetBSD
2006-12-14 14:27:15 +00:00
David Xu
8a8178c010
Create inline function _thr_umutex_trylock2 to only try one atomic
...
operation, if it is failed, we call syscall directly, this saves
one atomic operation per lock contention.
2006-12-14 13:22:02 +00:00
Pawel Jakub Dawidek
0b0bc2bb7c
- truncate(2) returns EFBIG if the length argument was greater than the
...
maximum file size.
- truncate(2) returns EINVAL if the length argument was less than 0.
2006-12-13 22:51:23 +00:00
Pawel Jakub Dawidek
10873dafaf
Append-only flag also denies chown(2).
2006-12-13 22:17:58 +00:00
Joseph Koshy
e107d208f3
Name the functions documented by this manual page correctly.
2006-12-13 15:14:46 +00:00
Pawel Jakub Dawidek
a4319b6585
Much more correct EFTYPE description.
2006-12-13 13:46:01 +00:00
Pawel Jakub Dawidek
9b76b9d9b7
Better wording.
2006-12-13 13:26:32 +00:00
Pawel Jakub Dawidek
3bb2bdaef6
Append-only flag also denies chmod(2). Is this correct behaviour?
2006-12-13 13:22:57 +00:00
Pawel Jakub Dawidek
0b149517f3
Be more precise with EPERM description. When chown(2) is a no-op, it will
...
return 0.
2006-12-13 11:46:38 +00:00
Pawel Jakub Dawidek
e4c1f0293f
Write permission if of course only needed for the parent directory of
...
the object beeing created.
Pointed out by: bde
2006-12-13 11:26:03 +00:00
Pawel Jakub Dawidek
e67ec1d4a1
mkfifo(2) returns EACCES when write permission is denied for a component of
...
the path prefix.
2006-12-13 09:58:49 +00:00
Pawel Jakub Dawidek
1619e03af7
Be more specific when ELOOP can be returned.
2006-12-12 20:06:52 +00:00
Pawel Jakub Dawidek
a2b7d92ad6
symlink(2) return EACCES if a component of the name2 path prefix denies
...
write permission.
2006-12-12 20:05:04 +00:00
Pawel Jakub Dawidek
554bc5f287
Correct ENOENT description.
2006-12-12 19:57:17 +00:00
Pawel Jakub Dawidek
b8f5525f70
The 'name1' argument to symlink(2) is only limited to 1023 characters,
...
its components are not checked.
2006-12-12 19:48:15 +00:00
Pawel Jakub Dawidek
1212ac8123
mkdir(2) creates directory, not file.
2006-12-12 15:00:08 +00:00
Julian Elischer
558c08c358
Remove reference to confusing behaviour just removed from
...
the kse_exit() syscall. Describe the correct behaviour.
2006-12-12 08:13:02 +00:00
David Xu
9e8a8aa551
Correctly check failed syscall.
2006-12-12 05:26:39 +00:00
David Xu
347126a2e2
Move checking for c_has_waiters into low level _thr_ucond_signal and
...
_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.
2006-12-12 03:08:49 +00:00
Joseph Koshy
61e1aeb6ee
Document the ELF types supported by libelf.
...
Document the relationship between section types (SHT_*) and the
types known to the libelf.
2006-12-11 09:03:27 +00:00
Pawel Jakub Dawidek
ba4b9e0121
When directory is given as an argument for unlink(2), EPERM is returned
...
not matter if this is regular directory or a mount point.
2006-12-10 13:04:36 +00:00