]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agoStop calling _amd64_set_gsbase() for COMPAT_32BIT. The amd64 kernel
peter [Tue, 26 Apr 2005 20:38:44 +0000 (20:38 +0000)]
Stop calling _amd64_set_gsbase() for COMPAT_32BIT.  The amd64 kernel
implements i386_set_gsbase(), so there is no need for the variation.

19 years agoFix a the previous commit. I wanted to remove the if and always run the
brooks [Tue, 26 Apr 2005 20:22:31 +0000 (20:22 +0000)]
Fix a the previous commit.  I wanted to remove the if and always run the
body not remove both.

Reported by: ceri
Pointy hat: brooks

19 years agoDon't force IPv6 proto to be printed numericaly.
brooks [Tue, 26 Apr 2005 20:00:07 +0000 (20:00 +0000)]
Don't force IPv6 proto to be printed numericaly.

Noticed by: ceri

19 years agoIntroduce a struct icmphdr which contains the type, code, and cksum
brooks [Tue, 26 Apr 2005 18:10:21 +0000 (18:10 +0000)]
Introduce a struct icmphdr which contains the type, code, and cksum
fields of an ICMP packet.

Use this to allow ipfw to pullup only these values since it does not use
the rest of the packet and it was failed on ICMP packets because they
were not long enough.

struct icmp should probably be modified to use these at some point, but
that will break a fair bit of code so it can wait for another day.

On the off chance that adding this struct breaks something in ports,
bump __FreeBSD_version.

Reported by: Randy Bush <randy at psg dot com>
Tested by: Randy Bush <randy at psg dot com>

19 years agoour get{proto,serv}by*() use a thread-specific data space.
ume [Tue, 26 Apr 2005 18:04:09 +0000 (18:04 +0000)]
our get{proto,serv}by*() use a thread-specific data space.

19 years agoAdd an include for netinet/ip_compat.h directly so that we don't need to
darrenr [Tue, 26 Apr 2005 17:58:05 +0000 (17:58 +0000)]
Add an include for netinet/ip_compat.h directly so that we don't need to
add another special file in the creation of ioctls.c for kdump.

19 years agoDrop the CURPROC, curkse, and curksegrp aliases as they aren't used
jhb [Tue, 26 Apr 2005 17:07:40 +0000 (17:07 +0000)]
Drop the CURPROC, curkse, and curksegrp aliases as they aren't used
anywhere.

19 years agoEnable tcp-wrapper support in the SNMP daemon.
harti [Tue, 26 Apr 2005 16:49:15 +0000 (16:49 +0000)]
Enable tcp-wrapper support in the SNMP daemon.

Submitted by: glebius

19 years agoThis commit was generated by cvs2svn to compensate for changes in r145557,
harti [Tue, 26 Apr 2005 16:43:22 +0000 (16:43 +0000)]
This commit was generated by cvs2svn to compensate for changes in r145557,
which included commits to RCS files with non-trunk default branches.

19 years agoVirgin import of bsnmp 1.9
harti [Tue, 26 Apr 2005 16:43:22 +0000 (16:43 +0000)]
Virgin import of bsnmp 1.9

19 years agoI missed a s/nv/nve/.
obrien [Tue, 26 Apr 2005 16:07:50 +0000 (16:07 +0000)]
I missed a s/nv/nve/.

Submitted by: Tai-hwa Liang <avatar@mmlab.cse.yzu.edu.tw>

19 years agoNot looking for ipfilter source files in the right place
darrenr [Tue, 26 Apr 2005 15:35:50 +0000 (15:35 +0000)]
Not looking for ipfilter source files in the right place

19 years agoFix include directives that were missing the netinet include directory, where
darrenr [Tue, 26 Apr 2005 15:18:45 +0000 (15:18 +0000)]
Fix include directives that were missing the netinet include directory, where
the ipl.h file is found.  Also add back in ip_fil.c, which somehow went missing
in action.

