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
Mike Makonnen
22b4909430
Missing quotes around a variable. In this case we are only
...
evaluating the $_precmd command as a string. We're not actually
trying to evaluate the contents of the command.
Reported by: Glenn Johnson <gjohnson@srrc.ars.usda.gov>
2003-07-24 18:17:21 +00:00
Mark Murray
234f7acb7c
Don't lint(1) so early in the build. Its OK to keep this for the
...
"make all" phase.
2003-07-24 18:14:29 +00:00
Mark Murray
8c692b5e9b
Forced commit.
...
The previous commit included some commented-out macro-assignments
with comments documenting their function. These macros were of
considerable use to me in building a test "make release".
2003-07-24 18:11:27 +00:00
Mark Murray
98b2ae09c6
Get the correct set of cryptographically-infected binaries
...
automagically from the (secure|kerberos5)/Makefile:[KS]PROG.
2003-07-24 17:28:52 +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
Mike Makonnen
a6ca48085c
The POSIX spec also requires that kern_sigtimedwait return
...
EINVAL if tv_nsec of the timeout is less than zero.
2003-07-24 17:07:17 +00:00
Hartmut Brandt
80366b6d6a
Make the debugging variable that controls dumping of IP over ATM packets
...
accessible as a sysctl.
Submitted by: Vincent Jardin <vjardin@wanadoo.fr>
MFC after: 2 weeks
2003-07-24 15:25:17 +00:00
Hartmut Brandt
5d53a37cb4
Create a sysctl that allows to enable/disable printing of SPANS messages.
...
While here delete to sys/types.h includes when sys/param.h is also included.
Submitted by: Vincent Jardin <vjardin@wanadoo.fr>
MFC after: 2 weeks
2003-07-24 14:37:01 +00:00
Ruslan Ermilov
d3c93cef78
Replaced the hardcoded target names in the touch(1) commands with
...
${.TARGET}, to ease maintenance.
2003-07-24 13:45:05 +00:00
Hartmut Brandt
892e9c9b57
Free the UNI vcc to the same zone from where it was allocated from.
...
This resulted in a panic when detaching the uni31 signalling manager.
2003-07-24 12:24:41 +00:00
Hartmut Brandt
fb4304eca0
Now that we have if_detach() don't try to get rid of all the interface
...
stuff (routes, ...) by hand - simply use if_detach().
Submitted by: Vincent Jardin <vjardin@wanadoo.fr>
MFC after: 2 week
2003-07-24 11:17:36 +00:00
Dag-Erling Smørgrav
fe468ebbfb
Complain about extraneous command line arguments.
2003-07-24 10:44:45 +00:00
Hartmut Brandt
ca4125f7b3
Create a subtree 'harp' of the net sysctl tree. This uses a fixed
...
OID as the other protocol family sub-trees do, that is equal to the
protocol family identifier. Make the ATM layer debugging flags
available under this tree.
Submitted by: Vincent Jardin <vjardin@wanadoo.fr>
MFC after: 2 weeks
2003-07-24 10:33:01 +00:00
Hartmut Brandt
30c6c4029c
Forced commit for the MFC.
...
MFC after: 2 weeks
2003-07-24 09:14:50 +00:00
Hartmut Brandt
56acf6178a
Constify the arguments to several pdu_print functions.
2003-07-24 09:13:03 +00:00
David Xu
c3f8e34d6b
Implement cpu_set_upcall and cpu_set_upcall_kse.
...
Reviewed by: peter
2003-07-24 08:52:44 +00:00
David Xu
81ebc68226
Set fault address to si_addr.
...
Reviewed by: peter
2003-07-24 08:51:22 +00:00
Hartmut Brandt
5be9a825e2
Add BPF support to HARP network interfaces. This allows one to see
...
the traffic on LLC multiplexed connections (like CLIP).
PR: kern/51831
Submitted by: Vincent Jardin <vjardin@wanadoo.fr>
MFC after: 2 weeks
2003-07-24 08:15:20 +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
Marcel Moolenaar
e180afe760
Implement casuptr().
2003-07-24 07:49:45 +00:00
Marcel Moolenaar
8af2fbd6fb
In get_mcontext() and set_mcontext() save and restore the current
...
thread pointer.
2003-07-24 07:48:11 +00:00
Gordon Tetlow
44dde923fc
Fix rescue build using -j. The problem appears to be make not being able
...
to find the source when the object was specified as <directory>/foo.o.
The fix makes the build go through a make objs before compiling the rest
of the crunchgen. This ensures that the dhclient bits are built in the
correct place where they are picked up for the final compile of rescue.
I'd like to thank dwhite@ and gad@ for helping me track down the problem.
Fast testing box provided by: phk@ (thanks)
2003-07-24 07:42:42 +00:00
Marcel Moolenaar
c8baa23e56
Implement alpha_pal_wrunique() and alpha_pal_rdunique(). Both are
...
used to set and get the thread pointer. Note that a context switch
will automaticly save and restore the thread pointer.
2003-07-24 07:41:08 +00:00
Marcel Moolenaar
286cc49014
Use a spare for the thread pointer (mc_thrptr). The thread pointer
...
is only read and written by set_mcontext() and get_mcontext() for
use by threading libraries.
2003-07-24 07:34:31 +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
71990d3dd1
Connect ncplist, ncplogin, and smbutil to the amd64 build.
2003-07-24 02:09:19 +00:00
Peter Wemm
92c3d4271e
Add mount_nwfs/mount_smbfs to the build for amd64.
2003-07-24 02:07:14 +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
Peter Wemm
7d6207b7dd
size_t != int. Make this compile on 64 bit platforms (eg: amd64).
...
Also, "u_short value; if (value > 0xffff)" can never be true.
2003-07-24 01:59:18 +00:00
Peter Wemm
f8bb2e0ffd
Build /sbin/gpt on amd64 for good luck as well.
2003-07-24 01:42:49 +00:00
Peter Wemm
19f2b0e839
Attach acpi, boot0cfg, lptcontrol, sicontrol, spkrtest, zzz for amd64.
2003-07-24 01:41:34 +00:00
Peter Wemm
022effcc3e
Fix an annoying bug in tar. When it converted 'tar zcf' to 'tar -z -c -f'
...
it forgot to null terminate the new argv[] array. If you mixed this
with $TAR_OPTIONS, phkmalloc and a whole bunch of other variables, you
could end up with a segfault. This isn't strictly a phkmalloc victory
since tar walks off the end of an array rather than use uninitialized
malloc memory, but phkmalloc makes it easier to provoke.
2003-07-24 00:04:01 +00:00
Warner Losh
fc3a3ee720
Simplistic C comment re is wrong, use more correct one
2003-07-23 23:50:25 +00:00
Warner Losh
f30595058e
Remove old workaround
2003-07-23 23:50:00 +00:00
Peter Wemm
9e9e575b6a
Make the breakpoint instruction trap gate available to users.
...
ptrace() needs this.
Submitted by: Mark Kettenis <kettenis@chello.nl>
2003-07-23 23:20:20 +00:00
Peter Wemm
8b48b40d5e
Set the %gs base to pcb_gsbase, not pcb_fsbase. Oops.
...
Discovered by: davidxu
2003-07-23 23:17:15 +00:00
Peter Wemm
07f9d83887
Turn -Werror back off again. Leaving out the invariants options causes
...
more trouble than I expected.
2003-07-23 22:02:30 +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
Ruslan Ermilov
6ebe96017d
Added the (undocumented) EMUL_BOOT variable (for TARGET=i386 only)
...
that causes the bootable ISO images to be created using the floppy
emulation (the old method) as opposed to the new "cdboot" method.
Only copy boot.flp to the 2nd CD-ROM if this variable is defined.
Reviewed by: murray
2003-07-23 20:53:37 +00:00
Peter Wemm
80611144e4
Initialize 'blocked' to NULL. I think this was a real problem, but I
...
am not sure about that. The lack of -Werror and the inline noise hid
this for a while.
2003-07-23 20:29:13 +00:00
Poul-Henning Kamp
8b30546120
Stop GCC from whining when people use a 16 bit port number for inb() and outb()
2003-07-23 20:28:23 +00:00
Dag-Erling Smørgrav
f233d6e590
Install rc files from ${.CURDIR}, not ${.OBJDIR}.
2003-07-23 20:22:50 +00:00
Dag-Erling Smørgrav
b3b214e9f3
Sample configuration files.
2003-07-23 20:16:36 +00:00
Dag-Erling Smørgrav
9b573dd6f8
Rewrite tbmaster to use configuration files instead of a hard-coded hash.
2003-07-23 20:16:11 +00:00
Dag-Erling Smørgrav
0c0e412335
Improve the markup a little.
2003-07-23 20:15:49 +00:00
Peter Wemm
05952f3565
Turn -Werror back on.
2003-07-23 20:10:09 +00:00
Peter Wemm
5ea5a01983
ARGH. I *knew* I'd eventually accidently commit this. Change 5.1-XP back
...
to 5.1-CURRENT.
2003-07-23 20:07:49 +00:00
Peter Wemm
2a51529f7e
Provide a knob for raising the inline instruction estimate threshold and
...
set an initial value. This is aimed at getting us closer to being able to
turn -Werror back on and we can adjust the settings later on. Yes, we
could turn off -Wno-inline instead, but that would hide the effect of
gcc's bogo-estimator ignoring inline (either rightly or wrongly).
2003-07-23 20:03:42 +00:00