]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoWhen scanning for control messages, don't process the data mbufs.
David Malone [Mon, 29 Oct 2001 20:04:03 +0000 (20:04 +0000)]
When scanning for control messages, don't process the data mbufs.
This could cause hangs if a unix domain socket was closed with data
still to be read from it.

Tested by: Andrea Campi <andrea@webcom.it>

22 years agoFix world by trimming an extra comment terminator.
John Baldwin [Mon, 29 Oct 2001 19:22:38 +0000 (19:22 +0000)]
Fix world by trimming an extra comment terminator.

22 years agoSome small improvements of ACPI thermal driver.
Mitsuru IWASAKI [Mon, 29 Oct 2001 18:09:43 +0000 (18:09 +0000)]
Some small improvements of ACPI thermal driver.
 - Give a guaranteed minimum cooling run time to avoid too frequent
   cooling system On/Off switching.  The minimum cooling run time can be
   specified by hw.acpi.thermal.min_runtime in sec.
 - Refine message printing (_AC-1 -> NONE).
 - Add verbose mode enable/disable capability by hw.acpi.verbose in bool.

Reviewed by: acpi-jp@ folks

22 years agoDon't set CR0_NE in cpu_setregs() for the SMP case, since setting it
Bruce Evans [Mon, 29 Oct 2001 16:31:15 +0000 (16:31 +0000)]
Don't set CR0_NE in cpu_setregs() for the SMP case, since setting it
is npx.c's job and setting it here breaks the edit-time option of not
setting it in npx.c.  (It is not set in the right places for the SMP
case, but always setting it here is harmless because there isn't even
an edit-time option to not set it.)

22 years agoSystem wide policy should be returned when no policy found in the SPD.
Hajimu UMEMOTO [Mon, 29 Oct 2001 16:29:41 +0000 (16:29 +0000)]
System wide policy should be returned when no policy found in the SPD.
The packet was rejected in ipsec[46]_tunnel_validate().

Obtained from: KAME
MFC after: 1 week

22 years agoMake CD-ROM distributions at the pc98 release target.
Yoshihiro Takahashi [Mon, 29 Oct 2001 16:25:13 +0000 (16:25 +0000)]
Make CD-ROM distributions at the pc98 release target.

MFC after: 3 days

22 years agoDon't assume fixit media is only either a floppy disk or 2nd CDROM disc
Brian Somers [Mon, 29 Oct 2001 16:17:19 +0000 (16:17 +0000)]
Don't assume fixit media is only either a floppy disk or 2nd CDROM disc

Reviewed by: murray
MFC after: 1 week

22 years agoDon't assume fixit media is a floppy disk.
Brian Somers [Mon, 29 Oct 2001 16:13:29 +0000 (16:13 +0000)]
Don't assume fixit media is a floppy disk.

Reviewed by: murray
MFC after: 1 week

22 years agoAdd Berkeley copyright to SRA.
Nick Sayer [Mon, 29 Oct 2001 16:12:16 +0000 (16:12 +0000)]
Add Berkeley copyright to SRA.

This is by the kind permission of Dave Safford, formerly of TAMU who wrote the
original code. Here is an excerpt of the e-mail exchange concerning this
issue:

Dave Safford wrote:
>Nick Sayer wrote:
>> Some time ago we spoke about SRA and importing it into FreeBSD. I forgot to
>> ask if you had a prefered license boilerplate for the top of the files. It
>> has come up recently, and the SRA code in FreeBSD doesn't have one.

>I really have no preference - use whatever is most convenient in the
>FreeBSD environment.

>dave safford

This is the standard BSD license with clause 3 removed and clause 4
suitably renumbered.

MFC after: 1 day

22 years agoA few more style changes picked up whilst working on an MFC to -stable.
Josef Karthauser [Mon, 29 Oct 2001 15:09:07 +0000 (15:09 +0000)]
A few more style changes picked up whilst working on an MFC to -stable.

22 years agoFix some whitespace, and a comment that I missed in the last commit.
Josef Karthauser [Mon, 29 Oct 2001 14:08:51 +0000 (14:08 +0000)]
Fix some whitespace, and a comment that I missed in the last commit.