19 years agoUse __func__ throughout devstat.c instead of defining a func_name
mux [Tue, 26 Apr 2005 15:02:01 +0000 (15:02 +0000)]
Use __func__ throughout devstat.c instead of defining a func_name
variable in each function.

19 years agoadd IPv6 awareness for NIS query of gethostby*().
ume [Tue, 26 Apr 2005 14:55:47 +0000 (14:55 +0000)]
add IPv6 awareness for NIS query of gethostby*().

Inspired by: NetBSD

19 years agoMake this compile with GCC4 by fixing a signedness issue.
mux [Tue, 26 Apr 2005 14:51:09 +0000 (14:51 +0000)]
Make this compile with GCC4 by fixing a signedness issue.

Reviewed by: md5(1)

19 years agoFix problems with building libipf:
darrenr [Tue, 26 Apr 2005 14:27:12 +0000 (14:27 +0000)]
Fix problems with building libipf:
ipf_dontuning.c - change the include to look in netinet for ipl.h
ipft_tx.c - make the private use of arrays with tcp flags info in them more
            not use names that can be "confusing"

19 years agoMake this compile with GCC4 by fixing a few signedness related warnings.
mux [Tue, 26 Apr 2005 14:25:11 +0000 (14:25 +0000)]
Make this compile with GCC4 by fixing a few signedness related warnings.

Reviewed by: md5(1)

19 years agoRemove an extra mutex unlock in the morpheus interrupt handler.
scottl [Tue, 26 Apr 2005 13:38:29 +0000 (13:38 +0000)]
Remove an extra mutex unlock in the morpheus interrupt handler.

PR: 80246
Submitted by: Dean Strik
MFC After: 3 days

19 years agoAdd 'curcpu', a shortcut to the current CPU ID, similar to curthread,
rwatson [Tue, 26 Apr 2005 13:15:49 +0000 (13:15 +0000)]
Add 'curcpu', a shortcut to the current CPU ID, similar to curthread,
curproc, et al.  Useful for indexing into per-CPU data structures.

MFC after: 2 weeks

19 years agoFix stripe size in example.
pjd [Tue, 26 Apr 2005 09:23:21 +0000 (09:23 +0000)]
Fix stripe size in example.

Found by: kris
MFC after: 3 days

19 years agoFix a bug introduced in r1.89 thats caused leak of requests, and possibly
sos [Tue, 26 Apr 2005 06:42:33 +0000 (06:42 +0000)]
Fix a bug introduced in r1.89 thats caused leak of requests, and possibly
bogus data to be written.

19 years agoConditionalize the ipfilter header files on NO_IPFILTER. While normally these
scottl [Tue, 26 Apr 2005 02:01:39 +0000 (02:01 +0000)]
Conditionalize the ipfilter header files on NO_IPFILTER.  While normally these
should be harmless, the kdump(1) build does evil things with collecting
system header files, and thus would unconditionally collect and process these.

MFC After: 3 days

19 years agoRemove the extra EEPROM reload step I added before. vge_reset()
wpaul [Mon, 25 Apr 2005 23:26:20 +0000 (23:26 +0000)]
Remove the extra EEPROM reload step I added before. vge_reset()
already does this anyway.

19 years agoApply a torniquet to the problem of the drive unexpectedly disconnecting
scottl [Mon, 25 Apr 2005 22:11:43 +0000 (22:11 +0000)]
Apply a torniquet to the problem of the drive unexpectedly disconnecting
during a data phase.  Before, we would try to recover the autosense, but
the DMA engine would still be active with interrupted transfer, and we'd
quickly spiral out of control and cause massive data corruption.  For now,
just reset the chip and cancel everything.  The better solution is to
cancel the DMA operation, but there is no clear way to do that right now.
The data corruption problem is severe enough to warrant this fix in the
interim.  Thanks to Kris Kenneway to sacrificing countless filesystems to
this bug.

MFC After: 3 days

