]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agospelling
Philippe Charnier [Tue, 11 Dec 2001 18:36:29 +0000 (18:36 +0000)]
spelling
move some err() calls to errx() when message explains the pb enough
do not set errno just before exiting the program
lowercase errx() strings

22 years agoSpelling
Philippe Charnier [Tue, 11 Dec 2001 18:24:59 +0000 (18:24 +0000)]
Spelling

22 years agoDo not dot terminate errx() strings
Philippe Charnier [Tue, 11 Dec 2001 18:22:01 +0000 (18:22 +0000)]
Do not dot terminate errx() strings

22 years agoAdd aliases pointing to postmaster for the two new mail related accounts.
Gregory Neil Shapiro [Tue, 11 Dec 2001 17:29:57 +0000 (17:29 +0000)]
Add aliases pointing to postmaster for the two new mail related accounts.

Reminded by: sheldonh
MFC after: 3 days

22 years agoGet rid of unsed since rev 1.109 of lib/Makefile WANT_CSRG_LIBM define.
Alexey Zelkin [Tue, 11 Dec 2001 16:38:33 +0000 (16:38 +0000)]
Get rid of unsed since rev 1.109 of lib/Makefile WANT_CSRG_LIBM define.

We'll never install math.h wrapped by this define since msun's math.h
is using, so it should be removed from the source tree at some point
(after merge of useful stuff to msun's math.h which is installing now
to /usr/include)

Reviewed by:    bde

22 years agoUpdate the default newfs block and fragment sizes from 8192/1024 to
Sheldon Hearn [Tue, 11 Dec 2001 16:21:40 +0000 (16:21 +0000)]
Update the default newfs block and fragment sizes from 8192/1024 to
16384/2048.

Following recent discussions on the -arch mailing list, involving dillon
and mckusick, this change parallels the one made over a decade ago when
the default was bumped up from 4096/512.

This should provide significant performance improvements for most
folks, less significant performance losses for a few folks and
wasted space lost to large fragments for many folks.

For discussion, please see the following thread in the -arch archive:

Subject: Using a larger block size on large filesystems

The discussion ceases to be relevant when the issue of partitioning
schemes is raised.

22 years agoGet rid of unsed since rev 1.109 of lib/Makefile WANT_CSRG_LIBM define.
Alexey Zelkin [Tue, 11 Dec 2001 16:10:26 +0000 (16:10 +0000)]
Get rid of unsed since rev 1.109 of lib/Makefile WANT_CSRG_LIBM define.
Also replace internal make variable _libm with hardcoded path to lib/msun

Reviewed by: bde

22 years agoAdd my e-mail to copyrights
Alexey Zelkin [Tue, 11 Dec 2001 16:00:47 +0000 (16:00 +0000)]
Add my e-mail to copyrights

22 years ago* Add my e-mail to copyrights
Alexey Zelkin [Tue, 11 Dec 2001 15:55:42 +0000 (15:55 +0000)]
* Add my e-mail to copyrights
* style(9)'ify

22 years agoFix grouping string handling
Alexey Zelkin [Tue, 11 Dec 2001 15:26:36 +0000 (15:26 +0000)]
Fix grouping string handling

22 years agoPreserve directory timestamps with -p. Allow non-empty read-only
Stephen McKay [Tue, 11 Dec 2001 13:18:10 +0000 (13:18 +0000)]
Preserve directory timestamps with -p.  Allow non-empty read-only
directories to be copied.  Apply umask to newly created directories
when -p is not specified.

PR: 27970
PR: 31633

MFC after: 4 days

22 years agoFix a typo.
Sheldon Hearn [Tue, 11 Dec 2001 13:14:48 +0000 (13:14 +0000)]
Fix a typo.

Reported by: Jurrien Koopmans <jjkoopmans@home.nl>

22 years agoTypo in warning message (chown should be chmod).
Stephen McKay [Tue, 11 Dec 2001 13:14:15 +0000 (13:14 +0000)]
Typo in warning message (chown should be chmod).

22 years agoCorrect a comment that should have been updated in rev 1.43, when
Sheldon Hearn [Tue, 11 Dec 2001 11:49:58 +0000 (11:49 +0000)]
Correct a comment that should have been updated in rev 1.43, when
CIRCLEQ was removed.

PR: kern/32688
Submitted by: Jordan DeLong <fracture@allusion.net>

