Commit Graph

10792 Commits

Author SHA1 Message Date
Poul-Henning Kamp
18e6fe0250 Add new-style sysctl for KERN_FILE here. 1995-11-14 08:58:35 +00:00
Bruce Evans
b3e24f9ce9 Changed the first (name) arg of MOD_DEV(), MOD_EXEC() and MOD_MISC()
from a string to an identifier so that it can be used to generate
declarations and strings.  It's much easier to stringize an identifier
than to identifize a string.  A uniform naming scheme must be used
for the automatically generated things to apply.  This is a feature.

Used the module identifer to generate prototypes for the module load,
unload and stat functions.  Removed the few prototypes for these that
already existed.

Used the module identifier to generate a unique struct tag in MOD_DEV().
This should probably be done for all the MOD_*() macros.

Moved the trailing semicolon from the MOD_*() macro definitions to the
macro invocations that didn't already (bogusly) have it.

Staticized the module load and unload functions.

Added function return types for the module load, unload and stat functions.

lkm/ibcs2/ibcs2.c:
Included <sys/sysproto.h> to get everything prototyped.
Cleaned up #includes.

lkm/ibcs2/ipfw.c:
Cleaned up #includes.

lkm/linux/linux.c:
The module name had to change from "linux_emulator" to "linux_mod" to
be automatically generated.
Cleaned up #includes.

