Commit graph

51136 commits

Author SHA1 Message Date
Mark Murray c8e1436029 Move $PERL/IO/Socket to the right place.
Reported by:	ache
2000-08-21 06:30:45 +00:00
Cameron Grant 513693be6c rework feeder sytem to allow feeders in klds
modify driver capability reporting format to list every audio format
seperately- required for above and because we could not previously indicate
that mono was unsupported.

there should be no functional impact.
2000-08-20 22:18:56 +00:00
Poul-Henning Kamp 3f54a085a6 Remove all traces of Julians DEVFS (incl from kern/subr_diskslice.c)
Remove old DEVFS support fields from dev_t.

  Make uid, gid & mode members of dev_t and set them in make_dev().

  Use correct uid, gid & mode in make_dev in disk minilayer.

  Add support for registering alias names for a dev_t using the
  new function make_dev_alias().  These will show up as symlinks
  in DEVFS.

  Use makedev() rather than make_dev() for MFSs magic devices to prevent
  DEVFS from noticing this abuse.

  Add a field for DEVFS inode number in dev_t.

  Add new DEVFS in fs/devfs.

  Add devfs cloning to:
        disk minilayer (ie: ad(4), sd(4), cd(4) etc etc)
        md(4), tun(4), bpf(4), fd(4)

  If DEVFS add -d flag to /sbin/inits args to make it mount devfs.

  Add commented out DEVFS to GENERIC
2000-08-20 21:34:39 +00:00
Hajimu UMEMOTO e0faad6850 Add UNIX domain socket feature to pccardd. This makes pccard
related PAO3/ports such as gxcardmon work.

Reviewed by:	imp
Obtained from:	PAO3
2000-08-20 16:16:57 +00:00
Nick Hibma 59e8700a14 Unbreak LINT. 2000-08-20 15:30:15 +00:00
Poul-Henning Kamp 4fe6d43729 Fix typo in last commit. 2000-08-20 11:46:39 +00:00
Mark Murray 091d5c90db Add missing perl directories. 2000-08-20 10:06:24 +00:00
Mark Murray 116d5cd80d Fixes and cleanups to the perl build; don't error out when NOCLEAN is
set and directories are being (re)made; build the procname ($0) stuff,
don't install miniperl.
(Miniperl needs a revisit).
2000-08-20 10:03:26 +00:00
Mark Murray 24ad19c546 Resolve conflicts. 2000-08-20 09:51:08 +00:00
Mark Murray 169c95233c This commit was generated by cvs2svn to compensate for changes in r64866,
which included commits to RCS files with non-trunk default branches.
2000-08-20 08:43:07 +00:00
Mark Murray 8947993a91 Vendor supplied patches to fix procname ($0) 2000-08-20 08:43:07 +00:00
Poul-Henning Kamp e39c53eda5 Centralize the canonical vop_access user/group/other check in vaccess().
Discussed with: bde
2000-08-20 08:36:26 +00:00
David Malone a893217258 A slight restyling of the previous fix and make the way the
reference count is initialised to zero to be more kosher.

Reviewed by:	Bosko Milekic <bmilekic@technokratis.com>
Spotted by:	jdp and Jake Burkholder <jburkhol@home.com> respectively
2000-08-20 00:02:48 +00:00
John Polstra 2550f17d1c Fix logic error which caused a page fault in kernel mode immediately
on boot up.

Submitted by:	Bosko Milekic <bmilekic@technokratis.com>
2000-08-19 23:50:41 +00:00
Bruce Evans 4153a3a323 Fixed a missing splx() in if_addmulti(). Was broken in rev.1.28. 2000-08-19 22:10:10 +00:00
Warner Losh c0c32537e3 Don't build pccard for now until I can resolve the linker interaction
issue that I'm seeing.
2000-08-19 19:26:03 +00:00
Warner Losh 9489712614 Work around a possible kernel linker bug. It appears that the data
elements defined by foo_if.c aren't sharable amoung modules (I'm
working on a bug report for it now), or else I don't understand
something.  It showed up as kobj functions not being called.

