Commit Graph

67354 Commits

Author SHA1 Message Date
matusita
787cdbfd78 Use 'GET' method instaed of 'HEAD', since some proxy server doesn't work
with 'HEAD' method.

Actually, when http.c was born, it used 'GET' method.  This was changed
with revision 1.4 (which was submitted as PR: 21449).  I've confirmed
to Philipp Mergenthaler <philipp.mergenthaler@stud.uni-karlsruhe.de>,
the submitter of PR: 21449, and it's absolutely OK that we can use
GET method.

Add missing 'FreeBSD' tag, and copyright notice.  This file is originally
submitted by PR: 11316; I've contacted to the PR originator to submit it.

PR:		32238
Submitted by:	Christoph Weber-Fahr <christoph.weber-fahr@arcor.de> (patch),
	and Philipp Mergenthaler <un1i@rz.uni-karlsruhe.de> (copyright)
MFC after:	1 week
2001-11-25 00:50:57 +00:00
dd
5dd8a71701 Spelling police: sucessful -> successful. 2001-11-24 23:41:32 +00:00
dd
b5c5d0915c Spelling police: sucessful -> successful.
Submitted by:	Anders Andersson <anders@codefactory.se>
2001-11-24 23:38:17 +00:00
dd
347d22cb8a Fix typo. 2001-11-24 21:22:16 +00:00
dd
835425c345 Remove a stale list of supported filesystems. If we do need a list of
filesystems somewhere, it probably shouldn't be here, and we should
make a better effort to keep it updated.
2001-11-24 21:19:46 +00:00
luigi
d49f2420be Whoops... left some junk in previous commit. 2001-11-24 20:24:36 +00:00
luigi
1207707843 Let "make" use the .mk files from the correct source tree instead
of the default ones (which could be incorrect when doing cross builds).

Also, try to be backward compatible when compiling wmk (the goal being
able to use the most recent "picobsd" script on a wide range of
source trees).
2001-11-24 20:22:20 +00:00
dd
3604f5fad7 Spelling police: "more then" - "more than" where appropriate. 2001-11-24 19:47:12 +00:00
dillon
7b3d73bcc9 convert holdsock() to fget(). Add XXX reminder for future socket locking. 2001-11-24 18:28:22 +00:00
iwasaki
560d91adcd Add suspend/resume support.
MFC after:	1 week
2001-11-24 18:00:33 +00:00
dd
36b17b3b71 Remove the stuff about only the superuser being able to use this (see
snp.c 1.64), and add a note to the BUGS section warning the reader
that this manual page is stale and may be inaccurate.
2001-11-24 17:06:20 +00:00
dd
50d82a971e Talk about what the user needs to do to get the snp devices, and how
watch(8) will try to help them by loading the module.

PR:		25420
2001-11-24 17:02:58 +00:00
dd
e665c32530 Change 'superuser' to 'user' which was forgotten in the previous
delta.  Remove fake SCCS id while I'm here.
2001-11-24 16:56:43 +00:00
imp
55262e3b08 Patch to allow the ed driver interrupt routine to terminate if the
card is ejected while we're in this routine.

yamamoto-san's original patch had a small race window for AX88190
chips, which I corrected by limiting the number of iterations we'd try
to reset the bits to be about 15ms rather than forever.  This seems to
work for me, but I don't have a large collections of cards based on
this chipset.

Submitted by:	YAMAMOTO Shigeru
2001-11-24 16:15:18 +00:00
ru
bd8e2fa8eb (Forced commit to list actual problems fixed / PRs affected).
Overview of problems fixed:

- fix support for saving and restoring filter/NAT state information
  (across reboots for example);

- ipmon(8) is started before loading any filter/NAT rules;

- ipmon(8) and ipfs(8) do not solely depend on ipfilter_enable anymore,
  they now also work when only ipnat_enable is true;

- the multiple occurrences of code loading the ipfilter kernel module
  have been removed;

- the options have been removed from the _program variables in
  defaults/rc.conf and the comments in that file have been updated to
  reflect (possibly new) reality;

- the rc.conf.5 manual page has been updated to reflect the changes.

Submitted by:	Arjan de Vet <devet@devet.org>
PR:		conf/25223, kern/25344, conf/25809,
		conf/26275, bin/27016, conf/31482
2001-11-24 16:12:04 +00:00
dd
419c6f0b7b Check the return value of tsleep() in snpread(). This may be
important, since our sleep is interruptable (PCATCH flag).

