Commit Graph

94868 Commits

Author SHA1 Message Date
kensmith
cc01b2974d - Clarification to how command line arguments are processed.
PR:		docs/55613
Submitted by:	gshapiro@freebsd.org
Approved by:	blackend (mentor)
2003-09-28 17:54:48 +00:00
phk
cbbf8b1fed Note change to cdevsw open/close default change. 2003-09-28 16:25:35 +00:00
rwatson
e5f5b697c2 Prefer FreeBSD.org to freebsd.org in mail alias examples. 2003-09-28 16:17:30 +00:00
davidxu
7d57e54c87 Remove unused variable. 2003-09-28 13:47:29 +00:00
bde
14340aa53f Removed some nearly dead code in comparam(). We don't need to recover
from fiddling with CS_TTGO since fiddling with CS_TTGO was removed in
rev.1.218 of the i386/isa version (which was merged with loss of history
in rev.1.223 of this version).
2003-09-28 13:12:26 +00:00
tjr
54e4c0b4ec Use the new style struct sockaddr instead of osockaddr in system calls
so that talk works without COMPAT_43.

Obtained from:	NetBSD (christos), Rumi Szabolcs
2003-09-28 09:45:56 +00:00
tjr
fd7d6b495d Don't cast ioctl FIONREAD's argument to struct sgttyb *. This makes
no function changes, but removes an unnecessary reference to a
deprecated struct.

Obtained from:	NetBSD (thorpej)
2003-09-28 09:21:24 +00:00
tjr
ebf1f53a6d Use the new style struct sockaddr instead of osockaddr in system calls
so that talkd works without COMPAT_43.

Obtained from:	NetBSD (christos), Rumi Szabolcs
2003-09-28 09:16:09 +00:00
tjr
c0553f5848 Use the POSIX tty interface instead of the old interface. This makes
rlogin work properly without COMPAT_43.

Obtained from:	NetBSD (mycroft)
2003-09-28 08:54:56 +00:00
tjr
98e16beabf Remove remnants of Kerberos -Kkx options. 2003-09-28 08:43:41 +00:00
jake
c3f32ef0a2 Set the baud rate to 1200 if the device is a keyboard. 2003-09-28 07:06:34 +00:00
jake
4d143c1722 Only create the ofwcons device nodes if it has been initialized, not
just probed.
2003-09-28 06:51:47 +00:00
bde
d75f7c14c5 Reworked rev.1.14. Use the ELF symbol type again to summarily reject
some symbols in X_db_search_symbol().  Reject the same symbols that
rev.1.13 did (all except STT_OBJECT and STT_FUNC), except don't reject
typeless symbols.  This keeps the typeless symbols in non-verbosely
written assembler code visible, but makes file symbols invisible.  ELF
file symbols have type STT_FILE and value 0, so this stops small values
and offsets sometimes being displayed in terms of the first file symbol
in the kernel (usually device_if.c).  I think it rejects some other
unwanted symbols (small absolute symbols for things like struct offsets).
It may reject some wanted symbols (large absolute symbols for addresses
like PTmap).
2003-09-28 06:02:33 +00:00
jake
b4bf8f8fdb Make ofw_console a low priority console device, so that uart will be
preferred in all cases, even if the "remote" bit is not set.
2003-09-28 05:38:37 +00:00
jake
817a31de0d Add a "low" console priority. This specifies that the console device
may have limited functionality and should only be used as a last resort,
perhaps only to tell the user that they should be using something else.
2003-09-28 05:36:30 +00:00
marcel
243eb29986 Drop any and all support for varargs. There's no history to worry
about because we're still tier 2 and our current compiler, as well
as future compilers will not support varargs. This is mostly a
no-op in practice, because <sys/varargs.h> should already cause
compile failures.
2003-09-28 05:34:07 +00:00
rwatson
165b563f9b Tweak "system security profiles:
(1) Don't modify the configuration of the NFS server as a result of
    selecting a profile.  We already explicitly prompt for the NFS
    server configuration during install, and the user may not get
    much advance notice that we're turning it off again.  Instead,
    use profiles (for better or for worse) only for security tuning.

(2) Don't modify the sendmail setting as part of the security profile:
    use the default from /etc/defaults/rc.conf rather than explicitly
    specifying.  Note that the default in /etc/defaults/rc.conf is
    more conservative than the explicit rc.conf entry added by
    sysinstall during install, as it does not permit SMTP delivery.

