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
Doug Barton
b02f06c3da
Changes to generated files related to the 9.3.3 import.
2006-12-10 07:11:04 +00:00
Pawel Jakub Dawidek
e799094d84
If the named file has its immutable or append-only flag set, utimes(2)
...
returns EPERM.
2006-12-09 23:13:05 +00:00
Pawel Jakub Dawidek
b10ec4d0dc
If the parent directory of the named file has its immutable flag set,
...
mkfifo(2) returns EPERM.
2006-12-09 23:06:01 +00:00
Pawel Jakub Dawidek
2f51879266
If the parent directory of the destination file has its immutable flag set,
...
symlink(2) returns EPERM.
2006-12-09 23:01:38 +00:00
Pawel Jakub Dawidek
46db118b7e
- If the source file has its immutable or append-only flag set, link(2)
...
returns EPERM.
- If the parent directory of the destination file has its immutable flag set,
link(2) returns EPERM.
2006-12-09 22:56:40 +00:00
Pawel Jakub Dawidek
9becb00c0a
If the named file has its immutable or append-only flag set, truncate(2)
...
and ftruncate(2) return EPERM.
Note, that if the append-only flag is set even increasing size of the file
is not permitted.
2006-12-09 22:49:28 +00:00
Pawel Jakub Dawidek
442cc490fd
If the named file has its immutable flag set, chown(2) returns EPERM.
2006-12-09 22:41:26 +00:00
Pawel Jakub Dawidek
54ec563e0d
If the named file has its immutable flag set, chmod(2) returns EPERM.
2006-12-09 22:41:01 +00:00
Pawel Jakub Dawidek
4e3f043c22
Add reference to chflags(2).
2006-12-09 22:39:28 +00:00
Pawel Jakub Dawidek
93dbfff0f9
If the parent directory of the named file has its immutable flag set,
...
mkdir(2) returns EPERM.
2006-12-09 22:35:55 +00:00
Pawel Jakub Dawidek
3e6f3ff080
- If the directory to be removed has its immutable, undeletable or append-only
...
flag set, rmdir(2) returns EPERM.
- If the parent directory of the directory to be removed has its immutable or
append-only flag set, rmdir(2) returns EPERM.
2006-12-09 19:44:38 +00:00
Pawel Jakub Dawidek
b7715d3d86
- If the parent directory of the file pointed at by the from argument has its
...
immutable or append-only flag set, rename(2) returns EPERM.
- If the parent directory of the file pointed at by the to argument has its
immutable flag set, rename(2) returns EPERM.
2006-12-09 19:42:58 +00:00
Pawel Jakub Dawidek
483a0e04d8
Correct last commit. The parent directory of the file to be removed can
...
have undeletable flag set.
2006-12-09 19:40:24 +00:00
Pawel Jakub Dawidek
d1eb7b96e7
When immutable, undeletable or append-only flag is set, rename(2)
...
return EPERM.
2006-12-09 19:19:46 +00:00
Pawel Jakub Dawidek
858e6c9cbd
When undeletable flag is set, unlink(2) return EPERM.
2006-12-09 19:18:39 +00:00
Joseph Koshy
37ec86bb1b
Make the generated message from `elf_errmsg(-1)' a little more readable.
2006-12-09 16:27:15 +00:00
Tim Kientzle
0a4794d3a4
Minor refactoring; move the FreeBSD-specific config info into
...
config_freebsd.h. archive_platform.h decides which config file
to bring in and uses some of those selectors to define wrapper
macros and other compatibility glue.
2006-12-08 06:13:49 +00:00
Julian Elischer
2d2f0b92c7
remove already commented out code
2006-12-06 06:44:20 +00:00
David Xu
b774466b61
test cancel_pending to save a thr_wake call in some specical cases.
2006-12-06 00:15:35 +00:00
David Xu
a8a343d2e6
_thr_ucond_wait drops lock, we should pick it up again.
2006-12-05 23:46:11 +00:00
David Xu
3b8a017442
the c_has_waiters is lazily updated, temporarily disable the false
...
alarm code.
2006-12-05 07:23:58 +00:00
David Xu
4d617f2d10
Use ucond to implement barrier.
2006-12-05 06:54:25 +00:00
David Xu
670b44d65a
Add _thr_ucond_init().
2006-12-05 06:53:44 +00:00
David Xu
3ce4e91d4e
Tweak _thr_cancel_leave_defer a bit to fix a possible race.
2006-12-05 05:01:57 +00:00
Ruslan Ermilov
a82e937c0b
Grammar.
...
OK'ed by: sam
2006-12-04 20:34:25 +00:00
Sam Leffler
78e3a7fdd5
document recent change to return ECONNRESET for tcp sockets
...
MFC after: 1 month
2006-12-04 18:39:11 +00:00
Hajimu UMEMOTO
909e7467d8
Use _kevent() instead of kevent().
...
Requested by: nork
2006-12-04 17:08:43 +00:00
David Xu
3c61d00ab6
Fix typo, I was using a wrong header file, and the typo is not detected
...
by compiler.
2006-12-04 14:27:42 +00:00
David Xu
2bd2c90703
Use kernel provided userspace condition variable to implement pthread
...
condition variable.
2006-12-04 14:20:41 +00:00
Tim Kientzle
5af1711729
Argh. Restore a stat() call that was erroneously removed.
...
Thanks to: WATANABE, Kazuo
Pointy hat: me, from the handy dispenser I keep nearby.
2006-12-04 08:01:53 +00:00
Diomidis Spinellis
aeecffebe5
Minor clarification.
2006-12-03 19:26:17 +00:00
Maxim Konovalov
88ce725781
o As POSIX requires confstr(3) returns zero on errors, not -1.
...
PR: misc/106234
Submitted by: Guy Harris
MFC after: 1 week
2006-12-03 08:22:36 +00:00
David Xu
6f54e82927
If a thread was detached, return EINVAL instead, the error code
...
is also returned by pthread_detach() if a thread was already
detached, the error code was already documented:
> [EINVAL] The implementation has detected that the value speci-
> fied by thread does not refer to a joinable thread.
2006-11-28 11:05:31 +00:00
Tim Kientzle
a6fac34b43
Improve support for large ISOs:
...
* Correct a signed/unsigned problem that broke handling of files >2G.
* Implement "skip" support for much faster "tar -t".
Thanks to: Robert Sciuk for sending me a DVD that illustrated the first problem
2006-11-27 16:30:32 +00:00
Tim Kientzle
24d698ea89
Bump the libarchive version number, correct the shell hackery to break
...
the full version down into major/minor values.
2006-11-26 19:09:42 +00:00
Tim Kientzle
dc46be1cbf
Write-blocking cleanup, largely thanks to Colin Percival (cperciva@).
...
* If write block size is zero, don't block at all.
This supports the unusual requirement of applications
that need "no-delay" writes.
* Expose _write_finish_entry() to give such applications more
control over write boundaries. (Normal applications do not
need this, as entries are completed automatically.)
* Correct the type of write callbacks; this is a minor API
change that does not affect the ABI.
* Correct the error handling in _write_next_header() around
completing the previous entry.
* Correct the documentation for block-size markers: Remove
docs for the long-defunct _read_set_block_size(); document
all of the write block size manipulators.
MFC after: 14 days
2006-11-26 19:00:50 +00:00
Ruslan Ermilov
8af480aec1
- When building world WITHOUT_LIBPTHREAD, link libthr to libpthread.
...
- Don't build ngctl(8) and cached(8) if threading libs aren't built.
- Fix various issues in a cached(8) makefile.
2006-11-26 14:36:34 +00:00
Tim Kientzle
43baed1581
Unbreak libarchive on arm. Two parts of libarchive relied on a
...
traditional shortcut of defining on-disk layouts using structures of
character arrays. Unfortunately, as recently discussed on cvs-all@,
this usage is not actually sanctioned by the standards and
specifically fails on GCC/arm (unless your data structures happen to
be "naturally aligned").
The new code defines offsets/sizes for data fields and accesses
them using explicit pointer arithmetic, instead of casting to
a structure and accessing structure fields. In particular,
the new code is now clean with WARNS=6 on arm.
MFC after: 14 days
2006-11-26 05:39:28 +00:00
Tim Kientzle
97fc4d2db7
Connect four new files to the build.
...
PR: bin/86742
2006-11-24 16:35:54 +00:00
Yaroslav Tykhiy
df19774d2f
Note that, thanks to the work by Alan Cox et al, some arch'es
...
don't need sendfile() buffers any more.
The report on the work referenced can be found at
http://usenix.org/events/usenix05/tech/general/elmeleegy.html
MFC after: 1 week
2006-11-24 11:44:19 +00:00
David Xu
f08e1bf682
Eliminate atomic operations in thread cancellation functions, it should
...
reduce overheads of cancellation points.
2006-11-24 09:57:38 +00:00
Ruslan Ermilov
73eee24650
- style: use =' instead of
+=' for initial assignments.
...
- don't add generated sources' objects to OBJS explicitly;
GENSRCS is part of SRCS so they were already in OBJS.
2006-11-24 06:38:11 +00:00
Tim Kientzle
6770b130f1
Fill in a couple of missing casts: clarify one narrowing conversion
...
and correct the use of unary minus with an unsigned value. (The unary
minus here is actually being used as a bitwise operation, which is
unusual enough to deserve a clarifying cast.)
2006-11-24 05:48:04 +00:00
Tim Kientzle
4f27e91611
A few minor clarifications and corrections.
2006-11-24 05:41:16 +00:00
Tim Kientzle
b4e244d1a3
A few minor corrections to the libarchive.3 overview page.
2006-11-24 05:37:38 +00:00
Tim Kientzle
73a2505465
Document the new _open_FILE() and _open_memory() interfaces.
...
PR: bin/86742
2006-11-24 05:34:23 +00:00
Tim Kientzle
13e2d5bcd5
New hooks for reading/writing archives to/from a FILE * or
...
an in-memory buffer.
PR: bin/86742
2006-11-24 02:00:48 +00:00
John Baldwin
8cc7b0f93d
Document that the data field for NOTE_EXIT holds the process exit status.
...
Submitted by: Jared Yanovich -phirerunner at comcast.net-
MFC after: 2 weeks
2006-11-20 22:20:04 +00:00
Tim Kientzle
af6513d3ea
Officially rename archive_{read,write}_open_file() to
...
archive_{read,write}_open_filename():
* Update Makefile to build the files using the new name.
* Update docs to document the new names, mentioning the
old ones as "deprecated synonyms."
* The old filenames will be reconnected to the build soon;
I'll soon recyce those files for a slightly different purpose.
2006-11-20 16:48:04 +00:00
Tim Kientzle
5468bdb0da
Add archive_write_open_filename()/archive_read_open_filename() as
...
synonyms for archive_write_open_file()/archive_read_open_file().
The new names are much clearer.
2006-11-15 05:33:38 +00:00
Tim Kientzle
38c56af195
Style: Use the correct type for a sizeof() variable.
2006-11-15 05:20:14 +00:00
Tim Kientzle
ca743d5c67
Change the internal API for writing data to an entry; make the
...
internal format-specific functions return the same as the public
function, so that the public API layer doesn't have to guess the
correct return value. This addresses an obscure problem that occurs
when someone tries to write more data than the size of the entry (as
indicated in the entry header). In this case, the return value from
archive_write_data() was incorrect, reflecting the requested write
rather than the amount actually written.
MFC after: 15 days
2006-11-15 05:14:20 +00:00
Tim Kientzle
fb1856eabd
No change in functionality, but fill in a missing error
...
message when reading a truncated tar archive.
2006-11-13 16:50:18 +00:00
Ruslan Ermilov
cd9e086e93
Fix minor formatting issues:
...
- make document title match filename;
- remove hard sentence breaks, whitespace at EOL, and double whitespace;
- sort SEE ALSO xrefs, adding missing section numbers;
- fix a misspelled macro name.
2006-11-13 09:46:16 +00:00
Tim Kientzle
71f3ec709d
These files no longer use internal APIs, so no longer need to include
...
archive_private.h.
2006-11-13 00:29:57 +00:00
Tim Kientzle
b2ba9b4e04
Minor cleanup of the standard read/write I/O modules:
...
* Use public API, don't access struct archive directly. (People should be able to copy these into their applications as a template for custom I/O callbacks.)
* Set "skip" only for regular files. ("skip" allows the low-level library to catch attempts to add an archive to itself or extract over itself.)
* Simplify the write_open functions by just calling stat() at the beginning. Somehow, these functions had acquired some complex logic that tried to avoid the stat() call but never succeeded.
MFC after: 10 days
2006-11-13 00:26:45 +00:00
Tim Kientzle
c3b11d8213
Correctly handle writing very large blocks (>1M) through to a disk
...
file. This doesn't happen in normal use, because the file I/O and
decompression layers only pass through smaller blocks. It can happen
with custom read functions that block I/O in larger blocks.
2006-11-12 23:45:40 +00:00
Joseph Koshy
9167cd6392
- Replace the use of DPSRCS with something more appropriate. DPSRCS
...
is for when you need something in ".depend", but not compiled in.
- Style fixes: Spell ${.OBJDIR} as ".".
- Neaten a comment.
Submitted by: ru
2006-11-12 18:43:25 +00:00
Joseph Koshy
3eb1a62e69
MFP4: Add an implementation of the ELF(3) and GELF(3) API set.
...
Bump __FreeBSD_version.
Reviewed by: jb
2006-11-11 17:16:35 +00:00
David Xu
58c7bab332
Move code calculating new inherited priority into single function.
2006-11-11 13:33:47 +00:00
Dag-Erling Smørgrav
1cede0c9bd
childerr needs to be volatile so gcc won't optimize it away.
...
PR: bin/85830
MFC after: 1 week
2006-11-10 23:33:25 +00:00
Tim Kientzle
aa1eeda578
Portability and style fixes:
...
* Actually use the HAVE_<header>_H macros to conditionally include
system headers. They've been defined for a long time, but only
used in a few places. Now they're used pretty consistently
throughout.
* Fill in a lot of missing casts for conversions from void*.
Although Standard C doesn't require this, some people have been
trying to use C++ compilers with this code, and they do require it.
Bit-for-bit, the compiled object files are identical, except for
one assert() whose line number changed, so I'm pretty confident I
didn't break anything. ;-)
2006-11-10 06:39:46 +00:00
Tom Rhodes
c74824fe88
Add an entry for PT_GETLWPLIST.
...
Nudged by: jhb
Reviewed by: davidxu
2006-11-09 11:27:18 +00:00
Olivier Houchard
c0b6c4a212
Cleanup: we always have to use __error() now, and we shouldn't provide a
...
errno symbol, so completely remove the !_REENTRANT case.
Spotted out by: ru
2006-11-09 01:28:16 +00:00
Ruslan Ermilov
7c11ac3da0
Remove a forgotten file.
2006-11-08 21:29:20 +00:00
Simon L. B. Nielsen
91c158a34e
Fix infinite loop in corrupt archives handling in libarchive(3).
...
Reported by: rink
Submitted by: kientzle
Security: FreeBSD-SA-06:24.libarchive
2006-11-08 14:03:50 +00:00
Olivier Houchard
05b432d2d1
Instead of re-implementing hton[ls] and friends for each arch, add a new MI
...
file, net/ntoh.c, which just implement them using the inline functions from
<sys/endian.h>.
Suggested by: bde
2006-11-06 22:07:47 +00:00
Olivier Houchard
9cef667a1a
Provide definitions suitable for arm big-endian.
2006-11-06 20:49:23 +00:00
Robert Watson
21f62f0771
Remove sys/uio.h include -- this is no longer required by the extattr
...
system call API.
MFC after: 3 weeks
2006-11-06 15:12:43 +00:00
Tim Kientzle
8a4b2112a2
Eliminate documentation references to a non-existent function.
2006-11-06 00:28:46 +00:00
Tim Kientzle
a2b1e869b7
Computing SHLIB_MAJOR is not a good idea. It's really a FreeBSD
...
system value that has no real relation to the libarchive version.
(Except, of course, that any ABI breakage will force both to be
incremented.)
2006-11-06 00:24:57 +00:00
Tim Kientzle
a5261c3117
Remove an unused declaration.
2006-11-06 00:16:40 +00:00
Tom Rhodes
d3dc0c9de4
Fix a typo: "the give login class" to "the given login class."
...
PR: 75577
Submitted by: Nobuyuki Koganemaru
2006-11-05 19:00:08 +00:00
Sam Lawrance
6b0a380f6d
Document return values for res_query and res_search.
...
h_errno is not an extern int, just a macro providing an integer lvalue.
PR: doc/50573
Submitted by: Ronald F.Guilmette <rfg@monkeys.com>
Reviewed by: trhodes
MFC after: 3 days
2006-11-04 09:42:22 +00:00
Daniel Gerzo
137e54d3db
- clock_gettime is in time.h instead of sys/time.h
...
Approved by: trhodes (mentor), keramida (mentor)
PR: docs/104707
MFC-after: 3 days
2006-11-04 09:35:36 +00:00
Kip Macy
7b5cdd4faf
- change ABI for user trap handler for sun4v (eventually will sync sparc64 no
...
hardware set up to test at the moment)
Approved by: scottl (standing in for mentor rwatson)
2006-11-03 23:43:18 +00:00
Ruslan Ermilov
f19110addc
Replace the SEE ALSO xrefs with a more reasonable set stolen from POSIX.
2006-11-02 14:10:56 +00:00
Matt Jacob
bd3fd815a7
2nd and final commit that moves us to CAM_NEW_TRAN_CODE
...
as the default.
Reviewed by multitudes.
2006-11-02 00:54:38 +00:00
Pawel Jakub Dawidek
a722f8df9e
Document MNT_GJOURNAL option.
2006-11-01 23:40:44 +00:00
Pawel Jakub Dawidek
cf4652e74b
Implement cgwrite1(3) function which stored a given cylinder group on disk.
...
Sponsored by: home.pl
2006-10-31 21:21:48 +00:00
Bruce Evans
81f2acfc06
Backed out rev.1.10 (a special case for amd64). The amd64 mcount code
...
never needed any frame pointers for itself.
2006-10-28 13:34:35 +00:00
Ruslan Ermilov
0f0eddbb01
Add missing markup bits.
...
Submitted by: Emil Mikulic
2006-10-28 13:05:10 +00:00
Maxim Konovalov
42cdb16b47
o Fix function name.
...
Obtained from: DragonFlyBSD
MFC after: 1 week
2006-10-28 10:53:39 +00:00
John Birrell
8460a577a4
Make KSE a kernel option, turned on by default in all GENERIC
...
kernel configs except sun4v (which doesn't process signals properly
with KSE).
Reviewed by: davidxu@
2006-10-26 21:42:22 +00:00
Hajimu UMEMOTO
b021e5e1ed
Merge res_send.c of BIND9 9.3.3rc2 into main chunk. It includes
...
following fix:
Retransmission timeouts should be based on which attempt
it is to the nameserver and not the nameserver itself.
Obtained from: ISC
MFC after: 3 days
2006-10-24 14:41:43 +00:00
Hajimu UMEMOTO
7c35eabcb2
Import of BIND 9.3.3rc2
2006-10-24 14:25:49 +00:00
Konstantin Belousov
525cd732f9
Revert the rev. 1.4, it causes breakage on most arches except i386.
...
Remove the const qualifier from ap argument for __v2printf, that induced
that breakage, and seems to be the real reason for bad code. ap is modified
inside the __v2printf body by va_arg macro.
Pointy hat to: kib
Approved by: pjd (mentor)
2006-10-23 07:25:25 +00:00
Simon L. B. Nielsen
27111d392c
Minor markup fix: A comma should be seperated by space from macro
...
argument. This resulted in "pwritev,()" instead of the intended
"pwritev()," in the output.
MFC after: 3 days
2006-10-21 20:36:50 +00:00
Ruslan Ermilov
2aeccd6ea7
Avoid a potential hard sentence break.
2006-10-21 18:03:53 +00:00
Maxim Konovalov
e82b177775
o Fix typo.
...
Obtained from: DragonFlyBSD
MFC after: 1 week
2006-10-21 15:12:36 +00:00
Konstantin Belousov
129ccff2fb
Workaround for (what seems to be) compiler error for gcc 3.4.6. On
...
i386 with default optimization level (-O2), va_list pointer ap in the
__v2printf function is advanced before the use. That cause argument
shift and garbage instead last argument in printf-family when xprintf is
activated.
The nsswitch is easy victim of the bug.
Reviewed by: kan
Approved by: kan (mentor)
MFC after: 1 week
2006-10-21 11:49:07 +00:00
David Xu
210a647b67
remove libc_r remanent.
2006-10-20 14:15:42 +00:00
Gleb Smirnoff
bbf889eded
Include sys/socket.h to know about sa_family_t.
2006-10-17 16:56:29 +00:00
Andrey A. Chernov
b0bf75c83c
file == NULL:
...
Issue __sflush() before possible setting O_APPEND mode or ftruncate(),
write to wrong place may occurse oserwise.
Use simplified _sseek() to the start, if no O_APPEND is set, instead
of _fseeko() (_sseek() to the end, if O_APPEND, occurse later, as for
file != NULL).
Don't check seek error return, as original fopen() and freopen() never
does.
file != NULL:
Add missing _sseek() to the end.
2006-10-16 14:31:56 +00:00
Andrey A. Chernov
5a8d08f52b
Honor errno obtained from __sflags
...
Move errno restoring after FUNLOCKFILE in one case
2006-10-16 09:57:15 +00:00
Andrey A. Chernov
6f8d08b39a
Back out ftruncate error handling. There can some file tipes
...
f.e. sockets when ftruncate normally fail.
2006-10-16 09:39:15 +00:00
Andrey A. Chernov
b48be86ce1
Do real seek
...
Catch ftruncate errors
PR: 104295
Submitted by: ru (seek)
2006-10-15 16:24:31 +00:00
Bruce Evans
fae6222bdb
Moved __BEGIN_DECLS up a little so that it covers __test_sse() and C++
...
isn't broken,
PR: 104425
2006-10-14 20:35:56 +00:00
David Xu
5656b5fafa
Don't inherit THR_FLAGS_NEED_SUSPEND for child process, child process
...
only has one thread, setting the flag can cause the thread to be
suspended and no another thread will resume it.
2006-10-14 13:40:08 +00:00
Tor Egge
2a99cc4322
Backout unblocking of signal if no threads can currently handle it.
...
The check for pending signal after direct invocation of signal handler
is sufficient.
2006-10-14 01:11:44 +00:00
David Xu
8042f26d52
o Make _thr_umutex_init a function.
...
o Eliminate unused parameter for some functions.
o Convert type of first parameter to void * for _thr_umtx_wait
and _thr_umtx_wake.
2006-10-13 22:31:00 +00:00
Ruslan Ermilov
08e9f8c84f
Forgot to bump the document date.
2006-10-13 20:34:44 +00:00
Ruslan Ermilov
531ba7c084
Some word smithing adopted from the PR.
...
PR: docs/54451
Originally by: Andreas Fuchs
Adopted by: jhb
MFC after: 3 days
2006-10-13 20:28:58 +00:00
Tor Egge
081871afc8
Delay unblocking signal and restoring process signal mask until the
...
thread signal mask has been updated to avoid stack overflow during signal
bursts.
Don't block signal forever if no threads can currently handle signal.
Check for pending signal after direct invocation of signal handler.
2006-10-13 20:12:07 +00:00
Tor Egge
c8b69d87c0
Delay setting wakeup time until after poll array has been allocated.
...
Blocking on the malloc spinlock would cause the select timeout to be lost.
2006-10-13 20:04:13 +00:00
Tor Egge
ed5348ec19
Sync thread jump table with libc and other thread libraries.
2006-10-13 20:01:40 +00:00
Ruslan Ermilov
9a29fb3baf
Add missing comma.
2006-10-13 16:11:12 +00:00
David Xu
0b90fa4ad0
Use type pthread_state for thread state.
2006-10-13 12:45:21 +00:00
Ruslan Ermilov
b13b4f6ffd
Use normal parentheses.
...
PR: docs/84549
Submitted by: Gary W. Swearingen
MFC after: 3 days
2006-10-12 20:50:26 +00:00
Ruslan Ermilov
948ec60d36
Don't say "rightmost" when referring to the least significant bit.
...
PR: docs/94803
MFC after: 3 days
2006-10-12 15:08:41 +00:00
Ruslan Ermilov
5429f49079
The pam_unix module also provides password management.
...
PR: docs/93491
Submitted by: Lior Kadosh
MFC after: 3 days
2006-10-12 15:00:17 +00:00
Ruslan Ermilov
e965ede2b5
More accurately document the implementation details of internal storage.
...
PR: docs/82508
2006-10-12 14:31:17 +00:00
Ruslan Ermilov
17cba6de53
Link select(2) to FD_CLR(3), FD_ISSET(3), FD_SET(3), and FD_ZERO(3).
...
PR: docs/57974
MFC after: 3 days
2006-10-12 13:46:33 +00:00
Ruslan Ermilov
942bfcd744
Document S_IRWXU and permission bits for group/other.
...
PR: docs/57153
MFC after: 3 days
2006-10-12 13:35:07 +00:00
Ruslan Ermilov
09bd310c91
Document what "msgsz" argument really denotes. [1]
...
Don't say that "msgsz" can be less than 0, it cannot
as it's unsigned (POSIX has the same bug).
PR: docs/101145 [1]
MFC after: 3 days
2006-10-12 11:42:41 +00:00
Tom Rhodes
79d9a182ab
Note that the value from getenv() should not be modified by applications.
...
PR: 60544
Reviewed by: ru
2006-10-12 08:39:24 +00:00
Kip Macy
5fe4c0e842
fix bus error in newsyslog by making sure that fields in struct fpemu
...
that are accessed as 8 byte quantities are 8 byte aligned
2006-10-12 04:38:41 +00:00
Maxim Konovalov
1be947e9f8
o Follow the trend and try to explain what the slow device is.
...
Not ideal but better than nothing.
Obtained from: OpenBSD, NetBSD
2006-10-11 13:33:02 +00:00
Maxim Konovalov
5c35171af3
o From kern_prot.c::p_cansignal():
...
UNIX signalling semantics require that processes in the same
session always be able to deliver SIGCONT to one another,
overriding the remaining protections.
Fix SIGCONT special case description similar to rev. 1.22 kill.2.
PR: docs/58710
Submitted by: Ryan Younce
MFC after: 2 weeks
2006-10-10 11:37:41 +00:00
Ruslan Ermilov
f0d43ae993
Fix markup in previous revision.
2006-10-10 08:15:08 +00:00
Tom Rhodes
5e058b334c
Add information on how to escape a literal colon in a value or name.
...
PR: 101262
2006-10-09 22:35:02 +00:00
Kip Macy
cab68f571e
unbreak build for sparc64 etc.
...
TARGET won't be defined on non subarches
Approved by: rwatson (mentor)
Reviewed by: jmg
2006-10-09 05:12:54 +00:00
Kip Macy
ddd5342909
buildworld fixes for sun4v
...
not sure why pmap.c is included as it is unchanged
Approved by: rwatson (mentor)
Reviewed by: jmg
2006-10-09 04:58:45 +00:00
Paolo Pisati
bb894bc9e6
Fix a regression: let natd load libalias modules before /usr is mounted
...
renaming /lib/libalias_*.so.4 to /lib/libalias_*.so.
Approved by: glebius
Reviewed by: glebius, ru
2006-10-08 14:02:00 +00:00
Kip Macy
b84c7a797c
Fix TLS on sparc64 for statically and dynamically linked binaries
...
Approved by: rwatson (mentor)
Reviewed by: jmg and marcel
2006-10-08 02:50:34 +00:00
Tom Rhodes
0b0ea94893
getenv.3: Put "is" on a line with other words
...
getobjformat.3: "takes precedence over" is not an envrionment variable.
PR: 75545
Submitted by: n-kogane@syd.odn.ne.jp
MFC after: 3 days
2006-10-07 21:27:21 +00:00
Tom Rhodes
dfe25dc456
Reword previous delta a little bit.
...
Submitted by: ru
2006-10-07 10:49:20 +00:00
Tom Rhodes
1ae5dc92c0
Fix ambiguity in description. Note that the aio_return() system call should
...
only be called once after failure or completion of an AIO request. Bump doc
date while I'm here.
Noticed by: Samy Al Bahra
2006-10-07 05:34:51 +00:00
Tom Rhodes
ef5566e8fc
Add missing word "returns."
...
Noticed by: Samy Al Bahra
2006-10-07 05:13:32 +00:00
David Xu
65c4c80772
Remove libc_r support.
2006-10-05 06:26:31 +00:00
Tim Kientzle
011a0a0432
Performance: If the dir mode requested is "reasonable", then just
...
restore it directly and skip chmod() during the post-extract fixup.
In particular, bsdtar -xm now completely skips the post-extract fixup
for directories, which produces a noticable speedup in that case.
2006-10-04 02:08:04 +00:00
Andrey A. Chernov
f68412f927
Automatically re-stir every 400000 calls
...
Obtained from: OpenBSD
2006-10-04 01:17:23 +00:00
Ruslan Ermilov
cf15fbb46a
Fix build.
2006-09-30 20:33:42 +00:00
Ruslan Ermilov
2e97500669
Removed libc_r build support.
2006-09-30 11:32:46 +00:00
Ruslan Ermilov
ad136d1e29
Revise markup in recently added manpages.
2006-09-30 10:34:13 +00:00
Ruslan Ermilov
bb4b8a9dd4
Fix markup, language, function prototype, and example code.
2006-09-30 10:24:00 +00:00
Ruslan Ermilov
64437d397b
Markup nit.
2006-09-29 22:57:22 +00:00
Ruslan Ermilov
e640c42275
- Removed a copyright from makefile.
...
- Added ${.CURDIR} to .include "...".
- Whitespace fixes.
OK'ed by: piso
2006-09-27 12:30:27 +00:00
Ruslan Ermilov
d6e26499b7
Put back NO_WERROR= to fix sparc64 build.
2006-09-27 10:30:17 +00:00
Paolo Pisati
be4f3cd0d9
Summer of Code 2005: improve libalias - part 1 of 2
...
With the first part of my previous Summer of Code work, we get:
-made libalias modular:
-support for 'particular' protocols (like ftp/irc/etcetc) is no more
hardcoded inside libalias, but it's available through external
modules loadable at runtime
-modules are available both in kernel (/boot/kernel/alias_*.ko) and
user land (/lib/libalias_*)
-protocols/applications modularized are: cuseeme, ftp, irc, nbt, pptp,
skinny and smedia
-added logging support for kernel side
-cleanup
After a buildworld, do a 'mergemaster -i' to install the file libalias.conf
in /etc or manually copy it.
During startup (and after every HUP signal) user land applications running
the new libalias will try to read a file in /etc called libalias.conf:
that file contains the list of modules to load.
User land applications affected by this commit are ppp and natd:
if libalias.conf is present in /etc you won't notice any difference.
The only kernel land bit affected by this commit is ng_nat:
if you are using ng_nat, and it doesn't correctly handle
ftp/irc/etcetc sessions anymore, remember to kldload
the correspondent module (i.e. kldload alias_ftp).
General information and details about the inner working are available
in the libalias man page under the section 'MODULAR ARCHITECTURE
(AND ipfw(4) SUPPORT)'.
NOTA BENE: this commit affects _ONLY_ libalias, ipfw in-kernel nat
support will be part of the next libalias-related commit.
Approved by: glebius
Reviewed by: glebius, ru
2006-09-26 23:26:53 +00:00
Vasil Dimov
23883885a3
Fix typo
...
PR: docs/103666
Submitted by: vd
Approved by: maxim
2006-09-26 09:47:46 +00:00
Robert Watson
e6c054f607
Hook up additional OpenBSM man page aliases following OpenBSM 1.0 alpha 12
...
import. Most of these should have existed previously, but didn't.
MFC after: 3 days
Obtained from: TrustedBSD Project
2006-09-25 11:53:58 +00:00
Andrey A. Chernov
d3ff3b5f2f
Keep compatible parts in sync with OpenBSD v1.21, add some comments.
...
No functional changes.
2006-09-23 14:48:31 +00:00
Andrey A. Chernov
6843acf8ac
Remove code #ifndef'ed in prev. commit to stay in sync with OpenBSD
...
v1.21 which just do that.
2006-09-22 18:59:03 +00:00
Andrey A. Chernov
f27c7b4713
Be more GNU compatible:
...
don't be greedy on the GNU "::" extension when arg separated by whitespace
and POSIX_CORRECTLY is set. From POSIX point of view this is unclear
situation, so minimal assumption looks right.
2006-09-22 17:01:38 +00:00
Alexander Kabaev
714b79b953
Do not declare __evOptMonoTime static in one place and extern
...
in another. GCC4 does not like that.
2006-09-22 01:52:26 +00:00
Alexander Kabaev
500b77c7ed
Use correct type in va_arg argument.
2006-09-21 14:40:20 +00:00
David Xu
d31279c4e7
remove thr_getscheduler, thr_setscheduler, thr_setschedparam,
...
add rtprio_thread.
2006-09-21 04:22:46 +00:00
David Xu
e6747c7ce1
use rtprio_thread system call to get or set thread priority.
2006-09-21 04:21:30 +00:00
Alexander Kabaev
63ed5a7e06
Silence GCC4 warning.
...
strlen, strcmp live in <string.h> not <string.h>.
2006-09-21 01:30:04 +00:00
Wojciech A. Koszek
6e6dfbf26e
Don't forget to set internal error message in kvm_nlist().
...
Approved by: cognet (mentor)
2006-09-20 12:09:21 +00:00
Robert Watson
b91c45f25e
Hook up au_open.3 man page (and its symlinks), apparently missed during
...
initial OpenBSM merge.
Obtained from: TrustedBSD Project
MFC after: 3 days
2006-09-19 08:30:34 +00:00
Maxim Konovalov
0ba6effc8c
o Don't fseek() on closed file.
...
Submitted by: pgollucci@p6m7g8.com , Mark Costlow
MFC after: 3 weeks
2006-09-18 09:34:48 +00:00
Ruslan Ermilov
a73a3ab56b
Markup fixes.
2006-09-17 21:27:35 +00:00
Ruslan Ermilov
b31a663480
Remove more traces of Alpha.
2006-09-17 20:53:30 +00:00
Dag-Erling Smørgrav
f63ebe36f6
Reject user with names that are longer than OPIE is willing to deal with;
...
otherwise OPIE will happily truncate it.
Spotted by: ghelmer
MFC after: 2 weeks
2006-09-15 13:42:38 +00:00
Joel Dahl
f832d58dc8
Remove reference to T/TCP.
...
Reviewed by: andre
2006-09-13 19:48:00 +00:00
Joel Dahl
cec65ede6c
Bump .Dd.
...
Noticed by: danger
2006-09-13 18:34:32 +00:00
Joel Dahl
3e1f331553
Remove references to the pam(8) manual page. It does not exist.
...
Requested by: novel
Discussed with: brueffer, simon
2006-09-13 17:46:20 +00:00
Brian Somers
cd0ac75c13
Fix a typo
2006-09-10 20:41:33 +00:00
Martin Blapp
794295bab8
Sync with NetBSD rev. 1.16 + 1.17
...
Coverity CID 2292: Plug memory leak.
Coverity CID 2291: Move function call before allocating storage to prevent
memory leak on error.
MFC after: 1 month
2006-09-09 22:33:21 +00:00
Martin Blapp
8306b5154c
Sync with NetBSD rev. 1.29
...
Coverity CID 2293: Fix memory leak.
MFC after: 1 month
2006-09-09 22:32:07 +00:00
Martin Blapp
c317a5c2f6
Sync with NetBSD rev. 1.6 + 1.7
...
Coverity CID 779 + 780: Avoid NULL pointer dereference.
MFC after: 1 month
2006-09-09 22:29:16 +00:00
Martin Blapp
f340bd4070
Sync with NetBSD rev. 1.20 + 1.21
...
Coverity CID 2284: Fix multiple memory leaks.
Coverity CID 710: Remove unreachable code.
MFC after: 1 month
2006-09-09 22:26:47 +00:00
Martin Blapp
dc9fde8d4f
Sync with NetBSD rev. 1.10
...
Coverity CID 2276: Don't leak memory on error.
MFC after: 1 month
2006-09-09 22:22:39 +00:00
Martin Blapp
b0718451b8
Sync with NetBSD rev. 1.15
...
Coverity CID 2275: Avoid memory leak on error.
MFC after: 1 month
2006-09-09 22:21:15 +00:00
Martin Blapp
b0eb405d46
Sync part of NetBSD rev. 1.14
...
Fix unpaired sigblock which possibly leaves the process with all
signals blocked.
MFC after: 2 weeks
2006-09-09 22:18:57 +00:00
Martin Blapp
e0c693387f
Sync with NetBSD rev. 1.16 + 1.17
...
Coverity CID 3651: Don't leak ifaddrs on getaddrinfo failure.
Coverity CID 2283: Don't leak sys_auth on error.
MFC after: 1 month
2006-09-09 22:14:42 +00:00
Jason Evans
820e03699c
Change the way base allocation is done for internal malloc data
...
structures, in order to avoid the possibility of attempted recursive
lock acquisition for chunks_mtx.
Reported by: Slawa Olhovchenkov <slw@zxy.spb.ru>
2006-09-08 17:52:15 +00:00
David Xu
ddaf6689e3
Use return value of _thr_umutex_lock instead of using zero.
2006-09-08 09:29:14 +00:00
Thomas Quinot
3a1d9c271b
Minor comment fix.
2006-09-08 08:14:32 +00:00
David Xu
bddd24cd9c
Replace internal usage of struct umtx with umutex which can supports
...
real-time if we want, no functionality is changed.
2006-09-06 04:04:10 +00:00
Ruslan Ermilov
4d6ff03d50
alloca() cannot check if the allocation is valid; mention the consequences.
...
Obtained from: OpenBSD
2006-09-05 16:30:11 +00:00
Ruslan Ermilov
3c03c7095e
GC dead code. If we want to stay polite to the foreign compilers,
...
we can find another way to issue an #error, but using a preprocessed
assembler for that purpose and clobbering libc.a with an empty .o
just for the sake of #error reporting is way too much of a burden.
2006-09-05 16:21:26 +00:00
David Xu
8549079365
Same as pthread_setschedparam, use sizeof(struct sched_param) instead.
2006-09-05 14:39:06 +00:00
David Xu
be0bfdd207
Pass correct parameter size.
2006-09-05 14:37:22 +00:00
Tim Kientzle
c12a9d810e
Some minor corrections:
...
* Expose functions for setting the "skip file" dev/ino information
* Expose functions for setting/querying the block size on reads
* Correctly propagate errors out of archive_read_close/archive_write_close
* Update manpage with information about new functions
2006-09-05 05:59:46 +00:00
Thomas Quinot
71219ddbd1
(pw_copy): Handle the case of a malformed line in master.passwd
...
(copy it silently, do not dereference NULL pointer).
PR: bin/102848
Reviewed by: security-officer (cperciva)
MFC after: 1 week
2006-09-04 15:09:21 +00:00
Marcel Moolenaar
ee35caa0b3
Whitespace fix.
2006-09-02 01:07:21 +00:00
Marcel Moolenaar
4d630a8f11
Stylize:
...
o avoid using a global register variable.
o redefine struct ia64_tp as a union. We don't have to get to the
fields themselves. We just need it to be of the right size with
the right alignment.
2006-09-01 21:25:22 +00:00
Marcel Moolenaar
be2f4bda88
Stylize: avoid using a global register variable.
2006-09-01 21:01:11 +00:00
Marcel Moolenaar
ce2dfbd199
Enable TLS on PowerPC.
2006-09-01 19:14:14 +00:00
Marcel Moolenaar
4c91d168a7
The ucontext is 16-byte aligned, which means that struct tcb is
...
16-byte aligned. Consequently, struct tcb is a multiple of 16
bytes in size. We need to make sure there's no padding after
struct ppc32_tp. We do this by explicitly adding the necessary
padding in front of it.
2006-09-01 19:13:36 +00:00
Marcel Moolenaar
5df93cb787
Stylize. Introduce ppc_{get|set}_tp() and ppc_{get|set}_tcb() to
...
abstract the magic that happens when deriving one or the other.
2006-09-01 17:52:13 +00:00
Marcel Moolenaar
9d353fbc3f
Fix style(9) in code copied from rtld.
2006-09-01 17:35:48 +00:00
Marcel Moolenaar
cc79b334de
Rename TLS_TP_OFFSET back to TP_OFFSET. The former clashes with rtld.
2006-09-01 06:36:00 +00:00
Marcel Moolenaar
bc14049e96
Enable TLS on ia64.
2006-09-01 06:18:43 +00:00
Marcel Moolenaar
20b18e870b
Implement TLS.
2006-09-01 06:17:16 +00:00
Marcel Moolenaar
8e61dbecfc
Stylize.
2006-09-01 06:15:00 +00:00
Marcel Moolenaar
3614156c7d
Fix the variant I allocation for KSE: Allow a larger TCB and assume
...
that the documented TCB is at the tail of the extended TCB. In other
words, the base of the TCB has a negative offset from the TLS.
2006-09-01 06:13:16 +00:00
Robert Watson
b8f3034c1f
Remove curdir reference in libbsm build; this is not required as the
...
include path will already point to the populated include tree. This
is left over from boot-strapping the build and install of libbsm
during the initial import and merge.
Obtained from: TrustedBSD Project
Pointed out by: ru
2006-09-01 05:21:45 +00:00
Marcel Moolenaar
35ca217bf0
Stylize.
2006-08-31 23:31:18 +00:00
Marcel Moolenaar
9f7b8b0d3c
TLS fixes:
...
o The TLS pointer (r2) points 0x7000 after the *end* of the TCB.
o _rtld_allocate_tls() gets a pointer to the current TCB, not the
current TLS pointer.
o _rtld_free_tls() gets the size of the TCB structure.
2006-08-31 19:16:47 +00:00
Marcel Moolenaar
91705de0c2
Fix harmless bug: sizeof(tcb) equals sizeof(void*) not sizeof(struct tcb).
...
The argument is (currently) not used by _rtld_free_tls().
2006-08-31 19:06:30 +00:00
Marcel Moolenaar
57c2251d5c
o Set TP using inline assembly to avoid dead code elimination.
...
o Eliminate _tcb.
2006-08-30 03:31:32 +00:00
Marcel Moolenaar
f3cec68877
Avoid dead code elimination of the assignment to TP by using inline
...
assembly.
2006-08-30 00:57:35 +00:00
Marcel Moolenaar
7d3f85133a
Prevent dead code elimination for the TP assignmient by using inline
...
assembly.
2006-08-30 00:39:07 +00:00
David Xu
fd2b89c48c
Remove unused file.
2006-08-29 13:01:23 +00:00
Tim Kientzle
02a97525ef
When skipping data, track the position in the bytestream correctly.
...
Without this, tar -r breaks badly; new entries overwrite the
middle of the archive instead of being added at the end.
Thanks to: Chris Spiegel
2006-08-29 04:59:25 +00:00
David Xu
215318a7a3
pthread_sigmask is in thr_sig.c, remove this file.
2006-08-28 12:29:54 +00:00
David Xu
6361212beb
Kill unused files.
2006-08-28 05:01:31 +00:00
David Xu
8ab9d78b9d
Use umutex APIs to implement pthread_mutex, member pp_mutexq is added
...
into pthread structure to keep track of locked PTHREAD_PRIO_PROTECT mutex,
no real mutex code is changed, the mutex locking and unlocking code should
has same performance as before.
2006-08-28 04:52:50 +00:00
David Xu
cf13ecda6a
Add umutex APIs.
2006-08-28 04:47:27 +00:00
Markus Brueffer
5b22d1e648
- Add new service class definitions and a new attribute identifier definition
...
- Update URL of the Assigned Numbers document for SDP
Approved by: emax (mentor)
MFC after: 3 days
2006-08-26 23:16:35 +00:00