Commit Graph

31541 Commits

Author SHA1 Message Date
imp
ae94780f2c o use strncpy safely
o Only allow options and domain name to be set when we aren't running
  setuid.

Obtained from: OpenBSD
1998-09-14 21:13:06 +00:00
jdp
b100b6ea82 Bring core-regset.c back to life. It is needed for handling ELF
core dumps.
1998-09-14 20:53:47 +00:00
abial
278d2cda74 Make use of the new 'dm' utility instead of standard 'dmesg'. 1998-09-14 20:39:34 +00:00
imp
d54a12dd1f Add reallocf to the library. This function is simliar to realloc, but
when it returns NULL to indicate failure, it will also free the memory
that was passed to it, if that was non-null.

This does not change the semantics of realloc.

A second commit will be done to commit the conversion of those places in
the code that can safely use this to avoid memory leaks when confronted
with low memory situations.

Beaten-to-death-but-finally-approved-in: -current
1998-09-14 20:34:34 +00:00
abial
ca486eae4a Since we have a sysctl 'machdep.msgbuf' now, let's make use of it. 1998-09-14 20:33:43 +00:00
jdp
c3165880f6 Add generic defines ELF_ARCH, ELF_CLASS, and ELF_DATA. These give
the relevant characteristics of the native machine, for building
and checking Elf_Ehdr structures.

Add structures to represent ELF "note" headers.  Add defines for the
note types used in ELF core files.
1998-09-14 20:30:13 +00:00
obrien
1f8a10e630 Too late in the 3.0-game to deal with a setgid /usr/bin/man. 1998-09-14 20:05:46 +00:00
sos
8397655514 Remove the SLICE code.
This clearly needs alot more thought, and we dont need this to hunt
us down in 3.0-RELEASE.
1998-09-14 19:56:42 +00:00
jkh
5468fdfd0c Use a more reasonable default umask in case the root umask is too
fascist.
PR:		4014
1998-09-14 19:22:59 +00:00
jkh
1ff461fca5 Fix printf warnings and add a few casts.
PR:		7560
Submitted by:	Stefan Eggers <seggers@semyam.dinoco.de>
1998-09-14 19:14:11 +00:00
jkh
fd8eed77ee Until lkm and mdec gets populated again by some other means, do it
here.
Forgotten by:	jkh
Submitted by:	jhay
1998-09-14 18:42:59 +00:00
markm
2167da5c0e Add a link perl --> perl5.00502
Asked-for-by: Asami-San (for ports)
1998-09-14 18:34:19 +00:00
msmith
b754ff556e Add extra bootinfo fields for the three-stage bootloader; the end of the
loaded kernel aggregate, a pointer to the kernel environment data and
a pointer to the preloaded module metadata.
1998-09-14 18:32:46 +00:00
msmith
db34287578 Add constants associated with preloaded kernel modules. 1998-09-14 18:31:19 +00:00
msmith
97d5b83076 Resynch with working sources before BTX integration.
- Use format-independant module allocator.
 - Conditionalise ISA PnP support.
 - Simplify PnP enumerator interface.
 - Improve module/object searching.
 - Add missing depend/install targets in BTX makefiles.
 - Pass the kernel environment and module data in extended bootinfo fields.
 - Add a pointer to the end of the kernel + modules in bootinfo.
 - Fix parsing of old-style kernel arguments.
1998-09-14 18:27:06 +00:00
obrien
34e8f6424c Wanted to set uname to root, not gname. 1998-09-14 18:19:45 +00:00
abial
5a678e68e9 This implements retrieving the contents of message buffer via sysctl(3)
as "machdep.msgbuf". It's needed in case of using stripped kernels, where
normal dmesg (which has to use kvm) doesn't work.

The buffer is unwound, meaning that the data will be linear, possibly
with some leading NULLs.

Reviewed by:	Jordan K. Hubbard <jkh@freebsd.org>
1998-09-14 11:47:40 +00:00
jkh
043007b72d Nuke gratuitous use of OBJFORMAT
Submitted by:	jhay
1998-09-14 11:39:38 +00:00
kato
4ef27135d6 Sync with sys/i386/isa/syscons.c revision 1.277. 1998-09-14 11:37:58 +00:00
kato
aed2ea73f9 Sync with sys/i386/isa/if_ed.c and sio.c revisions 1.145 and 1.215,
respectively.
1998-09-14 11:37:29 +00:00
jkh
a4969a17ca Teach crunch about an elf/a.out world.
Submitted by:	jhay
1998-09-14 11:35:32 +00:00
jkh
e7f0dcd137 Assume ELF-style symbol names now.
Submitted by:	jhay
1998-09-14 11:33:38 +00:00
jkh
2f4f9d96e3 Use -aout for kernels right now. This will have to be changed back if
the kernel goes ELF.
1998-09-14 11:32:52 +00:00
jkh
6b2e341178 Decouple genassym flags from CFLAGS.
Submitted by:	jhay
1998-09-14 11:32:17 +00:00
jkh
01222bd1c5 Boy, Mr. Obrien is committing in his sleep again; there is also no
user named wheel. :)
1998-09-14 11:14:11 +00:00
jkh
798dcd24b5 There is no group name of "root"; assume man was what was intended. 1998-09-14 10:52:30 +00:00
kato
820f277752 Sync with sys/i386/conf/majors.i386 revision 1.48. 1998-09-14 10:43:26 +00:00
rnordier
71b1c34d38 Add BTX startup/interface code. 1998-09-14 10:37:00 +00:00
des
efe6cafb5d Don't require an executable file name. If no executable image is
specified, use /proc/<pid>/file. Document it.