22 years agoAdd unwind.c.
Doug Rabson [Mon, 29 Oct 2001 12:04:51 +0000 (12:04 +0000)]
Add unwind.c.

22 years ago* Factor out common code for manipulating the RSE backing store.
Doug Rabson [Mon, 29 Oct 2001 12:04:23 +0000 (12:04 +0000)]
* Factor out common code for manipulating the RSE backing store.
* Implement a fairly simplistic parser for unwinding stack frames.
* Use unwind records for DDB's 'trace' command. Also add support for
  tracing past exceptions to the context which generated the exception.

The stack unwind code requires a toolchain based on binutils-2.11.2 or
later and gcc-3.0.1 or later.

22 years agoMake the various bits of SMP code conditional on SMP so that I can still
Doug Rabson [Mon, 29 Oct 2001 11:57:12 +0000 (11:57 +0000)]
Make the various bits of SMP code conditional on SMP so that I can still
build non-SMP kernels.

22 years agoPut symbols at the start and end of the unwind section so that we can
Doug Rabson [Mon, 29 Oct 2001 11:40:14 +0000 (11:40 +0000)]
Put symbols at the start and end of the unwind section so that we can
find it at runtime.

22 years agoVarious fixes to make stack traces using the unwind tables work properly.
Doug Rabson [Mon, 29 Oct 2001 11:30:54 +0000 (11:30 +0000)]
Various fixes to make stack traces using the unwind tables work properly.

22 years agoFix disassembly of 'add a=b,c,1' and make the disassembly of the various
Doug Rabson [Mon, 29 Oct 2001 11:26:10 +0000 (11:26 +0000)]
Fix disassembly of 'add a=b,c,1' and make the disassembly of the various
break and nops consistent.

22 years agoThe size of the ELF hash table changed from 64 bits in the prototype
Peter Wemm [Mon, 29 Oct 2001 10:20:19 +0000 (10:20 +0000)]
The size of the ELF hash table changed from 64 bits in the prototype
toolchains to 32 bits in 2.11.2.

Obtained from: dfr

22 years agoMostly cosmetic. Use indentation that is reasonably close to other
Peter Wemm [Mon, 29 Oct 2001 10:18:58 +0000 (10:18 +0000)]
Mostly cosmetic.  Use indentation that is reasonably close to other
ia64 *.S files in our tree (eg: locore.s).  Put the rest of the args
in the .section lines.

Reviewed by: dfr

22 years agoUpdate for the new toolchain. ld doesn't provide _GLOBAL_OFFSET_TABLE_
Peter Wemm [Mon, 29 Oct 2001 10:14:51 +0000 (10:14 +0000)]
Update for the new toolchain.  ld doesn't provide _GLOBAL_OFFSET_TABLE_
in 2.11.2, so use a relocatable method of calculating gp.

Reviewed by: dfr

22 years agoUpdate rtld for the "new" ia64 ABI. In the old toolchain, the
Peter Wemm [Mon, 29 Oct 2001 10:10:10 +0000 (10:10 +0000)]
Update rtld for the "new" ia64 ABI.  In the old toolchain, the
DT_INIT and DT_FINI tags pointed to fptr records.  In 2.11.2, it points
to the actuall address of the function.  On IA64 you cannot just take
an address of a function, store it in a function pointer variable and
call it.. the function pointers point to a fptr data block that has the
target gp and address in it.  This is absolutely necessary for using
the in-tree binutils toolchain, but (unfortunately) will not work with
old shared libraries.  Save your old ld-elf.so.1 if you want to use
old ones still.  Do not mix-and-match.

This is a no-op change for i386 and alpha.

Reviewed by: dfr

22 years agoFix a dependency violation (branch after alloc)
Peter Wemm [Mon, 29 Oct 2001 10:05:32 +0000 (10:05 +0000)]
Fix a dependency violation (branch after alloc)

22 years agoFix fragmented packet handling.
Munechika SUMIKAWA [Mon, 29 Oct 2001 07:55:57 +0000 (07:55 +0000)]
Fix fragmented packet handling.