(3) Update "congratulations on your profile" text to reflect these
    changes.

Note that security profiles now affect only the securelevel and sshd
settings.  My leaning would be to make sshd an explicit configuration
option, move securelevels to the security menu, and drop security
profiles entirely.  However, that requires more plumbing of sendmail
than I'm currently willing to invest.

We may want to add a "permit SMTP delivery" question to the install
process.
2003-09-28 05:21:23 +00:00
alc
499c62ff42 In vm_page_remove(), assert that the vm object is locked, unless an Alpha.
(The Alpha still requires updates to its pmap.)
2003-09-28 04:50:48 +00:00
ps
5e626bb373 Typo when setting wirespeed. || != |
Found by:	jake
2003-09-28 04:16:16 +00:00
kensmith
f3b68fc169 - Another update to list of FTP sites
Approved by:	murray
2003-09-28 03:34:49 +00:00
wollman
5c1dfe2f02 Having had to spend several hours today figuring out just what it is that
VOP_GETPAGES() is supposed to do, share the results with everyone who isn't
Alan Cox.
2003-09-28 03:15:21 +00:00
alc
c63aaa68d3 Add vm object locking to pmap_release(). 2003-09-28 00:11:15 +00:00
marcel
e8648b41a1 Relink libc_r.a, libc_r.so and libc_r_p.so from libthr to libkse.
On ia64, where there's no libc_r at all, libkse is now the default
thread library by virtue of these links.

The reasons for this change are:
1. libkse is slated to become the default thread library anyway,
2. active development and maintenance is only present for libkse,
3. GNOME and KDE, both in the process of being supported on ia64,
   work better with KSE; even on ia64.
2003-09-27 23:27:19 +00:00
marcel
c41d9e68d7 Remove the regstkpages sysctl variable. We have a growable register
stack now.
2003-09-27 23:07:47 +00:00
marcel
c37d5fae88 Part 2 of implementing rstacks: add the ability to create rstacks and
use the ability on ia64 to map the register stack. The orientation of
the stack (i.e. its grow direction) is passed to vm_map_stack() in the
overloaded cow argument. Since the grow direction is represented by
bits, it is possible and allowed to create bi-directional stacks.
This is not an advertised feature, more of a side-effect.

Fix a bug in vm_map_growstack() that's specific to rstacks and which
we could only find by having the ability to create rstacks: when
the mapped stack ends at the faulting address, we have not actually
mapped the faulting address. we need to include or cover the faulting
address.

Note that at this time mmap(2) has not been extended to allow the
creation of rstacks by processes. If such a need arises, this can
be done.

Tested on: alpha, i386, ia64, sparc64
2003-09-27 22:28:14 +00:00
imp
cc4d488a3f Two minor fixes:
o It is the /usr/include files, not the /usr include files.
o Document the practice of converting to the c99 standard uintXX_t
  form from the older, but non-standard, BSD-style u_intXX_t.  This
  has been going on in the tree for a while now, and I've heard other
  developers also state that this conversion is happening.  Note also
  that this is a slow process and should be treated like whitespace
  changes.
2003-09-27 22:17:37 +00:00
phk
f46fe4bd39 Make life a little bit easier for cloning device drivers. 2003-09-27 21:50:00 +00:00
phk
4dc90e62e4 Add an explanation why MAJOR_AUTO should not be specified explicitly. 2003-09-27 21:49:35 +00:00
phk
97f04ccb6e Correctly name r_unit member tun_unit.
Remove unused tun_wsel member.
2003-09-27 21:43:16 +00:00
phk
eaca01f3e7 Provide a bit more help with "memory overwritten after free" style bugs. 2003-09-27 21:33:13 +00:00
alc
1fcd6ee8d1 Eliminate the pte object. 2003-09-27 20:53:01 +00:00
phk
fe0e97f849 More style fixes to improve diffability with OpenBSD.
Pull 'A' evilness for realloc(3) from OpenBSD.
2003-09-27 18:58:26 +00:00
simon
c521f7de66 - Add the Dell PERC 4/Di to the list of supported devices; it
has been supported for the last 10 months. [1]
- Make the device list compact, since it is getting rather large.

