]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoAdding infrastructure for harware notes
Sebastien Gioria [Mon, 9 Sep 2002 22:09:48 +0000 (22:09 +0000)]
Adding infrastructure for harware notes

21 years agoContinuing translation
Sebastien Gioria [Mon, 9 Sep 2002 21:21:48 +0000 (21:21 +0000)]
Continuing translation

21 years agoFix minor off-by-one error.
Bruce A. Mah [Mon, 9 Sep 2002 21:21:34 +0000 (21:21 +0000)]
Fix minor off-by-one error.

Submitted by: jhb

21 years agoMake pkg_install go to the right place for 4.6-RELEASE and 4.6.2-RELEASE
Bruce A. Mah [Mon, 9 Sep 2002 19:44:17 +0000 (19:44 +0000)]
Make pkg_install go to the right place for 4.6-RELEASE and 4.6.2-RELEASE
packages.

Pointed out by: obrien
Reviewed by: jhb

21 years agoIntroduce notion of the package tools revision and allow to wrap all tools
Maxim Sobolev [Mon, 9 Sep 2002 19:43:30 +0000 (19:43 +0000)]
Introduce notion of the package tools revision and allow to wrap all tools
included into pkg_install according to the content of /var/db/pkg_install.conf
file, which specifies version and alternative location of the tools. Format
of the said file is very simple: one line which specifies revision of the
alternative version of the tools and their location separated by space,
i.e.:

20030102 /usr/local/sbin

This would allow bsd.port.mk to install and use up to date version of tools
on older system from ports.