22 years agoFix boot -p for DDBless kernels
Guido van Rooij [Tue, 11 Dec 2001 10:21:26 +0000 (10:21 +0000)]
Fix boot -p for DDBless kernels

Pointed out by: John Hay <jhay@icomtek.csir.co.za>

22 years agos/sysctl -w/sysctl/
Ruslan Ermilov [Tue, 11 Dec 2001 08:29:10 +0000 (08:29 +0000)]
s/sysctl -w/sysctl/

22 years agos/sysctl -w/sysctl/
Ruslan Ermilov [Tue, 11 Dec 2001 08:21:46 +0000 (08:21 +0000)]
s/sysctl -w/sysctl/

22 years ago(repeat after me, do not do cvs commit | more. Previous commit was:)
Peter Wemm [Tue, 11 Dec 2001 07:08:43 +0000 (07:08 +0000)]
(repeat after me, do not do cvs commit | more.  Previous commit was:)

Do not compile in VM_MAXUSER_ADDRESS into gdb.  This causes problems if
kvm extends into the user address space.
Also, print IdlePTD and initial pcb value clearly in hex instead of
one in decimal and the other hex (without 0x, so an all-numeric hex
number could easily be decimal)

(This isn't used on alpha/kvm-fbsd.c)

22 years ago*** empty log message ***
Peter Wemm [Tue, 11 Dec 2001 07:04:48 +0000 (07:04 +0000)]
*** empty log message ***

22 years agoWARNS=2 cleanup.
Mike Heffner [Tue, 11 Dec 2001 06:44:29 +0000 (06:44 +0000)]
WARNS=2 cleanup.

Submitted by: Maxime Henrion <mux@qualys.com>
MFC after: 2 weeks

22 years agoWrap Dangerously Dedicated printf under if (bootverbose)
Peter Wemm [Tue, 11 Dec 2001 05:35:43 +0000 (05:35 +0000)]
Wrap Dangerously Dedicated printf under if (bootverbose)

22 years agoAvoid an unnecessary copy of a packet if it is already in a single mbuf.
Luigi Rizzo [Tue, 11 Dec 2001 02:47:53 +0000 (02:47 +0000)]
Avoid an unnecessary copy of a packet if it is already in a single mbuf.
Introduce an additional device flag for those NICs which require the
transmit buffers to be aligned to 32-bit boundaries.

(the equivalen fix for STABLE is slightly simpler because there are
no supported chips which require this alignment there.)

22 years agoDelete some leftover code from a bygone age. We dont have an array of
Peter Wemm [Tue, 11 Dec 2001 01:17:40 +0000 (01:17 +0000)]
Delete some leftover code from a bygone age.  We dont have an array of
IdlePTDS anymore and dont to the PTD[MPPTDI] swapping etc.

22 years ago- Add 'fwrite' and 'fseek' words for writing to and seeking on files.
John Baldwin [Tue, 11 Dec 2001 00:49:34 +0000 (00:49 +0000)]
- Add 'fwrite' and 'fseek' words for writing to and seeking on files.
- Change the 'fopen' keyword to accept a mode parameter.  Note that this
  will break existing 4th scripts that use fopen.  Thus, the loader
  version has been bumped and loader.4th has been changed to check for a
  sufficient version on i386 and alpha.  Be sure that you either do a full
  world build or install or full build and install of sys/boot after this
  since loader.old won't work with the new 4th files and vice versa.

PR: kern/32389
Submitted by: Jonathan Mini <mini@haikugeek.com>
Sponsored by: ClickArray, Inc.

22 years agoMajor restructuring for swizzling to the request queue and unswizzling from
Matt Jacob [Tue, 11 Dec 2001 00:18:45 +0000 (00:18 +0000)]
Major restructuring for swizzling to the request queue and unswizzling from
the response queue. Instead of the ad hoc ISP_SWIZZLE_REQUEST, we now have
a complete set of inline functions in isp_inline.h. Each platform is
responsible for providing just one of a set of ISP_IOX_{GET,PUT}{8,16,32}
macros.

The reason this needs to be done is that we need to have a single set of
functions that will work correctly on multiple architectures for both little
and big endian machines. It also needs to work correctly in the case that
we have the request or response queues in memory that has to be treated
specially (e.g., have ddi_dma_sync called on it for Solaris after we update
it or before we read from it). It also has to handle the SBus cards (for
platforms that have them) which, while on a Big Endian machine, do *not*
require *most* of the request/response queue entry fields to be swizzled
or unswizzled.

One thing that falls out of this is that we no longer build requests in the
request queue itself. Instead, we build the request locally (e.g., on the
stack) and then as part of the swizzling operation, copy it to the request
queue entry we've allocated. I thought long and hard about whether this was
too expensive a change to make as it in a lot of cases requires an extra
copy. On balance, the flexbility is worth it. With any luck, the entry that
we build locally stays in a processor writeback cache (after all, it's only
64 bytes) so that the cost of actually flushing it to the memory area that is
the shared queue with the PCI device is not all that expensive. We may examine
this again and try to get clever in the future to try and avoid copies.

Another change that falls out of this is that MEMORYBARRIER should be taken
a lot more seriously. The macro ISP_ADD_REQUEST does a MEMORYBARRIER on the
entry being added. But there had been many other places this had been missing.
It's now very important that it be done.

Additional changes:

Fix a longstanding buglet of sorts. When we get an entry via isp_getrqentry,
the iptr value that gets returned is the value we intend to eventually plug
into the ISP registers as the entry *one past* the last one we've written-
*not* the current entry we're updating. All along we've been calling sync
functions on the wrong index value. Argh. The 'fix' here is to rename all
'iptr' variables as 'nxti' to remember that this is the 'next' pointer-
not the current pointer.

Devote a single bit to mboxbsy- and set aside bits for output mbox registers
that we need to pick up- we can have at least one command which does not
have any defined output registers (MBOX_EXECUTE_FIRMWARE).

MFC after: 2 weeks

22 years agoAdd support for writing blocks to the loader's disk cache.
John Baldwin [Tue, 11 Dec 2001 00:10:00 +0000 (00:10 +0000)]
Add support for writing blocks to the loader's disk cache.

PR: kern/32389
Submitted by: Jonathan Mini <mini@haikugeek.com>
Sponsored by: ClickArray, Inc.

22 years agoAdd support for writing to BIOS disks.
John Baldwin [Tue, 11 Dec 2001 00:08:10 +0000 (00:08 +0000)]
Add support for writing to BIOS disks.

PR: kern/32389
Submitted by: Jonathan Mini <mini@haikugeek.com>
Sponsored by: ClickArray, Inc.

22 years agoWe support writing to at least one filesystem now.
John Baldwin [Tue, 11 Dec 2001 00:04:28 +0000 (00:04 +0000)]
We support writing to at least one filesystem now.

PR: kern/32389
Submitted by: Jonathan Mini <mini@haikugeek.com>
Sponsored by: ClickArray, Inc.

22 years agoAdd support for overwriting the existing contents of a file to the UFS
John Baldwin [Tue, 11 Dec 2001 00:03:10 +0000 (00:03 +0000)]
Add support for overwriting the existing contents of a file to the UFS
driver in libstand.  This specifically does not expand or truncate files
since the filesystem may be dirty or inconsistent.

PR: kern/32389
Submitted by: Jonathan Mini <mini@haikugeek.com>
Sponsored by: ClickArray, Inc.

22 years agoFix the mouse question again to only run the mouse menu if a user doesn't
John Baldwin [Mon, 10 Dec 2001 22:12:23 +0000 (22:12 +0000)]
Fix the mouse question again to only run the mouse menu if a user doesn't
have a USB mouse.  Here's the deal on how this works:  USB mouse have
moused run for them automatically by usbd so we don't need to setup moused
for them.  We do need to setup moused for other mice though, so if the
user has a USB mouse, we don't need to do anything.  Hence the wording
"Do you have a non-USB mouse installed?" for the question.  The question
can be reworded as "Do you have a PS/2 or Serial mouse installed?" instead
if that is preferred.

22 years agoReorder WARNS line for style.
Mike Heffner [Mon, 10 Dec 2001 21:13:36 +0000 (21:13 +0000)]
Reorder WARNS line for style.

Pointed out by: bde

22 years agoStyle improvements recommended by Bruce as a follow up to some
David Malone [Mon, 10 Dec 2001 21:13:08 +0000 (21:13 +0000)]
Style improvements recommended by Bruce as a follow up to some
of the recent WARNS commits. The idea is:

1) FreeBSD id tags should follow vendor tags.
2) Vendor tags should not be compiled (though copyrights probably should).
3) There should be no blank line between including cdefs and __FBSDIF.

