]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
20 years agoStyle: add __FBSDID, relocate some { that were on the wrong line,
Hartmut Brandt [Tue, 27 Jan 2004 10:45:37 +0000 (10:45 +0000)]
Style: add __FBSDID, relocate some { that were on the wrong line,
correct some indendation, change __FUNCTION__ to __func__ and remove
a local KASSERT definition.

20 years agoThis should have been checked in as part of the last update to if_ndis.c:
Bill Paul [Tue, 27 Jan 2004 09:08:12 +0000 (09:08 +0000)]
This should have been checked in as part of the last update to if_ndis.c:
add yet another member to the ndis_softc as part of the workaround for
the net80211 dain bramage.

20 years agoSome Windows .INF files are deliberately sabotaged to prevent them from
Bill Paul [Tue, 27 Jan 2004 09:05:52 +0000 (09:05 +0000)]
Some Windows .INF files are deliberately sabotaged to prevent them from
loading on a particular version of Windows. For example, a .INF file
for a Windows 2000 driver may have an empty [foo.NT.5.1] section which
will be ingored on Win2K (whose .INF parser won't look for sections
decorated with .NT.5.1) in favor of a [foo] section. Likewise, a
WinXP file will have an empty [foo] section which will be ignored in
favor of [foo.NT.5.1].

The problem is, we can handle both Win2K and WinXP drivers, and we
don't want to exclude either one.

As a workaround, we try to pretend we are WinXP by default and search
for sections decorated with .NT.5.1, but if we don't turn up any records,
we assume that maybe we're being fooled by a sabotaged .INF file and
make one more pass looking for undecorated sections instead.

This allows us to parse the .INF files for both the Win2K and the WinXP
Centrino wireless drivers.

I'd give anything for 5 minutes alone in a room with whoever wrote
Microsoft's .INF file parser. Just 5 minutes. That's all.

20 years agoImplement NdisVirtualBufferAddress() and NdisVirtualBufferAddressSafe().
Bill Paul [Tue, 27 Jan 2004 08:10:34 +0000 (08:10 +0000)]
Implement NdisVirtualBufferAddress() and NdisVirtualBufferAddressSafe().

The RealTek 8180 driver seems to need this.

20 years agoAdd a kludge to avoid having ndis_init() called needlessly by dhclient
Bill Paul [Tue, 27 Jan 2004 07:57:42 +0000 (07:57 +0000)]
Add a kludge to avoid having ndis_init() called needlessly by dhclient
on an SIOCSIFADDR (by way of brain damage in net80211).

Also, avoid trying to set NDIS_80211_AUTHMODE_AUTO since the Microsoft
documentation I have recommends not using it, and the Centrino driver
seems to dislike being told to use it.

20 years agoAdd TUNABLE_STR to make "hw.acpi.os_name" more correct. However, the call
Nate Lawson [Tue, 27 Jan 2004 06:07:09 +0000 (06:07 +0000)]
Add TUNABLE_STR to make "hw.acpi.os_name" more correct.  However, the call
to getenv_string() still doesn't work.

20 years agoDocument my adventures in newbus land. Clarify some examples, especially
Nate Lawson [Tue, 27 Jan 2004 06:04:15 +0000 (06:04 +0000)]
Document my adventures in newbus land.  Clarify some examples, especially
that count is in bytes, not bits.  There are some drivers that I think make
this mistake.  (I've seen counts of 16 in the tree).

20 years agoDiscontinuation of an action that now fits on one.
David E. O'Brien [Tue, 27 Jan 2004 05:01:08 +0000 (05:01 +0000)]
Discontinuation of an action that now fits on one.

20 years agoStick two XXX's in the syscall() code: we call STOPEVENT() twice for
Robert Watson [Tue, 27 Jan 2004 04:40:19 +0000 (04:40 +0000)]
Stick two XXX's in the syscall() code: we call STOPEVENT() twice for
every system call, and that grabs and release the process lock each
time.  Don't fix it (yet), but document it so we know to fix it.
Also should be a 5.3-RELEASE todo item.

20 years agoClean up macro usage in if_attach():
Brooks Davis [Tue, 27 Jan 2004 03:15:09 +0000 (03:15 +0000)]
Clean up macro usage in if_attach():
 - Use the system offsetof macro rather then making out own.
 - undef ROUND after we use it rather then polluting the whole file.

20 years agoUse the M_BZERO flag with malloc() in a couple of places.
Bill Paul [Tue, 27 Jan 2004 03:14:59 +0000 (03:14 +0000)]
Use the M_BZERO flag with malloc() in a couple of places.

20 years agoUse IFNAMSIZ instead of a magic value for the length of an interface
Brooks Davis [Tue, 27 Jan 2004 01:43:14 +0000 (01:43 +0000)]
Use IFNAMSIZ instead of a magic value for the length of an interface
name.

Prevent the kernel from potentially overflowing the interface name
variable.  The size argument of strlcpy is complex because the name is
not null-terminated in sdl_data.

20 years agoModified release note: Rewrite CVS update note to reflect reality
Bruce A. Mah [Tue, 27 Jan 2004 00:50:21 +0000 (00:50 +0000)]
Modified release note:  Rewrite CVS update note to reflect reality

Submitted by: nectar

20 years agoReorganize the timer code a little and implement NdisInitializeTimer()
Bill Paul [Mon, 26 Jan 2004 21:21:53 +0000 (21:21 +0000)]
Reorganize the timer code a little and implement NdisInitializeTimer()
and NdisCancelTimer(). NdisInitializeTimer() doesn't accept an NDIS
miniport context argument, so we have to derive it from the timer
function context (which is supposed to be the adapter private context).
NdisCancelTimer is now an alias for NdisMCancelTimer().

Also add stubs for NdisMRegisterDevice() and NdisMDeregisterDevice().
These are no-ops for now, but will likely get fleshed in once I start
working on the Am1771/Am1772 wireless driver.

20 years agoFix ~/.hushlogin handling.
Max Khon [Mon, 26 Jan 2004 20:04:47 +0000 (20:04 +0000)]
Fix ~/.hushlogin handling.

PR: 61354
Submitted by: Eugeny Grosbein <eugen (at) kuzbass.ru>

20 years ago*BANG* *BANG* *BANG* *BANG* *BANG* *BANG* *CLICK* *CLICK* *CLICK*
John Baldwin [Mon, 26 Jan 2004 20:02:01 +0000 (20:02 +0000)]
*BANG* *BANG* *BANG* *BANG* *BANG* *BANG* *CLICK* *CLICK* *CLICK*
*BANG* *BANG* *BANG* *BANG* *BANG* *BANG* *CLICK* *CLICK* *CLICK*

Death to the stripped down BOOTMFS kernel for boot floppies and all the
cruft that goes along with it.

20 years agoOverhaul our boot floppy generation system so that it scales better and
John Baldwin [Mon, 26 Jan 2004 19:58:38 +0000 (19:58 +0000)]
Overhaul our boot floppy generation system so that it scales better and
requires minimal care and feeding for future releases.
- Consolidate multitude of floppy related constants down to a normal
  FLOPPY set for 1.44 floppies and on PC98 a SMALLFLOPPY set for 1.2
  floppies.  Also, cleanup the i386 arch section by not duplicating
  constants that are the same on both machine types (i386 and pc98).
- Update the ZIPNSPLIT macro to generate a file chunks that will actually
  fit onto 1.44 floppies formatted with UFS1.  Unfortunately, split(1)
  seems to be somewhat buggy, so the files generated are slightly larger
  than the argument passed to split.
- Split the release.10 target into 3 targers: floppies.1, floppies.2 and
  floppies.3 that are added to EXTRAS only if NOFLOPPIES is defined.
  floppies.1 builds the install floppies, floppies.2 builds the fixit
  floppy, and floppies.3 generates the md5 sums and READMEs for the
  floppies/ directory.
- Drop the by now largely obsolete and less useful boot.flp picture.  This
  was more useful when the mfsroot lived inside the kernel rather than
  being loaded from a separate file by the loader.
- Only build a single mfsroot containing no modules that is used for all
  installation methods.
- Use split-file.sh to split up a gzipped GENERIC kernel into however many
  floppies it takes for the boot kernel.  Currently, a stock 5.2 GENERIC
  kernel including WITNESS, INVARIANTS, DDB, and other assorted bloat fits
  onto 2 additional floppies besides the boot floppy with some room to
  spare.
- If SPLIT_MFSROOT is defined, the mfsroot.gz file is similar split into
  however many floppies are needed.  Currently it is not defined as the
  mfsroot.gz fits onto the current boot.flp with room to spare.
- Add a 'makeFloppySet' target which builds a floppy set for a file that
  was split using split-file.sh.
- Rename the doMFSKERN target to 'buildBootFloppy' as that more closely
  matches what it does now.  We no longer build a custom BOOTMFS kernel for
  each boot floppy.
- We no longer build a 2.88 boot.flp image to use with emulated CD booting.
  The non-emulated cdboot works for almost everyone who boots off of CD and
  if it doesn't work on a particular machine, the user can always boot from
  the 1.44 floppy images.
- We no longer build a driver floppy or stick kernel modules in the mfsroot
  since we now use a stock kernel when booting from floppy.

20 years agoAdd a script to split a single file up into chunks using split along with
John Baldwin [Mon, 26 Jan 2004 19:45:09 +0000 (19:45 +0000)]
Add a script to split a single file up into chunks using split along with
a list file suitable for use with libstand's splitfs filesystem.  The first
chunk of the file is 16k and has an extension of '.boot' and is meant to be
placed on the boot floppy.  This is required because the current
implementations of gzipfs and bzipfs in libstand want to read in the header
of the file each time it is opened.

20 years agoThe problem Makefile rev 1.70 and fbsd-kgdb-i386.h rev 1.4 fixed is that
David E. O'Brien [Mon, 26 Jan 2004 19:40:47 +0000 (19:40 +0000)]
The problem Makefile rev 1.70 and fbsd-kgdb-i386.h rev 1.4 fixed is that
GDB was using the instruction pointer for 'calltrap', rather than the
infinitely more useful instruction pointer where the trap occurred.

Submitted by: Peter Edwards <pmedwards@eircom.net>

20 years ago- Call acpi_Startup() before parsing interrupt-related APIC resources so we
John Baldwin [Mon, 26 Jan 2004 19:34:24 +0000 (19:34 +0000)]
- Call acpi_Startup() before parsing interrupt-related APIC resources so we
  can look at the ACPI tables.  If the startup fails, we panic and tell the
  user to try rebooting with ACPI disabled.  Previously in this case we
  would try to use $PIR interrupt routing which only works for the atpic
  while using the apic to handle interrupts which would result in misrouted
  interrupts and a hang at boot time with no error message.
- Read the SCI out of the FADT instead of hardcoding 9 when checking to see
  if an interrupt override entry is for the SCI.
- Try to work around some BIOS brain damage for the SCI's programming by
  forcing the SCI to be level triggered and active low if it is routed
  to a non-ISA interrupt (greater than 15) or if it is identity mapped with
  edge trigger and active high polarity.  This should fix some of the hangs
  with device apic and ACPI that some people see.

Reviewed by: njl

20 years agoMove the code to initialize ACPI-CA into a separate acpi_Startup() function
John Baldwin [Mon, 26 Jan 2004 19:29:04 +0000 (19:29 +0000)]
Move the code to initialize ACPI-CA into a separate acpi_Startup() function
that other modules can call to initialize ACPI-CA before the new-bus probe
and change acpi_identify() to call it.

Reviewed by: njl

20 years agoImplement pam_sm_close_session().
Dag-Erling Smørgrav [Mon, 26 Jan 2004 19:28:37 +0000 (19:28 +0000)]
Implement pam_sm_close_session().

PR: bin/61657
Submitted by: Joe R. Doupnik <jrd@cc.usu.edu>

20 years agoNew release note: SMBFS request signing [1].
Bruce A. Mah [Mon, 26 Jan 2004 16:41:46 +0000 (16:41 +0000)]
New release note:  SMBFS request signing [1].

Modified release notes:  Expand on ULE features [2], provide a further
clarification on CVS changes.

Submitted by: tjr [1], jeffr [2]

20 years agoGet rid of the last two uses of NG_NODELEN + 1 in the base system by
Hartmut Brandt [Mon, 26 Jan 2004 16:41:21 +0000 (16:41 +0000)]
Get rid of the last two uses of NG_NODELEN + 1 in the base system by
replacing them with NG_NODESIZ.

20 years agoAdd missing 'device ataraid' to support ATA software RAID.
Alex Dupre [Mon, 26 Jan 2004 16:38:33 +0000 (16:38 +0000)]
Add missing 'device ataraid' to support ATA software RAID.

Noticed by: Dario Freni <saturnero@gufi.org>
Approved by: blackend (mentor)
Reviewed by: sos

20 years agoDo not treat make variables as Perl variables.
Alexander Kabaev [Mon, 26 Jan 2004 16:12:29 +0000 (16:12 +0000)]
Do not treat make variables as Perl variables.

20 years agoXref kqueue and poll
Eivind Eklund [Mon, 26 Jan 2004 15:20:16 +0000 (15:20 +0000)]
Xref kqueue and poll

20 years agoXref kqueue
Eivind Eklund [Mon, 26 Jan 2004 15:19:54 +0000 (15:19 +0000)]
Xref kqueue

20 years agoReplace deprecated NG_NODELEN with the new NG_NODESIZ. There is one
Hartmut Brandt [Mon, 26 Jan 2004 15:19:43 +0000 (15:19 +0000)]
Replace deprecated NG_NODELEN with the new NG_NODESIZ. There is one
problem here still to be solved: the sockaddr_hci has still a 16 byte
field for the node name. The code currently does not correctly use the
length field in the sockaddr to handle the address length, so
node names get truncated to 15 characters when put into a sockaddr_hci.

20 years agoAvoid dereferencing null pointers in fsck_ffs. (pfatal may return,
Colin Percival [Mon, 26 Jan 2004 15:05:30 +0000 (15:05 +0000)]
Avoid dereferencing null pointers in fsck_ffs. (pfatal may return,
so it isn't a safe way of handling [mc]alloc failures.)

PR: misc/61800
Approved by: rwatson (mentor)

20 years agoGet rid of the old *LEN constants in favour of the new *SIZ constants
Hartmut Brandt [Mon, 26 Jan 2004 14:57:49 +0000 (14:57 +0000)]
Get rid of the old *LEN constants in favour of the new *SIZ constants
that also include the trailing \0 byte.

20 years agoDefine the new command NGM_SOURCE_START_NOW to allow generation of
Hartmut Brandt [Mon, 26 Jan 2004 14:54:39 +0000 (14:54 +0000)]
Define the new command NGM_SOURCE_START_NOW to allow generation of
traffic for non-ethernet hooks. This commit should have been packaged
with the commit to ng_source.c.

20 years agoMake ng_source to work with non-ethernet interfaces. We do this by
Hartmut Brandt [Mon, 26 Jan 2004 14:53:16 +0000 (14:53 +0000)]
Make ng_source to work with non-ethernet interfaces. We do this by
introducing a START_NOW command. This command does not send
and GET_IFINDEX message downstream (to wait for the response from
the ETHERNET node), but directly starts the sending process. This allows
one to generate traffic as input for any hook on any node.

20 years agoDeclare a function to silence a warning.
Hartmut Brandt [Mon, 26 Jan 2004 14:48:21 +0000 (14:48 +0000)]
Declare a function to silence a warning.

20 years agoShould use the non-locking versions of the ifqueue macros to
Hartmut Brandt [Mon, 26 Jan 2004 14:46:35 +0000 (14:46 +0000)]
Should use the non-locking versions of the ifqueue macros to
fiddle around with private queues, because their mutex is not
needed. All this processing should be protected by the netgraph
locking.

20 years agoReplace a call to bzero() with an M_ZERO flag. Replace the MALLOC() with
Hartmut Brandt [Mon, 26 Jan 2004 14:44:36 +0000 (14:44 +0000)]
Replace a call to bzero() with an M_ZERO flag. Replace the MALLOC() with
malloc().

20 years agoThe version in the type description must be the ABI version, not
Hartmut Brandt [Mon, 26 Jan 2004 14:14:09 +0000 (14:14 +0000)]
The version in the type description must be the ABI version, not
the netgraph version.

Correct the return type of a function: it wants to return an error
code, so it cannot be void.

20 years agoGet rid of the deprecated *LEN constants in favour of the new
Hartmut Brandt [Mon, 26 Jan 2004 14:05:31 +0000 (14:05 +0000)]
Get rid of the deprecated *LEN constants in favour of the new
*SIZ constants that include the trailing \0 byte.

20 years agoMake a message less scary (based on user feedback)
Eivind Eklund [Mon, 26 Jan 2004 13:45:21 +0000 (13:45 +0000)]
Make a message less scary (based on user feedback)

20 years agoDocument the interface method if_input().
Yaroslav Tykhiy [Mon, 26 Jan 2004 12:51:00 +0000 (12:51 +0000)]
Document the interface method if_input().

20 years agomdoc cleanup.
Dag-Erling Smørgrav [Mon, 26 Jan 2004 12:50:30 +0000 (12:50 +0000)]
mdoc cleanup.

Submitted by: ru

20 years agoAdd support for WCCPv2. It should be enablem manually using link2
Maxim Sobolev [Mon, 26 Jan 2004 12:33:56 +0000 (12:33 +0000)]
Add support for WCCPv2. It should be enablem manually using link2
ifconfig(8) flag since header for version 2 is the same but IP payload
is prepended with additional 4-bytes field.

Inspired by: Roman Synyuk <roman@univ.kiev.ua>
MFC after: 2 weeks

20 years agoFixed some style bugs.
Yoshihiro Takahashi [Mon, 26 Jan 2004 12:28:40 +0000 (12:28 +0000)]
Fixed some style bugs.

20 years agoGet rid of the deprecated *LEN constants and use the new *SIZ
Hartmut Brandt [Mon, 26 Jan 2004 12:24:07 +0000 (12:24 +0000)]
Get rid of the deprecated *LEN constants and use the new *SIZ
(that include the trailing \0) constants instead.

20 years ago(whilespace-only)
Maxim Sobolev [Mon, 26 Jan 2004 12:21:59 +0000 (12:21 +0000)]
(whilespace-only)

Kill trailing spaces.

20 years agoAdd support for virtual interfaces. These have no phy chip and, hence, we
Hartmut Brandt [Mon, 26 Jan 2004 12:17:49 +0000 (12:17 +0000)]
Add support for virtual interfaces. These have no phy chip and, hence, we
need to handle interfaces without phy specially.

20 years agoAdd a device type for virtual interfaces.
Hartmut Brandt [Mon, 26 Jan 2004 12:13:11 +0000 (12:13 +0000)]
Add a device type for virtual interfaces.

20 years agoClearly state that upon SIOCSIFFLAGS, ifp->if_flags is updated
Yaroslav Tykhiy [Mon, 26 Jan 2004 12:08:23 +0000 (12:08 +0000)]
Clearly state that upon SIOCSIFFLAGS, ifp->if_flags is updated
at the common ifioctl() level.

20 years agoAdd an ATM sub-type for virtual interfaces.
Hartmut Brandt [Mon, 26 Jan 2004 11:52:32 +0000 (11:52 +0000)]
Add an ATM sub-type for virtual interfaces.

20 years agoExtend the description of SIOCSIFCAP.
Yaroslav Tykhiy [Mon, 26 Jan 2004 11:48:26 +0000 (11:48 +0000)]
Extend the description of SIOCSIFCAP.

20 years agoNew -e flag, modifies the behavior of the -u uid flag to use the
Diomidis Spinellis [Mon, 26 Jan 2004 11:11:36 +0000 (11:11 +0000)]
New -e flag, modifies the behavior of the -u uid flag to use the
effective user id, instead of the real user id.

MFC after: 2 weeks

20 years agoUpdate the upgrade instructions to account for the fact, that
Hartmut Brandt [Mon, 26 Jan 2004 10:28:31 +0000 (10:28 +0000)]
Update the upgrade instructions to account for the fact, that
there is no need anymore to re-create files. Also give a hint to
look for changes needed to the Makefiles.

20 years agoMake this WARNS=3 clean.
Ruslan Ermilov [Mon, 26 Jan 2004 10:27:18 +0000 (10:27 +0000)]
Make this WARNS=3 clean.

20 years agoAdd a note to say that ULE is now the default scheduler in GENERIC.
Alex Dupre [Mon, 26 Jan 2004 09:57:04 +0000 (09:57 +0000)]
Add a note to say that ULE is now the default scheduler in GENERIC.

PR: docs/61870
Submitted by: Xin LI <delphij@frontfree.net>
Approved by: imp

20 years agoFix problem where kgdb misses trap frames.
David E. O'Brien [Mon, 26 Jan 2004 09:18:47 +0000 (09:18 +0000)]
Fix problem where kgdb misses trap frames.

Reported by: iedowse

20 years agoUse proper name.
David E. O'Brien [Mon, 26 Jan 2004 09:17:26 +0000 (09:17 +0000)]
Use proper name.

20 years agoAvoid possible panic on shutdown: if there are still some devices
Bill Paul [Mon, 26 Jan 2004 08:36:18 +0000 (08:36 +0000)]
Avoid possible panic on shutdown: if there are still some devices
attached when shutting down, kill our kthreads, but don't destroy
the mutex pool and uma zone resources since the driver shutdown
routine may need them later.

20 years agoRevert changes of rev 1.55; replace with strong encouragement to
Wes Peters [Mon, 26 Jan 2004 07:55:30 +0000 (07:55 +0000)]
Revert changes of rev 1.55; replace with strong encouragement to
read fetch(3) as well.

Requested by: des (maintainer)

20 years agoFix sorting in the device list
Christian Brueffer [Mon, 26 Jan 2004 07:21:28 +0000 (07:21 +0000)]
Fix sorting in the device list

20 years agoPrevious commit did the reverse of what the log message said (and of
Dag-Erling Smørgrav [Mon, 26 Jan 2004 07:09:12 +0000 (07:09 +0000)]
Previous commit did the reverse of what the log message said (and of
what I intended to do).  Really remove my middle name.

20 years agostyle.Makefile(5)
David E. O'Brien [Mon, 26 Jan 2004 06:10:26 +0000 (06:10 +0000)]
style.Makefile(5)

20 years agoFollow existing GDB style for frame_info vars.
David E. O'Brien [Mon, 26 Jan 2004 06:07:33 +0000 (06:07 +0000)]
Follow existing GDB style for frame_info vars.

20 years agoRemove trailing white space.
David E. O'Brien [Mon, 26 Jan 2004 06:05:04 +0000 (06:05 +0000)]
Remove trailing white space.

20 years agoUse malloc() instead of alloca() to allocate a (potentially) large buffer
Stephen McKay [Mon, 26 Jan 2004 04:27:22 +0000 (04:27 +0000)]
Use malloc() instead of alloca() to allocate a (potentially) large buffer
for storing the "diff -n" output.  Some files (eg ports/INDEX,v) are too
big nowadays to fit on the stack.

Submitted by: Stephen Montgomery-Smith <stephen@math.missouri.edu>

20 years agoThe log file is more useful when line buffered.
Stephen McKay [Mon, 26 Jan 2004 04:08:43 +0000 (04:08 +0000)]
The log file is more useful when line buffered.

Submitted by: Stephen Montgomery-Smith <stephen@math.missouri.edu>

20 years agoBe much more strict about parsing tagged log messages from /dev/klog;
Ian Dowse [Mon, 26 Jan 2004 00:46:46 +0000 (00:46 +0000)]
Be much more strict about parsing tagged log messages from /dev/klog;
if the line doesn't match ^<%d>, then treat it as a regular kernel
printf line. Previously if a kernel printf message started with "<"
it would be interpreted as a log message, often with LOG_EMERG
level. This was triggered by some printfs in sys/dev/aic7xxx/, and
can also happen with the partial lines that result if syslogd cannot
keep up with the rate of arrival of kernel messages.

Reviewed by: dwmalone
MFC after: 1 week

20 years agoFix a panic in dsp_clone when trying to access a sound
Mathew Kanner [Sun, 25 Jan 2004 22:46:22 +0000 (22:46 +0000)]
Fix a panic in dsp_clone when trying to access a sound
device that doesn't exists.  I'm using my discretion and
committing without mentor approval since Seigo is away.

Noticed by: Maxime Henrion <mux@freebsd.org>

20 years agoTrim IDE/ATA device list in favor of the list in the ata.4 manpage
Christian Brueffer [Sun, 25 Jan 2004 21:57:57 +0000 (21:57 +0000)]
Trim IDE/ATA device list in favor of the list in the ata.4 manpage

20 years agoNew release note: PFIL_HOOKS in GENERIC.
Bruce A. Mah [Sun, 25 Jan 2004 21:54:24 +0000 (21:54 +0000)]
New release note:  PFIL_HOOKS in GENERIC.

20 years agoCleanup CFLAGS in libsdp(3) Makefile
Maksim Yevmenkin [Sun, 25 Jan 2004 21:33:59 +0000 (21:33 +0000)]
Cleanup CFLAGS in libsdp(3) Makefile
Connect sdpd(8) to the build

Reviewed by: ru, imp (mentor)

20 years ago- Existing code would ignore pccard_ether_delay when more then 9 seconds
Doug Ambrisko [Sun, 25 Jan 2004 19:52:16 +0000 (19:52 +0000)]
- Existing code would ignore pccard_ether_delay when more then 9 seconds
- If there was an exiting dhclient running on the same interface as the
  new iface that left and returned then dhclient would be told to use the
  same interface twice.  Dhclient would fail and exit after getting
  confused.  Use "sort -u" on them to ensure no duplicates.
  This is a mostly a race condition on suspend and resume and how things
  happen to occur.
- Check for netmask being set on an interface rather then up.  An interface
  can be up but not configured.

Reviewed by: mbr

20 years agoFix the case where .OBJDIR != .CURDIR.
Dag-Erling Smørgrav [Sun, 25 Jan 2004 19:11:43 +0000 (19:11 +0000)]
Fix the case where .OBJDIR != .CURDIR.

20 years agoUpdate Eterm entry to Eterm 0.9.2
Olivier Houchard [Sun, 25 Jan 2004 19:04:50 +0000 (19:04 +0000)]
Update Eterm entry to Eterm 0.9.2

Submitted by: Geraud CONTINSOUZAS <geraud.continsouzas@wanadoo.fr>
MFC after: 3 days

20 years agoThis setup was used for amd64 and powerpc before they reached the point
Dag-Erling Smørgrav [Sun, 25 Jan 2004 19:04:37 +0000 (19:04 +0000)]
This setup was used for amd64 and powerpc before they reached the point
where a normal buildworld would succeed.  It is no longer required.

20 years agoWhen aborting fork() due to a failure, if using MAC, make sure to clean
Robert Watson [Sun, 25 Jan 2004 18:42:18 +0000 (18:42 +0000)]
When aborting fork() due to a failure, if using MAC, make sure to clean
up the p_label field.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, McAfee Research

20 years agoavoid duplicate free.
Hajimu UMEMOTO [Sun, 25 Jan 2004 17:18:12 +0000 (17:18 +0000)]
avoid duplicate free.
(though KAME doesn't decide how to fix it yet, I once commit it
to be in time for 5.2.1-RELEASE.)

Submitted by: itojun

20 years agoAdd SIS964 to the list of supported chipsets
Christian Brueffer [Sun, 25 Jan 2004 16:13:49 +0000 (16:13 +0000)]
Add SIS964 to the list of supported chipsets

Submitted by: bmah

20 years agoBack out rev. 1.40
Christian Brueffer [Sun, 25 Jan 2004 16:12:09 +0000 (16:12 +0000)]
Back out rev. 1.40

The hardware notes were wrong WRT supported chipsets (northbridges are not
ata related)

Submitted by: bmah

20 years agoFixed some style bugs (insertion sort errors, tab lossage, and ornation
Bruce Evans [Sun, 25 Jan 2004 15:27:23 +0000 (15:27 +0000)]
Fixed some style bugs (insertion sort errors, tab lossage, and ornation
of EOF).

20 years agoRegister the uart(4)'s spin lock with witness(4).
Ruslan Ermilov [Sun, 25 Jan 2004 15:04:37 +0000 (15:04 +0000)]
Register the uart(4)'s spin lock with witness(4).

20 years agoCorrect the name of a loader(8) tunable.
Ruslan Ermilov [Sun, 25 Jan 2004 14:03:55 +0000 (14:03 +0000)]
Correct the name of a loader(8) tunable.

20 years agoUpdate the "overview of FreeBSD changes to OpenSSH-portable" to reflect
Dag-Erling Smørgrav [Sun, 25 Jan 2004 13:09:56 +0000 (13:09 +0000)]
Update the "overview of FreeBSD changes to OpenSSH-portable" to reflect
reality.

20 years agoRemove trailing whitespace.
Dag-Erling Smørgrav [Sun, 25 Jan 2004 12:32:56 +0000 (12:32 +0000)]
Remove trailing whitespace.

20 years agoReplace description of the mutex profiling code with a reference to
Dag-Erling Smørgrav [Sun, 25 Jan 2004 12:31:59 +0000 (12:31 +0000)]
Replace description of the mutex profiling code with a reference to
the newly committed manual page.

20 years agoAdd more implentation notes based on the comments in sys/conf/NOTES.
Dag-Erling Smørgrav [Sun, 25 Jan 2004 12:30:35 +0000 (12:30 +0000)]
Add more implentation notes based on the comments in sys/conf/NOTES.

20 years agoFixed a bug that previous revision has introduced -- we missed
Ruslan Ermilov [Sun, 25 Jan 2004 12:28:36 +0000 (12:28 +0000)]
Fixed a bug that previous revision has introduced -- we missed
the double quotes ("" and '') as a separate argument.

Reported by: ache

The fix in this and previous revisions combined is functionally
equivalent to the below patch against rev. 1.27 but the code is
now much easier to follow:

%%%
Index: str.c
===================================================================
RCS file: /home/ncvs/src/usr.bin/make/str.c,v
retrieving revision 1.27
diff -u -r1.27 str.c
--- str.c 28 Oct 2002 23:33:57 -0000 1.27
+++ str.c 25 Jan 2004 12:09:21 -0000
@@ -168,7 +168,7 @@
  inquote = (char) ch;
  /* Don't miss "" or '' */
  if (start == NULL && p[1] == inquote) {
- start = t + 1;
+ start = t;
  break;
  }
  }
%%%

20 years agoAdd a cross-reference to MUTEX_PROFILING(9).
Dag-Erling Smørgrav [Sun, 25 Jan 2004 12:24:23 +0000 (12:24 +0000)]
Add a cross-reference to MUTEX_PROFILING(9).

20 years agoAdd a manual page for the mutex profiling code.
Dag-Erling Smørgrav [Sun, 25 Jan 2004 12:23:53 +0000 (12:23 +0000)]
Add a manual page for the mutex profiling code.

20 years agoI don't normally use my middle name, so remove it from attributions in
Dag-Erling Smørgrav [Sun, 25 Jan 2004 11:39:42 +0000 (11:39 +0000)]
I don't normally use my middle name, so remove it from attributions in
man pages (though not from copyright notices).  While I'm here, add email
addresses where appropriate.

20 years agoDhclient dumps core on suspend/resume cycles. If the client isn't active
Martin Blapp [Sun, 25 Jan 2004 11:30:50 +0000 (11:30 +0000)]
Dhclient dumps core on suspend/resume cycles.  If the client isn't active
then we need to go to the reboot state or in state_bound it will core on
the de-reference of client -> active -> options since client -> active = NULL.

While we are here, fix the indentation.

Submitted by: Doug Ambrisko <ambrisko@ambrisko.com>

20 years agoMove LongRun support out of identcpu.c, where it hardly belongs, into its
Maxim Sobolev [Sun, 25 Jan 2004 09:59:16 +0000 (09:59 +0000)]
Move LongRun support out of identcpu.c, where it hardly belongs, into its
own file and make it opt-in, not mandatory, depending on CPU_ENABLE_LONGRUN
config(8) option.

Discussed with: nate
MFC after:      2 weeks

20 years agoMove LongRun support out of identcpu.c, where it hardly belongs, into its
Maxim Sobolev [Sun, 25 Jan 2004 09:59:15 +0000 (09:59 +0000)]
Move LongRun support out of identcpu.c, where it hardly belongs, into its
own file and make it opt-in, not mandatory, depending on CPU_ENABLE_LONGRUN
config(8) option.

PR:
Submitted by:
Reviewed by:
Approved by:
Obtained from:
Discussed with: nate
MFC after:      2 weeks

20 years ago - sched_strict has been dead for a long time now. Get rid of it.
Jeff Roberson [Sun, 25 Jan 2004 08:58:14 +0000 (08:58 +0000)]
 - sched_strict has been dead for a long time now.  Get rid of it.

20 years ago - Clean up KASSERTS.
Jeff Roberson [Sun, 25 Jan 2004 08:57:38 +0000 (08:57 +0000)]
 - Clean up KASSERTS.

20 years ago - Correct function names listed in KASSERTs. These were copied from other
Jeff Roberson [Sun, 25 Jan 2004 08:21:46 +0000 (08:21 +0000)]
 - Correct function names listed in KASSERTs.  These were copied from other
   code and it was sloppy of me not to adjust these sooner.

20 years ago - Now that both schedulers support temporary cpu pinning use this rather
Jeff Roberson [Sun, 25 Jan 2004 08:04:45 +0000 (08:04 +0000)]
 - Now that both schedulers support temporary cpu pinning use this rather
   than the switchin functions to guarantee that we're operating with the
   correct tlb entry.
 - Remove the post copy/zero tlb invalidations.  It is faster to invalidate
   an entry that is known to exist and so it is faster to invalidate after
   use.  However, some architectures implement speculative page table
   prefetching so we can not be guaranteed that the invalidated entry is still
   invalid when we re-enter any of these functions.  As a result of this we
   must always invalidate before use to be safe.

20 years ago - Implement cpu pinning and binding. This is acomplished by keeping a per-
Jeff Roberson [Sun, 25 Jan 2004 08:00:04 +0000 (08:00 +0000)]
 - Implement cpu pinning and binding.  This is acomplished by keeping a per-
   cpu run queue that is only used for pinned or bound threads.

Submitted by: Chris Bradfield <chrisb@ation.org>

20 years ago - Use a unique string for the sched_setup SYSINIT and rename sched_setup to
Jeff Roberson [Sun, 25 Jan 2004 07:49:45 +0000 (07:49 +0000)]
 - Use a unique string for the sched_setup SYSINIT and rename sched_setup to
   synch_setup.  The schedulers use the sched_setup function name.

20 years ago - Compile 4BSD in LINT since ULE will be tested by GENERIC kernel builds.
Jeff Roberson [Sun, 25 Jan 2004 07:47:57 +0000 (07:47 +0000)]
 - Compile 4BSD in LINT since ULE will be tested by GENERIC kernel builds.
 - Fix the formatting on the ULE options line, I didn't notice that a space
   was used normally.

Reported by: bde

20 years agoDescribe EOVERFLOW case
Andrey A. Chernov [Sun, 25 Jan 2004 06:24:08 +0000 (06:24 +0000)]
Describe EOVERFLOW case