PR:		30985
Discovered by:	Vladimir Jakovenko <vovik@lucky.net>
Submitted by:	Valentin Nechayev <netch@segfault.kiev.ua>
2001-11-24 15:59:46 +00:00
dd
65ce487033 Remove the sentence about only root being able to run watch(8). It
was never technically true (it's snp(4) that required root, not
watch(8)), and after snp.c 1.64, isn't even effectively true, since
who can run watch(8) depends on the permissions of the snp device(s).

Sort options in SYNOPSIS and DESCRIPTION while I'm here.
2001-11-24 15:51:34 +00:00
dd
91fc5ccdb5 Add an -f option which allows one to specify a snp device to use.
Previously, watch would always use the first device it could
successfully open, but this isn't always desired.  Specifically, it
may not be desired during debugging (of snp), or if a particular snp
device has different permissions (which makes since after snp.c 1.64).
2001-11-24 15:41:38 +00:00
ru
e652be39ea s/processes/files/ inherited from kvm_getprocs(3).
PR:		docs/32252
Submitted by:	tobez
2001-11-24 15:38:28 +00:00
darrenr
94889bc82b second part of the patches to complete ipf changes to rc
PR:		multiple
Submitted by:	Arjan de Vet <devet@devet.org>
2001-11-24 15:36:30 +00:00
dd
ee8055d603 Return EBUSY if we try to attach to a tty that is already being
snooped on.  This causes all kinds of Bad Things(tm) to happen since
closing one session will clobber state that's needed for the other
one.  This could theoretically be supported if the code was careful,
but until somebody implements that, preventing this will stop people
from unknowingly shooting themselves in the foot.
2001-11-24 15:34:18 +00:00
dd
c862b766f8 Create a snpbasedev variable which holds a reference to the first snp
device cloned, and assign all further devices to depend on it.  This
allows us to call dev_depends() on it at module unload time to get rid
of /dev/snp* (in the devfs case, anyway).  For this to work, we must
not destroy the device at close time.  [Idea stolen from if_tun.]

The above has the following sideaffects: (a) The snp device used by
watch(8) will remain after watch(8) exits.  This is probably how it
should have been all along, and how it was before devfs came along.
(b) Module unload doesn't panic if there are any /dev/snp* devices
which haven't been used (and thus previously destroyed).  Thus, we can
reenable the unload functionality disabled in rev. 1.65.

PR:		32012
2001-11-24 15:10:53 +00:00
des
7cb716c100 Revert incorrect KSEfication: realitexpire expects a struct proc *, not a
struct thread *.
2001-11-24 14:09:50 +00:00
darrenr
6524b81033 Resolve all the ipfilter startup issues in rc.network with one big patch
to get it all right, allowing ipnat to be enabled independantly of ipfilter
in rc.conf (among other things).

PR:		multiple
Submitted by:	Arjan de Vet <devet@devet.org>
Reviewed by:	Giorgos Keramidas <keramida@FreeBSD.org>
2001-11-24 13:48:30 +00:00
groudier
5b53391daf Submitted by:David E. O'Brien
MFC after:3 days
- Add memory barrier definition for sparc64.
  Patch sent by David E. O'Brien, approved by maintainer.
- Fix an endianization error of a bus physical address used from SCRIPTS
  that made the driver fail on big endian machines as sparc64.
2001-11-24 12:35:48 +00:00
brian
28c7078186 Allow an ``at now'' specification.
PR:		32242
Submitted by:	Alan E <alane@geeksrus.net>
MFC after:	3 weeks
2001-11-24 10:43:53 +00:00
dfr
194b963c4d Since we used '#ifdef __i386__', don't close with '#endif /* !__alpha__ */' 2001-11-24 10:11:14 +00:00
nyan
10d48dc5d0 PC98 boxes cannot boot from CD-ROM. 2001-11-24 05:21:53 +00:00
keramida
472fe40c00 Be more explicit about the fact that realloc() might return a
different pointer than the one passed to it.

PR:		docs/31925
Submitted by:	Andrew <andrew@ugh.net.au>
2001-11-24 03:05:40 +00:00
luigi
2a4db36652 Whitespace change - replace leading spaces with tabs. 2001-11-24 01:47:50 +00:00
obrien
8c5542cd12 Remove the use of _PATH_DEV in the example.
The kernel certainly doesn't use _PATH_DEV or even /dev/ to find the device.
It cannot, since "/" has not been mounted.  Maybe the only affect of using
/dev/ is that it gets put in the mounted-from name for "/", so that mount(8),
etc., display an absolute path before "/" has been remounted.  Many have
never bothered typing the full path, and code that constructs a path in
rootdevnames[] never bothered to construct a full path, so the example
shouldn't have it.