19 years agoRemove the ACPI_MAX_THREADS option.
scottl [Mon, 25 Apr 2005 19:59:09 +0000 (19:59 +0000)]
Remove the ACPI_MAX_THREADS option.

19 years agoAdd the vm.exec_map_entries tunable and read-only sysctl, which controls
kris [Mon, 25 Apr 2005 19:22:05 +0000 (19:22 +0000)]
Add the vm.exec_map_entries tunable and read-only sysctl, which controls
the number of entries in exec_map (maximum number of simultaneous execs
that can be handled by the kernel).  The default value of 16 is
insufficient on heavily loaded machines (particularly SMP machines), and
if it is exceeded then executing further processes will generate a SIGABRT.

This is a workaround until a better solution can be implemented.

Reviewed by: alc
MFC after: 3 days

19 years agothis file does not belong in a freebsd distribution
darrenr [Mon, 25 Apr 2005 19:15:19 +0000 (19:15 +0000)]
this file does not belong in a freebsd distribution

19 years agoall the ipfilter tools are now built from sbin/Makefile, so remove them from
darrenr [Mon, 25 Apr 2005 19:04:12 +0000 (19:04 +0000)]
all the ipfilter tools are now built from sbin/Makefile, so remove them from
this Makefile.

19 years agoRemove directories no longer used for building ipfilter tools
darrenr [Mon, 25 Apr 2005 19:02:05 +0000 (19:02 +0000)]
Remove directories no longer used for building ipfilter tools

19 years agoremove old directories used to build ipfilter tools
darrenr [Mon, 25 Apr 2005 18:59:29 +0000 (18:59 +0000)]
remove old directories used to build ipfilter tools

19 years agoThere's only one ipfilter directory now
darrenr [Mon, 25 Apr 2005 18:56:42 +0000 (18:56 +0000)]
There's only one ipfilter directory now

19 years agocreate a new build heirarchy for ipfilter tools
darrenr [Mon, 25 Apr 2005 18:55:52 +0000 (18:55 +0000)]
create a new build heirarchy for ipfilter tools

19 years agonew files and compile defines to build new ipfilter
darrenr [Mon, 25 Apr 2005 18:46:00 +0000 (18:46 +0000)]
new files and compile defines to build new ipfilter

19 years agoMerge the changes from 3.4.35 to 4.1.8 into the kernel source tree
darrenr [Mon, 25 Apr 2005 18:43:14 +0000 (18:43 +0000)]
Merge the changes from 3.4.35 to 4.1.8 into the kernel source tree

19 years agoCorrect the if_link_state_change() logic: when the link went down,
wpaul [Mon, 25 Apr 2005 18:37:27 +0000 (18:37 +0000)]
Correct the if_link_state_change() logic: when the link went down,
if_link_state_change() reported link up, and when the link went up,
if_link_state_change() reported link down. These should be swapped.

19 years agoReading the EEPROM to learn the station address doesn't seem to work
wpaul [Mon, 25 Apr 2005 18:29:42 +0000 (18:29 +0000)]
Reading the EEPROM to learn the station address doesn't seem to work
on boards with VIA gigE controllers that are embedded in VIA chipsets.
Presumably, they don't have an external EEPROM and store the MAC
address somewhere else. To get around this, force an autoload and
read the station address from the RX filter registers instead.
This has been tested to work on both embedded and standalone
controllers.

19 years ago* Someone imported a lot of files with the wrong CVS tag, so lots of files need
darrenr [Mon, 25 Apr 2005 18:20:15 +0000 (18:20 +0000)]
* Someone imported a lot of files with the wrong CVS tag, so lots of files need
  that fixed in them....
* Keep unnecessary files out of the non-vendor part of this CVS repository.

19 years agoThis commit was generated by cvs2svn to compensate for changes in r145516,
darrenr [Mon, 25 Apr 2005 18:15:41 +0000 (18:15 +0000)]
This commit was generated by cvs2svn to compensate for changes in r145516,
which included commits to RCS files with non-trunk default branches.

