]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoThis commit was generated by cvs2svn to compensate for changes in r81682,
ru [Wed, 15 Aug 2001 08:17:33 +0000 (08:17 +0000)]
This commit was generated by cvs2svn to compensate for changes in r81682,
which included commits to RCS files with non-trunk default branches.

22 years agoFrom ChangeLog:
ru [Wed, 15 Aug 2001 08:17:33 +0000 (08:17 +0000)]
From ChangeLog:

: 2001-08-14  Ruslan Ermilov  <ru@FreeBSD.org>
:
:  * tmac/doc.tmac (Ex): New implementation.
:  * tmac/doc-common, tmac/groff_tmac.man: Updated.

This adds a new macro, .Ex (Exit Status), for use in the
DIAGNOSTICS section of section 1, 6 and 8 manpages.

Prodded by: dd

22 years agoThere is no tcic driver, so no need to list it here.
imp [Wed, 15 Aug 2001 05:39:58 +0000 (05:39 +0000)]
There is no tcic driver, so no need to list it here.

22 years agoMFC noted: SSE capabilities. Also moved these into
bmah [Wed, 15 Aug 2001 04:47:42 +0000 (04:47 +0000)]
MFC noted:  SSE capabilities.  Also moved these into
processor/motherboard support section.

22 years agoStyle changes to commonize the various platforms.
obrien [Wed, 15 Aug 2001 04:02:41 +0000 (04:02 +0000)]
Style changes to commonize the various platforms.

22 years agoSync up with the latest ansi.h in other platforms -- especially RUNE and
obrien [Wed, 15 Aug 2001 03:55:37 +0000 (03:55 +0000)]
Sync up with the latest ansi.h in other platforms -- especially RUNE and
wchar bits.

22 years agoNo tokens should follow #endif.
obrien [Wed, 15 Aug 2001 03:38:49 +0000 (03:38 +0000)]
No tokens should follow #endif.

22 years agoReflect main termcap v1.109
ache [Wed, 15 Aug 2001 03:27:52 +0000 (03:27 +0000)]
Reflect main termcap v1.109

22 years agoAdd ve,vi,vs for cons25
ache [Wed, 15 Aug 2001 03:25:57 +0000 (03:25 +0000)]
Add ve,vi,vs for cons25

Submitted by: yokota

22 years ago1) Disallow negative seek as POSIX require for fseek{o} (but not for lseek):
ache [Wed, 15 Aug 2001 02:07:47 +0000 (02:07 +0000)]
1) Disallow negative seek as POSIX require for fseek{o} (but not for lseek):

"[EINVAL] ... The resulting file-position indicator would be set to a
negative value."

Moreover, in real life negative seek in stdio cause EOF indicator cleared
and not set again forever even if EOF returned.

2) Catch few possible off_t overflows.

Reviewed by: arch discussion

22 years agoRemoval of following export controll related sentences:
horikawa [Wed, 15 Aug 2001 01:30:25 +0000 (01:30 +0000)]
Removal of following export controll related sentences:
o Because of export controls, TELNET ENCRYPT option is not supported outside
  of the United States and Canada.
o Because of export controls, data encryption
  is not supported outside of the United States and Canada.

src/crypto/README revision 1.5 commit log says:
> Crypto sources are no longer export controlled:
> Explain, why crypto sources are still in crypto/.
and actually telnet encryption is used outside of US and Canada now.

Pointed out by: OHSAWA Chitoshi <ohsawa@catv1.ccn-net.ne.jp>
Reviewed by: no objection on doc

22 years agoRemoval of following export controll related sentences:
horikawa [Wed, 15 Aug 2001 01:23:30 +0000 (01:23 +0000)]
Removal of following export controll related sentences:
o This option is not available outside of the United States and Canada.
o Because of export controls, TELNET ENCRYPT option is not supported outside
  of the United States and Canada.

src/crypto/README revision 1.5 commit log says:
> Crypto sources are no longer export controlled:
> Explain, why crypto sources are still in crypto/.
and actually telnet encryption is used outside of US and Canada now.

Pointed out by: OHSAWA Chitoshi <ohsawa@catv1.ccn-net.ne.jp>
Reviewed by:no objection on doc

22 years agoIn order to bring about the end of the universe, delete the lines:
peter [Wed, 15 Aug 2001 00:33:55 +0000 (00:33 +0000)]
In order to bring about the end of the universe, delete the lines:
 # DO NOT DELETE THIS LINE -- make depend uses it