Submitted by:	bde
2001-11-24 01:34:12 +00:00
ache
ba99a6c219 Fix decode table
PR:		32233
Submitted by:	Basileios Anastasatos <B.Anastasatos@MyRealBox.com>
2001-11-23 22:27:03 +00:00
brian
244dad812b Remove the hack that ensures that rt_Update() works on FreeBSD. Now
that the ncpaddr code doesn't create default routes with non-zero
masks, everything works as it should.
2001-11-23 19:20:45 +00:00
iedowse
1d5e042937 The Olympus C-1 digital camera uses a non-standard BBB command-status
signature, but otherwise behaves just like a normal USB mass-storage
device. Add a new quirk to cover this case, and enable it for C-1
cameras. The quirk enables translation from the C-1 signature to
the normal CSWSIGNATURE value.

Reviewed by:	n_hibma
2001-11-23 17:35:35 +00:00
brian
d8f0ad876a When writing messages to the routing socket, round sockaddr sizes
up in the same way that we expect them to be when we read them.

This is a no-op on i386 and probably on alphas, as we currently
only support AF_INET and AF_INET6.
2001-11-23 17:19:36 +00:00
brian
e37212b653 Be paranoid about non-zero netmasks being associated with INET addresses
of 0.0.0.0.

The OpenBSD PF_ROUTE/NET_RT_DUMP sysctl is sending back routes with
RTAX_NETMASK set, but the corresponding sockaddr being 4 zero bytes
(with an address family of zero).  ppp was getting confused by this
and ending up interpreting it as a 0.0.0.0/32 routing table
destination and subsequently failing to do anything with the route.

Specifically, after this fix, ppp under OpenBSD can successfully
change and delete the default route again !
2001-11-23 17:19:27 +00:00
iedowse
ee9d3747a1 Regen. 2001-11-23 16:36:28 +00:00
iedowse
1e07ed78d1 Add Olympus C-1. 2001-11-23 16:35:40 +00:00
brian
5f83a6b610 Remove an unused variable (oops) 2001-11-23 15:47:04 +00:00
dd
4ee088e5a0 The RETURN VALUES section is not appropriate for section 1 manual
pages; rename it to DIAGNOSTICS.  Also use the .Ex macro while I'm
here.
2001-11-23 14:40:35 +00:00
dd
534b7e1f5c Fix grammar in AUTHORS section. 2001-11-23 14:37:27 +00:00
iwasaki
22f1a17878 Add suspend/resume code mostly merged from fxp driver. 2001-11-23 14:27:33 +00:00
nyan
a518818140 Search ${MACHINE}/drivers.conf instead of ${MACHINE_ARCH}/drivers.conf.
The previous commit is not completely.
2001-11-23 14:08:25 +00:00
brian
274cbc8854 Don't adjust_linklocal() when pulling a sockaddr out of an ncpaddr or
ncprange structure.

Don't write() the netmask for IPv6 sockaddrs to the routing socket if
the prefixlen is 128.

It seems that messages written to the routing socket with the scopeid
set for link local addresses are not understood.  Instead, we have to
put the scopeid in the 5th and 6th bytes of the address (see
adjust_linklocal() in ncpaddr.c).  I think this may be a bug in the
KAME implementation - it should really understand both forms.
2001-11-23 12:39:20 +00:00
bde
d2d81413e2 Fixed a buffer overrun. In my kernel configuration, tcp_syncache happens
to be followed by nfsnodehashtbl, so bzeroing callouts beyond the end of
tcp_syncache soon caused a null pointer panic when nfsnodehashtbl was
accessed.
2001-11-23 12:31:27 +00:00
sheldonh
700dcd9f73 Regen.
This file is now generated using src/tools/tools/pciid/mk_pci_vendors.pl,
which merges the Boemler and Heckenbach lists used for rev 1.2.

For now, mk_pci_vendors.pl is called with the -l option, which uses
the entry with the longer description where the same device or vendor
is found in both lists.

If it turns out that this causes to much "back-and-forth" in future
deltas, we can drop the use of the -l option.
2001-11-23 12:03:50 +00:00
brian
ffae273af1 Remove a bogus log_Id() decl 2001-11-23 11:15:35 +00:00
ache
968571c9f2 Add us-ascii_to_cp437 screenmap 2001-11-23 11:15:21 +00:00
brian
c382139ffc Fix usage for the log command 2001-11-23 11:07:43 +00:00
brian
798ae959dd Whitespace tweak 2001-11-23 10:46:28 +00:00