19 years agoimport ipfilter 4.1.8 into the kernel source tree
darrenr [Mon, 25 Apr 2005 18:15:41 +0000 (18:15 +0000)]
import ipfilter 4.1.8 into the kernel source tree

19 years agoAllow BOOT_BOOT0_COMCONSOLE_SPEED to be derived from BOOT_COMCONSOLE_SPEED
ru [Mon, 25 Apr 2005 17:41:35 +0000 (17:41 +0000)]
Allow BOOT_BOOT0_COMCONSOLE_SPEED to be derived from BOOT_COMCONSOLE_SPEED
at compile time.

19 years agoThis commit was generated by cvs2svn to compensate for changes in r145513,
darrenr [Mon, 25 Apr 2005 17:40:37 +0000 (17:40 +0000)]
This commit was generated by cvs2svn to compensate for changes in r145513,
which included commits to RCS files with non-trunk default branches.

19 years agoensure parsing numeric address before any host query.
ume [Mon, 25 Apr 2005 17:36:28 +0000 (17:36 +0000)]
ensure parsing numeric address before any host query.

Inspired by: NetBSD

19 years agoThis commit was generated by cvs2svn to compensate for changes in r145510,
darrenr [Mon, 25 Apr 2005 17:31:50 +0000 (17:31 +0000)]
This commit was generated by cvs2svn to compensate for changes in r145510,
which included commits to RCS files with non-trunk default branches.

19 years agoimport ipfilter 4.1.8 into the vendor branch
darrenr [Mon, 25 Apr 2005 17:31:50 +0000 (17:31 +0000)]
import ipfilter 4.1.8 into the vendor branch

19 years agoNew release note: SA-05:05.cvs.
bmah [Mon, 25 Apr 2005 15:32:58 +0000 (15:32 +0000)]
New release note:  SA-05:05.cvs.

MFCs noted:  restore(8) of FreeBSD 1 images, syslog(8) expanded
hostname specifications.

19 years agoremove unused variable.
ume [Mon, 25 Apr 2005 14:52:13 +0000 (14:52 +0000)]
remove unused variable.

19 years agoMerge the following from the English version:
den [Mon, 25 Apr 2005 12:22:25 +0000 (12:22 +0000)]
Merge the following from the English version:

   1.5 -> 1.7 hardware/common/artheader.sgml
   1.276 -> 1.278 hardware/common/dev.sgml

Update also Russian override of dev-auto.sgml

Obtained from: The FreeBSD Russian Documentation Project

19 years agoFix provider's size check for 'insert' command.
pjd [Mon, 25 Apr 2005 10:41:26 +0000 (10:41 +0000)]
Fix provider's size check for 'insert' command.
Before this fix one was able to insert one sector too small provider.

MFC after: 3 days

19 years agoDeal with failed malloc calls[1].
bz [Mon, 25 Apr 2005 10:18:24 +0000 (10:18 +0000)]
Deal with failed malloc calls[1].
While there also check for failed device_add_child calls.

Found by: Coventry Analysis tool[1].
Submitted by: sam[1]
Approved by: pjd (mentor)
MFC after: 1 week

19 years agoTypeo.
mlaier [Mon, 25 Apr 2005 10:14:26 +0000 (10:14 +0000)]
Typeo.

Submitted by: Emil Mikulic

19 years agoCosmetics
sos [Mon, 25 Apr 2005 07:57:04 +0000 (07:57 +0000)]
Cosmetics

19 years agoOnly try to allocate and use the SATA resource if they are enabled
sos [Mon, 25 Apr 2005 07:50:51 +0000 (07:50 +0000)]
Only try to allocate and use the SATA resource if they are enabled
by the BIOS. It seems some BIOS's doesn't get this right, and that would
result in ATA panic'ing.

