Peter Wemm [Sat, 24 Mar 2001 04:40:49 +0000 (04:40 +0000)]
This is kind of a hack, but it should work. Currently, world is broken
because libc/rpc/key_call.c references uname(), and ps/print.c also
defines uname(), and ps is linked statically. This leads to a symbol
clash. The userland uname(3) kinda sucked anyway as the hostname
etc was too short. And since the libc rpc interface now uses
the utsname.nodename which gets truncated, I was tempted into doing
something about it. Create a new userland uname function, called
__xuname() which takes an extra argument that allows you to change
the size of the fields. uname() becomes a static inline function
in sys/utsname.h that passes the extra argument in. struct utsname
has its field members expanded by default now in userland.
We still provide a 'uname' externally linkable function for things
that either think that they ``know'' the utsname format and assume
32 character strings and bypass the include file, or objects that
are linked against old libcs. ie: just about every plausible
case that I can think of is covered. Should we ever change the
default lengths again, a libc major bump should not be required
as the size is now passed to the function.
XXX the uname(2) in the kernel is for FreeBSD 1.1 binary compatability!
All the uname(3) functions that are exported to userland are actually
implemented in libc with sysctl. uname(1) uses sysctl directly and
does not call uname(3).
David E. O'Brien [Sat, 24 Mar 2001 01:58:31 +0000 (01:58 +0000)]
Import the setjump/longjump exception handling fixes from GCC 2.95.3.test3
that were removed from GCC 2.95.3.test4 and the subsequent release due
to problems on HP-UX. However, they work just fine on all the BSD's.
W/o these patches the following program segmentation faults if compiled
with -O2 (but not -Os or -O or -O0):
#include <stdio.h>
class A {
public:
A() { printf("c'tor A\n"); }
~A(){ printf("d'tor A\n"); }
};
class foo : public A {
public:
foo() { printf("C'tor foo\n"); throw 8; }
~foo() { printf("D'tor foo\n"); }
};
Peter Wemm [Sat, 24 Mar 2001 00:34:12 +0000 (00:34 +0000)]
Slightly de-bogify the uname() declarations.
1: there is no global 'struct utsname utsname' in the kernel.
2: the __P() stuff handles the __STDC__ stuff, so the extra ifdef is
redundant.
Cameron Grant [Sat, 24 Mar 2001 00:22:01 +0000 (00:22 +0000)]
add support for opti924 and opti930 chips
both should work in non-pnp mode, the 924 should also work in its rather
braindead pnp mode- it will adopt port 0x530 unless given hints due to it
starting up in soundblaster mode and thus not requesting a valid mss port
address.
Submitted by: George Reid <greid@ukug.uk.freebsd.org>
Søren Schmidt [Fri, 23 Mar 2001 20:55:28 +0000 (20:55 +0000)]
Fix the problem with some drives not reporting back when the
are busy blanking and erasing CD-RW media.
This fixes burncd's premature returns from blanking/erasing
that caused trouble.
Joerg Wunsch [Fri, 23 Mar 2001 19:51:12 +0000 (19:51 +0000)]
(MFC candidate, see below).
When we get an Open event in stopped state, experience shows that this
is usually means we've somehow missed a previous Down event. This has
occasionally bitten people for the IPCP layer with ISDN, apparently a
previously aborted IPCP negotiation must have caused this. As a
bandaid, we quickly pretent a Down event by advancing to starting
state; this effectively implements the `restart' option mentioned in
RFC 1663.
While i'm not yet fully convinced this is the best thing to do (and is
fully compliant with RFC 1661), i've seen a number of reports here on
the German mailing lists where people have been bitten by the previous
behaviour which usually causes quickly looping ISDN reconnects (thus
loss of money...), and where just this patch fixes the problem.
For this, i'd even like to see it MFC'd if possible.
Submitted by: Helmut Kreft <kreft@zeus.ai-lab.fh-furtwangen.de>
Assar Westerlund [Fri, 23 Mar 2001 19:38:21 +0000 (19:38 +0000)]
disable SRA
this impacts negatively to POLA since once autologin is enabled,
telnet will prompt for a password using getpass() and thus not allow
the usual signal characters or C-]
Maxim Sobolev [Fri, 23 Mar 2001 18:45:24 +0000 (18:45 +0000)]
- Add which(1)-like functionality into pkg_info;
- fix a harmless bug in match_installed() function introduced in my last
commit;
- uniformely reorder includes across files.
Submitted by: Garrett Rooney <rooneg@electricjellyfish.net>
Not objected by: jkh, -ports
Alexander Langer [Fri, 23 Mar 2001 14:05:05 +0000 (14:05 +0000)]
- DECLARE_MODULE needs SYSINIT -> include sys/kernel.h
- modeventhand_t declares a pointer to a function, so it can't be
used as a forward declaration (d'oh!)
Fix a bug with setting the soft updates option from a script.
Eliminate an old warning brought about by insufficient foresight when creating
the Menu structure. Have I ever mentioned that sysinstall really needs to
be rewritten?
Thomas Moestl [Fri, 23 Mar 2001 03:58:25 +0000 (03:58 +0000)]
Get rid of setgid kmem for systat, and while being there, fix some bugs
and compiler warnings.
The data for network statistics are still obtained via the kvm interface
if systat was started with the needed privileges, otherwise sysctls are
used. The reason for this is that with really many open sockets, the
sysctl method is probably slower, but it systat -netstat is probably not
really usable in either mode under these conditions.
David E. O'Brien [Thu, 22 Mar 2001 22:16:26 +0000 (22:16 +0000)]
Revert rev 1.7 which used "`console' rather than `ttyv0' so there will
always be a getty on the console reguardless of the type of console.
Instead always run a getty on ttyd0.
Warner Losh [Thu, 22 Mar 2001 06:00:07 +0000 (06:00 +0000)]
First step towards making loadable modules independent of having
pccard in the kernel for those drivers with pccard attachments. This
makes the compat layer a little larger by introducing some inlines,
but should almost make it possible to have independent attachments.
The pccard_match function are the only one left, which I will take
care of shortly.
Robert Watson [Thu, 22 Mar 2001 04:27:46 +0000 (04:27 +0000)]
o Remove BINMODE=0550 -- no need to restrict execution rights as the
authorization check is on /dev/{,k}mem.
o Update man page to reflect requirement that gid kmem privileges must
be held, not root. (submitted by: peter)
Robert Watson [Thu, 22 Mar 2001 04:10:51 +0000 (04:10 +0000)]
o Strip BINMODE from Makefile. Installing watch with 0500 provides no
added security benefit, as it doesn't provide extra privilege.
Protection against inappropriate snooping is done by protecting
/dev/snp* properly.
Bruce A. Mah [Thu, 22 Mar 2001 02:40:50 +0000 (02:40 +0000)]
New release notes: OpenSSH resistance to traffic analysis, make(1)
bugs fixed, fsck_ffs in background on mounted filesystems, TI-RPC,
portmap(8)->rpcbind(8), IPv6 support in NFS, lockd, rc(8) dependency
handling.
Synch up hardware devices with etc/defaults/pccard.conf 1.98.2.19
(yes, from RELENG_4). This change needs to be propagated to RELNOTESng.
John Baldwin [Thu, 22 Mar 2001 01:47:02 +0000 (01:47 +0000)]
- XF86.patch is no longer needed as it is all checked into the XFree86
port conditional on the BUILD_XDIST variable.
- Define BUILD_XDIST=yes when compiling XFree86.
Alfred Perlstein [Wed, 21 Mar 2001 23:53:40 +0000 (23:53 +0000)]
This adds /etc/netconfig to the list of files that get copied to
/stand/etc on the mfsroot, and hence to /etc on the install target
disk for use during the install. It also links netconfig and services
into /etc on the mfsroot so that they are available to a fixit
shell.
Bill Paul [Wed, 21 Mar 2001 23:47:18 +0000 (23:47 +0000)]
ypserv has intimate knowledge of the server transport handle which is
needed to make the asynchronous DNS lookup mechanism work. (It needs to
be able to get/set the transaction ID in the trasport handle so it can
deliver a delayed UDP response when a reply is received from a DNS
server.) With TI-TPC, the transport handle has changed slightly (what
used to be an int is now a size_t) so we need to account for this.