22 years agoAdd commented out example
ache [Tue, 14 Aug 2001 23:51:58 +0000 (23:51 +0000)]
Add commented out example

22 years agoAdd/install /etc/opieaccess skeleton
ache [Tue, 14 Aug 2001 23:38:31 +0000 (23:38 +0000)]
Add/install /etc/opieaccess skeleton

Approved by: markm

22 years agoMerge from stable (which seems to have been spammed at some point in current):
imp [Tue, 14 Aug 2001 23:34:09 +0000 (23:34 +0000)]
Merge from stable (which seems to have been spammed at some point in current):
#ifdef the deltap pcic_set_memory_offset argument so that raylink
driver works.

22 years agoImplement PIOCSRESOURCE for mecia like we do for pcic.
imp [Tue, 14 Aug 2001 23:24:56 +0000 (23:24 +0000)]
Implement PIOCSRESOURCE for mecia like we do for pcic.

22 years agoList the correct paths to the X server distributions.
eric [Tue, 14 Aug 2001 23:19:37 +0000 (23:19 +0000)]
List the correct paths to the X server distributions.

PR: 26924
Submitted by: olgeni

22 years agoMinor style(9) nits to make code more readable
imp [Tue, 14 Aug 2001 23:16:01 +0000 (23:16 +0000)]
Minor style(9) nits to make code more readable

22 years agoMake list of ports required for doc build consistent with
bmah [Tue, 14 Aug 2001 22:31:27 +0000 (22:31 +0000)]
Make list of ports required for doc build consistent with
ports/textproc/docproj/Makefile rev. 1.33 (which adds graphics/scr2png).

22 years agoImplement kernel semaphores.
jasone [Tue, 14 Aug 2001 22:13:14 +0000 (22:13 +0000)]
Implement kernel semaphores.

Reviewed by: jhb

22 years agoFix yet another "unconditionally free()ing memory without even checking
wpaul [Tue, 14 Aug 2001 21:56:53 +0000 (21:56 +0000)]
Fix yet another "unconditionally free()ing memory without even checking
to see if it was malloc()ed first" bug. In bus_dmamap_create(), one of
two things can happen: either we need to allocate a special map due to
some manner of bounce buffering requirement, or we can DMA a buffer
in place. On the x86 platform, the "in place" case results in
bus_dmamap_create() returning a dmamap of NULL. The bus_dmamap_destroy()
routine later checks for NULL and won't bother free()ing the map if
it detects this condition.

But on the alpha, we don't use NULL, we use a statically allocated map
called nobounce_dmamap(). Unfortunately, bus_dmamap_destroy() does not
handle the condition where we attempt to destroy such a map: it tries
to free() the dmamap, which causes a panic.

Fix: test that map != &nobounce_dmamap before trying to free() it.

With this fix, my busdma-ified if_sis driver works on the alpha. I'm
a bit alarmed that I'm the first person ever to trip over this bug, since
we have been using busdma on the alpha for a while, and since it sort
of screams out "Hi! I'm a bug! Booga-booga!" when you look at it.

(Somewhere, somebody will say: "But Bill, why don't you just not bother
destroying the maps in this case." Because the API is supposed to be
a) symetrical and b) opaque to the caller. I can't know whether it's safe
to skip the bus_dmamap_destroy() step or not without sticking my fingers
into unsafe places, which is what I wanted to avoid in the first place.)

22 years agoTreat min,max of 0,0 for IRQ special. Reject it if we didn't specifically
imp [Tue, 14 Aug 2001 19:23:12 +0000 (19:23 +0000)]
Treat min,max of 0,0 for IRQ special.  Reject it if we didn't specifically
assing an IRQ.  Add better comments while I'm here.

MFC after: 1 day
# Note: That's merging all the -current pci pcic code, not just this one
# change for the Aug 15th code freeze.

22 years agoAsk the kernel about IRQ 0 first. If the kernel responds with an IRQ,
imp [Tue, 14 Aug 2001 19:18:33 +0000 (19:18 +0000)]
Ask the kernel about IRQ 0 first.  If the kernel responds with an IRQ,
use it.  If not, then loop asking for each one, with normal -I
processing.  This will effectively disable -I for when the pcic is in
PCI function interrupt routing mode.