22 years agoMissed an assignment of arg6 in previous commit.
David E. O'Brien [Mon, 10 Dec 2001 20:58:39 +0000 (20:58 +0000)]
Missed an assignment of arg6 in previous commit.

22 years agoRecognize numeric digits inside $id$ tags, eg: $XFree86$
Peter Wemm [Mon, 10 Dec 2001 20:44:31 +0000 (20:44 +0000)]
Recognize numeric digits inside $id$ tags, eg: $XFree86$

PR: 30666
Submitted by: Tony Finch <dot@dotat.at>

22 years agoGet rid of irritating (bogus) message:
Guido van Rooij [Mon, 10 Dec 2001 20:27:18 +0000 (20:27 +0000)]
Get rid of irritating (bogus) message:
pcm0: ac97 codec failed to reset extended mode (0, got 80)
This was due to not masking off the correct extended function bits
in the read value from the extended status reg.

MFC after: 2 days

22 years agoAdjust for the addition of CTR6.
David E. O'Brien [Mon, 10 Dec 2001 20:18:17 +0000 (20:18 +0000)]
Adjust for the addition of CTR6.

22 years agoComplete the CTR6 addition (and TR6 and ITR6...)
David E. O'Brien [Mon, 10 Dec 2001 20:09:49 +0000 (20:09 +0000)]
Complete the CTR6 addition (and TR6 and ITR6...)