In any event, link in the pcic and pccard parts of the modules to work
around the problem for now.
2000-08-19 19:25:23 +00:00
Warner Losh c8ce264e17 o Move to using PCCARD_SOFTC(dev)
o fill in the size of the actual softc, rather than 1 in data structure
o minor debugging improvements.
2000-08-19 19:22:04 +00:00
Warner Losh 943e2bf6f6 o move to using PCIC_SOFTC(dev) to get the softc
o move pcic_deactivate into pcic_detach
o Better debug messages
2000-08-19 19:20:25 +00:00
Jordan K. Hubbard bc061f046b Remove obsolete entry about wdc hangs 2000-08-19 18:54:37 +00:00
Cameron Grant fa06efc7e6 fix SNDCTL_DSP_GETODELAY
PR:		kern/20340
Submitted by:	Takashi SHIRAI <shirai@nintendo.co.jp>
2000-08-19 18:29:46 +00:00
Cameron Grant 4e77c04865 don't complain about bad irqs if using a shared irq 2000-08-19 18:22:20 +00:00
Cameron Grant becc0678b7 Recognize ESS 1888 in Dell Latitude XPi
PR:		kern/18714
Submitted by:	Sean O'Connell <sean@stat.Duke.EDU>
2000-08-19 18:17:15 +00:00
Mark Murray 9f0c6741de Fix the arguments to [(1) (AKA test(1)). If the string being tested
by -n is nonexistant, then the following -d was misinterpreted with
a strange error. By putting double quotes (") around the argument,
we can be sure there is _something_ there that we can check a zero
length against.
2000-08-19 12:28:23 +00:00
Mark Murray 5f5780887e Silence -Wall; main()'s second argument was "unsigned char **",
and this had filtered down into too many other places.
2000-08-19 11:45:18 +00:00
Yoshihiro Takahashi ac1140b8d5 Disabled serial console. 2000-08-19 10:19:43 +00:00
David Malone a5c4836d39 Replace the mbuf external reference counting code with something
that should be better.

The old code counted references to mbuf clusters by using the offset
of the cluster from the start of memory allocated for mbufs and
clusters as an index into an array of chars, which did the reference
counting. If the external storage was not a cluster then reference
counting had to be done by the code using that external storage.

NetBSD's system of linked lists of mbufs was cosidered, but Alfred
felt it would have locking issues when the kernel was made more
SMP friendly.

The system implimented uses a pool of unions to track external
storage. The union contains an int for counting the references and
a pointer for forming a free list. The reference counts are
incremented and decremented atomically and so should be SMP friendly.
This system can track reference counts for any sort of external
storage.

Access to the reference counting stuff is now through macros defined
in mbuf.h, so it should be easier to make changes to the system in
the future.

The possibility of storing the reference count in one of the
referencing mbufs was considered, but was rejected 'cos it would
often leave extra mbufs allocated. Storing the reference count in
the cluster was also considered, but because the external storage
may not be a cluster this isn't an option.

The size of the pool of reference counters is available in the
stats provided by "netstat -m".

PR:		19866
Submitted by:	Bosko Milekic <bmilekic@dsuper.net>
Reviewed by:	alfred (glanced at by others on -net)
2000-08-19 08:32:59 +00:00
Warner Losh 546eb2b18e Call bus_generic_detach on pcic before deleting the children. This
has the side effect of detaching the children before I delete them.
When I put the last commits in a loop for loop it died after 5 or so
iterations.  After this change, I lasted 50 before I stopped the test.
2000-08-19 05:01:07 +00:00
Warner Losh 2a30553ef2 Remove pcic_isa_identify. I don't think it is needed.
Add pcic_detach which removes all of the pcic's children.

This lets me load/unload pcic multiple times w/o having multiple
instances of each slot attached to pcic.
2000-08-19 04:47:09 +00:00
Mike Smith 8ade16819d Increase the default NAPIC from 1 to 2 as a bandaid until we allocate
these dynamically (ie. typically you shouldn't have to set NAPIC at all)
2000-08-18 20:09:15 +00:00
Ruslan Ermilov c2a62388b7 Remove gratuitous free() call when we use special .SHELL target. 2000-08-18 10:41:37 +00:00
Sheldon Hearn af6e10cfa6 Remove an unwanted space from the "Shutting down daemon processes"
message.

PR:		20692
Submitted by:	Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
2000-08-18 10:34:11 +00:00
Poul-Henning Kamp 39f70682ae Introduce vop_stdinactive() and make it the default if no vop_inactive
is declared.

Sort and prune a few vop_op[].
2000-08-18 10:01:02 +00:00
Sheldon Hearn 81703d7fac Fix bug in rev 1.54; the terminating `;;' for the ibcs2_enable=YES
case got lost.
2000-08-18 09:43:18 +00:00
Sheldon Hearn 26007eb801 Document ibcs2_loaders and provide a default for it in
etc/defaults/rc.conf .
2000-08-18 09:37:50 +00:00
KATO Takenori a19d469b8a Merged from sys/i386/i386/machdep.c revision 1.402. 2000-08-18 09:22:01 +00:00
Sheldon Hearn d13d9d7151 (forced commit)
The previous change should have been attributed to:

PR:		20692
Submitted by:	Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
2000-08-18 08:53:26 +00:00
Sheldon Hearn 0d077fc6b2 The output of this script got a little broken in rev 1.225, with
the output for the linux_enable and svr4_enable stuff "floating
in the middle of nowhere".

Give them their own section, called "additional ABI support".
2000-08-18 08:11:23 +00:00
Sheldon Hearn b53cf64a81 Don't rely on a shell scripts to do the simple job of loading
kernel modules for ibcs2_enable and svr4_enable.

Don't rely on a shell script to do the neglibly less simple
job of loading a kernel module and running one command for
linux_enable.

These shell scripts are going away.
2000-08-18 08:07:02 +00:00
David Malone 432b948f76 The slip driver used to allocate a mbuf cluster without attaching
it to a mbuf. This patch makes it attach it to mbuf.  This patch
is in preperation for Bosko Milekic's mbuf external reference
counting patches.

PR:		19866 (first stage)
Submitted by:	Ian Dowse <iedowse@maths.tcd.ie>
Reviewed by:	alfred
2000-08-18 08:02:31 +00:00
Brian Somers fb8ee6537c Fix the urio and ugen devices (I meant unit2minor, not minor2unit)
Problem pointed out by: markm
2000-08-18 07:01:19 +00:00
Brian Somers f8853f21dc Add a PPP_NOSUID hook 2000-08-18 00:09:46 +00:00
Brian Somers 68602c3ee0 Make -DNOSUID (or -DPPP_NOSUID) possible to build ppp without SUID
capabilities.
2000-08-18 00:01:44 +00:00
Brian Somers c1a6c9e21c Warn that the ``alias'' command is depricated.
We still process it for now though.
2000-08-18 00:01:30 +00:00
Archie Cobbs a366213452 (forced commit: previous commit message was truncated)
Fix two bugs:

- The ftpPassive() function seemed to think that the PASV command
  is a toggle. This is not true (however, the ftp(1) "pass" command
  is indeed a toggle). So no need to emit a "PASV" command each time
  this function is called; that's handled by ftp_file_op().

- check_passive() is supposed to check if FTP_PASSIVE_MODE is defined,
  and if so, override ftpPassive(). However, it was overriding
  ftpPassive() even if FTP_PASSIVE_MODE was not defined, rendering
  calls to the ftpPassive() function completely ineffectual.

Also, clarify the relationship between ftpPassive() and the
FTP_PASSIVE_MODE environment variable in the man page.
2000-08-17 23:51:47 +00:00
Archie Cobbs c387a49c7c Fix two bugs:
- The ftpPassive()
2000-08-17 23:46:13 +00:00
David Malone 81e309b71b Allow people to set the default boot slice with boot0cfg.
PR:		18923
Submitted by:	Ian Dowse <iedowse@maths.tcd.ie>
Reviewed by:	jhb
Approved by:	rnordier
2000-08-17 18:42:13 +00:00
Nick Sayer 83e6c3a401 Remove the warning about recording on the Solo. The workarounds appear
to clear up the hwptr problems.
2000-08-17 18:30:59 +00:00
Sheldon Hearn 2087b4533a Remove extraneous arguments to the Os (operating system) and Nm
(name) macros.

Do not terminate the cross-reference list in the SEE ALSO section
with a period.
2000-08-17 16:57:31 +00:00
Joerg Wunsch 22c68d23f5 Implement the GDB counterpart to use hardware watchpoints in connection
with Brian's kernel support for i386 debug registers.  This makes
watchpoints actually usable for real-life problems.  Note: you can
only set watchpoints on 1-, 2- or 4-byte locations, gdb automatically
falls back to [sloooow] software watchpoints when attempting to use
them on variables which don't fit into this category.  To circumvent
this, one can use the following hack:

watch *(int *)0x<some address>

David O'Brien is IMHO considering to get this fully integrated into the
official GDB, but as long as we've got the i386/* files sitting around
in our private FreeBSD tree here, the feature can now be tested more
extensively, so i'm committing this for the time being.

This work has been done in order to debug a tix toolkit problem, thus
it has been sponsored by teh Deutsche Post AG.

Reviewed by:	bsd (not the operating system, but Brian :-)
2000-08-17 16:27:26 +00:00