19 years agoRetire the musycc E1/T1 driver
phk [Mon, 25 Apr 2005 07:08:42 +0000 (07:08 +0000)]
Retire the musycc E1/T1 driver

19 years agoretire the musycc E1/T1 driver.
phk [Mon, 25 Apr 2005 07:07:50 +0000 (07:07 +0000)]
retire the musycc E1/T1 driver.

19 years agoRemove obsolete option.
njl [Mon, 25 Apr 2005 06:24:19 +0000 (06:24 +0000)]
Remove obsolete option.

MFC after: 1 day

19 years ago - We want if (mrep != NULL) not if (m_freem != NULL). m_freem will never
jeff [Mon, 25 Apr 2005 05:11:19 +0000 (05:11 +0000)]
 - We want if (mrep != NULL) not if (m_freem != NULL).  m_freem will never
   be NULL and we will always leak mrep in the error case.

Submitted by:  Greg Taleck <gtaleck@isilon.com>

19 years agoRemove unused file.
delphij [Mon, 25 Apr 2005 02:29:03 +0000 (02:29 +0000)]
Remove unused file.

Confirmed by: tjr [1]

[1] PERFORCE CHANGESET 57044:
http://perforce.freebsd.org/changeView.cgi?CH=57044

19 years agoAdd missing break.
mdodd [Mon, 25 Apr 2005 00:48:04 +0000 (00:48 +0000)]
Add missing break.

Found by: marcus

19 years agoUpdate zconf.h and gzio.c with changes from ZLib 1.2.1 to ZLib 1.2.2.
kientzle [Sun, 24 Apr 2005 22:04:34 +0000 (22:04 +0000)]
Update zconf.h and gzio.c with changes from ZLib 1.2.1 to ZLib 1.2.2.

These are two of the three files that have non-trivial differences from
the vendor branch.  minigzip.c is the third, but there were no changes
from ZLib 1.2.1 to ZLib 1.2.2 in that file.

The rest of the files I intend to get reverted back to the vendor
branch (with cooperation of cvsadmin@).

PR: i386/76294

19 years agoDocument sysctl introduced with if_sk.c rev. 1.101.
bz [Sun, 24 Apr 2005 20:26:09 +0000 (20:26 +0000)]
Document sysctl introduced with if_sk.c rev. 1.101.
Add D-Link DGE-530T to list of supported hardware.

Reviewed by: ru (initial version), simon (updated version)
Approved by: pjd (mentor)

19 years agoAdd note to remove nis entries when compiling with NO_NIS.
bz [Sun, 24 Apr 2005 20:24:59 +0000 (20:24 +0000)]
Add note to remove nis entries when compiling with NO_NIS.

Reviewed by: ru (initial version), simon (updated version)
Approved by: pjd (mentor)

19 years agoThrow the switch on the new driver generation/loading mechanism. From
wpaul [Sun, 24 Apr 2005 20:21:22 +0000 (20:21 +0000)]
Throw the switch on the new driver generation/loading mechanism. From
here on in, if_ndis.ko will be pre-built as a module, and can be built
into a static kernel (though it's not part of GENERIC). Drivers are
created using the new ndisgen(8) script, which uses ndiscvt(8) under
the covers, along with a few other tools. The result is a driver module
that can be kldloaded into the kernel.

A driver with foo.inf and foo.sys files will be converted into
foo_sys.ko (and foo_sys.o, for those who want/need to make static
kernels). This module contains all of the necessary info from the
.INF file and the driver binary image, converted into an ELF module.
You can kldload this module (or add it to /boot/loader.conf) to have
it loaded automatically. Any required firmware files can be bundled
into the module as well (or converted/loaded separately).

Also, add a workaround for a problem in NdisMSleep(). During system
bootstrap (cold == 1), msleep() always returns 0 without actually
sleeping. The Intel 2200BG driver uses NdisMSleep() to wait for
the NIC's firmware to come to life, and fails to load if NdisMSleep()
doesn't actually delay. As a workaround, if msleep() (and hence
ndis_thsuspend()) returns 0, use a hard DELAY() to sleep instead).
This is not really the right thing to do, but we can't really do much
else. At the very least, this makes the Intel driver happy.