Obtained from: KAME
MFC after: 3 weeks

22 years agoo Send a test IPI from the BSP to itself at the same time APs
Marcel Moolenaar [Mon, 29 Oct 2001 07:34:48 +0000 (07:34 +0000)]
o  Send a test IPI from the BSP to itself at the same time APs
   are woken up.
o  Make IPIs synchronuous by default. If we want asynchronuous
   IPIs, we may want to make the memory fence controllable.

22 years agoAdd an IPI used for testing proper operation of delivering IPIs.
Marcel Moolenaar [Mon, 29 Oct 2001 07:30:37 +0000 (07:30 +0000)]
Add an IPI used for testing proper operation of delivering IPIs.

22 years agoUse a more sophisticated check that works better with older versions
Mike Barcroft [Mon, 29 Oct 2001 07:29:03 +0000 (07:29 +0000)]
Use a more sophisticated check that works better with older versions
of GCC when setting __func__ to NULL.  This also better supports GCC
when using C++.  Move the definition to a better location.

Submitted by: bde

22 years agoMake the output from assert() look more like the example in the C99
Mike Barcroft [Mon, 29 Oct 2001 07:07:25 +0000 (07:07 +0000)]
Make the output from assert() look more like the example in the C99
standard.

Requested by: bde

22 years agoMake the clock vector 255 instead of 240. On Lion boxes, 240 is
Marcel Moolenaar [Mon, 29 Oct 2001 05:17:36 +0000 (05:17 +0000)]
Make the clock vector 255 instead of 240. On Lion boxes, 240 is
the AP wake-up vector. We probably want a more dynamic approach
to assigning vectors in the future...

22 years agoForced commit: Previous diff removed the UserConfig section from
Bruce A. Mah [Mon, 29 Oct 2001 05:17:21 +0000 (05:17 +0000)]
Forced commit:  Previous diff removed the UserConfig section from
the alpha hardware notes.

22 years agoAdd infrastructure for an ia64 hardware list. It's a long way from
Bruce A. Mah [Mon, 29 Oct 2001 05:08:52 +0000 (05:08 +0000)]
Add infrastructure for an ia64 hardware list.  It's a long way from
being usable at this point, so it's not even hooked up to the rest
of the RELNOTESng build; however it will be helpful for testing the content
as it approaches reality.

22 years agoSmall correction in the LOCAL_SAPIC structure. The Flags field
Marcel Moolenaar [Mon, 29 Oct 2001 04:59:35 +0000 (04:59 +0000)]
Small correction in the LOCAL_SAPIC structure. The Flags field
starts at offset 8; not 6. Hence the structure is 12 bytes and
not 10 bytes. Adjust the definition so that the ProcessorEnabled
flag is moved from bit 15 to bit 31 in the Flags field.

The definition now matches ACPI 2.0 Errata 1.5.

22 years agoStart to unravel some of the mess in the Ethernet NIC section. The
Bruce A. Mah [Mon, 29 Oct 2001 04:45:08 +0000 (04:45 +0000)]
Start to unravel some of the mess in the Ethernet NIC section.  The
original hardware list was mostly organized by driver except for the
case of NICs by Intel, DEC, and 3Com, whose NICs tended to be
organized by manufacturer.  Most of these entries are now organized by
driver, except for a few 3Com NICs; also the multitude of ed(4)
drivers needs to be coalesced.

While I'm here, fix a markup glitch in the ISDN section that caused
any non-i386 hardware list to be incorrectly numbered.

22 years agoClean up the style of this header file.
Josef Karthauser [Mon, 29 Oct 2001 04:41:28 +0000 (04:41 +0000)]
Clean up the style of this header file.

22 years agoClarify a release note entry about fe(4)-supported PC Cards.
Bruce A. Mah [Mon, 29 Oct 2001 04:14:40 +0000 (04:14 +0000)]
Clarify a release note entry about fe(4)-supported PC Cards.

22 years agoMore white space changes.
Josef Karthauser [Mon, 29 Oct 2001 03:46:28 +0000 (03:46 +0000)]
More white space changes.