Also add new `-P' flag to pkg_info, which causes it to report currently
installed version of package tools.

Discussed with: will

21 years agoIn reference to previous commit: use err(3).
Jacques Vidrine [Mon, 9 Sep 2002 18:51:59 +0000 (18:51 +0000)]
In reference to previous commit: use err(3).

Noticed by: bde

21 years agoMake sure a $PIR table header has a valid length before accepting the table
John Baldwin [Mon, 9 Sep 2002 18:24:35 +0000 (18:24 +0000)]
Make sure a $PIR table header has a valid length before accepting the table
as valid.

Submitted by: Michal Mertl <mime@traveller.cz>

21 years agoContinuing translation
Sebastien Gioria [Mon, 9 Sep 2002 17:59:39 +0000 (17:59 +0000)]
Continuing translation

21 years agoAdd tcl81 that was missing.
Akinori MUSHA [Mon, 9 Sep 2002 17:53:41 +0000 (17:53 +0000)]
Add tcl81 that was missing.

21 years agoQuiet another annoying warning.
Garrett Wollman [Mon, 9 Sep 2002 17:44:08 +0000 (17:44 +0000)]
Quiet another annoying warning.

21 years agoadd missing \n to printf
Bernd Walter [Mon, 9 Sep 2002 17:39:48 +0000 (17:39 +0000)]
add missing \n to printf

Approved by: gallatin (mentor)

21 years agoAdd security.mac.mmap_revocation, a flag indicating whether we
Robert Watson [Mon, 9 Sep 2002 17:12:24 +0000 (17:12 +0000)]
Add security.mac.mmap_revocation, a flag indicating whether we
should revoke access to memory maps on a process label change.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

21 years agoMinor code sync to MAC tree: push Giant locking up from
Robert Watson [Mon, 9 Sep 2002 17:10:16 +0000 (17:10 +0000)]
Minor code sync to MAC tree: push Giant locking up from
mac_cred_mmapped_drop_perms() to the caller.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

21 years agosshd didn't handle actual size of struct sockaddr correctly,
Hajimu UMEMOTO [Mon, 9 Sep 2002 16:49:11 +0000 (16:49 +0000)]
sshd didn't handle actual size of struct sockaddr correctly,
and did copy it as long as just size of struct sockaddr.  So,
If connection is via IPv6, sshd didn't log hostname into utmp
correctly.
This problem occured only under FreeBSD because of our hack.
However, this is potential problem of OpenSSH-portable, and
they agreed to fix this.
Though, there is no fixed version of OpenSSH-portable available
yet, since this problem is serious for IPv6 users, I commit the
fix.

Reported by: many people
Reviewed by: current@ and stable@ (no objection)
MFC after: 3 days

21 years agoBack out previous commit. I was a bit overzealous: the fd_set size is
Jacques Vidrine [Mon, 9 Sep 2002 16:43:18 +0000 (16:43 +0000)]
Back out previous commit.  I was a bit overzealous: the fd_set size is
calculated dynamically here.

21 years agoCheck for FD_SET overrun.
Jacques Vidrine [Mon, 9 Sep 2002 16:21:10 +0000 (16:21 +0000)]
Check for FD_SET overrun.

21 years agoCheck for FD_SET overrun.
Jacques Vidrine [Mon, 9 Sep 2002 16:14:03 +0000 (16:14 +0000)]
Check for FD_SET overrun.

21 years agoCheck for FD_SET overrun.
Jacques Vidrine [Mon, 9 Sep 2002 16:06:41 +0000 (16:06 +0000)]
Check for FD_SET overrun.

21 years agoCheck for FD_SET overrun.
Jacques Vidrine [Mon, 9 Sep 2002 15:58:08 +0000 (15:58 +0000)]
Check for FD_SET overrun.

21 years ago - Fix iBCS2 emulation of COFF files that have multiple libraries
Robert Drehmel [Mon, 9 Sep 2002 15:51:10 +0000 (15:51 +0000)]
 - Fix iBCS2 emulation of COFF files that have multiple libraries
   in their library (STYP_LIB) section.
 - Attempt to make the code which calculates the next entry and
   string offsets look clearer.

PR: kern/42580
Tested by: Olaf Klein <ok@adimus.de> (on 4.7-PRERELEASE)

21 years agoCheck for FD_SET overruns.
Jacques Vidrine [Mon, 9 Sep 2002 15:45:28 +0000 (15:45 +0000)]
Check for FD_SET overruns.

Obtained from: NetBSD

21 years agoKill debugging line occasionally slipped into rev.1.3.
Maxim Sobolev [Mon, 9 Sep 2002 11:13:00 +0000 (11:13 +0000)]
Kill debugging line occasionally slipped into rev.1.3.

Submitted by: reg

21 years agoRemove the second lnc line. Move CD9660 to the third floppy to make
John Hay [Mon, 9 Sep 2002 11:01:32 +0000 (11:01 +0000)]
Remove the second lnc line. Move CD9660 to the third floppy to make
mfsroot.flp fit again.

21 years agoSince from now on encap_input() also catches IPPROTO_MOBILE and IPPROTO_GRE
Maxim Sobolev [Mon, 9 Sep 2002 09:36:47 +0000 (09:36 +0000)]
Since from now on encap_input() also catches IPPROTO_MOBILE and IPPROTO_GRE
packets in addition to IPPROTO_IPV4 and IPPROTO_IPV6, explicitly specify
IPPROTO_IPV4 or IPPROTO_IPV6 instead of -1 when calling encap_attach().

MFC after: 28 days
(along with other if_gre changes)

21 years ago- Do not swap out a process if it is in creation. The process may have no
Seigo Tanimura [Mon, 9 Sep 2002 09:05:06 +0000 (09:05 +0000)]
- Do not swap out a process if it is in creation.  The process may have no
  address space yet.

- Check whether a process is a system process prior to dereferencing
  its p_vmspace.  Aio assumes that only the curthread switches the address
  space of a system process.

21 years ago#include "opt_bla.h" goes first says Bruce.
Poul-Henning Kamp [Mon, 9 Sep 2002 08:44:52 +0000 (08:44 +0000)]
#include "opt_bla.h" goes first says Bruce.

21 years agoAdd `device gre'.
Maxim Sobolev [Mon, 9 Sep 2002 08:31:04 +0000 (08:31 +0000)]
Add `device gre'.

Reminded by:    bde
MFC after:      28 days
(along with other if_gre stuff)

21 years agoPrevent namespace pollution in use-land by putting everything used only in
Maxim Sobolev [Mon, 9 Sep 2002 08:25:00 +0000 (08:25 +0000)]
Prevent namespace pollution in use-land by putting everything used only in
kernel (softc and such) under #ifdef _KERNEL.

Submitted by:   bde

21 years agoVastly decrease amount of memory comsumed in the case when we have to read
Maxim Sobolev [Mon, 9 Sep 2002 08:00:32 +0000 (08:00 +0000)]
Vastly decrease amount of memory comsumed in the case when we have to read
ports/INDEX, by allocating eactly amount of memory necessary for storing
each particular entry, insdead of 4K per entry (more than 7000 entries -
go figure). Memory consumption went down to some 500K from some 30M.

21 years agoRemove the typedef of wctype_t from this header; we don't support the
Tim J. Robbins [Mon, 9 Sep 2002 07:17:55 +0000 (07:17 +0000)]
Remove the typedef of wctype_t from this header; we don't support the
XSI mistake of making everything from <wctype.h> visible here.
If we did choose to support it, we could just #include <wctype.h>.

21 years agoBump __FreeBSD_cc_version for gcc 3.1-prerelease -> 3.2.1-snap upgrade.
David E. O'Brien [Mon, 9 Sep 2002 06:56:29 +0000 (06:56 +0000)]
Bump __FreeBSD_cc_version for gcc 3.1-prerelease -> 3.2.1-snap upgrade.

21 years agoUse --fast-read mode to extract metadata from package file. Since metadata
Maxim Sobolev [Mon, 9 Sep 2002 06:06:09 +0000 (06:06 +0000)]
Use --fast-read mode to extract metadata from package file. Since metadata
files are located at the very beginning of the package, this patch in
conjuction with latest tar(1) --fast-mode fix greatly speeds up pkg_info(1)
operation on package files.

MFC after: 1 week

21 years agoIn the --fast-read mode send SIGTERM to decompressor once we have extracted
Maxim Sobolev [Mon, 9 Sep 2002 06:00:16 +0000 (06:00 +0000)]
In the --fast-read mode send SIGTERM to decompressor once we have extracted
all files we have been asked for. This vastly improves performance of
pkg_add(1), because usually it only extract +CONTENTS file in --fast-read
mode, checks it and only then extracts full content of tarball in normal
mode. Without this patch, it have had to decompress the tarball twice,
effectively doubling consumed CPU time.

MFC after: 1 week

21 years agoSolve the <runetype.h> pollution problem by disabling inline
Mike Barcroft [Mon, 9 Sep 2002 05:38:05 +0000 (05:38 +0000)]
Solve the <runetype.h> pollution problem by disabling inline
optimizations when a standard has been requested, except when the
inline optimizations are also specifically requested.

21 years agoRemove duplicate entry. Since we call things cbb in the source, pccbb
Warner Losh [Mon, 9 Sep 2002 05:35:46 +0000 (05:35 +0000)]
Remove duplicate entry.  Since we call things cbb in the source, pccbb
is obsolete.

21 years agostyle(9): line up function names.
Mike Barcroft [Mon, 9 Sep 2002 03:52:43 +0000 (03:52 +0000)]
style(9): line up function names.

21 years agoCatch up with the ISO-C++ standard.
David E. O'Brien [Mon, 9 Sep 2002 02:58:42 +0000 (02:58 +0000)]
Catch up with the ISO-C++ standard.

Submitted by: Craig Rodrigues <rodrigc@attbi.com>

21 years agoUse "options " rather than "options<tab>".
Jun Kuriyama [Mon, 9 Sep 2002 02:40:59 +0000 (02:40 +0000)]
Use "options " rather than "options<tab>".

21 years agoFix typo (s@src/crypto/openssh-portable@src/crypto/openssh@).
Jun Kuriyama [Mon, 9 Sep 2002 02:00:28 +0000 (02:00 +0000)]
Fix typo (s@src/crypto/openssh-portable@src/crypto/openssh@).

21 years agoBack out last commit where I moved pcn(4) off of the modules floppy back
David E. O'Brien [Sun, 8 Sep 2002 23:59:38 +0000 (23:59 +0000)]
Back out last commit where I moved pcn(4) off of the modules floppy back
into the install kernel.  Unfortunately pcn(4) also needs mii(4) so that
would also have to added to install kernel, which will bloat it up so that it
doesn't fit on the floppy any more.  Turns out we grew a lnc(4) module since
I last looked.  So handle it as a kld loadable module during install rather
than have it statically compiled into the kernel.

21 years agoChange the order that we look for free memory windows from 0 -> MAX-1
Warner Losh [Sun, 8 Sep 2002 22:18:06 +0000 (22:18 +0000)]
Change the order that we look for free memory windows from 0 -> MAX-1
to MAX-1 -> 0.  This should allow for less potential for conflict
between pccardd/pccardc and drivers.  As far as I can tell no drivers
try to use window 4, so this should be a no-op for them.

21 years agoUpdate the hardware list for the bge driver.
John Polstra [Sun, 8 Sep 2002 19:32:08 +0000 (19:32 +0000)]
Update the hardware list for the bge driver.

21 years agoMention support for the on-board NICs on IBM x235 servers.
John Polstra [Sun, 8 Sep 2002 19:20:23 +0000 (19:20 +0000)]
Mention support for the on-board NICs on IBM x235 servers.

Be more precise when referring to the chip family (BCM570x) vs.
specific models (e.g., BCM5700).

MFC after: 1 month

21 years agoAdd support for the BCM5703x chips. I do not have one of these
John Polstra [Sun, 8 Sep 2002 19:12:02 +0000 (19:12 +0000)]
Add support for the BCM5703x chips.  I do not have one of these
cards to test; however the submitter reports that this patch works
with the on-board interface on the IBM x235 server.

Submitted by: Jung-uk Kim <jkim@niksun.com>
MFC after: 1 month

21 years agoFix style(9) bugs.
Poul-Henning Kamp [Sun, 8 Sep 2002 15:16:49 +0000 (15:16 +0000)]
Fix style(9) bugs.

Brucified by: bde

21 years agoFix a logic bug in the struct dev_t allocation code.
Poul-Henning Kamp [Sun, 8 Sep 2002 15:15:12 +0000 (15:15 +0000)]
Fix a logic bug in the struct dev_t allocation code.

Spotted by: Neelkanth Natu <neelnatu@yahoo.com>

21 years agoDeal with a new exteded MBR paritition type
Poul-Henning Kamp [Sun, 8 Sep 2002 15:13:33 +0000 (15:13 +0000)]
Deal with a new exteded MBR paritition type

Submitted by: Michal Mertl <mime@traveller.cz>

21 years agoNow that we have a cached mount credential in struct mount, use it istead
Poul-Henning Kamp [Sun, 8 Sep 2002 15:11:18 +0000 (15:11 +0000)]
Now that we have a cached mount credential in struct mount, use it istead
of a private cached copy.

21 years agoGet this file closer to style(9).
Poul-Henning Kamp [Sun, 8 Sep 2002 15:10:04 +0000 (15:10 +0000)]
Get this file closer to style(9).

21 years agoAdd wcstol() and wcstoul(), based on strtol() and strtoul().
Tim J. Robbins [Sun, 8 Sep 2002 13:27:26 +0000 (13:27 +0000)]
Add wcstol() and wcstoul(), based on strtol() and strtoul().

21 years agoAnother two-letters breakage
Andrey A. Chernov [Sun, 8 Sep 2002 12:47:22 +0000 (12:47 +0000)]
Another two-letters breakage

21 years agoReplace a stray reference to strtok() with one to wcstok().
Tim J. Robbins [Sun, 8 Sep 2002 11:09:24 +0000 (11:09 +0000)]
Replace a stray reference to strtok() with one to wcstok().

21 years agoTypo: s/o packet/on packet/
Marc Fonvieille [Sun, 8 Sep 2002 09:01:08 +0000 (09:01 +0000)]
Typo: s/o packet/on packet/

PR: docs/42543
Submitted by: Michael Lyngbøl <lyngbol@bifrost.lyngbol.dk>

21 years ago1) Remove all two-letters names and derivates, comes with Xfree* entries spam,
Andrey A. Chernov [Sun, 8 Sep 2002 05:41:42 +0000 (05:41 +0000)]
1) Remove all two-letters names and derivates, comes with Xfree* entries spam,
we don't use two-letters names already many years.
2) Make xterm-color just plain alias to xterm instead of unnecessary
reduplication of color capabilities already exist in xterm entry.

21 years agoSplit cam_argmask and move "commands" into cam_cmdmask. This addresses
Matthew N. Dodd [Sun, 8 Sep 2002 05:39:36 +0000 (05:39 +0000)]
Split cam_argmask and move "commands" into cam_cmdmask.  This addresses
the issue of not having any free bits left for additional commands.

Approved by:  ken
MFC after:  4 weeks

21 years agoMake this driver work a whole lot better.
Jake Burkholder [Sun, 8 Sep 2002 04:45:16 +0000 (04:45 +0000)]
Make this driver work a whole lot better.
- Get the initial mode from the prom settings and don't clobber the mode
  on open.
- Copy output into an internal ring buffer instead of accessing the tty
  outq directly in the interrupt handler.  This fixes a problem where
  garbage would show up in the output stream.
- Reset the console port completely and reprogram all the parameters
  before enabling it.  This fixes seemingly random hangs on startup
  when using a fast interrupt handler.
- Add minimal locking in place of spls.
- Remove dead code and minor cleanups.

21 years agoFix a syntax error which causes an annoying warning.
Garrett Wollman [Sun, 8 Sep 2002 04:43:28 +0000 (04:43 +0000)]
Fix a syntax error which causes an annoying warning.

21 years agoopt_kstack_pages.h is not needed anymore. It would have been a Bad Thing
Peter Wemm [Sun, 8 Sep 2002 02:59:38 +0000 (02:59 +0000)]
opt_kstack_pages.h is not needed anymore.  It would have been a Bad Thing
if it had been different to the running kernel.

21 years agoNote that 'device gzip' *requires* COMPAT_AOUT. Maybe this "device"
Peter Wemm [Sun, 8 Sep 2002 02:33:42 +0000 (02:33 +0000)]
Note that 'device gzip' *requires* COMPAT_AOUT.  Maybe this "device"
should be renamed to COMPAT_GZIPAOUT or something like that.

21 years agoDo not blow up when we walk off the end of the brands list.
Peter Wemm [Sun, 8 Sep 2002 02:17:44 +0000 (02:17 +0000)]
Do not blow up when we walk off the end of the brands list.

Found by: kris, jake

21 years agoTidy up some loose ends that bde pointed out. caddr_t bad, ok?
Peter Wemm [Sat, 7 Sep 2002 22:31:44 +0000 (22:31 +0000)]
Tidy up some loose ends that bde pointed out.  caddr_t bad, ok?
Move fill_kinfo_proc to before we copy the results instead of after
the copy and too late.

There is still more to do here.

21 years agoRemove bogus fill_kinfo_proc() before ptrace_set_pc(). There was no need
Peter Wemm [Sat, 7 Sep 2002 22:18:19 +0000 (22:18 +0000)]
Remove bogus fill_kinfo_proc() before ptrace_set_pc().  There was no need
for this.

Submitted by: bde

21 years agoThe true value of how the kernel was configured for KSTACK_PAGES was not
Peter Wemm [Sat, 7 Sep 2002 22:15:47 +0000 (22:15 +0000)]
The true value of how the kernel was configured for KSTACK_PAGES was not
available at module compile time.  Do not #include the bogus
opt_kstack_pages.h at this point and instead refer to the variables that
are also exported via sysctl.

21 years agoMake UAREA_PAGES and KSTACK_PAGES visible to userland via sysctl, like
Peter Wemm [Sat, 7 Sep 2002 22:11:45 +0000 (22:11 +0000)]
Make UAREA_PAGES and KSTACK_PAGES visible to userland via sysctl, like
PS_STRINGS and USRSTACK is.  This is necessary in order to decode a.out
core dumps.  kern_proc.c was already referring to both of these values
but was missing the #include "opt_kstack_pages.h".  Make the sysctl
variables visible so that certain kld modules can see how their parent
kernel was configured.

21 years agoMove the KSTACK_PAGES option from MD to MI. Although not all platforms
Peter Wemm [Sat, 7 Sep 2002 22:07:11 +0000 (22:07 +0000)]
Move the KSTACK_PAGES option from MD to MI.  Although not all platforms
support this, we do have MI code that references it and is otherwise
unaware of an override.  The alternative is to put knowledge in these
MI files about which platforms have the opt_kstack_pages.h option file.
It is more likely that other platforms will gain the ability to tune the
kstack size.

21 years agoFill out two fields (si_pid, si_uid) in the siginfo structure handed back
Juli Mallett [Sat, 7 Sep 2002 19:12:53 +0000 (19:12 +0000)]
Fill out two fields (si_pid, si_uid) in the siginfo structure handed back
to userland in the signal handler that were not being iflled out before, but
should and can be.

This part of sendsig could be slightly refactored to use an MI interface, or
ideally, *sendsig*() would have an API change to accept a siginfo_t, which
would be filled out by an MI function in the level above sendsig, and said MI
function would make a small call into MD code to fill out the MD parts (some
of which may be bogus, such as the si_addr stuff in some places).  This would
eventually make it possible for parts of the kernel sending signals to set up
a siginfo with meaningful information.

Reviewed by: mux
MFC after: 2 weeks

21 years agoNew release notes: COMPAT_AOUT, AMD Elan SC520 support.
Bruce A. Mah [Sat, 7 Sep 2002 19:04:35 +0000 (19:04 +0000)]
New release notes:  COMPAT_AOUT, AMD Elan SC520 support.

21 years agoAdd some more AMD processors to the supported hardware list.
Bruce A. Mah [Sat, 7 Sep 2002 18:59:15 +0000 (18:59 +0000)]
Add some more AMD processors to the supported hardware list.

PR: 40712

21 years agoDiff reduction in comments for filling the siginfo structure - refer to
Juli Mallett [Sat, 7 Sep 2002 18:56:18 +0000 (18:56 +0000)]
Diff reduction in comments for filling the siginfo structure - refer to
filling in the POSIX parts, when doing the same thing in every port of
FreeBSD.

21 years agoMatch the more modern ports and comment the filling of POSIX parts of siginfo
Juli Mallett [Sat, 7 Sep 2002 18:55:15 +0000 (18:55 +0000)]
Match the more modern ports and comment the filling of POSIX parts of siginfo
with 'Fill in POSIX parts'.  (Diff reduction.)

21 years agoUnbreak the modules build:
Thomas Moestl [Sat, 7 Sep 2002 18:02:18 +0000 (18:02 +0000)]
Unbreak the modules build:
- add dependencies on opt_cpu.h and opt_kstack_pages.h to the linux module
  Makefile in the i386 case. The latter is needed by an i386-only file, the
  former by the i386 implementation of linux_sysvec.c (opt_cpu.h is used for
  architecture-dependent options, so I added it only for i386, although this
  file is also generated for the alpha).
- add a dependency on opt_kstack_pages.h to the pecoff module Makefile.

21 years agoThe size argument to snprintf does not have to be backed off by one
Matt Jacob [Sat, 7 Sep 2002 16:12:52 +0000 (16:12 +0000)]
The size argument to snprintf does not have to be backed off by one
to account for a NULL byte.

Submitted by: Jacques A. Vidrine <nectar@celabo.org>

21 years agoInclude <machine/pcb.h> instead of depending on namespace pollution in
Bruce Evans [Sat, 7 Sep 2002 14:32:22 +0000 (14:32 +0000)]
Include <machine/pcb.h> instead of depending on namespace pollution in
<sys/user.h>.

21 years agofix braino..
Julian Elischer [Sat, 7 Sep 2002 12:58:44 +0000 (12:58 +0000)]
fix braino..
was clearing part of wrong thread structure..

21 years agoAllow edquota(8) to be used for setting up quotas non-interactively (add a
Maxim Sobolev [Sat, 7 Sep 2002 12:26:07 +0000 (12:26 +0000)]
Allow edquota(8) to be used for setting up quotas non-interactively (add a
new -e option for that).

Feature requested by: Alex V. Belinsky <fozzy@kievweb.net.ua>
MFC after: 1 month

21 years agoRemove #include <netinet/ip.h>.
Maxim Sobolev [Sat, 7 Sep 2002 12:22:17 +0000 (12:22 +0000)]
Remove #include <netinet/ip.h>.

Submitted by: bde

21 years agoAlso add #include <netinet/in_systm.h> before <neinet/ip.h> to fix the
Maxim Sobolev [Sat, 7 Sep 2002 12:20:47 +0000 (12:20 +0000)]
Also add #include <netinet/in_systm.h> before <neinet/ip.h> to fix the
world.

Submitted by: Brooks Davis <brooks@one-eyed-alien.net>

21 years agoAdd __BEGIN_DECLS/__END_DECLS so that c++ code can use makecontext() etc.
Doug Rabson [Sat, 7 Sep 2002 10:20:26 +0000 (10:20 +0000)]
Add __BEGIN_DECLS/__END_DECLS so that c++ code can use makecontext() etc.

21 years agoAdd an implementation of wcstok(), based on strtok_r().
Tim J. Robbins [Sat, 7 Sep 2002 08:16:57 +0000 (08:16 +0000)]
Add an implementation of wcstok(), based on strtok_r().

21 years agoTwo arrays were born from the same seeds, both grew into complementary sets
Juli Mallett [Sat, 7 Sep 2002 08:14:19 +0000 (08:14 +0000)]
Two arrays were born from the same seeds, both grew into complementary sets
of pointers to strings.  These two arrays were fixed to the same size, but one
had an implicit zeroed trailer element, which was unused because the size was
used up by the ones before said zeroed trailer element.  So the unused limb was
chopped off the over-sized-but-not-over-sized array, and everyone lived happily
ever after.

21 years agoFix a missing line in a cut/paste error.
Peter Wemm [Sat, 7 Sep 2002 07:13:08 +0000 (07:13 +0000)]
Fix a missing line in a cut/paste error.

21 years agoAutomatically enable CPU_ENABLE_SSE (detect and enable SSE instructions)
Peter Wemm [Sat, 7 Sep 2002 07:02:12 +0000 (07:02 +0000)]
Automatically enable CPU_ENABLE_SSE (detect and enable SSE instructions)
if compiling with I686_CPU as a target.  CPU_DISABLE_SSE will prevent
this from happening and will guarantee the code is not compiled in.

I am still not happy with this, but gcc is now generating code that uses
these instructions if you set CPUTYPE to p3/p4 or athlon-4/mp/xp or higher.

21 years agoAdd #include <netinet/ip.h> in attempt to fix the world.
Maxim Sobolev [Sat, 7 Sep 2002 06:16:22 +0000 (06:16 +0000)]
Add #include <netinet/ip.h> in attempt to fix the world.

21 years agoNote that siginit() does not cause every signal to be ignored only the
Chad David [Sat, 7 Sep 2002 06:07:55 +0000 (06:07 +0000)]
Note that siginit() does not cause every signal to be ignored only the
ones with a default property of SA_IGNORE, and that it acquires and
releases the processes lock.

21 years agoSupposedly linux has added a 6th syscall arg register (%ebp). I am not
Peter Wemm [Sat, 7 Sep 2002 04:59:49 +0000 (04:59 +0000)]
Supposedly linux has added a 6th syscall arg register (%ebp).  I am not
100% sure if this is enough, but it will not harm anything.

21 years agoSync prototypes with <wchar.h> with respect to the restrict qualifier.
Tim J. Robbins [Sat, 7 Sep 2002 04:07:00 +0000 (04:07 +0000)]
Sync prototypes with <wchar.h> with respect to the restrict qualifier.

21 years agoAdd restrict qualifiers where C99 permits them. All of these already had
Tim J. Robbins [Sat, 7 Sep 2002 04:03:28 +0000 (04:03 +0000)]
Add restrict qualifiers where C99 permits them. All of these already had
restrict qualifiers on their prototypes in <wchar.h>.

21 years agoAdd restrict qualifiers to wcsstr()'s arguments.
Tim J. Robbins [Sat, 7 Sep 2002 03:38:13 +0000 (03:38 +0000)]
Add restrict qualifiers to wcsstr()'s arguments.

21 years agoCall strtok_r() via a libc private name from within strtok().
Tim J. Robbins [Sat, 7 Sep 2002 02:53:19 +0000 (02:53 +0000)]
Call strtok_r() via a libc private name from within strtok().

21 years agoAdd options COMPAT_AOUT to detect future bitrot.
Peter Wemm [Sat, 7 Sep 2002 01:49:52 +0000 (01:49 +0000)]
Add options COMPAT_AOUT to detect future bitrot.

21 years agofix misplaced schedlock
Julian Elischer [Sat, 7 Sep 2002 01:48:53 +0000 (01:48 +0000)]
fix misplaced schedlock

Submitted by: davidxu@freebsd.org

21 years agoAdd COMPAT_AOUT option so that config will not yell when you try and
Peter Wemm [Sat, 7 Sep 2002 01:43:58 +0000 (01:43 +0000)]
Add COMPAT_AOUT option so that config will not yell when you try and
compile it statically.

21 years agoAdd the aout module subdir for the i386.
Peter Wemm [Sat, 7 Sep 2002 01:31:38 +0000 (01:31 +0000)]
Add the aout module subdir for the i386.

21 years agoAdd an a.out exec module.
Peter Wemm [Sat, 7 Sep 2002 01:31:21 +0000 (01:31 +0000)]
Add an a.out exec module.

21 years agoMake imgact_aout.c optional. It is i386 specific.
Peter Wemm [Sat, 7 Sep 2002 01:30:36 +0000 (01:30 +0000)]
Make imgact_aout.c optional.  It is i386 specific.

21 years agoGive this a self contained a.out coredump routine.
Peter Wemm [Sat, 7 Sep 2002 01:29:21 +0000 (01:29 +0000)]
Give this a self contained a.out coredump routine.
XXX freebsd-aout coredumps for a linux-aout binary is a bit pointless.

21 years agoZap the implementations of the i386-aout specific cpu_coredump function.
Peter Wemm [Sat, 7 Sep 2002 01:26:34 +0000 (01:26 +0000)]
Zap the implementations of the i386-aout specific cpu_coredump function.
Most of the non-i386 platforms had rather broken implementations anyway.

21 years agoAdd support for ev67 and ev45 CPUTYPEs (new in gcc3)
Kris Kennaway [Sat, 7 Sep 2002 01:26:11 +0000 (01:26 +0000)]
Add support for ev67 and ev45 CPUTYPEs (new in gcc3)

21 years agoCollect the a.out coredump code into the calling functions.
Peter Wemm [Sat, 7 Sep 2002 01:23:51 +0000 (01:23 +0000)]
Collect the a.out coredump code into the calling functions.
XXX why does pecoff dump in a.out format?

21 years agoList the new athlon CPUs supported by the CPUTYPE make variable.
Maxime Henrion [Sat, 7 Sep 2002 01:19:15 +0000 (01:19 +0000)]
List the new athlon CPUs supported by the CPUTYPE make variable.

Submitted by: kris