22 years agoAdd new boot flag to i386 boot: -p.
Guido van Rooij [Mon, 10 Dec 2001 20:02:22 +0000 (20:02 +0000)]
Add new boot flag to i386 boot: -p.
This flag adds a pausing utility. When ran with -p, during the kernel
probing phase, the kernel will pause after each line of output.
This pausing can be ended with the '.' key, and is automatically
suspended when entering ddb.

This flag comes in handy at systems without a serial port that either hang
during booting or reser.
Reviewed by: (partly by jlemon)
MFC after: 1 week

22 years agoInstall i4bing.4. It lives for more than year in the tree, but
Alexey Zelkin [Mon, 10 Dec 2001 16:55:14 +0000 (16:55 +0000)]
Install i4bing.4. It lives for more than year in the tree, but
never was installed.

MFC After: 3 days

22 years agoRegen from usbdevs rev 1.70: added some AGFA scanners
Sheldon Hearn [Mon, 10 Dec 2001 11:46:23 +0000 (11:46 +0000)]
Regen from usbdevs rev 1.70: added some AGFA scanners

22 years agoAdd some AGFA scanners:
Sheldon Hearn [Mon, 10 Dec 2001 11:40:38 +0000 (11:40 +0000)]
Add some AGFA scanners:

SnapScan 1236U SnapScan e20
SnapScan e25 SnapScan e26
SnapScan e40 SnapScan e50
SnapScan e52

PR: kern/32649
Submitted by: "Erik H. Bakke" <ebakke@trolltech.com>

22 years agoProvide a more specific help line for PLIP installs, reminding the
Murray Stokely [Mon, 10 Dec 2001 10:34:47 +0000 (10:34 +0000)]
Provide a more specific help line for PLIP installs, reminding the
user that they must provide the peer's IP address in the 'extra
options to ifconfig' box.

PR: misc/21273

22 years agoI missed a string concatenation.
David E. O'Brien [Mon, 10 Dec 2001 09:34:47 +0000 (09:34 +0000)]
I missed a string concatenation.

22 years agoAdd identification string for AMD-761 host to PCI bridge.
Murray Stokely [Mon, 10 Dec 2001 09:27:00 +0000 (09:27 +0000)]
Add identification string for AMD-761 host to PCI bridge.

PR: kern/32255

22 years agoRemove the advice relating to the number of cylinders per cylinder
Sheldon Hearn [Mon, 10 Dec 2001 09:26:30 +0000 (09:26 +0000)]
Remove the advice relating to the number of cylinders per cylinder
group.  The highest possible value is calculated automatically since
rev 1.41 of src/sbin/newfs.c .

22 years agoAdd the Bulgarian BDS and Phonetic keymaps.
Peter Pentchev [Mon, 10 Dec 2001 08:37:51 +0000 (08:37 +0000)]
Add the Bulgarian BDS and Phonetic keymaps.

Reviewed by: jhb
Approved by: jhb, silence on -qa
MFC after: 1 week

22 years agoUpdate to C99, s/__FUNCTION__/__func__/,
David E. O'Brien [Mon, 10 Dec 2001 08:09:49 +0000 (08:09 +0000)]
Update to C99, s/__FUNCTION__/__func__/,
also don't use ANSI string concatenation.