22 years agoMore stylistic tidying.
Josef Karthauser [Mon, 29 Oct 2001 03:25:49 +0000 (03:25 +0000)]
More stylistic tidying.

22 years agolog routine called w/ %ld and int argument, cast argument to long
Matthew Dillon [Mon, 29 Oct 2001 02:22:49 +0000 (02:22 +0000)]
log routine called w/ %ld and int argument, cast argument to long

22 years agofix int argument used in printf w/ %ld (cast to long)
Matthew Dillon [Mon, 29 Oct 2001 02:19:19 +0000 (02:19 +0000)]
fix int argument used in printf w/ %ld (cast to long)

22 years agopromote tv_sec in printf to make it type agnostic
Matthew Dillon [Mon, 29 Oct 2001 02:17:41 +0000 (02:17 +0000)]
promote tv_sec in printf to make it type agnostic

22 years agoo Do not parse the MADT as a side-effect in AcpiOsGetRootPointer,
Marcel Moolenaar [Mon, 29 Oct 2001 02:16:02 +0000 (02:16 +0000)]
o  Do not parse the MADT as a side-effect in AcpiOsGetRootPointer,
   do it as a side-effect of probing for MP hardware. This allows
   us to scan for local SAPICs early (especially before MBUF
   initialization).
o  Fix the Local SAPIC structure so that matches the Local SAPIC
   table entry. Now that the Local SAPIC info is the same as the
   Local APIC info, stop dumping the Local APIC entries.
o  For every Local SAPIC entry in the MADT that's not disabled,
   let the SMP code know about it. They represent actual CPUs.
o  Register the OS_BOOT_RENDEZ entry point and provide a (bogus)
   implementation for the entry point.
o  Provide a mapping for internal IPI numbers to ExtINT vectors.
o  In a MP system, announce the CPUs and start them by sending
   IPI_AP_WAKEUP to each of them. Not that it makes a difference
   at this time :-)
o  Miscellaneous style fixes and other adjustments.

22 years agoMake ttyprintf() of tv_sec value type agnostic.
Matthew Dillon [Mon, 29 Oct 2001 01:23:28 +0000 (01:23 +0000)]
Make ttyprintf() of tv_sec value type agnostic.

22 years agocast dev_t to int in printf to fix warning.
Matthew Dillon [Mon, 29 Oct 2001 01:22:15 +0000 (01:22 +0000)]
cast dev_t to int in printf to fix warning.

22 years agoSet RB_MULTIPLE (multiple console support) if the kernel is booted
Marcel Moolenaar [Mon, 29 Oct 2001 01:11:40 +0000 (01:11 +0000)]
Set RB_MULTIPLE (multiple console support) if the kernel is booted
with the -D flag.

22 years agoFix ctime(&int) due to change to lastlog->ll_time
Matthew Dillon [Mon, 29 Oct 2001 00:40:05 +0000 (00:40 +0000)]
Fix ctime(&int) due to change to lastlog->ll_time

22 years agoRemove training white spaces, and some other style violations.
Josef Karthauser [Mon, 29 Oct 2001 00:37:24 +0000 (00:37 +0000)]
Remove training white spaces, and some other style violations.

22 years agolocaltime() was being called with an int-pointer due to recent utmp
Matthew Dillon [Mon, 29 Oct 2001 00:36:01 +0000 (00:36 +0000)]
localtime() was being called with an int-pointer due to recent utmp
fixes.

22 years agolocaltime() was being called on an int pointer (due to recent
Matthew Dillon [Mon, 29 Oct 2001 00:34:20 +0000 (00:34 +0000)]
localtime() was being called on an int pointer (due to recent
utmp-related commits).  fixed.

22 years agoFix long format mismatch with int arg
Matthew Dillon [Mon, 29 Oct 2001 00:32:58 +0000 (00:32 +0000)]
Fix long format mismatch with int arg

22 years ago1) In devclass_alloc_unit(), skip duplicated wired devices (i.e. with fixed
Andrey A. Chernov [Sun, 28 Oct 2001 23:32:35 +0000 (23:32 +0000)]
1) In devclass_alloc_unit(), skip duplicated wired devices (i.e. with fixed
number) instead of allocating next free unit for them.  If someone needs
fixed place, he must specify it correctly. "Allocating next" is especially bad
because leads to double device detection and to "repeat make_dev panic" as
result.  This can happens if the same devices present somewhere on PCI bus,
hints and  ACPI.  Making them present in one place only not always
possible, "sc" f.e.  can't be removed from hints, it results to no console at
all.

