ru
17f9167e24
For variables that are only checked with defined(), don't provide
...
any fake value.
2004-10-24 15:46:50 +00:00
ru
5db2b9d5b3
For variables that are only checked with defined(), don't provide
...
any fake value.
2004-10-24 15:33:08 +00:00
ru
8ae7259f83
-O2 compile isn't quite ready for WARNS=2 yet.
2004-10-24 10:42:15 +00:00
davidxu
a4118f925e
Check unhandled signals before thread marks itself as DEAD,
...
this reduces chances of signal losting problem found by
Peter Holm <peter@holm.cc>
2004-10-23 23:37:54 +00:00
davidxu
df721e35be
1. Move thread list flags into new separate member, and atomically
...
put DEAD thread on GC list, this closes a race between pthread_join
and thr_cleanup.
2. Introduce a mutex to protect tcb initialization, tls allocation and
deallocation code in rtld seems no lock protection or it is broken,
under stress testing, memory is corrupted.
Reviewed by: deischen
patch partly provided by: deischen
2004-10-23 23:28:36 +00:00
rwatson
b59317a711
Modify libugidfw(3) to use MBI_* permission flags from mac_bsdextended.h
...
instead of using the V* permission flags from vnode.h. Remove include
of vnode.h.
Requested by: phk
2004-10-21 11:21:13 +00:00
davidxu
261287ba18
Decrease reference count if we won't use the thread, this avoids memory
...
leak under some cases.
2004-10-21 03:42:24 +00:00
obrien
90b43fec07
libsmb is now WARNS 2 clean on 64-bit platforms.
2004-10-19 18:07:26 +00:00
obrien
7594c00ef8
style.Makefile(5)
2004-10-19 18:06:29 +00:00
ru
d2f67f65f7
uniq(1) is not an install tool, and using it was causing
...
"uniq: not found" during the installworld.
Spotted by: Roman Neuhauser
2004-10-18 22:18:23 +00:00
obrien
01b9294461
Sync with sys/i386/include/endian.h: use the single instruction 'bswap'.
2004-10-18 17:19:36 +00:00
ru
fe926ccb1e
Replaced afterinstall: with FILES.
2004-10-18 16:26:25 +00:00
yar
faf553262e
Since sendfile(2) works on regular files only,
...
which have no negative offsets, "negative" and
"invalid" are equivalent WRT the offset argument.
Suggested by: bde
2004-10-18 10:02:04 +00:00
kientzle
be9dd83458
Revert 1.18: It broke Athlon64 builds, which
...
probably means it also requires a .so version
bump. Defer it until I finish some related
work on cleaning up error returns throughout
the library.
Thanks to: Conrad J. Sabatier
2004-10-18 05:31:01 +00:00
kientzle
920ed4ea19
Use STDERR_FILENO instead of 2, as POSIX intended.
...
Thanks to: Alfred Perlstein
2004-10-18 04:34:30 +00:00
ache
bc82f1441b
Remove setrunelocale()
2004-10-18 02:06:18 +00:00
kientzle
28af6eb5e1
Correctly report write errors from the lowest-level
...
output routines back to the compression layer.
2004-10-17 23:47:30 +00:00
kientzle
2f1227d293
Refine the error-checking and reporting in the
...
"compress" format decompression code. In particular,
distinguish between EOF and fatal data errors.
2004-10-17 23:40:10 +00:00
kientzle
094933a38d
Correct the return type of archive_write_data
...
to match the documentation.
MFC after: 30 days
2004-10-17 23:37:09 +00:00
kientzle
229af4a116
Don't rely on stdio here.
2004-10-17 23:35:16 +00:00
alfred
6102082486
Document EMSGSIZE return from recvmsg due to insufficient free files
...
when transfering rights (file descriptors.)
2004-10-17 07:13:34 +00:00
tjr
3d89cd8c71
Remove the obsolete <rune.h> interface.
2004-10-17 06:51:50 +00:00
tjr
e40fa30ce6
Remove support for the obsolete UTF2 encoding.
2004-10-17 02:29:15 +00:00
tjr
173f5d041b
Bump the libc major version number to 6.
2004-10-17 01:52:48 +00:00
stefanf
9046c35b6c
Document that the length modifier l is ignored for floating point
...
conversion specifiers (a, A, e, E, f, F, g and G).
2004-10-16 16:00:01 +00:00
yar
3cb7a30757
Explain it is a negative offset that EINVAL may indicate.
...
Now readers won't get an impression that pointing to beyond
the current end of file will result in EINVAL.
MFC after: 1 week
2004-10-16 09:53:35 +00:00
yar
ada175da60
Improve mdoc(7) markup.
2004-10-16 09:46:38 +00:00
yar
4a839deb31
Give details on what will happen if the `offset' argument
...
to sendfile(2) falls beyond the end of file.
Touch .Dd.
PR: bin/72649 (in the audit trail)
MFC after: 1 week
2004-10-16 09:39:25 +00:00
obrien
3d93a60e7f
Enable building with LIBC_SCCS defined.
...
Bug submitted by: Andrea Campi <andrea+freebsd_current@webcom.it>
2004-10-16 06:32:43 +00:00
obrien
877c41c595
Try to bring some sanity to the SCM ID's.
...
+ spell LIBC_SCCS consistently
+ enable builds with LIBC_SCCS defined to not syntax error
+ minor SCM reformatting to try to have some consistency
2004-10-16 06:11:35 +00:00
stefanf
bcc253c058
Remove extra closing parenthesis added in revision 1.4.
...
Noticed by: Andrea Campi
2004-10-14 21:31:42 +00:00
mtm
ce193bdc46
1. Now that it's a thread's state is changed from within the kernel, where
...
no userland locks are heald, the dead thread lock can no longer protect
access to it. Therefore, instead of using an if (!dead)...else clause
after walking the active threads list test the thread pointer before
deciding not to walk the dead threads list. If the thread pointer is null
it means it was not found in the active threads list and the dead threads
list should be checked.
2. Do not free the stack of a thread that is not marked dead. This is the
2nd and final part of eliminating the race to free a thread's stack.
MFC after: 3 days
2004-10-13 11:42:20 +00:00
keramida
c857f72425
Correctly document the return value of strerror() and strerror_r() and
...
the contents of the returned buffer for unknown error codes.
PR: docs/72578
Submitted by: Jilles Tjoelker <jilles@stack.nl>
MFC after: 3 days
2004-10-12 14:52:52 +00:00
obrien
89db558372
Build as a shared lib again.
...
Discussed with: kientzle
2004-10-11 22:04:05 +00:00
peter
9213c0d6bf
Belatedly catch up with the dev_t/cdev changes from a few months back.
...
Extract the struct cdev pointer and the tty device from inside rather than
incorrectly casting the 'struct cdev *' pointer to a 'dev_t' int. Not
that this was particularly important since it was only used for reading
vmcore files.
2004-10-11 21:56:27 +00:00
das
62f7d2f10d
More updates for math(3):
...
- Make some minor rearrangements in the introduction.
- Mention the problem with argument reduction on i386.
- Add recently-implemented functions to the table.
- Un-document the error bounds that only apply to the old 4BSD math
library, and fill in the correct values where I know them. No
attempt has been made to document bounds lower than 1 ulp, although
smaller bounds are usually achievable in round-to-nearest mode.
2004-10-11 20:13:52 +00:00
stefanf
5198725430
Add and document ilogbl(), a long double version of ilogb().
2004-10-11 18:13:52 +00:00
stefanf
3725fb7eda
Use the FP_ILOG macros from <math.h> rather than hardcoded return values.
...
Also be prepared for FP_ILOGBNAN != INT_MAX.
Reviewed by: md5
2004-10-09 17:14:28 +00:00
maxim
ac8a3b40c2
o Backout rev. 1.16, see 1.3 commit log for more info.
...
Requested by: bde
o Remove unneeded sys/types.h and netinet/in.h from the synopsis and
the example.
o We do have struct in_addr in arpa/inet.h, so no need for netinet/in.h.
o Mention where AF_* constants defined are.
Educated by: bde
2004-10-09 17:13:58 +00:00
keramida
65c5851ae2
Delete a .Fn that had no argument and
...
properly terminate a .Bl with a matching .El
MFC after: 3 days
2004-10-09 04:03:08 +00:00
davidxu
7e9cf9f934
if system scope thread didn't set timeout, don't call clock_gettime syscall
...
before and after sleeping.
Reviewed by: deischen
2004-10-08 22:57:30 +00:00
glebius
baf8b008c9
When send()ing to syslogd return ENOBUFS keep trying until success.
...
This fixes a case, when DoSed syslogd completely loses messages.
PR: bin/72366
Discussed with: dwmalone, millert@OpenBSD.org
Approved by: julian (mentor)
Obtained from: OpenBSD (rev. 1.17, 1.21 by millert)
MFC after: 3 months
2004-10-08 21:15:21 +00:00
julian
f5ef5456b3
Make less wrong for desciptions of signal handling
...
MFC in: 1 week
2004-10-08 20:40:30 +00:00
mtm
9c7869cb6f
Remove a reference to a non-existent syscall: _thr_exit(). The
...
actual name is thr_exit(). How this ever worked is beyond me.
2004-10-08 14:48:02 +00:00
davidxu
c4a10c9c77
Use PTHREAD_SCOPE_SYSTEM to decide what should be done.
2004-10-07 14:23:15 +00:00
davidxu
3b8ee1c512
Follow kernel change, restore signal mask correctly by using a command
...
of kse_thr_interrupt.
2004-10-07 13:52:18 +00:00
jhb
a217c8967b
- Fix the compile to chase the p_rux changes.
...
- Add a comment noting that the ru_[us]times values being read aren't
actually valid and need to be computed from the raw values.
Submitted by: many (1)
2004-10-06 17:10:56 +00:00
mtm
0a21f474dc
Close a race between a thread exiting and the freeing of it's stack.
...
After some discussion the best option seems to be to signal the thread's
death from within the kernel. This requires that thr_exit() take an
argument.
Discussed with: davidxu, deischen, marcel
MFC after: 3 days
2004-10-06 14:23:00 +00:00
davidxu
0a270f4e6a
Allocate red zone and stack space together and then split red zone from
...
allocated space, orignal code left red zone unallocated, but those space
can be allocated by user code, and result was providing no protection.
2004-10-06 08:11:07 +00:00
jkoshy
1e91c0db48
Mutually cross-reference sysexits(3) and err(3). Add text to err(3)
...
recommending that the standard exit codes in sysexits(3) be used.
Reviewed by: ru
2004-10-04 14:04:37 +00:00