ache
26ffc627d8
LANG->LC_ALL
...
Pointed by: ru
2003-08-04 21:31:53 +00:00
julian
cbe1603500
Allow foot shooting as Linux emulation needs it.
...
Also change "Auto mode" to use a "special" value
instead of 0, and define and document it.
I had thought libpthread had already been switched to use auto mode but
it appears that patch hasn't been committed yet.
Discussed with: Davidxu
2003-08-04 19:11:56 +00:00
ache
eb68bb9971
Fix problem differently, use
...
LANG=C tr 'a-z' 'A-Z'
for hypotetical case that script may generate non-ascii characters
2003-08-04 15:24:06 +00:00
ache
3cc2a731d2
Fix double-wrong tr usage: tr '[a-z]' '[A-Z]'
...
First of all, it should be written as: tr 'a-z' 'A-Z'
ranges not encolosed in [] according to POSIX, so [] just included
in the replacement.
Second, it should be written: tr '[:lower:]' '[:upper:]'
since a-z and A-Z may have different length in some locales.
2003-08-04 14:10:33 +00:00
ache
0d040622bd
Restore including of "collate.h", for its own prototype (mis)match detection
2003-08-03 19:28:23 +00:00
ache
aed962b0e9
Remove commented out and never used code
2003-08-03 05:20:31 +00:00
ache
1dac9aa79d
Remove __collate_range_cmp() stabilization, it conflicts with ranges
2003-08-03 04:40:40 +00:00
davidxu
6bcc87d469
-15 is incorrect to be used to align stack to 16 bytes, use ~15 instead.
2003-08-02 22:39:10 +00:00
marcel
8781039ce8
Override the default stubs for getcontext(2) and swapcontext(2) so
...
that we can flush the register stack prior to entering the kernel.
This avoids having dirty registers and saves us from having to
manually write them to the backing store from within the kernel.
In that respect, flushing the RSE is both functionally required as
well as performance optimal.
On average we had 18 dirty registers when getcontext(2) was called
from libthr. Since libthr does not switch back to a context created
by getcontext(2), not having dealt with the dirty registers was
harmless.
2003-08-02 00:49:36 +00:00
marcel
08b0cb60b3
The END() must expand to the .endp directive with the same name as
...
on the corresponding .proc directive, or the .endp must not have a
name at all.
While here, remove an artificial dependency in Ovfork.S by performing
manual register renaming.
2003-08-01 22:17:12 +00:00
davidxu
beddecf91d
Use FSBase to map kse, GCC generates code which uses %fs to access TLS data.
...
Reminded by: marcel
2003-07-31 22:06:36 +00:00
phk
fd30158300
Remove unnecssary <vm/swap_pager.h> includes.
...
These were probably not cleaned up back in whatever murky past these
files were split into separate files.
2003-07-31 21:44:31 +00:00
phk
065d723b50
Remove various unused variables, prototypes and local variables.
2003-07-31 21:42:12 +00:00
phk
f51993282f
Disable and lobotomize the kvm image reading swapinfo code, the kernel
...
layout is about to change.
The sysctl based method still returns correct information.
2003-07-31 21:38:32 +00:00
phk
5a8eb87c5a
Retire the SWIF_DUMP_TREE code, this is in the way for a rework of
...
the swap_pager layout.
2003-07-31 21:30:28 +00:00
deischen
1852720fa3
This file hasn't been used for some time; nuke it.
2003-07-31 21:29:04 +00:00
deischen
db2a04e50d
Take the same approach for i386 as that for ia64 and amd64. Use
...
the userland version of [gs]etcontext to switch between a thread
and the UTS scheduler (and back again). This also fixes a bug
in i386 _thr_setcontext() which wasn't properly restoring the
context.
Reviewed by: davidxu
2003-07-31 21:09:11 +00:00
phk
2ba1b34bc1
Unifdef -UDEBUG_SWAPINFO The kernel data structures are about to change.
2003-07-31 20:53:04 +00:00
davidxu
f782f106dd
Set GSBASE for kse. Finally make libkse work on AMD64.
2003-07-31 09:03:36 +00:00
davidxu
c970c3739c
Fix some typos, correctly jump into UTS.
2003-07-31 08:50:01 +00:00
davidxu
33260f08b8
sysctlbyname needs size_t type, not int.
2003-07-31 08:26:58 +00:00
das
4a73cae22c
Cross-reference arc4random(3).
2003-07-31 06:18:34 +00:00
das
06982489ad
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
davidxu
5ae6a349c2
Update manual for i386_set_ldt to reflect newly added features.
...
Submitted by: julian
2003-07-31 02:13:48 +00:00
deischen
1c6cde237e
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
786da18d14
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
harti
677da9debf
Correct a cut'n'paste error in a comment.
2003-07-29 13:51:53 +00:00
harti
e28f3e210d
Make a local static string const.
2003-07-29 13:51:27 +00:00
harti
651b54f472
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
phk
ebd6a7dd85
Minor constification.
2003-07-29 11:16:14 +00:00
ache
2ecc37e253
Add support for gb18030 encoding
...
PR: 51729
Submitted by: Kang Liu <liukang@bjpu.edu.cn>
2003-07-29 07:52:44 +00:00
simon
e669733309
* 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
davidxu
2947f8c61f
Simplify sigwait code a bit by using a waitset and removing oldsigmask.
...
Reviewed by: deischen
2003-07-27 06:46:34 +00:00
davidxu
3b4f70048c
Set mc_len to sizeof(mcontext_t), otherwise it is an invalid context.
2003-07-26 12:58:28 +00:00
davidxu
2891e1e63b
Fix typo.
2003-07-26 02:36:50 +00:00
marcel
3c92e21eeb
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
823c05fbc4
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
mp
07991e4a4b
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
mux
1c6aeeb40b
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
harti
8c1d1fe008
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
rwatson
f46a5b2d07
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
markm
bb00e849b7
Turn on the extended syntax, which TCP_wrappers has by default, as
...
distributed.
2003-07-24 19:58:56 +00:00
markm
2bd4af6413
Remove GCC-specific debugging option.
...
OK'ed by: phk
2003-07-24 19:53:02 +00:00
markm
376c7c030b
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
markm
c26205b553
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
e6af3a1393
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
markm
c0c9eb00ee
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
d0fded454f
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
dds
58e19bb4ec
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
bde
3342068b97
Fixed some style bugs (misplacement and misformatting of some commented-out
...
code).
2003-07-23 09:24:44 +00:00