22 years agoWARNS=2 cleanup.
Mike Heffner [Mon, 10 Dec 2001 06:42:56 +0000 (06:42 +0000)]
WARNS=2 cleanup.

Submitted by: Maxime Henrion <mux@qualys.com>
MFC after: 2 weeks

22 years agoWARNS=2 cleanup.
Mike Heffner [Mon, 10 Dec 2001 06:25:35 +0000 (06:25 +0000)]
WARNS=2 cleanup.

Submitted by: Maxime Henrion <mux@qualys.com>
MFC after: 2 weeks

22 years agoWARNS=2 cleanup.
Mike Heffner [Mon, 10 Dec 2001 06:05:28 +0000 (06:05 +0000)]
WARNS=2 cleanup.

Submitted by: Maxime Henrion <mux@qualys.com>
MFC after: 2 weeks

22 years agoUpdate to C99, s/__FUNCTION__/__func__/.
David E. O'Brien [Mon, 10 Dec 2001 05:58:28 +0000 (05:58 +0000)]
Update to C99, s/__FUNCTION__/__func__/.

22 years agoUpdate to C99, s/__FUNCTION__/__func__/.
David E. O'Brien [Mon, 10 Dec 2001 05:51:45 +0000 (05:51 +0000)]
Update to C99, s/__FUNCTION__/__func__/.

22 years agoRepeat after me -- "Use of ANSI string concatenation can be bad."
David E. O'Brien [Mon, 10 Dec 2001 05:40:12 +0000 (05:40 +0000)]
Repeat after me -- "Use of ANSI string concatenation can be bad."
In this case, C99's __func__ is properly defined as:

static const char __func__[] = "function-name";

and GCC 3.1 will not allow it to be used in bogus string concatenation.

22 years agoAdd a CTR6, we need it now.
David E. O'Brien [Mon, 10 Dec 2001 05:38:23 +0000 (05:38 +0000)]
Add a CTR6, we need it now.

22 years ago o Eliminate compilation warnings on 64-bit architectures.
Alan Cox [Mon, 10 Dec 2001 03:34:06 +0000 (03:34 +0000)]
 o Eliminate compilation warnings on 64-bit architectures.

22 years agoAn XFree86 install should not depend on any compat libs any longer.
David E. O'Brien [Mon, 10 Dec 2001 02:42:42 +0000 (02:42 +0000)]
An XFree86 install should not depend on any compat libs any longer.
(1) We don't need compat3x and compat4x as we build the bits on the proper
    release now (vs. getting them from the XFree people).
(2) We handle the compat2x needs thru proper port dependancies now.

22 years agoWe do have a compat4x dist for Alpha.
David E. O'Brien [Mon, 10 Dec 2001 02:40:41 +0000 (02:40 +0000)]
We do have a compat4x dist for Alpha.

22 years agoUpdate the list of public NTP servers from
David E. O'Brien [Mon, 10 Dec 2001 02:35:54 +0000 (02:35 +0000)]
Update the list of public NTP servers from
http://www.eecis.udel.edu/~mills/ntp/clock2.htm
Also remove any Stratum 1 servers and only include Stratum 2 and higher
servers.

PR: 32586
Submitted by: Arnaud Launay <asl@launay.org>

22 years agocleanup
Matthew Dillon [Mon, 10 Dec 2001 02:18:05 +0000 (02:18 +0000)]
cleanup

22 years agoRemove PAO3 dependent part where I missed to remove at last commit.
Noriaki Mitsunaga [Mon, 10 Dec 2001 02:07:34 +0000 (02:07 +0000)]
Remove PAO3 dependent part where I missed to remove at last commit.

22 years agoAdd auto-fill-on-delete. When deleting an 'A'uto created partition
Matthew Dillon [Sun, 9 Dec 2001 23:40:02 +0000 (23:40 +0000)]
Add auto-fill-on-delete.  When deleting an 'A'uto created partition
sysinstall will automatically expand the previous partition to take up
the freed up space.  So you can 'D'elete /home and /usr will get the
combined space, or you can 'D'elete /tmp and /var will get the combined space.

This gives the user, developer, or lay person a huge amount of flexibility
in constructing partitions from an 'A'uto base.  It takes only 3 or 4
keystrokes to achieve virtually any combination of having or not having
a /tmp and/or /home after doing an 'A'uto create.