lkm/syscons/*/*_saver.c:
Completed delcarations of function pointers.

sys/i386/isa/atapi.c:
The module name had to change from "atapi" to "atapi_mod" to be
automatically generated.

sys/i386/isa/wcd.c:
Used the fixed MOD_DEV().  This module has two devices and expanded the
macro in the source instead of fixing it.
The module names had to change from "wcd" and "rwcd" to "wcd_mod" and
"rwcd_mod" to be automatically generated.

sys/pccard/pcic.c:
The module name had to change from "pcic" to "pcic_mod" to be
automatically generated.
1995-11-14 07:35:57 +00:00
Mark Murray
a2c9d3c290 Fix stupid typo.
Pointed out by: Mark Valentine
1995-11-14 06:24:00 +00:00
Bruce Evans
e4f937b07b Included <sys/sysproto.h> to get central declarations for syscall args
structs and prototypes for syscalls.

Ifdefed duplicated decentralized declarations of args structs.  It's
convenient to have this visible but they are hard to maintain.  Some
are already different from the central declarations.  4.4lite2 puts
them in comments in the function headers but I wanted to avoid the
large changes for that.
1995-11-14 05:16:37 +00:00
Peter Wemm
8d7d5ceaa5 A fix for the "cd -" coredump on a brand new /bin/sh. The problem was
noticed on a NetBSD bugs mailing list but this is entirely my own work.

Inspired by: Scott Reynolds <scottr@plexus.com>, for NetBSD
1995-11-14 01:04:52 +00:00
Ollivier Robert
ecd506c811 Update about the latest news about 2.1. 1995-11-13 22:53:21 +00:00
Peter Wemm
fae92a3f85 Enhance the likelyhood that IPX over ppp will actually work.. :-)
Note that pppd doesn't have an ipxcp.c module for negotiating and confuguring
IPX at startup, but after these mods, you can manually ifconfig IPX addresses
on the interface and it will probably work.. :-)
1995-11-13 22:09:39 +00:00
Mark Murray
cceb2049b4 OOps, nearly missed this bit. Add the call to rndcontrol to set the
chosen interrupts for the entropy gathering  in /dev/random.
1995-11-13 21:33:04 +00:00
Mark Murray
9021a50fba Put in a user-configurable variable to allow root to select interrupts to be
used in the entropy-gathering for /dev/random.
1995-11-13 21:18:24 +00:00
Julian Elischer
789fb00734 Submitted by: John Hay <jhay@mikom.csir.co.za>
Here is some patches to IPXrouted. It does the following:

Always use the sap port in the destination address of sap broadcasts.
Clear the host part of network addresses so that routes will really
be deleted in the kernel.
1995-11-13 21:01:36 +00:00
Mark Murray
12e4d1a6e7 BBild libgmp from the sources already in ../libmp. 1995-11-13 19:13:19 +00:00
Mark Murray
1191aefe58 Add libgmp. 1995-11-13 19:12:10 +00:00
Bruce Evans
ebbcda3ef4 Fixed getdirentries() on nfs mounted msdosfs's. No cookies were returned
for certain common combinations of directory sizes, cluster sizes, and i/o
sizes (e.g., 4K, 4K, and 4K).  The fix in rev. 1.21 was incomplete.

Reviewed by:	dfr
Obtained from:	party from NetBSD
1995-11-13 18:47:40 +00:00
Mark Murray
4accbdcc20 Make the tests work. libmp and libgmp must be installed for this
to work.
1995-11-13 18:42:24 +00:00
Mark Murray
2becfa2b3c Build the TeXinfo manual 1995-11-13 18:40:45 +00:00
Mark Murray
638ddb0f0e 1) Add the doc/subdirectory - this will get gmp.texi installed
2) Clean up the Makefile - libgmp is coming!
1995-11-13 18:39:23 +00:00
Garrett Wollman
a3d78181c6 Correctly spell Phnom Penh for tzsetup. 1995-11-13 16:52:39 +00:00
Poul-Henning Kamp
deae269ab1 Try to make my new scheme work more along the lines of the manual.
There are still some gray areas here and there.
1995-11-13 13:54:09 +00:00
David Greenman
f81b859263 Fixed up a comment and removed some #if 0'd code. 1995-11-13 10:53:38 +00:00
David Greenman
c2f9f36bae Use kmem_alloc_pageable/kmem_free to allocate memory instead of individual
VM map functions.
1995-11-13 10:45:22 +00:00
Bruce Evans
fa59f03f50 Added bogus casts to avoid compiler warnings. 1995-11-13 09:03:30 +00:00
Bruce Evans
ec9e4d05a0 Fixed parentheses in macros. 1995-11-13 08:58:06 +00:00
Bruce Evans
e7b632b588 Replaced nosys() by lkm_nullcmd(). 1995-11-13 08:52:08 +00:00
Bruce Evans
cc286f2399 Fixed the type of yet another timeout function.
Fixed the type of pcic_unload().

Replaced nosys() by lkm_nullcmd() in pcic_mod() and in a misplaced
comment about the lkm interface.
1995-11-13 08:39:44 +00:00
Ollivier Robert
7e2e1c064b Update the FAQ.
Is there anyone who could give me an account on a faster-than-20-bytes-per
second line to the US (not EBONE) ? I'm having too many problems connecting
to freefall to do commits... It would be better if it could be a ssh-protected
account, that would give a strong authentication.

The RENATER line (and thus EBONE) is almost dead for remote login after
10AM european time... :-(

Thanks in advance.
1995-11-13 08:24:59 +00:00
Bruce Evans
c8cbd8682f Fixed a cast in olseek().
Fixed confusing order of declarations of getvnode()'s args.
1995-11-13 08:22:21 +00:00
Bruce Evans
971e42cead Fixed the type of a function pointer in struct execsw. 1995-11-13 07:44:03 +00:00
Bruce Evans
0ea3482342 Replaced nosys() by lkm_nullcmd(). Always call lkm load/unload/stat
functions instead of skipping the call if the function is nosys().
nosys() returned the wrong value as well as having the wrong type.
1995-11-13 07:19:10 +00:00
Jordan K. Hubbard
6a79936e89 Add Peter Wemm to core team. 1995-11-13 05:14:01 +00:00
Jordan K. Hubbard
1c0aaa3778 More helpful error messages. 1995-11-12 20:47:15 +00:00
Jordan K. Hubbard
e5773692c8 Put HTML files into data/ instead of htdocs/ 1995-11-12 20:39:18 +00:00
Poul-Henning Kamp
ae0eb976c5 The entire sysctl callback to read/write version. I havn't tested this as
much as I'd like to, but the malloc stunt I tried for an interim for
sure does worse.
Now we can read and write from any kind of address-space, not only
user and kernel, using callbacks.
This may be over-generalization for now, but it's actually simpler.
1995-11-12 19:52:09 +00:00
Mark Murray
3fcee20fa4 Removed reference to missing libmp in a comment. We have GNU MP now. 1995-11-12 19:32:24 +00:00
Mark Murray
985200a17e Removed reference to missing mp.h in comment. We have GNU MP now. 1995-11-12 19:29:08 +00:00
Peter Wemm
b048c73588 Move the setlogin() call a little earlier.. It was being done in the child
process - which would be no longer allowed if the setlogin() changes go
through.  Now the parent (the session leader, when started by inetd) does it.
1995-11-12 18:31:23 +00:00
Mark Murray
a07ffb0cda Add /dev/random hooks to the key input routines for pcvt. This allows
the scancodes on a PCVT machine to be used as stochastic input as well
as SysCons..
Reviewed by:	Joerg Wunsch
1995-11-12 17:02:45 +00:00
Mark Murray
58cf3c925d Add libmp 1995-11-12 15:03:50 +00:00
Mark Murray
43f0bbcd01 BMake the multiprecision library, and fix as many of the -Wall warnings
as is now feasable.
1995-11-12 14:55:48 +00:00
Mark Murray
ae82e96f8c GNU MP (Multiprecision) library. This is needed by secure RPC (being
done by Bill Paul) and various other BSD programs.
Obtained from:FSF
1995-11-12 14:40:41 +00:00
Jordan K. Hubbard
4540b99acc Some additional cosmetic tweaks. 1995-11-12 11:12:25 +00:00
Jordan K. Hubbard
24bf38d797 Initialize ld.so.hints if necessary. 1995-11-12 11:02:43 +00:00
David Greenman
de8583ced0 Brought in the setattr call support from Lite-2 so that more correct error
returns are provided.

Obtained from:	4.4BSD-Lite2
1995-11-12 10:36:19 +00:00
David Greenman
ba14c32725 Fix isoilk hang caused by not checking for read-onlyness in several places.
The fix for this in Lite-2 is more complete, but these quick hacks of mine
are safer for now. I plan to integrate the additional Lite-2 stuff at some
later time. Should completely fix PR810.
1995-11-12 10:16:53 +00:00
David Greenman
bea41bcf3a Moved vm_map_lock call to inside the splhigh protection in vm_map_find().
This closes a probably rare but nonetheless real window that would result
in a process hanging or the system panicing.

Reviewed by:	dyson, davidg
Submitted by:	kato@eclogite.eps.nagoya-u.ac.jp (KATO Takenori)
1995-11-12 08:58:58 +00:00
Mark Murray
e7ade28530 Bring Jordan's 2.1 dependancy fixes into current.
Incorporate some dependancy fixes from John Hay
Submitted by:	jkh, John Hay<jhay@mikom.csir.co.za>
1995-11-12 08:13:23 +00:00
Jordan K. Hubbard
bfa80732bd Make editor start on right screen for anonFTP setup.
Don't clobber mediaDevice if post-configuring networking from CDROM.
1995-11-12 07:27:58 +00:00
Bruce Evans
bc2799011f Oops, forgot the following log message in the previous commit:
Included <sys/sysproto.h> to get central declarations for syscall args
structs and prototypes for syscalls.

Ifdefed duplicated decentralized declarations of args structs.  It's
convenient to have this visible but they are hard to maintain.  Some
are already different from the central declarations.  4.4lite2 puts
them in comments in the function headers but I wanted to avoid the
large changes for that.
1995-11-12 07:10:47 +00:00
Bruce Evans
f35a53bf11 Restored the (buggy) historical behaviour of getdomainname().
Negative name lengths for getdomainname() and setdomainname() were
converted to large positive ones by misdeclaring the args struct.
1995-11-12 07:04:30 +00:00
Bruce Evans
d2d3e8751c Included <sys/sysproto.h> to get central declarations for syscall args
structs and prototypes for syscalls.

Ifdefed duplicated decentralized declarations of args structs.  It's
convenient to have this visible but they are hard to maintain.  Some
are already different from the central declarations.  4.4lite2 puts
them in comments in the function headers but I wanted to avoid the
large changes for that.
1995-11-12 06:43:28 +00:00
Bruce Evans
2f1ba63ba8 Reviewed by:
Submitted by:
Obtained from:
1995-11-12 06:42:10 +00:00