2) In make_device(), detect when devclass_add_device() fails, free dev and
return. I.e. add missing error checking. This part needed to finish fix in 1),
but must be done this way in anycase, with old variant too.

22 years agoo Restore previous inconsistent style to login_fbtab.c, following its
Robert Watson [Sun, 28 Oct 2001 22:54:16 +0000 (22:54 +0000)]
o Restore previous inconsistent style to login_fbtab.c, following its
  modification to add glob support.  The submitted patch used a degraded
  form of KNF.

Reviewed by: bde

22 years agoAdjust printfs to be time_t agnostic.
Matthew Dillon [Sun, 28 Oct 2001 22:53:45 +0000 (22:53 +0000)]
Adjust printfs to be time_t agnostic.

22 years agoDo not assume that sizeof(tv_sec) is sizeof(time_t) - it will be, but
Matthew Dillon [Sun, 28 Oct 2001 20:53:17 +0000 (20:53 +0000)]
Do not assume that sizeof(tv_sec) is sizeof(time_t) - it will be, but
it isn't yet because our tv_sec is currently a long (so 64 bit architectures
are already broken to a degree).

22 years agoFix int vs time_t, convert int to time_t
Matthew Dillon [Sun, 28 Oct 2001 20:40:58 +0000 (20:40 +0000)]
Fix int vs time_t, convert int to time_t

22 years agoConvert time_t to/from 32 bit representations for transmission over
Matthew Dillon [Sun, 28 Oct 2001 20:33:07 +0000 (20:33 +0000)]
Convert time_t to/from 32 bit representations for transmission over
a network and storage.

22 years agoFix time_t == int assumption, convert protocol int to time_t.
Matthew Dillon [Sun, 28 Oct 2001 20:26:54 +0000 (20:26 +0000)]
Fix time_t == int assumption, convert protocol int to time_t.

22 years agoFix time_t == int assumption, properly convert protocol int to time_t.
Matthew Dillon [Sun, 28 Oct 2001 20:24:51 +0000 (20:24 +0000)]
Fix time_t == int assumption, properly convert protocol int to time_t.

22 years agoProperly convert long to time_t
Matthew Dillon [Sun, 28 Oct 2001 20:19:14 +0000 (20:19 +0000)]
Properly convert long to time_t

22 years agoAdd time_to_int(), int_to_time(), time_to_long(), long_to_time().
Matthew Dillon [Sun, 28 Oct 2001 20:13:16 +0000 (20:13 +0000)]
Add time_to_int(), int_to_time(), time_to_long(), long_to_time().

22 years agoMake the protocol/dumprestore.h header match restore's idea of the dump
Matthew Dillon [Sun, 28 Oct 2001 20:01:38 +0000 (20:01 +0000)]
Make the protocol/dumprestore.h header match restore's idea of the dump
header for the case where sizeof(time_t) != sizeof(int).  dumprestore.h
was embedding time_t when it should have been embedding int32_t.

Use time_to_time32() and time32_to_time() to convert between the
protocoll/file-format time and time_t.

22 years agoAdd routines to convert time_t to/from fixed-bit fields. These routines
Matthew Dillon [Sun, 28 Oct 2001 19:54:49 +0000 (19:54 +0000)]
Add routines to convert time_t to/from fixed-bit fields.  These routines
serve two purposes: (1) so we can maintain backwards compatibility with
protocols (rwhod, dump, etc...) that either assume time_t is 32 bits or
assume sizeof(time_t) == sizeof(int), or make other similar assumptions.
(2) To tag such routines (by the presence of these calls) for future
cleanup/extension work.