Change 'A'uto creation of /var/tmp to 'A'uto creation /tmp, which should
be less controversial.

MFC after: 6 days

22 years agoWARNS=2 cleanup.
Mike Heffner [Sun, 9 Dec 2001 21:56:31 +0000 (21:56 +0000)]
WARNS=2 cleanup.

Submitted by: Maxime Henrion <mux@qualys.com>
MFC after: 2 weeks

22 years agoTurn on WARNS=2, no code fixes needed.
Mike Heffner [Sun, 9 Dec 2001 21:52:22 +0000 (21:52 +0000)]
Turn on WARNS=2, no code fixes needed.

Submitted by: Maxime Henrion <mux@qualys.com>
MFC after: 2 weeks

22 years agoAdd a NO_6_BYTE quirk for the D-series olympus digital cameras.
Ian Dowse [Sun, 9 Dec 2001 21:38:33 +0000 (21:38 +0000)]
Add a NO_6_BYTE quirk for the D-series olympus digital cameras.

PR: kern/31250
Submitted by: Bryan Liesner <bleez@bellatlantic.net>

22 years agoDon't ignore SIGINT and SIGQUIT. The comment said "Ignore SIGINT
Ian Dowse [Sun, 9 Dec 2001 20:18:36 +0000 (20:18 +0000)]
Don't ignore SIGINT and SIGQUIT. The comment said "Ignore SIGINT
and SIGQUIT during shutdown", but rpc.umntall is also run at boot
time, so ignoring these signals is a really bad idea: it makes it
impossible to ^C the process as it waits for a server response. I
can't see any reason to block these signals during shutdown either.

MFC after: 3 days

22 years agoWe need machine/{signal,ucontext}.h to build a cross GCC compiler.
David E. O'Brien [Sun, 9 Dec 2001 19:39:49 +0000 (19:39 +0000)]
We need machine/{signal,ucontext}.h to build a cross GCC compiler.
So craft the proper versions of these and commit em.

22 years agoFollowing sys/i386/include/ansi.h rev 1.33, add additional integer types
David E. O'Brien [Sun, 9 Dec 2001 19:38:21 +0000 (19:38 +0000)]
Following sys/i386/include/ansi.h rev 1.33, add additional integer types
in <machine/ansi.h> and that are required by <sys/stdint.h>.

22 years agostyle(9) cleanup: spaces -> tabs.
Mike Heffner [Sun, 9 Dec 2001 19:34:11 +0000 (19:34 +0000)]
style(9) cleanup: spaces -> tabs.

MFC after: 2 weeks

22 years agostyle(9)
David E. O'Brien [Sun, 9 Dec 2001 19:12:07 +0000 (19:12 +0000)]
style(9)

22 years agoWe need machine/types.h to build a cross GCC compiler.
David E. O'Brien [Sun, 9 Dec 2001 19:11:45 +0000 (19:11 +0000)]
We need machine/types.h to build a cross GCC compiler.
(copied from src/sys/i386/include/types.h rev 1.23, except for the label_t
size, which is '10' everywhere BUT on i386)

22 years agoPer the CSRG's type.h, 'typedef' has a <tab> after it.
David E. O'Brien [Sun, 9 Dec 2001 18:59:08 +0000 (18:59 +0000)]
Per the CSRG's type.h, 'typedef' has a <tab> after it.
Also add two simpler examples of typedefs to show their formatting.

22 years agoWARNS=2 cleanup.
Mike Heffner [Sun, 9 Dec 2001 18:40:56 +0000 (18:40 +0000)]
WARNS=2 cleanup.

PR: bin/32646
MFC after: 2 weeks

22 years agomachine/limits.h
David E. O'Brien [Sun, 9 Dec 2001 18:30:04 +0000 (18:30 +0000)]
machine/limits.h
(taken from i386/include/limits.h rev 1.19)

22 years agoDisable sleep requests for 5 sec after wakeup. This is needed for
Mitsuru IWASAKI [Sun, 9 Dec 2001 18:02:36 +0000 (18:02 +0000)]
Disable sleep requests for 5 sec after wakeup.  This is needed for
some Toshiba and Thinkpad laptops.
Wakeup event is generated by power button or sleep button on some
laptops but this also generates SCI interrupt, and shutdown the system
as result.  So this is introduced so that acpi driver ignore given
requests for certain period.