Reported by:	David Magda <dmagda@magda.ca> [1]
MFC after:	2 weeks
2003-09-27 18:03:03 +00:00
rwatson
6f94b8e6ae Disable #define DEBUG in libdisk by default: since libdisk is primarily
there to support sysinstall, and enabling DEBUG creates spurious
console output that can't be read anyway...  This slightly cleans up
the visual impression of the system install by not spamming the console
during the labeling of the disks.
2003-09-27 17:44:41 +00:00
markm
a53f9e603c Don't install etc/printcap in the NO_LPR case; ports like 'cups'
make their own etc/printcap if they need it.
2003-09-27 17:33:03 +00:00
phk
ebbf74a5d9 Style changes to improve diffability against OpenBSD version. 2003-09-27 17:29:03 +00:00
markm
e2e1b548e6 No need to check for the directory, fols are assumed to have all the
correct sources. Only check the crypto macros.
2003-09-27 17:27:02 +00:00
fjoe
8764286be6 Add a note about kiconv(3). 2003-09-27 14:12:39 +00:00
trhodes
7262ade6c0 Update an email address overlooked by scottl.
Prompted by:	scottl's commit message (see rev 1.9 of iir.c).
2003-09-27 14:02:15 +00:00
trhodes
29c9a9fd74 Fix a cut n paste typo I introduced in rev 1.211.
PR:				57012
Submitted by:			Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp> (original version)
Friendly prod provided by:	murray
MFC:				after re approval
2003-09-27 13:58:16 +00:00
mux
81f19b443a A number of fixes/enhancements for the ipfilter rc script:
- Use a more robust check to determine if we need to load ipl.ko.
- Don't try to run ipf -E if ipfilter is already enabled.  Look at
  the net.inet.ipf.fr_running sysctl to figure this out.  This fixes
  a warning message about ipfilter being already initialized.
- Only one ipf -E command is needed.  We don't need an extra one for
  the -6 case which would only print a warning message about ipfilter
  being already initialized.
- Fix one occurence where we were running /sbin/ipf directly without
  using the ${ipfilter_program} variable if set.
- In ipfilter_stop(), don't try to save the firewall state tables if
  ipfilter is disabled.  Similarly, don't try to disable it if it's
  already disabled.  This fixes some more error messages.
2003-09-27 13:50:47 +00:00
phk
ee22c8d8d3 Introduce no_poll() default method for device drivers. Have it
do exactly the same as vop_nopoll() for consistency and put a
comment in the two pointing at each other.

Retire seltrue() in favour of no_poll().

Create private default functions in kern_conf.c instead of public
ones.

Change default strategy to return the bio with ENODEV instead of
doing nothing which would lead the bio stranded.

Retire public nullopen() and nullclose() as well as the entire band
of public no{read,write,ioctl,mmap,kqfilter,strategy,poll,dump}
funtions, they are the default actions now.

Move the final two trivial functions from subr_xxx.c to kern_conf.c
and retire the now empty subr_xxx.c
2003-09-27 12:53:33 +00:00
phk
464814fdb1 Don't use seltrue when that is not really what we mean. 2003-09-27 12:44:06 +00:00
bde
0514b45aaa MFsio (sio.c 1.413: cleaned up and fixed setting of speeds in comparam()).
This is just a cleanup here (modulo rev.1.108 of kern/tty.c), since the
input speed can be different from to output speed and extra code to
handle both speeds naturally handled all cases.
2003-09-27 12:40:23 +00:00
phk
97e9419472 forgot to remove static declaration of fdesc_poll() 2003-09-27 12:34:41 +00:00
phk
ce92cb61ba Return ENOIOCTL for unknown ioctls, don't use noioctl to return ENODEV. 2003-09-27 12:27:23 +00:00
phk
77783dda25 fdesc_poll() called seltrue() to do the default thing, this is pointlessly
wrong when we have a default in vop_nopoll() which does the right thing.
2003-09-27 12:24:42 +00:00
phk
f53fd776f1 noopen() and noclose() is now no longer used. 2003-09-27 12:09:25 +00:00
phk
eb82112d24 nopsize is no longer used. 2003-09-27 12:05:26 +00:00
phk
614a281ef7 The present defaults for the open and close for device drivers which
provide no methods does not make any sense, and is not used by any
driver.

It is a pretty hard to come up with even a theoretical concept of
a device driver which would always fail open and close with ENODEV.

Change the defaults to be nullopen() and nullclose() which simply
does nothing.

Remove explicit initializations to these from the drivers which
already used them.
2003-09-27 12:01:01 +00:00