David Xu
ee2d44af05
Set GSBASE for kse. Finally make libkse work on AMD64.
2003-07-31 09:03:36 +00:00
David Xu
3807b4840c
Fix some typos, correctly jump into UTS.
2003-07-31 08:50:01 +00:00
David Xu
64e64426d7
sysctlbyname needs size_t type, not int.
2003-07-31 08:26:58 +00:00
David Schultz
e02cc8e419
Cross-reference arc4random(3).
2003-07-31 06:18:34 +00:00
David Schultz
05e1bf3461
The upper end of the range of arc4random(3) is 2**32-1, not 2**31-1.
2003-07-31 06:18:24 +00:00
David Xu
01724ec53d
Update manual for i386_set_ldt to reflect newly added features.
...
Submitted by: julian
2003-07-31 02:13:48 +00:00
Daniel Eischen
24dc93d4c2
Don't forget to unlock the scheduler lock. Somehow this got removed
...
from one of my last commits. This only affected priority ceiling
mutexes.
Pointy hat to: deischen
2003-07-30 13:28:05 +00:00
Marcel Moolenaar
2cd199ce21
Only allow trapframe formats instead of sigframe formats like the
...
comment says and don't write the first 3 arguments to FRAME_TRAPARG_*
as they are specific to sigframes.
2003-07-30 06:36:20 +00:00
Hartmut Brandt
fddacb1184
Correct a cut'n'paste error in a comment.
2003-07-29 13:51:53 +00:00
Hartmut Brandt
37bbd3cf39
Make a local static string const.
2003-07-29 13:51:27 +00:00
Hartmut Brandt
21b40f3c1b
Use the appropriate [s]size_t type where a buffer size is meant.
...
Add const specifiers to constant function arguments.
2003-07-29 13:35:03 +00:00
Poul-Henning Kamp
df6989b848
Minor constification.
2003-07-29 11:16:14 +00:00
Andrey A. Chernov
a03081087c
Add support for gb18030 encoding
...
PR: 51729
Submitted by: Kang Liu <liukang@bjpu.edu.cn>
2003-07-29 07:52:44 +00:00
Simon L. B. Nielsen
c9ae54eebb
* Merge index(3) and rindex(3) to index(3) since the two functions are
...
almost identical.
* Merge strchr(3) and strrchr(3) to strchr(3) since the two functions
are almost identical.
* Make the wording of index(3) and strchr(3) more similar.
* mdoc(7) cleanup.
Submitted by: SUZUKI Koichi <metal@gc5.so-net.ne.jp>, keramida, myself
PR: docs/32054
Reviewed by: ru
Approved by: ceri (mentor)
2003-07-28 22:50:42 +00:00
David Xu
41282b992f
Simplify sigwait code a bit by using a waitset and removing oldsigmask.
...
Reviewed by: deischen
2003-07-27 06:46:34 +00:00
David Xu
4160fed551
Set mc_len to sizeof(mcontext_t), otherwise it is an invalid context.
2003-07-26 12:58:28 +00:00
David Xu
36144f1e6e
Fix typo.
2003-07-26 02:36:50 +00:00
Marcel Moolenaar
938b878e45
Revert previous commit. We don't use setjmp()/longjmp() for context
...
switching anymore, so there's no need to save and restore GP. This
change breaks threaded applications linked against libc_r. Pull the
tier 2 card again: relink. This will link against libthr instead.
2003-07-25 22:36:48 +00:00
Peter Wemm
48af1bfbef
Fix for 64 bit platforms. sysctl's length args are pointers to
...
size_t, not int. This could be fatal where size_t is long.
Reviewed by: bp
2003-07-25 19:17:46 +00:00
Mark Peek
6fcd700395
Add wrapper for kqueue() to keep track of the allocated fd and allow it to
...
be closed. This fixes a file descriptor leak when closing a kqueue() fd.
Reviewed by: deischen
MFC after: 1 week
2003-07-25 17:02:33 +00:00
Maxime Henrion
434252892a
An u_int8_t can never be bigger than 255, so remove a useless check.
...
Spotted by: GCC
2003-07-25 12:23:25 +00:00
Hartmut Brandt
84ce3db3e5
Make library WARNS=6 clean. The problems have been: alignment on sparc64
...
and one of the usual sizeof(in_addr_t) == sizeof(u_long) bugs.
2003-07-25 08:22:08 +00:00
Robert Watson
82fefada64
Print group name in getfacl output when calculating an effective
...
permission set based on a more restrictive mask.
Submitted by: Glen Gibb <grg@ridley.unimelb.edu.au>
2003-07-24 23:33:25 +00:00
Mark Murray
e0c2721505
Turn on the extended syntax, which TCP_wrappers has by default, as
...
distributed.
2003-07-24 19:58:56 +00:00
Mark Murray
d368bc9f59
Remove GCC-specific debugging option.
...
OK'ed by: phk
2003-07-24 19:53:02 +00:00
Mark Murray
ebb9f0efa8
Don't check for the existance of src/crypto/ for building items that
...
may contain crypto. The days of ITAR paranoia are over, and the simple
macro tests that remain are sufficient.
2003-07-24 18:30:25 +00:00
Mark Murray
482d5f1f6a
Make sure that a "make release" (more accurately the bit that makes
...
the crunched binary) get a non-cryptographic telnet. This is overkill
in that it covers stuff that is not normally used in a crunched binary.
2003-07-24 17:19:15 +00:00
Marcel Moolenaar
c24297c0f2
Implement _get_curthread and _set_curthread. We use GCCs builtin
...
function this, which expands to PAL calls (rduniq and wruniq).
This needs adjustment when TLS is implemented.
2003-07-24 07:51:49 +00:00
Mark Murray
3665b7c29b
Ensure that for the cryptographic instances of *telnet*, the "crypto"
...
distribution is used. This only affects release-building.
2003-07-24 07:19:55 +00:00
Peter Wemm
5543468624
Connect libncp/libsmb to the build. They compile, but have a couple of
...
silly bugs that probably wont quite make a segfault. eg: passing a pointer
to an int to sysctl instead of a pointer to a size_t.
2003-07-24 02:05:48 +00:00
Diomidis Spinellis
55e24f6e77
Document an additional error return value. The connect(2) call can also
...
return EACCES on non-Unix domain sockets as demonstrated by the
following program:
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
int
main(int argc, char *argv[])
{
struct sockaddr_in rem_addr;
int sock;
if ((sock = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
perror("socket");
exit(1);
}
bzero((char *)&rem_addr, sizeof(rem_addr));
rem_addr.sin_family = AF_INET;
rem_addr.sin_addr.s_addr = INADDR_NONE;
rem_addr.sin_port = htons(10000);
if (connect(sock, (struct sockaddr *)&rem_addr,
sizeof(rem_addr)) < 0) {
perror("connect");
exit(1);
}
}
The call chain returning this value is probably:
kern/uipc_syscalls.c:connect
kern/uipc_socket.c:soconnect
netinet/tcp_usrreq.c:tcp_usr_connect
netinet/tcp_output.c:tcp_output
netinet/ip_output.c:ip_output
Reviewed by: schweikh (mentor)
MFC after: 2 weeks
2003-07-23 22:00:08 +00:00
Bruce Evans
262e4c00bd
Fixed some style bugs (misplacement and misformatting of some commented-out
...
code).
2003-07-23 09:24:44 +00:00
Peter Wemm
3819e84017
Only provide one copy of the math functions. If we provide a MD function,
...
do not also provide a __generic_XXX version as well. This is how we
used to runtime select the generic vs i387 versions on the i386 platform.
This saves a pile of #defines in the src/math_private.h file to undo the
__generic_XXX renames in some of the *.c files.
2003-07-23 04:53:47 +00:00
Peter Wemm
d48084b9e5
No longer need the internal __get_hw_float() function.
2003-07-23 04:25:04 +00:00
Peter Wemm
c3e6df78e1
Now that we do not need to do runtime detection for the broken default
...
fp emulator, stop doing the runtime selection of hardware or emulated
floating point operations on i386. Note that I have not suppressed the
duplicate compiles yet.
While here, fix the alpha. It has provided specific copysign/copysignf
functions since the beginning of time, but they have never been used.
2003-07-23 04:23:36 +00:00
Daniel Eischen
cc24e83605
Move idle kse wakeup to outside of regions where locks are held.
...
This eliminates ping-ponging of locks, where the idle KSE wakes
up only to find the lock it needs is being held. This gives
little or no gain to M:N mode but greatly speeds up 1:1 mode.
Reviewed & Tested by: davidxu
2003-07-23 02:11:07 +00:00
Ruslan Ermilov
36317d686a
Make sure the crypto versions of libfetch and fetch(1) appear in
...
the "crypto" distribution.
Approved by: des
2003-07-22 13:54:31 +00:00
Peter Wemm
a1f8a9b1e8
Instantiate explicit callable versions of the machine/ieeefp.h inlines
...
for the use of non-GCC compilers and C++ code.
2003-07-22 06:46:17 +00:00
Peter Wemm
58452af3e5
Turn off the libc/quad functions since they are not needed for amd64
...
and just cause lots of warnings.
2003-07-22 06:34:57 +00:00
Dag-Erling Smørgrav
3a256117dc
Revert previous commit after fixing libpam.
2003-07-21 19:56:28 +00:00
Mark Murray
acce0bcdb3
Test correct macro for "without crypto" option(s).
2003-07-20 23:29:46 +00:00
Daniel Eischen
f4c57e7baf
Add missing arguments to _amd64_restore_context() when called from
...
THR_SETCONTEXT().
2003-07-20 12:41:38 +00:00
Mike Makonnen
e9043a12cc
Now that we have the stubs for alpha and we can build it
...
on that platform, invert the test for the platforms on
which libthr is built. Amd64 and powerpc are the only
platforms excluded.
Compile tested on: amd64, alpha
2003-07-20 01:34:40 +00:00
Mike Makonnen
9e222aaf7a
The MD framework for libthr on alpha
2003-07-19 15:57:52 +00:00
David Xu
1aa2ee9714
Override libc function raise(), in threading mode, raise() will
...
send signal to current thread.
Reviewed by: deischen
2003-07-19 05:25:49 +00:00
David Xu
5e27d6ab96
Make raise and _raise as weak symbols, so they can be overriden by
...
thread library.
Reviewed by: deischen
2003-07-19 05:22:56 +00:00
Daniel Eischen
5a201fddb7
Add some very beta amd64 bits. These will also need some tweaking.
2003-07-19 04:44:21 +00:00
Daniel Eischen
4adc354c34
Add amd64 versions of makecontext() and signalcontext() needed
...
for libkse (makecontext() is also needed for libthr).
These probably will need some tweaking.
2003-07-19 04:41:08 +00:00
Garrett Wollman
157c8e69d7
Rewrite to reflect slight change in semantics for C99, and note a bug
...
in the standard. Defer to gettimeofday(2) for error indications.
2003-07-19 03:19:59 +00:00
Garrett Wollman
d09b896215
C99 compliance: time() always sets its return value in both places
...
(if present), even on error.
Pointed out by: Wojtek Lerch, on the Austin Group mailing-list
2003-07-19 02:53:46 +00:00