22 years ago- Replace M_WAIT with M_TRYWAIT since the M_WAIT flag is deprecated.
Andrew R. Reiter [Sun, 9 Dec 2001 17:48:08 +0000 (17:48 +0000)]
- Replace M_WAIT with M_TRYWAIT since the M_WAIT flag is deprecated.

Spotted by: bde

22 years agoBack out previous commit.
Dag-Erling Smørgrav [Sun, 9 Dec 2001 15:11:55 +0000 (15:11 +0000)]
Back out previous commit.

Requested by: ru

22 years agoSet fetchDebug if v_level is 3 or more.
Dag-Erling Smørgrav [Sun, 9 Dec 2001 15:07:26 +0000 (15:07 +0000)]
Set fetchDebug if v_level is 3 or more.

PR: bin/32615
MFC after: 1 week

22 years agoDon't build with NDEBUG.
Dag-Erling Smørgrav [Sun, 9 Dec 2001 15:06:38 +0000 (15:06 +0000)]
Don't build with NDEBUG.

PR: bin/32615
MFC after: 1 week

22 years agoConditionalize some debugging code that didn't use the DEBUG macro.
Dag-Erling Smørgrav [Sun, 9 Dec 2001 15:05:58 +0000 (15:05 +0000)]
Conditionalize some debugging code that didn't use the DEBUG macro.

MFC after: 1 week

22 years agoIntroduce a fetchDebug global. Change the DEBUG macro so it only runs the
Dag-Erling Smørgrav [Sun, 9 Dec 2001 15:05:19 +0000 (15:05 +0000)]
Introduce a fetchDebug global.  Change the DEBUG macro so it only runs the
debugging code if fetchDebug is set.

PR: bin/32615
MFC after: 1 week

22 years agoDon't assume that the number of fds to select on is known quantity (in
Jordan K. Hubbard [Sun, 9 Dec 2001 09:53:27 +0000 (09:53 +0000)]
Don't assume that the number of fds to select on is known quantity (in
this case 16).  Use dynamic FD_SETs and calculated high-water marks
throughout.  There are also too many versions of telnet in the tree.

Obtained from:  OpenBSD and Apple's Radar database
MFC after:      2 days

22 years agoCleanup sysinstall's 'A'uto partitioning mode to provide more reasonable
Matthew Dillon [Sun, 9 Dec 2001 09:47:09 +0000 (09:47 +0000)]
Cleanup sysinstall's 'A'uto partitioning mode to provide more reasonable
defaults both in regards to the size of the partitions that are created
and in regards to safety and functional separation.

Still TODO: extend the previous partition to cover a deleted partition
if the previous partiton was auto-created, and supply some sort of
solution for /tmp.

Reviewed by: Just about everyone
Approved by: Nobody except maybe my pet mouse fred
Obtained from: God, so complain to HIM
MFC after: 1 week

22 years ago o Eliminate unnecessary synchronization from filt_aiodetach().
Alan Cox [Sun, 9 Dec 2001 08:16:36 +0000 (08:16 +0000)]
 o Eliminate unnecessary synchronization from filt_aiodetach().
 o The manual page for kevent says that EVFILT_AIO returns under the same
   conditions as aio_error().  With that in mind, set the data field
   of the returned struct kevent to the value that would be returned
   by aio_error().
 o Fix two compilation warnings.

22 years ago- Cross reference the section 9 printf man page since it contains
Andrew R. Reiter [Sun, 9 Dec 2001 08:12:06 +0000 (08:12 +0000)]
- Cross reference the section 9 printf man page since it contains
  information with regards to in-kernel format directives that are
  not in printf.3

22 years agoWARNS=2 cleanup.
Mike Heffner [Sun, 9 Dec 2001 07:51:26 +0000 (07:51 +0000)]
WARNS=2 cleanup.

PR: bin/32567
MFC after: 2 weeks

22 years agoWARNS=2 cleanup and fix potential unitialized variable bug.
Mike Heffner [Sun, 9 Dec 2001 07:32:55 +0000 (07:32 +0000)]
WARNS=2 cleanup and fix potential unitialized variable bug.

PR: bin/32567
MFC after: 2 weeks

22 years agoWARNS=2 cleanup.
Mike Heffner [Sun, 9 Dec 2001 07:22:26 +0000 (07:22 +0000)]
WARNS=2 cleanup.

PR: bin/32567
MFC after: 2 weeks

