Commit Graph

59978 Commits

Author SHA1 Message Date
ru
89fc7497bd mdoc(7) police: Fix markup and spelling. 2001-05-18 10:39:41 +00:00
ru
4048b83188 Don't leak memory when compiling text following the a', c' or `i' command.
Testcase:

echo FOO | sed "/FOO/c\\
`jot -b 'aaaa\' 500`"

Submitted by:	Max Khon <fjoe@newst.net>
2001-05-18 09:48:17 +00:00
brian
ed0f313004 Run network6_pass1 if ipv6_enable is YES 2001-05-18 09:14:39 +00:00
nik
b3fa78683d Add scrshot to the i386 specific section. If someone can test this on the
Alpha I'd appreciate it.
2001-05-18 09:06:00 +00:00
sobomax
34a18784ef By default build make(1) as a static binary. It costs only 100k of additional
disk space, buf provides measureable speed increase for make-intensive
operations, such as pkg_version(1), `make world' and so on.

MFC after:	1 week
2001-05-18 09:05:56 +00:00
nik
ee5c4b5cde Note, previous commit was
Reviewed by:	-arch
2001-05-18 09:01:53 +00:00
nik
1136460dcc New scrshot utility, using the CONS_SCRSHOT ioctl. Usage is
scrshot /dev/ttyv0 > shot.scr

See the shot2{txt,png} utilities (soon to be) in the ports collection.

Reviewed by:	-arch
2001-05-18 09:00:51 +00:00
nik
288113e7a8 Add a new ioctl to syscons, CONS_SCRSHOT. Given a userland buffer, it
copies out the current contents of the video buffer for a syscons terminal,
providing a snapshot of the text and attributes.

Based heavily on work originally submitted by Joel Holveck <joelh@gnu.org>
for 2.2.x almost 30 months ago, which I cleaned up a little, and forward
ported to -current.

See also the usr.bin/scrshot utility.
2001-05-18 08:52:56 +00:00
bp
85b499e6f8 Currently there is no way to tell if write operation invoked via
vn_start_write() on the given vnode will be successful. VOP_LEASE() may
help to solve this problem, but its return value ignored nearly everywhere.
For now just assume that the missing upper layer on write means insufficient
access rights (which is correct for most cases).
2001-05-18 07:43:13 +00:00
ru
0a6dd12de1 Fixed typo in the description.
PR:		docs/27411
Submitted by:	David Wimsey <dwimsey@rtci.com>
2001-05-18 06:56:03 +00:00
obrien
7337900f27 Add mbstate_t and wint_t. 2001-05-18 05:50:26 +00:00
obrien
0e7e1d4ade Missed a few things. 2001-05-18 05:46:40 +00:00
obrien
f45fae89c2 In a word -- style(9). 2001-05-18 05:33:42 +00:00
obrien
ce51362795 Sort. 2001-05-18 05:05:50 +00:00
obrien
de8cebdec8 Add the "prompt" and "passwd_prompt" fields to /etc/login.conf,
which makes lgoin more like getty in its ability to be configured.

Submitted by:	tlambert (code only)
2001-05-18 04:55:16 +00:00
obrien
b8425680b5 Make _BSD_TIME_T_ (time_t) an int' rather than long'. This will help
flag errors where programmers assume time_t is a long, which it is not on
64-bit platforms.

Submitted by:	bde
2001-05-18 01:43:25 +00:00
obrien
f536c9bfce Style changes -- revert ordering to mostly two revs ago.
Embellish some comments, fix tab'ing.

Requested by:	bde
2001-05-18 01:40:40 +00:00
obrien
01e54fe116 Use the correct FreeBSD definitions for wint_t and wchar_t. 2001-05-18 00:41:27 +00:00
bmah
3d3624c522 Fix typo: The awi driver doesn't support PRISM cards, it supports the
AMD79C930 and Harris (Intersil).  What crack was I smoking when I
wrote this?
2001-05-18 00:41:10 +00:00
jasone
3fbe60fc0d Condition variable waiters are queued in descending priority order, so
there is no need to wake all waiters to assure that the highest priority
thread is run.  As the semaphore code is written, there was no correctness
problem, but the change improves sem_post() performance.

Pointed out by:	deischen
2001-05-18 00:36:05 +00:00
bmah
1a6e32f034 New release notes: digi driver, FICL 2.05, xargs(1) -J, apmd(8) now
support battery state monitoring, ncurses 5.2-20010512.

Woefully overdue release notes:  ddb(4) show pcpu, telnet(1) autologin
and encryption defaults and -y option.
2001-05-18 00:14:21 +00:00
jhb
70b98f2d04 - Use a timeout for the tsleep in scheduler() instead of having vmmeter()
wakeup proc0 by hand to enforce the timeout.
- When swapping out a process, keep the process locked via the proc lock
  from the first checks up until we clear PS_INMEM and set PS_SWAPPING in
  swapout().  The swapout() function now must be called with the proc lock
  held and releases it before returning.
- Comment out the code to attempt to lock a process' VM structures before
  swapping out.  It is broken in that it releases the lock after obtaining
  it.  If it does grab the lock, it needs to hand it off to swapout()
  instead of releasing it.  This can be revisisted when the VM is locked
  as this is a valid test to perform.  It also causes a lock order reversal
  for the time being, which is the immediate cause for temporarily
  disabling it.
2001-05-18 00:08:38 +00:00
jlemon
e208983bc1 Add workaround for embedded NICs, in particular, the 815E boards.
There appears to be a bug where the chip will lock up when running
in 10Mb/s mode.
2001-05-17 23:50:24 +00:00
jhb
c88d6fada2 Replace references to the KERNEL variable with KERNCONF. 2001-05-17 23:23:25 +00:00
jhb
c2a1096080 During the code to pick a process to kill when memory is exhausted, keep
the process in question locked as soon as we find it and determine it to
be eligible until we actually kill it.  To avoid deadlock, we don't block
on the process lock but skip any process that is already locked during our
search.
2001-05-17 22:49:03 +00:00
jhb
028d04532e - Don't panic on a try lock operation for a sleep lock if we hold a spin
lock.  Since we won't actually block on a try lock operation, it's not
  a problem.  Add a comment explaining why it is safe to skip lock order
  checking with try locks.
- Remove the ithread list lock spin lock from the order list.
2001-05-17 22:44:56 +00:00
jhb
7d56154098 - Remove the global ithread_list_lock spin lock in favor of per-ithread
sleep locks.
- Delay returning from ithread_remove_handler() until we are certain that
  the interrupt handler being removed has in fact been removed from the
  ithread.
- XXX: There is still a problem in that nothing protects the kernel from
  adding a new handler while the ithread is running, though with our
  current architectures this is not a problem.

Requested by:	gibbs (2)
2001-05-17 22:43:26 +00:00
jhb
59ffccfbd6 - Move the setting of bootverbose to a MI SI_SUB_TUNABLES SYSINIT.
- Attach a writable sysctl to bootverbose (debug.bootverbose) so it can be
  toggled after boot.
- Move the printf of the version string to a SI_SUB_COPYRIGHT SYSINIT just
  afer the display of the copyright message instead of doing it by hand in
  three MD places.
2001-05-17 22:28:46 +00:00
jhb
c246122199 Use NHWI instead of APIC_IMEN_BITS. 2001-05-17 22:24:46 +00:00
jhb
358431e5bf - Axe the IMEN_BITS and APIC_IMEN_BITS constants.
- Add back in a definition of NHWI which is preferred over ICU_LEN.

Submitted by:	bde
2001-05-17 22:24:17 +00:00
dmlb
fff1e2f242 Primary purpose of this commit is to enable support for the Aviator
Pro and Raylink cards with version 5 firmware. Only infra-structure
mode has been tested. Specific changes for this feature are:

        o Add RFC1042 encapsulation of IP datagrams

        o Add authentication and association

        o Decode of the beacon (although not used)

Other changes have been made:

        o Pass command completion status to *_done (in place for
          adding proper error recovery)

	o Move a couple of state variables into the current
	  network parameters structure. This is in prep. for
	  dealing with roaming.

MFC after:	1 week
2001-05-17 22:23:49 +00:00
jhb
fbaf605e32 Disable the wi driver locking for now. The driver tries to tsleep with the
driver lock held on detach which can lead to annoying and useless panics.
2001-05-17 22:20:54 +00:00
rwatson
51497c8b5f o Modify access control checks in p_candebug() such that the policy is as
follows: the effective uid of p1 (subject) must equal the real, saved,
  and effective uids of p2 (object), p2 must not have undergone a
  credential downgrade.  A subject with appropriate privilege may override
  these protections.

  In the future, we will extend these checks to require that p1 effective
  group membership must be a superset of p2 effective group membership.

Obtained from:	TrustedBSD Project
2001-05-17 21:48:44 +00:00
dmlb
93b02fbe46 Add a couple more codes for upcoming raylink driver additions.
MFC after:	3 days
2001-05-17 21:37:41 +00:00
dmlb
8206463188 Add an entry for RAYLINK pccard using the ray driver.
MFC after:	3 days
2001-05-17 19:55:11 +00:00
alfred
91f8c63e8d Cleanup
Remove comment about setting error for reads on EOF, read returns 0 on
EOF so the code should be ok.

Remove non-effective priority boost, PRIO+1 doesn't do anything
(according to McKusick), if a real priority boost is needed it should
have been +4.

Style fixes:
.) return foo -> return (foo)
.) FLAG1|FlAG2 -> FLAG1 | FlAG2
.) wrap long lines
.) unwrap short lines
.) for(i=0;i=foo;i++) -> for (i = 0; i=foo; i++)
.) remove braces for some conditionals with a single statement
.) fix continuation lines.

md5 couldn't verify the binary because some code had to
be shuffled around to address the style issues.
2001-05-17 19:47:09 +00:00
bmah
6059e1a104 Fix typo: s/maestro3_load/snd_maestro3_load/ (pointed out by
Tadayuki OKADA <tadayuki@mediaone.net>.

New release notes:  USER_LDT on by default (this entry is way overdue).

Add Abocom URE 450 to supported USB Ethernet devices.
2001-05-17 18:32:18 +00:00
alfred
2f1ebc4a57 initialize pipe pointers 2001-05-17 18:22:58 +00:00
alfred
37f8fb3daa pipe_create has to zero out the select record earlier to avoid
returning a half-initialized pipe and causing pipeclose() to follow
a junk pointer.

Discovered by: "Nick S" <snicko@noid.org>
2001-05-17 17:59:28 +00:00
ru
1db06aeffa Cosmetics to rev.1.89: removed argument names in a function prototype. 2001-05-17 17:57:35 +00:00
ru
f0a8d9b713 Describe all current net.inet.tcp MIB variables.
Submitted by:	jlemon
MFC after:	1 week
2001-05-17 17:53:21 +00:00
nsayer
e25576d211 Make the PAM user-override actually override the correect thing. 2001-05-17 16:28:11 +00:00
brian
8ed702383f Allow `ip4'' as an `upperspec'' value, and update the man
page with *all* the permissible values.

This should really be spelt ipencap (as /etc/protocols does),
but a precedent has already been set by the ipproto array in
setkey.c.

It would be nice if /etc/protocols was parsed for the upperspec
field, but I don't do yacc/lex...

This change allows policies that only encrypt the encapsulated
packets passing between the endpoints of a gif tunnel.  Setting
such a policy means that you can still talk directly (and
unencrypted) between the public IP numbers with (say) ssh.

MFC after:	1 week
2001-05-17 15:30:49 +00:00
ru
1ea506c6d5 Fix an off-by-hour bug when crossing Daylight Saving Time boundary.
PR:		bin/27399
Submitted by:	"Crist J. Clark" <crist.clark@globalstar.com>
MFC after:	3 days
2001-05-17 15:20:15 +00:00
ru
c632b830a9 Suppress compiler warning by adding a type cast. 2001-05-17 12:51:43 +00:00
bde
17ca7871ca Backed out rev.1.8. Rev.1.8 was just to support a bogus unused include
in ng_tty.c.
2001-05-17 11:54:30 +00:00
ru
a14b8acde5 mdoc(7) police: update document date. 2001-05-17 11:09:15 +00:00
sos
e70764b25c Update to use the new ioctl interface.
Add the list command.
2001-05-17 10:30:07 +00:00
sos
892af87533 Update to use the changed ioctl interface. 2001-05-17 10:29:30 +00:00
sos
269a1dffa4 Change the ioctl interface to prepare for new functionality. 2001-05-17 10:28:59 +00:00