There are probably other drivers that fail in this way during bootstrap.
Unfortunately, the only workaround for those is to avoid pre-loading
them and kldload them once the system is running instead.

19 years ago- distinguish between the device name (what the user called it on the
des [Sun, 24 Apr 2005 20:08:29 +0000 (20:08 +0000)]
- distinguish between the device name (what the user called it on the
  command line) and the device path (what we passed to open()).  Use
  the former in diagnostics.
- when adding or removing partitions, print a single line to stdout for
  each partition that was added or removed, indicating its name.
- add an -a option to 'gpt remove' which must be explicitly specified
  to remove all partitions.

Approved by: marcel (in prinicple)
MFC after: 2 weeks

19 years agoAdd in FreeBSD specific options for tcsh 6.14.
mp [Sun, 24 Apr 2005 19:51:57 +0000 (19:51 +0000)]
Add in FreeBSD specific options for tcsh 6.14.

19 years agoAdd the config.h resulting from running the configure script.
mp [Sun, 24 Apr 2005 19:50:22 +0000 (19:50 +0000)]
Add the config.h resulting from running the configure script.

Note: the contents of this file has changed between 6.13 and 6.14.
The old contents of this file has been repocopied to config_p.h.

19 years agoAdd new file (tc.nls.c) to the build.
mp [Sun, 24 Apr 2005 19:44:43 +0000 (19:44 +0000)]
Add new file (tc.nls.c) to the build.

19 years agoThis commit was generated by cvs2svn to compensate for changes in r145479,
mp [Sun, 24 Apr 2005 19:41:08 +0000 (19:41 +0000)]
This commit was generated by cvs2svn to compensate for changes in r145479,
which included commits to RCS files with non-trunk default branches.

19 years agoImport of tcsh-6.14.00
mp [Sun, 24 Apr 2005 19:41:08 +0000 (19:41 +0000)]
Import of tcsh-6.14.00

19 years agoFix a panic on X startup for drivers that don't init maps themselves by storing
anholt [Sun, 24 Apr 2005 19:03:32 +0000 (19:03 +0000)]
Fix a panic on X startup for drivers that don't init maps themselves by storing
the return value of drm_ioremap in the right place again.

Submitted by: tegge

19 years agoif last line didn't have trailing space, network address was also
ume [Sun, 24 Apr 2005 18:22:39 +0000 (18:22 +0000)]
if last line didn't have trailing space, network address was also
treated as an alias.

19 years agoThis commit was generated by cvs2svn to compensate for changes in r145474,
kientzle [Sun, 24 Apr 2005 17:11:32 +0000 (17:11 +0000)]
This commit was generated by cvs2svn to compensate for changes in r145474,
which included commits to RCS files with non-trunk default branches.

19 years agoZLib 1.2.2
kientzle [Sun, 24 Apr 2005 17:11:32 +0000 (17:11 +0000)]
ZLib 1.2.2

19 years agoo eliminate modification of task structures after their run to avoid
sam [Sun, 24 Apr 2005 16:52:45 +0000 (16:52 +0000)]
o eliminate modification of task structures after their run to avoid
  modify-after-free races when the task structure is malloc'd
o shrink task structure by removing ta_flags (no longer needed with
  avoid fix) and combining ta_pending and ta_priority

Reviewed by: dwhite, dfr
MFC after: 4 days

19 years agos/which/witch
schweikh [Sun, 24 Apr 2005 15:31:11 +0000 (15:31 +0000)]
s/which/witch

19 years agobsdtar now uses the "tree" package instead of "fts" for walking
kientzle [Sun, 24 Apr 2005 05:53:37 +0000 (05:53 +0000)]
bsdtar now uses the "tree" package instead of "fts" for walking
directory heirarchies.

19 years agoFix the order of the lowaddr,highaddr arguments in the parent tag. This
scottl [Sun, 24 Apr 2005 02:45:27 +0000 (02:45 +0000)]
Fix the order of the lowaddr,highaddr arguments in the parent tag.  This
coincidentally didn't cause any problems, but was definitely wrong.

19 years agoAdd -h to the ln command to make the -f flag actually do something.
dougb [Sun, 24 Apr 2005 01:51:22 +0000 (01:51 +0000)]
Add -h to the ln command to make the -f flag actually do something.
Without this flag, if the symlink existed already a new symlink would
be created in the source directory. While harmless if the two symlinks
were the same, it nonetheless caused pointless confusion.

The pathological case is that when there is an existing /etc/namedb
symlink, but named_chrootdir in rc.conf pointed to a different
directory, it was the symlink in /var/named that was getting
updated, not the one in /etc. This led to some difficult to diagnose
problems for users.

19 years agoAdjust code to be more reliable.
davidxu [Sun, 24 Apr 2005 00:17:30 +0000 (00:17 +0000)]
Adjust code to be more reliable.

19 years agoAdd a program to test if tls data is clean.
davidxu [Sat, 23 Apr 2005 23:47:58 +0000 (23:47 +0000)]
Add a program to test if tls data is clean.

19 years agoOptimize the instruction alignment.
alc [Sat, 23 Apr 2005 18:45:36 +0000 (18:45 +0000)]
Optimize the instruction alignment.

19 years agoCorrect autoconf/automake invocation to work with devel/gnu-auto* from
kientzle [Sat, 23 Apr 2005 18:44:25 +0000 (18:44 +0000)]
Correct autoconf/automake invocation to work with devel/gnu-auto* from
ports.

Thanks to: Dag-Erling Sm?rgrav (des@)

19 years agoMinor fix to the configure logic to properly detect ACL support.
kientzle [Sat, 23 Apr 2005 18:41:28 +0000 (18:41 +0000)]
Minor fix to the configure logic to properly detect ACL support.

19 years agoOverhaul getdate.y. In particular, remove minutes-based logic
kientzle [Sat, 23 Apr 2005 18:38:32 +0000 (18:38 +0000)]
Overhaul getdate.y.  In particular, remove minutes-based logic
(combine with existing seconds-based), treat '-' as punctuation rather
than a negative number indicator (eliminates several special cases),
use a single list of special words instead of several separate lists,
use table-driven abbreviation logic (eliminate duplicate word entries
and special-case abbreviation and plural handling).  The result is
shorter, simpler (judging from comments, earlier maintainers didn't
understand the special handling for "negative years"), handles more
cases (e.g., "tu" is now a recognized abbreviation for "tuesday",
"3rd" is now equivalent to "third") and it has 2 fewer shift/reduce
conflicts.

19 years agoFix broken ACL configuration on FreeBSD 4 and Linux.
kientzle [Sat, 23 Apr 2005 17:56:34 +0000 (17:56 +0000)]
Fix broken ACL configuration on FreeBSD 4 and Linux.

Thanks to: Greg Lewis, Juergen Lock, Jaakko Heinonen for reporting and testing

19 years agoCertain filenames between 245 and 255 characters long would cause an
kientzle [Sat, 23 Apr 2005 17:46:51 +0000 (17:46 +0000)]
Certain filenames between 245 and 255 characters long would cause an
internal error if pax extended attributes were being generated.  Being
< 255 characters, the first-pass path editing (to generate a
ustar-compatible name for the main entry) wouldn't occur, and the
second-pass path editing (to generate a ustar name for the pax
attributes entry) assumed the input was already < 245 chars.

The core problem here was using an abbreviated algorithm for the
second pass that relied on the first pass having already run.  The
rewritten code is much simpler: It just uses the full path-shortening
algorithm for building both ustar pathnames.  This way, the second
ustar pathname will always be short enough.

Thanks to: Mark Cammidge
Related to: bin/74385

19 years agoDon't use fusufault in casuptr(), as it assumes the current PCB will be
cognet [Sat, 23 Apr 2005 16:45:04 +0000 (16:45 +0000)]
Don't use fusufault in casuptr(), as it assumes the current PCB will be
stored in r2, which can't be easily done with casuptr(). Introduce
casuptrfault instead.

19 years agoRemove duplicated description of 'clear' subcommand.
pjd [Sat, 23 Apr 2005 12:17:21 +0000 (12:17 +0000)]
Remove duplicated description of 'clear' subcommand.

Pointed out by: marck
X-MFC-after: few seconds

19 years agoNote events affected by processor errata.
jkoshy [Sat, 23 Apr 2005 05:45:18 +0000 (05:45 +0000)]
Note events affected by processor errata.

19 years agoWake up swapper process if needed.
davidxu [Sat, 23 Apr 2005 05:06:44 +0000 (05:06 +0000)]
Wake up swapper process if needed.

PR: kern/78474
Submitted by: Sam Lawrance <boris at brooknet dot com dot au>

19 years agoRemove unused variable.
davidxu [Sat, 23 Apr 2005 03:34:43 +0000 (03:34 +0000)]
Remove unused variable.

19 years agoNow libthr only uses GDT based tls on i386. using LDT can only increase
davidxu [Sat, 23 Apr 2005 03:31:59 +0000 (03:31 +0000)]
Now libthr only uses GDT based tls on i386. using LDT can only increase
clock cycles and has 8191 threads limitation.

19 years agoUse thr_new syscall to create a new thread, obscure context operations
davidxu [Sat, 23 Apr 2005 02:48:59 +0000 (02:48 +0000)]
Use thr_new syscall to create a new thread, obscure context operations
is no longer needed.

19 years agoRegen.
davidxu [Sat, 23 Apr 2005 02:38:17 +0000 (02:38 +0000)]
Regen.

19 years agoAdd new syscall thr_new to create thread in atomic, it will
davidxu [Sat, 23 Apr 2005 02:36:07 +0000 (02:36 +0000)]
Add new syscall thr_new to create thread in atomic, it will
inherit signal mask from parent thread, setup TLS and stack, and
user entry address.
Also support POSIX thread's PTHREAD_SCOPE_PROCESS and PTHREAD_SCOPE_SYSTEM,
sysctl is also provided to control the scheduler scope.

19 years agoChange cpu_set_kse_upcall to more generic style, so we can reuse it
davidxu [Sat, 23 Apr 2005 02:32:32 +0000 (02:32 +0000)]
Change cpu_set_kse_upcall to more generic style, so we can reuse it
in other codes. Add cpu_set_user_tls, use it to tweak user register
and setup user TLS. I ever wanted to merge it into cpu_set_kse_upcall,
but since cpu_set_kse_upcall is also used by M:N threads which may
not need this feature, so I wrote a separated cpu_set_user_tls.

19 years agoFix two typos in comments.
trhodes [Sat, 23 Apr 2005 02:20:35 +0000 (02:20 +0000)]
Fix two typos in comments.

19 years agoAdd i386_get_gsbase, i386_set_gsbase since old libc doesn't have the
davidxu [Sat, 23 Apr 2005 02:14:38 +0000 (02:14 +0000)]
Add i386_get_gsbase, i386_set_gsbase since old libc doesn't have the
functions, otherwise user ports have to be rebuilt.

19 years agoDocument the debug.acpi.max_threads tunable.
njl [Fri, 22 Apr 2005 23:21:09 +0000 (23:21 +0000)]
Document the debug.acpi.max_threads tunable.

19 years agoProperly spell default in a comment.
trhodes [Fri, 22 Apr 2005 23:11:57 +0000 (23:11 +0000)]
Properly spell default in a comment.