PR:		bin/7915
Suggested-By:	Wolfram Schneider <wosch@panke.de.freebsd.org>
1998-09-14 10:09:30 +00:00
obrien
3e5a3a2a28 Add ${RM} for compatability with SunOS.
Many use ${RM} in their ``clean'' targets.
1998-09-14 09:22:04 +00:00
sos
b3bc5d421a Make /dev/vga a softlink to /dev/ttyv0 under DEVFS using /etc/rc.devfs
Remove the hack from syscons that added a /dev/vga node in DEVFS
it broke root acces on ttyv0 because dev_mkdb screwed up.
1998-09-14 09:14:46 +00:00
obrien
7faa559f34 Change file ownership from bin.bin to root.wheel. 1998-09-14 08:34:45 +00:00
dfr
788959f35b Portability fixes when sizeof(int) != sizeof(long). 1998-09-14 08:32:20 +00:00
obrien
dd529a7ea9 Support our "nfsv2" option. (originally added to old amd/amd/host_opts.c
rev 1.5)
The "nfsv2" option is equivant to "proto=udp,vers=2".  It is debatable
whether NFS v2 should force "proto=udp" but I figure that is what most people
will expect.  Note, I can get the new Amd to mount a 2.2-STABLE box with
"proto=tcp,vers=2".  RFC 1094 does not disallow such behavior.
1998-09-14 08:20:37 +00:00
jdp
70bb8503aa Add provisions for variant core dump file formats, depending on the
object format of the executable being dumped.  This is the first
step toward producing ELF core dumps in the proper format.  I will
commit the code to generate the ELF core dumps Real Soon Now.  In
the meantime, ELF executables won't dump core at all.  That is
probably no less useful than dumping a.out-style core dumps as they
have done until now.

Submitted by:	Alex <garbanzo@hooked.net> (with very minor changes by me)
1998-09-14 05:36:51 +00:00
brian
f69ac0c386 Gasp ! Bitten by the wonders of diff/patch ! Now's your chance to
say ``I told you so'' Andrey !
Move the Id keyword to the right Makefile
1998-09-13 23:14:20 +00:00
brian
599fa37c05 Add Id keyword 1998-09-13 23:11:13 +00:00
eivind
27ef9ec914 Support PnP compatibility IDs. This allow e.g. the ed driver to pick
up any PnP NE2000 compatible card, instead of forcing us to always
update ID lists.

Submitted by:	Ugo Paternostro <paterno@dsi.unifi.it>
1998-09-13 22:15:44 +00:00
wosch
72ee84b6f2 `make clean' depend on the inclunde file bsd.dep.mk 1998-09-13 20:57:56 +00:00
nsouch
1f8216f626 invalid printf call fixed -> compile time warning removed 1998-09-13 20:57:06 +00:00
nsouch
e14acb20b3 unused function removed (byte_1284_inbyte) 1998-09-13 20:44:55 +00:00
luoqi
d4dfc59a3f Fix a cut 'n paste mistake. 1998-09-13 20:32:45 +00:00
obrien
80a55f045b Port #s 1-599 checked agaist Robert Watson <robert@cyrus.watson.org>'s
formated IANA Port assignment list.

Prodded from:	freebsd-current list
1998-09-13 20:22:19 +00:00
imp
d66621d6c8 Fix minor style bugs noticed by the Bruce Filter.[tm]
Bruce-Filter-By: bde
1998-09-13 19:54:54 +00:00
tegge
c82e121ce7 Be more consistent with handling of quote mark control character.
Don't output double-quotes inside variable expansion/arithmetic
expansion region in here-documents.  When leaving the arithmetic
expansion syntax mode, adjust the dblquote flag according to
previous syntax, in order to avoid splitting of quoted variables.
1998-09-13 19:24:57 +00:00
nsouch
da907f2515 Lowlevel i/o routines for ZIP+ support. Mostly written with microseq
mechanism
1998-09-13 18:28:15 +00:00
nsouch
733f1ca747 ppbus enhanced to support ZIP+ : microseq improved 1998-09-13 18:26:44 +00:00
nsouch
5cc33ee728 ppbus enhanced to support ZIP+ : 1284 code added, microseq improved +
some bugs corrected in vpoio.
1998-09-13 18:26:26 +00:00
nsouch
a35f9a9ecf add immio.c for ZIP+ support 1998-09-13 18:24:38 +00:00
phk
32c7c831a6 Use -R argument to cvs, this lets us work with a read-only repository,
at least to the extent that cvs bugs allow us to.
1998-09-13 17:20:57 +00:00