22 years agoAdd hint about how we name profiled libraries (append _p at the right place).
schweikh [Tue, 14 Aug 2001 17:48:29 +0000 (17:48 +0000)]
Add hint about how we name profiled libraries (append _p at the right place).

PR: 8061
Submitted by: Brandon Gillespie <brandon@ice.cold.org>
Reviewed by: joerg, ru
MFC after: 5 weeks

22 years agoo Add ipv6 support, abstracting most NCP addresses into opaque
brian [Tue, 14 Aug 2001 16:05:52 +0000 (16:05 +0000)]
o Add ipv6 support, abstracting most NCP addresses into opaque
  structures (well, they're treated as opaque).

  It's now possible to manage IPv6 interface addresses and routing
  table entries and to filter IPV6 traffic whether encapsulated or
  not.

  IPV6CP support is crude for now, and hasn't been tested against
  any other implementations.

  RADIUS and IPv6 are independent of eachother for now.

  ppp.linkup/ppp.linkdown aren't currently used by IPV6CP

o Understand all protocols(5) in filter rules rather than only a select
  few.

o Allow a mask specification for the ``delete'' command.  It's now
  possible to specifically delete one of two conflicting routes.

o When creating and deleting proxy arp entries, do it for all IPv4
  interface addresses rather than doing it just for the ``current''
  peer address.

o When iface-alias isn't in effect, don't blow away manually (via ``iface
  add'') added interface addresses.

o When listening on a tcp server (diagnostic) socket, bind so that a
  tcp46 socket is created -- allowing both IPv4 and IPv6 connections.

o When displaying ICMP traffic, don't display the icmp type twice.
  When display traffic, display at least some information about unrecognised
  traffic.

o Bump version

Inspired after filtering work by: Makoto MATSUSHITA <matusita@jp.FreeBSD.org>

22 years agomdoc(7) police: bump document date.
ru [Tue, 14 Aug 2001 16:01:00 +0000 (16:01 +0000)]
mdoc(7) police: bump document date.

22 years agomdoc(7) police: fix SEE ALSO.
ru [Tue, 14 Aug 2001 15:53:07 +0000 (15:53 +0000)]
mdoc(7) police: fix SEE ALSO.

22 years agoFrom ChangeLog:
ru [Tue, 14 Aug 2001 15:19:35 +0000 (15:19 +0000)]
From ChangeLog:

: 2001-08-13  Ruslan Ermilov  <ru@FreeBSD.org>
:
:  * tmac/doc.tmac (Rv): Implement support for 0 or more than 1
:  argument.
:  * tmac/groff_tmac.man: Updated.

All of the following are now valid:

.Rv -std f1
.Rv -std f1 f2
.Rv -std f1 f2 f3
.Rv -std

The last form is useful where the standard return behavior is applicable
to all of the functions described in this particular manpage.  Look, for
example, at the stat(2), setresuid(2), and utimes(2) manpages.

The form with >1 functions is useful in a mixed environment.  See the
fhopen(2) manpage for an example.

Prodded by: yar

22 years agoThis commit was generated by cvs2svn to compensate for changes in r81630,
ru [Tue, 14 Aug 2001 15:19:35 +0000 (15:19 +0000)]
This commit was generated by cvs2svn to compensate for changes in r81630,
which included commits to RCS files with non-trunk default branches.

22 years agoUse the ".Rv" mdoc(7) macro where appropriate.
yar [Tue, 14 Aug 2001 14:20:35 +0000 (14:20 +0000)]
Use the ".Rv" mdoc(7) macro where appropriate.

Reviewed by: ru

22 years agostyle(9) tweak
obrien [Tue, 14 Aug 2001 14:14:20 +0000 (14:14 +0000)]
style(9) tweak

Approved by: dd

22 years agoIsolate the ERRORS section from the RETURN VALUES one.
yar [Tue, 14 Aug 2001 14:10:01 +0000 (14:10 +0000)]
Isolate the ERRORS section from the RETURN VALUES one.

Reviewed by: ru

22 years agomdoc(7) police: removed final dot from the .Nd call.
ru [Tue, 14 Aug 2001 11:58:07 +0000 (11:58 +0000)]
mdoc(7) police: removed final dot from the .Nd call.

22 years agoFix INT 10:09 (write char) and INT 10:0a (write char and attribute)
tg [Tue, 14 Aug 2001 11:57:14 +0000 (11:57 +0000)]
Fix INT 10:09 (write char) and INT 10:0a (write char and attribute)
when cursor is at the lower right corner.

PR: 29574 29601
Submitted by: Nils M Holm <nmh@t3x.org>

22 years agoMove update of BIOS variable at 0x6c (time counter) completely to timer.c.
tg [Tue, 14 Aug 2001 11:54:37 +0000 (11:54 +0000)]
Move update of BIOS variable at 0x6c (time counter) completely to timer.c.

Suggested by: Igor Serikov <bt@turtle.pangeatech.com>

22 years agomdoc(7) police: s/BSD/.Bx/ where appropriate.
ru [Tue, 14 Aug 2001 10:01:54 +0000 (10:01 +0000)]
mdoc(7) police: s/BSD/.Bx/ where appropriate.

22 years agoFor TI12xx and newer, clear register 0x84. This is the "Multimedia"
imp [Tue, 14 Aug 2001 07:31:47 +0000 (07:31 +0000)]
For TI12xx and newer, clear register 0x84.  This is the "Multimedia"
register.  It enables Zoom Video.  It appears that on at least one
card that Monzoon is using sets these bits by default.  Nothing works
when these bits are set, everything works when they are clear.

Add commentary on some of the ti bits.  Make code a little clearer.
Also remove a call to pcic_pci_pd6729 which was prematurely added in
the last commit.

22 years ago linux ls fails on DEVFS /dev because linux_getdents fails because
phk [Tue, 14 Aug 2001 06:42:32 +0000 (06:42 +0000)]
 linux ls fails on DEVFS /dev because linux_getdents fails because
     linux_getdents uses VOP_READDIR( ..., &ncookies, &cookies ) instead of
     VOP_READDIR( ..., NULL, NULL ) because it seems to need the offsets for
     linux_dirent and sizeof(dirent) != sizeof(linux_dirent)...

PR: 29467
Submitted by: Michael Reifenberger <root@nihil.plaut.de>
Reviewed by: phk

22 years agoAn empty at.deny doesn't mean everyone can use at.
dd [Tue, 14 Aug 2001 06:41:20 +0000 (06:41 +0000)]
An empty at.deny doesn't mean everyone can use at.

PR: 29549
Submitted by: swear@aa.net

22 years agoSync the code that sucks in rc.conf and friends with what's in
dd [Tue, 14 Aug 2001 05:50:19 +0000 (05:50 +0000)]
Sync the code that sucks in rc.conf and friends with what's in
rc.firewall6.  Specifically, don't do anything
if [ -z ${source_rc_confs_defined} ].  Not doing this leads to a problem
with dependencies: chkdepend will set, e.g., portmap_enable to YES if
some service that needs portmap is enabled, but rc.network sources
rc.firewall, which used to source defaults/rc.conf unconditionally,
which would result in portmap_enable being set back to NO.

PR: 29631
Submitted by: OGAWA Takaya <t-ogawa@triaez.kaisei.org>

22 years agoTry to support the Cirrus Logic PD6833 better in pci mode. This is
imp [Tue, 14 Aug 2001 05:31:56 +0000 (05:31 +0000)]
Try to support the Cirrus Logic PD6833 better in pci mode.  This is
done from the datasheets since I'm ahving problems with my laptop that
has the 6833 in it...

Minor rework of TI code.  Should be the same as before.

22 years agoAdd missing commas.
jasone [Tue, 14 Aug 2001 05:10:07 +0000 (05:10 +0000)]
Add missing commas.

22 years agoAdd a GENERIC kernel config for sparc64.
jake [Tue, 14 Aug 2001 03:27:02 +0000 (03:27 +0000)]
Add a GENERIC kernel config for sparc64.

22 years agoAdd some definitions that got left out, *blush*.
jake [Tue, 14 Aug 2001 03:10:41 +0000 (03:10 +0000)]
Add some definitions that got left out, *blush*.

22 years agoDon't define ELF_RTLD_ADDR twice.
jake [Tue, 14 Aug 2001 03:09:19 +0000 (03:09 +0000)]
Don't define ELF_RTLD_ADDR twice.

22 years agoIn prom_halt(), set the halt restart flags on the current CPU, not the
jhb [Mon, 13 Aug 2001 22:44:55 +0000 (22:44 +0000)]
In prom_halt(), set the halt restart flags on the current CPU, not the
boot CPU.  This was the reason reboots on SMP systems could result in
weird hangs.  Unlike the x86, we do not need to switch back to the boot
CPU in order to reboot the machine.  See Section 3.4.5 of Part III
(Console Interface Architecture) from the Alpha Architecture Reference
Manual (aka the Brown Book) for more info.

22 years agoRemove IPI_HALT to make way for a more correct fix for halts and restarts
jhb [Mon, 13 Aug 2001 22:41:15 +0000 (22:41 +0000)]
Remove IPI_HALT to make way for a more correct fix for halts and restarts
on SMP alphas.

22 years agoMinor style nits: cleanup and add some function prototypes.
jhb [Mon, 13 Aug 2001 22:38:36 +0000 (22:38 +0000)]
Minor style nits: cleanup and add some function prototypes.

22 years agoInitialize outfile in main()
peter [Mon, 13 Aug 2001 21:59:04 +0000 (21:59 +0000)]
Initialize outfile in main()

22 years agoInitialize msg in main()
peter [Mon, 13 Aug 2001 21:58:16 +0000 (21:58 +0000)]
Initialize msg in main()

22 years agoInitialize fp in main()
peter [Mon, 13 Aug 2001 21:57:12 +0000 (21:57 +0000)]
Initialize fp in main()

22 years agoInitialize debugf in main()
peter [Mon, 13 Aug 2001 21:56:39 +0000 (21:56 +0000)]
Initialize debugf in main()

22 years agoftrace is already initialized
peter [Mon, 13 Aug 2001 21:56:09 +0000 (21:56 +0000)]
ftrace is already initialized

22 years agomsg_out is already initialized
peter [Mon, 13 Aug 2001 21:55:41 +0000 (21:55 +0000)]
msg_out is already initialized

22 years agoInitialize infp at main()
peter [Mon, 13 Aug 2001 21:55:04 +0000 (21:55 +0000)]
Initialize infp at main()

22 years agoInitialize listf at main()
peter [Mon, 13 Aug 2001 21:54:47 +0000 (21:54 +0000)]
Initialize listf at main()

22 years agoRip out the old __stdin/out/err stuff. It was completely 100% useless. :-(
peter [Mon, 13 Aug 2001 21:48:44 +0000 (21:48 +0000)]
Rip out the old __stdin/out/err stuff. It was completely 100% useless. :-(
It was foiled because of dynamic copy relocations that caused compile-time
space to be reserved in .bss and at run time a blob of data was copied to
that space and everything used the .bss version..  The problem is that
the space is reserved at compile time, not runtime... So we *still* could
not change the size of FILE.  Sigh.  :-(

Replace it with something that does actually work and really does let us
make 'FILE' extendable.  It also happens to be the same as Linux does in
glibc, but has the slight cost of a pointer.  Note that this is the
same cost that 'fp = fopen(), fprintf(fp, ...); fclose(fp);' has.
Fortunately, actual references to stdin/out/err are not all that common
since we have implicit stdin/out/err-using versions of functions
(printf() vs. fprintf()).

22 years agoAdd sx_try_upgrade() and sx_downgrade().
jasone [Mon, 13 Aug 2001 21:25:30 +0000 (21:25 +0000)]
Add sx_try_upgrade() and sx_downgrade().

Submitted by: Alexander Kabaev <ak03@gte.com>

22 years agoRevert part of the 1.11->1.11.1p1 change. Put the blank line back in
peter [Mon, 13 Aug 2001 21:21:13 +0000 (21:21 +0000)]
Revert part of the 1.11->1.11.1p1 change.  Put the blank line back in
the beginning of constructed log messages being passed to $EDITOR.  This
is where folks start typing.

22 years agoFix uninitialized "force" variable.
ache [Mon, 13 Aug 2001 19:43:14 +0000 (19:43 +0000)]
Fix uninitialized "force" variable.

PR: 23203
Submitted by: fenner
Approved by: markm

22 years agoTurn cvs back on. It seems that there's nothing outright broken, but there
peter [Mon, 13 Aug 2001 19:04:26 +0000 (19:04 +0000)]
Turn cvs back on.  It seems that there's nothing outright broken, but there
are some odd things I've run into.. eg: log message formatting, etc.

22 years agoFix an bug in FreeBSD attach routine - attaching MII interfaces before doing
semenu [Mon, 13 Aug 2001 18:37:31 +0000 (18:37 +0000)]
Fix an bug in FreeBSD attach routine - attaching MII interfaces before doing
common_attach is wrong as common attach initialize some fileds used by
mediainit routine. This was hard to notify because loading driver as kld
lead to mediainit routine being called after common_attach, though probe_phy
is called before.

MFC after: 1 week

22 years agoAdd support for 802.1Q VLAN and oversized ethernet frames.
semenu [Mon, 13 Aug 2001 18:32:39 +0000 (18:32 +0000)]
Add support for 802.1Q VLAN and oversized ethernet frames.

PR: kern/29235
Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au>
Reviewed by: Yar Tikhiy <yar@FreeBSD.org>
MFC after: 1 week

22 years agomdoc(7) police: s;BSD/OS;.Bsx; where appropriate.
ru [Mon, 13 Aug 2001 17:07:40 +0000 (17:07 +0000)]
mdoc(7) police: s;BSD/OS;.Bsx; where appropriate.

22 years agomdoc(7) police: s/NetBSD/.Nx/ where appropriate.
ru [Mon, 13 Aug 2001 17:00:36 +0000 (17:00 +0000)]
mdoc(7) police: s/NetBSD/.Nx/ where appropriate.

22 years agomdoc(7) police: s/OpenBSD/.Ox/ where appropriate.
ru [Mon, 13 Aug 2001 16:43:02 +0000 (16:43 +0000)]
mdoc(7) police: s/OpenBSD/.Ox/ where appropriate.

22 years agoSpell "FreeBSD" with "F" and "BSD" in uppercase.
ru [Mon, 13 Aug 2001 16:33:00 +0000 (16:33 +0000)]
Spell "FreeBSD" with "F" and "BSD" in uppercase.

22 years agoRemoved duplicate VCS ID tags, as per style(9).
ru [Mon, 13 Aug 2001 14:06:34 +0000 (14:06 +0000)]
Removed duplicate VCS ID tags, as per style(9).

22 years agoRemove comment, which didn't even help anyway.
asmodai [Mon, 13 Aug 2001 13:29:29 +0000 (13:29 +0000)]
Remove comment, which didn't even help anyway.

Submitted by: bde, long ago

22 years agoUse interrupt gates instead of trap gates for breakpoint and trace
bde [Mon, 13 Aug 2001 13:22:50 +0000 (13:22 +0000)]
Use interrupt gates instead of trap gates for breakpoint and trace
traps, so that ddb can keep control (almost) no matter how it is
entered.  This breaks time-critical interrupts while the system is
stopped in ddb, but I haven't noticed any significant problems except
that applications become confused about the time.  Lost time will be
adjusted for later.  Anyway, the half-baked disabling of interrupts in
Debugger() gives the same problems for the usual way of entering ddb.

22 years agoRemoved he BPTTRAP() macro and its use. It was intended for restoring
bde [Mon, 13 Aug 2001 12:42:13 +0000 (12:42 +0000)]
Removed he BPTTRAP() macro and its use.  It was intended for restoring
bug for bug compatibility to ddb trap handlers after fixing the debugger
trap gates to be interrupt gates, but the fix was never committed.  Now
I want the fix to apply to ddb.

22 years agoFixed minor numbers when there is more than one cy card.
bde [Mon, 13 Aug 2001 10:52:15 +0000 (10:52 +0000)]
Fixed minor numbers when there is more than one cy card.

PR: 19256
Submitted by: initial version by yokota
MFC after: 1 week

22 years agoHonour `TMPDIR' environment variable.
sobomax [Mon, 13 Aug 2001 09:20:15 +0000 (09:20 +0000)]
Honour `TMPDIR' environment variable.

Reviewed by: ru
Approved by: ru
MFC after: 2 weeks

22 years agoUse ttymalloc() instead of a static array of `struct tty'. This will
bde [Mon, 13 Aug 2001 07:00:21 +0000 (07:00 +0000)]
Use ttymalloc() instead of a static array of `struct tty'.  This will
be a regression until `pstat -t' actually understands the results of
ttymalloc().

Submitted by: mostly by yokota

22 years agoFix some bogus strncpy(3) to strlcpy(3) changes I made in the previous
mike [Mon, 13 Aug 2001 05:56:27 +0000 (05:56 +0000)]
Fix some bogus strncpy(3) to strlcpy(3) changes I made in the previous
revision.  <utmp.h> structures don't leave room for a NUL character.
Also fix "UNKNOWN" which should have just been UNKNOWN.

Pointed out by: bde

22 years agoReduce private "lesser known" function redirection to improve clarity.
obrien [Mon, 13 Aug 2001 04:18:30 +0000 (04:18 +0000)]
Reduce private "lesser known" function redirection to improve clarity.

Approved by: jkh

22 years agoUse normal menus instead of radio lists, which seems to be more logical
eric [Sun, 12 Aug 2001 23:40:04 +0000 (23:40 +0000)]
Use normal menus instead of radio lists, which seems to be more logical
after the libdialog changes.

22 years agoCross-reference io(4).
iedowse [Sun, 12 Aug 2001 21:16:41 +0000 (21:16 +0000)]
Cross-reference io(4).

22 years agoUpdate io(4) to match reality following revision 1.42 of
iedowse [Sun, 12 Aug 2001 21:08:34 +0000 (21:08 +0000)]
Update io(4) to match reality following revision 1.42 of
sys/i386/i386/mem.c: only the super-user may open /dev/io
regardless of the device permissions (just 4 years late!).

Also, add cross-reference to i386_{get,set}_ioperm(2).

PR: kern/13359

22 years ago"New" release note: Removal of wd compatability devices from ata(4).
bmah [Sun, 12 Aug 2001 20:58:30 +0000 (20:58 +0000)]
"New" release note:  Removal of wd compatability devices from ata(4).

(The release note entry is new, but the fact it documents is not.)

Submitted by: silby

22 years agoNote MFC of ARIN -> APNIC/RIPE whois(1) queries. While I'm here, add
bmah [Sun, 12 Aug 2001 20:36:44 +0000 (20:36 +0000)]
Note MFC of ARIN -> APNIC/RIPE whois(1) queries.  While I'm here, add
a missing word.

Submitted by: mike

22 years agoRemove whitespace after %. The whitespace was causing strfile to not see
mharo [Sun, 12 Aug 2001 20:32:37 +0000 (20:32 +0000)]
Remove whitespace after %.  The whitespace was causing strfile to not see
the % string section break and thus fortune was producing a rather large
multi-fortune fortune message.

22 years agoRemove the WANT_INSECURE_OPIE option - it is now a default. This is not
markm [Sun, 12 Aug 2001 18:47:56 +0000 (18:47 +0000)]
Remove the WANT_INSECURE_OPIE option - it is now a default. This is not
nearly as ominous as it sounds, and it allows OPIE to be used over SSH
and on xterms.

Requested by: ache
Discussed on: -security

22 years agoo Replace occurrences of strncpy(3) with strlcpy(3); most of
mike [Sun, 12 Aug 2001 17:54:49 +0000 (17:54 +0000)]
o Replace occurrences of strncpy(3) with strlcpy(3); most of
  the uses of it were wrong anyway.
o Always check for NULL returns on strdup(3).
o Fix a possible buffer overflow in strcpy(3).
o Fix a format string vulnerability.
o t->ty_type in stypeof() could be NULL and eventually cause
  a segmentation fault in setenv(3), so check for that.

Eyeballed by: kris
Reviewed by: murray
MFC after: 3 days

22 years agoChagne MASTER_SITE_FREEBSD to MASTER_SITE_FREEBSD_ORG, because
knu [Sun, 12 Aug 2001 17:22:41 +0000 (17:22 +0000)]
Chagne MASTER_SITE_FREEBSD to MASTER_SITE_FREEBSD_ORG, because
MASTER_SITE_FREEBSD is already used in bsd.port.mk for some different
purpose.

22 years agoFix MASTER_SITE_RUBY. The listed master site is obsolete.
knu [Sun, 12 Aug 2001 17:09:19 +0000 (17:09 +0000)]
Fix MASTER_SITE_RUBY.  The listed master site is obsolete.

22 years agoAdd MASTER_SITE_FREEBSD.
knu [Sun, 12 Aug 2001 16:32:05 +0000 (16:32 +0000)]
Add MASTER_SITE_FREEBSD.

22 years agoFix some trivial bugs.
iwasaki [Sun, 12 Aug 2001 08:37:39 +0000 (08:37 +0000)]
Fix some trivial bugs.
 - fix segment limit mis-calculation for GCODE_SEL, GDATA_SEL, GPRIV_SEL,
   LUCODE_SEL and LUDATA_SEL.
 - move `loader(8) metadata' related printf() after cninit().
 - use atop macro (address to pages) for segment limit calculation
   instead of i386_btop macro (bytes to pages).
 - fix style bugs for the declarations of ints.

Reviewed by:    bde, msmith (and arch & audit ML)

22 years agoChange the compute_stats() call to the new devstat_compute_statistics()
ken [Sat, 11 Aug 2001 19:41:56 +0000 (19:41 +0000)]
Change the compute_stats() call to the new devstat_compute_statistics()
interface.

Cast the return of the rest of the printfs in here to void.

Submitted by: "Sergey A. Osokin" <osa@freebsd.org.ru>

22 years agoPreprocess ppp.8.m4 into ppp.8, taking into account any compile time
brian [Sat, 11 Aug 2001 18:27:14 +0000 (18:27 +0000)]
Preprocess ppp.8.m4 into ppp.8, taking into account any compile time
options used to build ppp.

Currently, this is a no-op and only handles LOCALNAT and LOCALRAD cases.

This will be used for the upcoming ipv6 changes, and allows a shared
man page between OpenBSD and FreeBSD.

22 years agoNote MFC of all the I4B stuff.
dd [Sat, 11 Aug 2001 17:55:07 +0000 (17:55 +0000)]
Note MFC of all the I4B stuff.

22 years agoI4B is actually version 1.0.1.
dd [Sat, 11 Aug 2001 17:50:58 +0000 (17:50 +0000)]
I4B is actually version 1.0.1.

22 years agoFill _res.sort_list with harmless entry. sortlist for IPv6/IPv4
ume [Sat, 11 Aug 2001 15:01:12 +0000 (15:01 +0000)]
Fill _res.sort_list with harmless entry.  sortlist for IPv6/IPv4
is stored in _res_ext.sort_list, and sortlist for IPv4 is stored in
_res.sort_list for backward compatibility.  However, both sort_list's
are maintaind by just one index _res.nsort.  So, when IPv6 address is
specified to sortlist, empty entry was created in _res.sort_list.  It
broke sortlist facility of gethostbyname().
Discussed on users@jp.ipv6.org.

22 years agoSet the RUSER for PAM so that (eg) kerberos can set up tickets properly.
markm [Sat, 11 Aug 2001 14:24:13 +0000 (14:24 +0000)]
Set the RUSER for PAM so that (eg) kerberos can set up tickets properly.

22 years agoWARNS=2 type cleanup.
markm [Sat, 11 Aug 2001 14:22:32 +0000 (14:22 +0000)]
WARNS=2 type cleanup.

WARNS=2 cannot be enable because of an unresolvable conflict in arg 2
of execv(). Document this in the Makefile.

Reviewed by: bde (su.c only)

22 years agoFix:
markm [Sat, 11 Aug 2001 12:37:55 +0000 (12:37 +0000)]
Fix:

/usr/src/lib/libpam/modules/pam_ssh/pam_ssh.c has couple of bugs which cause:

1) xdm dumps core
2) ssh1 private key is not passed to ssh-agent
3) ssh2 RSA key seems not handled properly (just a guess from source)
4) ssh_get_authentication_connectionen() fails to get connection because of
   SSH_AUTH_SOCK not defined.

PR: 29609
Submitted by: Takanori Saneto <sanewo@ba2.so-net.ne.jp>

22 years agoAdd sgi_fam 391002, file alteration monitor.
schweikh [Sat, 11 Aug 2001 09:43:04 +0000 (09:43 +0000)]
Add sgi_fam 391002, file alteration monitor.

PR: 25925
Submitted by: Jeremy Norris <ishmael27@home.com>
MFC after: 5 weeks

22 years agoDon't hard-code BINOWN and BINGRP (BINGRP was hard-coded to 'bin', which
kris [Sat, 11 Aug 2001 07:11:14 +0000 (07:11 +0000)]
Don't hard-code BINOWN and BINGRP (BINGRP was hard-coded to 'bin', which
is the wrong value on FreeBSD).

MFC after: 1 week

22 years agoMake the name parameter const char *.
imp [Sat, 11 Aug 2001 05:16:00 +0000 (05:16 +0000)]
Make the name parameter const char *.