The 32->64 routine, time32_to_time() (when time_t is 64 bits, that is),
is defined specifically to implement temporal locality to properly set the
msb bits of a 64 bit time_t quantity, using the 50 year rule.  The locality
code has not been implemented yet (and doesn't need to be for a while),
but that is the intent.   This will allow us to maintain backwards protocol
compatibility past 2038.

These routines are intended to be platform and time_t agnostic.

MFC after: 1 week

22 years agoMake this compile cleanly when warnings are enabled:
Jens Schweikhardt [Sun, 28 Oct 2001 18:35:32 +0000 (18:35 +0000)]
Make this compile cleanly when warnings are enabled:
 - ANSIfy function declarations
 - braces around initializers structs within structs
 - add parens in complicated expressions
 - disambiguate dangling elses
 - no more implicit int
 - make functions static where possible
 - use prototypes
 - don't use varargs hack for diag()

Requested by: joerg
MFC after: 2 weeks

22 years agoTypo.
Nick Hibma [Sun, 28 Oct 2001 16:47:06 +0000 (16:47 +0000)]
Typo.

22 years agoAdd a Xref to dumpon.
Nick Hibma [Sun, 28 Oct 2001 16:41:56 +0000 (16:41 +0000)]
Add a Xref to dumpon.

22 years agoRevert the reindentation of struct task's definition from rev 1.4.
John Baldwin [Sun, 28 Oct 2001 16:19:34 +0000 (16:19 +0000)]
Revert the reindentation of struct task's definition from rev 1.4.

Requested by: bde

22 years ago- More whitespace and comment cleanups.
John Baldwin [Sun, 28 Oct 2001 16:18:22 +0000 (16:18 +0000)]
- More whitespace and comment cleanups.
- Remove unused sw1a label.  A breakpoint can be set in choosethread() for
  the same effect.

Reviewed by: bde
Submitted by: bde (partly)

22 years agoExplain that /var/log/all.log needs to be touched and chmod'd 'ere it
Jeroen Ruigrok van der Werven [Sun, 28 Oct 2001 13:41:30 +0000 (13:41 +0000)]
Explain that /var/log/all.log needs to be touched and chmod'd 'ere it
can be used.

PR: 17022
Submitted by: Niels Christian Bank-Pedersen <ncbp@bank-pedersen.dk>
MFC after: 1 week

22 years agoCorrect attribution.
Jeroen Ruigrok van der Werven [Sun, 28 Oct 2001 13:23:39 +0000 (13:23 +0000)]
Correct attribution.

PR: 30500
Submitted by: Drew Derbyshire <ahd@kew.org>

22 years agoFix a problem in the disk related hack where device nodes for a physically
Poul-Henning Kamp [Sun, 28 Oct 2001 09:39:28 +0000 (09:39 +0000)]
Fix a problem in the disk related hack where device nodes for a physically
non-existent disk in a legacy /dev on a DEVFS system would panic the system
if stat(2)'ed.

Do not whine about anonymous device nodes not having a si_devsw, they're
not supposed to.

22 years agoIntroduce [IPC|SHM]_[INFO|STAT] to shmctl to make
Michael Reifenberger [Sun, 28 Oct 2001 09:29:10 +0000 (09:29 +0000)]
Introduce [IPC|SHM]_[INFO|STAT] to shmctl to make
`/compat/linux/usr/bin/ipcs -m` happy.

22 years agodeltat declared time_t, msg("") call used %d (assumed time_t == int).
Matthew Dillon [Sun, 28 Oct 2001 06:13:47 +0000 (06:13 +0000)]
deltat declared time_t, msg("") call used %d (assumed time_t == int).
Changed deltat to be an int (result of delta time calculation).

MFC after: 1 day

22 years agofixed to support pc98
Yoshihiro Takahashi [Sun, 28 Oct 2001 04:39:02 +0000 (04:39 +0000)]
fixed to support pc98

22 years agoRemove duplicate apm entry for pc98
Yoshihiro Takahashi [Sun, 28 Oct 2001 04:34:24 +0000 (04:34 +0000)]
Remove duplicate apm entry for pc98

22 years agoRemoved pmc_isa_identify function. It is not needed.
Yoshihiro Takahashi [Sun, 28 Oct 2001 04:16:50 +0000 (04:16 +0000)]
Removed pmc_isa_identify function. It is not needed.

Submitted by: takawata

22 years agoUse a quad int conversion routine for time_t instead of ulong, capable of
Matthew Dillon [Sun, 28 Oct 2001 02:51:43 +0000 (02:51 +0000)]
Use a quad int conversion routine for time_t instead of ulong, capable of
decoding tar's full time buffer (12 digits).

22 years agoVarious string fields for certain cpio types are 11 rather then 8
Matthew Dillon [Sun, 28 Oct 2001 02:45:04 +0000 (02:45 +0000)]
Various string fields for certain cpio types are 11 rather then 8
characters.  Use quad conversion functions rather then long conversion
where appropriate to handle the available range.  Mainly fixes time_t
but there was also a st_size ulong conversion in there that has to be
quad or cpio cannot be used to copy files > 2G.

MFC after: 1 day

22 years agoRemove unnecessary casts in timeval.tv_sec load from st_*time
Matthew Dillon [Sun, 28 Oct 2001 02:42:26 +0000 (02:42 +0000)]
Remove unnecessary casts in timeval.tv_sec load from st_*time

22 years agoRemove assumption that time_t is an int
Matthew Dillon [Sun, 28 Oct 2001 02:28:04 +0000 (02:28 +0000)]
Remove assumption that time_t is an int

MFC after: 1 day

22 years agoRemove some extraneous spaces from the usage message.
Josef Karthauser [Sun, 28 Oct 2001 02:10:40 +0000 (02:10 +0000)]
Remove some extraneous spaces from the usage message.

22 years agosparc64 verions of the crt initialization and finalization files required
David E. O'Brien [Sun, 28 Oct 2001 00:20:34 +0000 (00:20 +0000)]
sparc64 verions of the crt initialization and finalization files required
by the ELF ABI.

22 years agoAdd missing cast for improper time_t use in computation.
Matthew Dillon [Sun, 28 Oct 2001 00:01:58 +0000 (00:01 +0000)]
Add missing cast for improper time_t use in computation.

22 years agoll_time and ut_time are int32_t on disk and have to remain that way
Peter Wemm [Sat, 27 Oct 2001 20:40:54 +0000 (20:40 +0000)]
ll_time and ut_time are int32_t on disk and have to remain that way
unless we dont want to run 4.x binaries any more.

22 years agosc_lasttime and sc_starttime are time_t's, not long's.
Matthew Dillon [Sat, 27 Oct 2001 20:31:24 +0000 (20:31 +0000)]
sc_lasttime and sc_starttime are time_t's, not long's.

22 years agoOnly provide function information in compile environments that support
Mike Barcroft [Sat, 27 Oct 2001 20:11:10 +0000 (20:11 +0000)]
Only provide function information in compile environments that support
the C99 variable __func__ and never for C++.  Provide a more meaningful
example in the assert(3) manual.

Reviewed by: asmodai, bde

22 years agosyncdelay, filedelay, dirdelay, metadelay are ints, not time_t's,
Matthew Dillon [Sat, 27 Oct 2001 19:58:56 +0000 (19:58 +0000)]
syncdelay, filedelay, dirdelay, metadelay are ints, not time_t's,
and can also be made static.

22 years agoRestore K&R prototype. Fix other style bugs.
Mike Barcroft [Sat, 27 Oct 2001 19:37:20 +0000 (19:37 +0000)]
Restore K&R prototype.  Fix other style bugs.

Reviewed by: asmodai, bde

22 years agoNudge the axe a bit closer to cdevsw[]:
Poul-Henning Kamp [Sat, 27 Oct 2001 17:44:21 +0000 (17:44 +0000)]
Nudge the axe a bit closer to cdevsw[]:

   Make it a panic to repeat make_dev() or destroy_dev(), this check
   should maybe be neutered when -current goes -stable.

   Whine if devsw() is called on anon dev_t's in a devfs system.

   Make a hack to avoid our lazy-eval disk code triggering the above whine.

   Fix the multiple make_dev() in disk code by making ${disk}${unit}s${slice}
   an alias/symlink to ${disk}${unit}s${slice}c

22 years agoDiff-reduce these two.
Mark Murray [Sat, 27 Oct 2001 12:49:19 +0000 (12:49 +0000)]
Diff-reduce these two.

Really, one of them needs to disappear. I'll figure out which
later.

Reported by: bde

22 years agoEliminate the prefix parameter to linux_emul_find(), which was always
Dag-Erling Smørgrav [Sat, 27 Oct 2001 11:15:19 +0000 (11:15 +0000)]
Eliminate the prefix parameter to linux_emul_find(), which was always
linux_emul_path anyway.  Linux_emul_find() has interesting bugs in its
prefix handling (which luckily are not currently exploitable); this
commit is preliminary to an attempt at cleaning it up.

Approved by: marcel

22 years agoAdd a P_INEXEC flag that indicates that the process has called execve() and
Dag-Erling Smørgrav [Sat, 27 Oct 2001 11:11:25 +0000 (11:11 +0000)]
Add a P_INEXEC flag that indicates that the process has called execve() and
it has not yet returned.  Use this flag to deny debugging requests while
the process is execve()ing, and close once and for all any race conditions
that might occur between execve() and various debugging interfaces.

Reviewed by: jhb, rwatson

22 years agoAdd missing crti.S and crtn.S files. I have tested these with -static
Peter Wemm [Sat, 27 Oct 2001 10:10:45 +0000 (10:10 +0000)]
Add missing crti.S and crtn.S files.  I have tested these with -static
linking only.  They may require some gp relative tweaks for dynamic use.

22 years agoSync with other platforms.
David E. O'Brien [Sat, 27 Oct 2001 08:32:07 +0000 (08:32 +0000)]
Sync with other platforms.

22 years agominor style updating
David E. O'Brien [Sat, 27 Oct 2001 08:30:36 +0000 (08:30 +0000)]
minor style updating

22 years agoUpdate for reality and syncing with other FreeBSD platforms.
David E. O'Brien [Sat, 27 Oct 2001 08:29:03 +0000 (08:29 +0000)]
Update for reality and syncing with other FreeBSD platforms.

22 years agoFeh, it helps to include a file other than yourself... wonder how
David E. O'Brien [Sat, 27 Oct 2001 08:25:32 +0000 (08:25 +0000)]
Feh, it helps to include a file other than yourself... wonder how
GCC cpp liked that.

Properly include the branding info.

22 years agoTell how the import was done.
David E. O'Brien [Sat, 27 Oct 2001 08:11:44 +0000 (08:11 +0000)]
Tell how the import was done.

22 years agoThis commit was generated by cvs2svn to compensate for changes in r85587,
David E. O'Brien [Sat, 27 Oct 2001 08:07:37 +0000 (08:07 +0000)]
This commit was generated by cvs2svn to compensate for changes in r85587,
which included commits to RCS files with non-trunk default branches.

22 years agoImport the One True AWK, in the form of bwk's AWK Nov 15, 2000 release.
David E. O'Brien [Sat, 27 Oct 2001 08:07:37 +0000 (08:07 +0000)]
Import the One True AWK, in the form of bwk's AWK Nov 15, 2000 release.

22 years agoImplement elf_reloc. This makes klds work.
Jake Burkholder [Sat, 27 Oct 2001 07:09:40 +0000 (07:09 +0000)]
Implement elf_reloc.  This makes klds work.

Obtained from: netbsd

22 years agoHandle instruction access mmu miss faults in kernel mode. These can only
Jake Burkholder [Sat, 27 Oct 2001 07:06:15 +0000 (07:06 +0000)]
Handle instruction access mmu miss faults in kernel mode.  These can only
be generated by non-preloaded klds.

22 years agoo Modify copyright date format for improved consistency: use '-' for
Robert Watson [Sat, 27 Oct 2001 05:47:47 +0000 (05:47 +0000)]
o Modify copyright date format for improved consistency: use '-' for
  year ranges, rather than a comma-delimited list of years.