22 years agoThe ScanLogic SL11R-IDE claims to be SCSI-compatible, but actually requires
Mike Smith [Sun, 9 Dec 2001 06:02:46 +0000 (06:02 +0000)]
The ScanLogic SL11R-IDE claims to be SCSI-compatible, but actually requires
the UFI command set.  Even with this patch, it's incredibly slow on my
laptop, but at least now it works.

Note that the drive is reported to CAM with the vendor and device IDs from
the device itself, forcing the user to patch the da(4) quirk table
manually.

22 years agoAllow maxusers to be specified as 0 in the kernel config, which will
Matthew Dillon [Sun, 9 Dec 2001 01:57:09 +0000 (01:57 +0000)]
Allow maxusers to be specified as 0 in the kernel config, which will
cause the system to auto-size to between 32 and 512 depending on the
amount of memory.

MFC after: 1 week

22 years agoConsider PROTO_IPV6 as compressible by CCP.
Brian Somers [Sun, 9 Dec 2001 01:29:12 +0000 (01:29 +0000)]
Consider PROTO_IPV6 as compressible by CCP.

Spotted by: Nick Sayer <nsayer@quack.kfu.com>

22 years agoPull in more stuff from procfs now that it's been pseudofsized.
Dag-Erling Smørgrav [Sun, 9 Dec 2001 00:38:59 +0000 (00:38 +0000)]
Pull in more stuff from procfs now that it's been pseudofsized.

22 years agoFix various bugs in the debugging code and reenable it.
Dag-Erling Smørgrav [Sun, 9 Dec 2001 00:35:30 +0000 (00:35 +0000)]
Fix various bugs in the debugging code and reenable it.

22 years agoFix an incorrect PFS_TRACE. Also, use __func__ instead of __FUNCTION__.
Dag-Erling Smørgrav [Sun, 9 Dec 2001 00:28:12 +0000 (00:28 +0000)]
Fix an incorrect PFS_TRACE.  Also, use __func__ instead of __FUNCTION__.

22 years agop_trespass() has been dead for over a year.
Dag-Erling Smørgrav [Sat, 8 Dec 2001 23:56:37 +0000 (23:56 +0000)]
p_trespass() has been dead for over a year.

22 years agoReplace %i formatting characters with %d since printf(9) doesn't support %i.
Alfred Perlstein [Sat, 8 Dec 2001 23:46:38 +0000 (23:46 +0000)]
Replace %i formatting characters with %d since printf(9) doesn't support %i.

Someone forgot the long flamefest I lost to add %i to kernel printf.

22 years agoFix a KSEfication brain-o in procfs_doprocfile(): return the path of the target process,
Dag-Erling Smørgrav [Sat, 8 Dec 2001 22:34:14 +0000 (22:34 +0000)]
Fix a KSEfication brain-o in procfs_doprocfile(): return the path of the target process,
not the calling process.  While we're here, also unstaticize procfs_doprocfile() and
procfs_docurproc() so linprocfs can call them directly instead of duplicating them.

Submitted by: Dominic Mitchell <dom@semantico.com>

22 years agoDon't assume that the number of fds to select on is known quantity (in
Jordan K. Hubbard [Sat, 8 Dec 2001 21:51:34 +0000 (21:51 +0000)]
Don't assume that the number of fds to select on is known quantity (in
this case 16).  Use dynamic FD_SETs and calculated high-water marks
throughout.
Obtained from: OpenBSD and Apple's Radar database
MFC after: 2 days

22 years agoAdd support for Brazilian IP Addresses. Example `whois 200.236.70.0'.
Mike Barcroft [Sat, 8 Dec 2001 21:22:42 +0000 (21:22 +0000)]
Add support for Brazilian IP Addresses.  Example `whois 200.236.70.0'.

PR: 30676

22 years agoThe nbuf calculation was assuming that PAGE_SIZE = 4096 bytes, which is
Matthew Dillon [Sat, 8 Dec 2001 20:37:08 +0000 (20:37 +0000)]
The nbuf calculation was assuming that PAGE_SIZE = 4096 bytes, which is
bogus.  The calculation has been adjusted to use units of kilobytes.

Noticed by: Chad David <davidc@acns.ab.ca>
MFC after: 1 week

22 years agoStart using .St macro for POSIX.1-2001.
Ruslan Ermilov [Sat, 8 Dec 2001 19:06:23 +0000 (19:06 +0000)]
Start using .St macro for POSIX.1-2001.