CVS commit: [matt-nb5-mips64] src/sys/uvm

2010-01-26 Thread Tohru Nishimura
Module Name:src
Committed By:   nisimura
Date:   Wed Jan 27 07:45:19 UTC 2010

Modified Files:
src/sys/uvm [matt-nb5-mips64]: uvm_page.c

Log Message:
Remove JRT two line comment about cache interference since the
change specifically addresses general VIPT cache issue.  Need more
throughout comment cleanup about uvmexp.ncolor intent and significance.


To generate a diff of this commit:
cvs rdiff -u -r1.140.6.3.4.2 -r1.140.6.3.4.3 src/sys/uvm/uvm_page.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [matt-nb5-mips64] src/sys/conf

2010-01-26 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Wed Jan 27 07:28:09 UTC 2010

Modified Files:
src/sys/conf [matt-nb5-mips64]: Makefile.kern.inc

Log Message:
If we're making a gdb kernel, insert the symtab in that as well.


To generate a diff of this commit:
cvs rdiff -u -r1.118.4.2.4.2 -r1.118.4.2.4.3 src/sys/conf/Makefile.kern.inc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [matt-nb5-mips64] src/lib/libc

2010-01-26 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Wed Jan 27 06:55:25 UTC 2010

Modified Files:
src/lib/libc/arch/mips/gen [matt-nb5-mips64]: Makefile.inc _setjmp.S
flt_rounds.c setjmp.S
src/lib/libc/compat/arch/mips/gen [matt-nb5-mips64]: compat_setjmp.S
src/lib/libc/gen [matt-nb5-mips64]: nlist_private.h
Added Files:
src/lib/libc/gen [matt-nb5-mips64]: fabs_ieee754.c

Log Message:
Don't use cfc1/ctc1 in softfloat.  Use the "common" fabs/modf/ldexp when
using softfloat.


To generate a diff of this commit:
cvs rdiff -u -r1.28.34.1 -r1.28.34.2 src/lib/libc/arch/mips/gen/Makefile.inc
cvs rdiff -u -r1.20.34.3 -r1.20.34.4 src/lib/libc/arch/mips/gen/_setjmp.S
cvs rdiff -u -r1.5 -r1.5.34.1 src/lib/libc/arch/mips/gen/flt_rounds.c
cvs rdiff -u -r1.17.34.3 -r1.17.34.4 src/lib/libc/arch/mips/gen/setjmp.S
cvs rdiff -u -r1.1.34.2 -r1.1.34.3 \
src/lib/libc/compat/arch/mips/gen/compat_setjmp.S
cvs rdiff -u -r0 -r1.1.2.1 src/lib/libc/gen/fabs_ieee754.c
cvs rdiff -u -r1.17 -r1.17.46.1 src/lib/libc/gen/nlist_private.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [matt-nb5-mips64] src/compat

2010-01-26 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Wed Jan 27 06:52:48 UTC 2010

Modified Files:
src/compat [matt-nb5-mips64]: Makefile.md_subdir
src/compat/dirshack [matt-nb5-mips64]: Makefile

Log Message:
Make compat build more tolerant of large number of parallel jobs


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.1 -r1.1.2.2 src/compat/Makefile.md_subdir
cvs rdiff -u -r1.1.2.2 -r1.1.2.3 src/compat/dirshack/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/powerd

2010-01-26 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Wed Jan 27 06:52:24 UTC 2010

Modified Files:
src/usr.sbin/powerd: powerd.8

Log Message:
Bump date for previous.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/usr.sbin/powerd/powerd.8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man9

2010-01-26 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Wed Jan 27 06:50:41 UTC 2010

Modified Files:
src/share/man/man9: fileassoc.9

Log Message:
Bump date for reorg.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/share/man/man9/fileassoc.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/sys

2010-01-26 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Wed Jan 27 04:36:34 UTC 2010

Modified Files:
src/sys/sys: envsys.h

Log Message:
Define sets of limits (including the set of all limits) symbolically.
These will be used in an upcoming change.

No functional change intended.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/sys/envsys.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/uvm

2010-01-26 Thread Masao Uebayashi
Module Name:src
Committed By:   uebayasi
Date:   Wed Jan 27 03:56:33 UTC 2010

Modified Files:
src/sys/uvm: uvm_page.c

Log Message:
uvm_pageinsert, uvm_pageremove: Pass the uboj, to/from which a pg is
inserted/removed, as an argument, because looking up a back-reference from
pg is redundant.  No functional changes.


To generate a diff of this commit:
cvs rdiff -u -r1.152 -r1.153 src/sys/uvm/uvm_page.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Re: CVS commit: src/usr.sbin/powerd

2010-01-26 Thread Paul Goyette

On Tue, 26 Jan 2010, Jason Thorpe wrote:


   if (ioctl(fd, POWER_IOC_GET_TYPE, &power_type) == -1) {
   syslog(LOG_ERR, "POWER_IOC_GET_TYPE: %m");
   exit(EX_OSERR);
   }

   (void)asprintf(&cp, "%s/%s", _PATH_POWERD_SCRIPTS,
   power_type.power_type);
   if (cp == NULL) {
   syslog(LOG_ERR, "allocating script path: %m");
   exit(EX_OSERR);
   }
   script_paths[0] = cp;


Yep, I looked deeper and found that, too.


-
|   Paul Goyette   | PGP DSS Key fingerprint: |  E-mail addresses:  |
| Customer Service | FA29 0E3B 35AF E8AE 6651 |  paul at whooppee.com   |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |  | pgoyette at netbsd.org  |
-


Re: CVS commit: src/usr.sbin/powerd

2010-01-26 Thread Jukka Ruohonen
On Tue, Jan 26, 2010 at 02:38:45PM -0800, Jason Thorpe wrote:
> This is incorrect.  apm vs. acpi vs. whatever else.. the code still has
> support for them.  Please put this back.  Just because apm-specific and
> acpi-specific scripts do not yet exist doesn't mean that the code does not
> support them.

One more issue to consider: is there anything in these scripts that justify
the use of machine or power backend dependent subdirectories? I think all of
the scripts are (or at least should be) very generic that should run fine
regardless of the machine or power backend.

- Jukka.


Re: CVS commit: src/usr.sbin/powerd

2010-01-26 Thread Paul Goyette

On Wed, 27 Jan 2010, Jukka Ruohonen wrote:


I can put it back. But as has been pointed out, does it need to be there to
confuse users when neither (a) the directories exist in the default install
nor (b) does support for this exist in the code?


Support does exist - you just have to look a bit deeper than the 
surface.  Jason has provided the relevant sources where the apm or acpi 
path is created;  here's where it gets used:


static void
run_script(const char *argv[])
{
char path[MAXPATHLEN+1];
size_t i, j;

for (i = 0; i < __arraycount(script_paths); i++) {
(void)snprintf(path, sizeof(path), "%s/%s", script_paths[i],
argv[0]);
if (access(path, R_OK|X_OK) == 0) {
...
return;
}
}
}

-
|   Paul Goyette   | PGP DSS Key fingerprint: |  E-mail addresses:  |
| Customer Service | FA29 0E3B 35AF E8AE 6651 |  paul at whooppee.com   |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |  | pgoyette at netbsd.org  |
-


Re: CVS commit: src/usr.sbin/powerd

2010-01-26 Thread Martin Husemann
On Wed, Jan 27, 2010 at 12:54:15AM +0200, Jukka Ruohonen wrote:
> However, the "power_type" from POWER_IOC_GET_TYPE can currently only be
> "acpi" and "landisk" (...). No "apm" is being set anywhere in the tree via
> sysmon_power_settype().

I've been told APM is dead and won't be fixed (it does not work at
all for me on the one machine I care about tha does not support acpi).

Martin


Re: CVS commit: src/usr.sbin/powerd

2010-01-26 Thread Jukka Ruohonen
On Tue, Jan 26, 2010 at 02:41:52PM -0800, Jason Thorpe wrote:
> if (ioctl(fd, POWER_IOC_GET_TYPE, &power_type) == -1) {
> syslog(LOG_ERR, "POWER_IOC_GET_TYPE: %m");
> exit(EX_OSERR);
> }
> 
> (void)asprintf(&cp, "%s/%s", _PATH_POWERD_SCRIPTS,
> power_type.power_type);
> if (cp == NULL) {
> syslog(LOG_ERR, "allocating script path: %m");
> exit(EX_OSERR);
> }
> script_paths[0] = cp;

Okay, I stand corrected.

However, the "power_type" from POWER_IOC_GET_TYPE can currently only be
"acpi" and "landisk" (...). No "apm" is being set anywhere in the tree via
sysmon_power_settype().

- Jukka.


CVS commit: [matt-nb5-mips64] src/sys/arch/mips/mips

2010-01-26 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Tue Jan 26 22:49:58 UTC 2010

Modified Files:
src/sys/arch/mips/mips [matt-nb5-mips64]: pmap.c

Log Message:
Fix comment gimplish.


To generate a diff of this commit:
cvs rdiff -u -r1.179.16.13 -r1.179.16.14 src/sys/arch/mips/mips/pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Re: CVS commit: src/usr.sbin/powerd

2010-01-26 Thread Jukka Ruohonen
On Tue, Jan 26, 2010 at 02:38:45PM -0800, Jason Thorpe wrote:
> 
> On Jan 26, 2010, at 12:37 PM, Jukka Ruohonen wrote:
> 
> > * Apparently there is only a single location for the scripts. Thus, remove
> >   the references to "/etc/powerd/scripts/apm" and 
> > "/etc/powerd/scripts/acpi".
> 
> This is incorrect.  apm vs. acpi vs. whatever else.. the code still has 
> support for them.  Please put this back.  Just because apm-specific and 
> acpi-specific scripts do not yet exist doesn't mean that the code does not 
> support them.

I can put it back. But as has been pointed out, does it need to be there to
confuse users when neither (a) the directories exist in the default install
nor (b) does support for this exist in the code?

- Jukka.


Re: CVS commit: src/usr.sbin/powerd

2010-01-26 Thread Jason Thorpe

On Jan 26, 2010, at 2:26 PM, Paul Goyette wrote:

> The powerd(8) man page currently says
> 
>   The first location is /etc/powerd/scripts/, where
>is defined by the power management mechanism
>   supported by the system, e.g., ``apm'' or ``acpi''.  If the
>   script is not found in the first location, powerd looks in
>   /etc/powerd/scripts.
> 
> This implies that the .../apm/... and .../acpi/... are optional.  Yet 
> src/usr.sbin/powerd.c has not been updated for more than two years, and it 
> defines only a single path for locating the scripts.
> 
>   #define _PATH_POWERD_SCRIPTS"/etc/powerd/scripts"
> 
>   
> 
>   static const char *script_paths[] = {
>   NULL,
>   _PATH_POWERD_SCRIPTS
>   };
> 

if (ioctl(fd, POWER_IOC_GET_TYPE, &power_type) == -1) {
syslog(LOG_ERR, "POWER_IOC_GET_TYPE: %m");
exit(EX_OSERR);
}

(void)asprintf(&cp, "%s/%s", _PATH_POWERD_SCRIPTS,
power_type.power_type);
if (cp == NULL) {
syslog(LOG_ERR, "allocating script path: %m");
exit(EX_OSERR);
}
script_paths[0] = cp;

-- thorpej



Re: CVS commit: src/usr.sbin/powerd

2010-01-26 Thread Jason Thorpe

On Jan 26, 2010, at 12:37 PM, Jukka Ruohonen wrote:

> * Apparently there is only a single location for the scripts. Thus, remove
>   the references to "/etc/powerd/scripts/apm" and "/etc/powerd/scripts/acpi".

This is incorrect.  apm vs. acpi vs. whatever else.. the code still has support 
for them.  Please put this back.  Just because apm-specific and acpi-specific 
scripts do not yet exist doesn't mean that the code does not support them.

-- thorpej



CVS commit: src/share/man/man9

2010-01-26 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Jan 26 22:35:11 UTC 2010

Modified Files:
src/share/man/man9: pmf.9

Log Message:
Revert previous.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/share/man/man9/pmf.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Re: CVS commit: src/usr.sbin/powerd

2010-01-26 Thread Paul Goyette

The powerd(8) man page currently says

The first location is /etc/powerd/scripts/, where
 is defined by the power management mechanism
supported by the system, e.g., ``apm'' or ``acpi''.  If the
script is not found in the first location, powerd looks in
/etc/powerd/scripts.

This implies that the .../apm/... and .../acpi/... are optional.  Yet 
src/usr.sbin/powerd.c has not been updated for more than two years, and 
it defines only a single path for locating the scripts.


#define _PATH_POWERD_SCRIPTS"/etc/powerd/scripts"



static const char *script_paths[] = {
NULL,
_PATH_POWERD_SCRIPTS
};


On Tue, 26 Jan 2010, Jonathan A. Kollasch wrote:


On Tue, Jan 26, 2010 at 08:37:13PM +, Jukka Ruohonen wrote:

 * Apparently there is only a single location for the scripts. Thus, remove
   the references to "/etc/powerd/scripts/apm" and "/etc/powerd/scripts/acpi".


When did this change?  I remember fixing this in the acpi case recently.

Jonathan Kollasch



-
|   Paul Goyette   | PGP DSS Key fingerprint: |  E-mail addresses:  |
| Customer Service | FA29 0E3B 35AF E8AE 6651 |  paul at whooppee.com   |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |  | pgoyette at netbsd.org  |
-


CVS commit: src/regress/lib/libc/stdlib/posix_memalign

2010-01-26 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Tue Jan 26 22:14:01 UTC 2010

Modified Files:
src/regress/lib/libc/stdlib/posix_memalign: posix_memalign.c

Log Message:
make this test actually work:
- posix_memalign() does not set errno, it returns 0 or an error number
  (maybe a jemalloc() vs. phkmalloc() issue, but also how the opengroup
  documents it.)
- since "align" must be >= sizeof(void *), expect to fail align=4 on
  LP64 systems.
- while i'm here, add a test for align=2 failing everywhere.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/regress/lib/libc/stdlib/posix_memalign/posix_memalign.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Re: CVS commit: src/share/man/man9

2010-01-26 Thread Joerg Sonnenberger
Please revert this. If anything, the various names should result in
MLINKS, but they should be kept.

Joerg

On Tue, Jan 26, 2010 at 09:50:57PM +, Jukka Ruohonen wrote:
> Module Name:  src
> Committed By: jruoho
> Date: Tue Jan 26 21:50:57 UTC 2010
> 
> Modified Files:
>   src/share/man/man9: pmf.9
> 
> Log Message:
> Give it a single name; it is sufficient to list the functions in the SYNOPSIS.
> 
> 
> To generate a diff of this commit:
> cvs rdiff -u -r1.14 -r1.15 src/share/man/man9/pmf.9
> 
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.


Re: CVS commit: src/usr.sbin/powerd

2010-01-26 Thread Jonathan A. Kollasch
On Tue, Jan 26, 2010 at 08:37:13PM +, Jukka Ruohonen wrote:
>  * Apparently there is only a single location for the scripts. Thus, remove
>the references to "/etc/powerd/scripts/apm" and "/etc/powerd/scripts/acpi".

When did this change?  I remember fixing this in the acpi case recently.

Jonathan Kollasch


CVS commit: src/share/man/man9

2010-01-26 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Jan 26 21:50:57 UTC 2010

Modified Files:
src/share/man/man9: pmf.9

Log Message:
Give it a single name; it is sufficient to list the functions in the SYNOPSIS.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/share/man/man9/pmf.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man9

2010-01-26 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Jan 26 21:40:34 UTC 2010

Modified Files:
src/share/man/man9: fileassoc.9

Log Message:
Capitalize one more title. Use a complete sentence in CODE REFERENCES.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/share/man/man9/fileassoc.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man9

2010-01-26 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Jan 26 21:37:02 UTC 2010

Modified Files:
src/share/man/man9: fileassoc.9

Log Message:
Move the complete prototypes to the SYNOPSIS. Also capitalize the titles.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/share/man/man9/fileassoc.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/fs

2010-01-26 Thread Michael van Elst
Module Name:src
Committed By:   mlelstv
Date:   Tue Jan 26 21:29:48 UTC 2010

Modified Files:
src/sys/fs/cd9660: cd9660_vfsops.c
src/sys/fs/msdosfs: msdosfs_vfsops.c

Log Message:
Drop two uses of disk label data.

msdosfs and cd9660 are the only filesystems that verify the filesystem
type in the label. This is the wrong place, sanity checks should only
rely on the inner structure of the filesystem (like signatures or
magic numbers).

msdosfs also used the device type information from the label to
deduce a filesystem parameter heuristically for the gemdos variant.
If there is no information inside the filesystem data itself, this
should be an explicit mount option.


To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 src/sys/fs/cd9660/cd9660_vfsops.c
cvs rdiff -u -r1.77 -r1.78 src/sys/fs/msdosfs/msdosfs_vfsops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src

2010-01-26 Thread Ignatios Souvatzis
Module Name:src
Committed By:   is
Date:   Tue Jan 26 21:27:55 UTC 2010

Modified Files:
src/lib/libc/net: getnameinfo.c
src/sbin/route: show.c

Log Message:
Add AF_APPLETALK support to getnameinfo(); make "route show" use it.
Doesn't print "ranges" yet (should it be done here?); only numeric
output.


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/lib/libc/net/getnameinfo.c
cvs rdiff -u -r1.39 -r1.40 src/sbin/route/show.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [matt-nb5-mips64] src/sys/uvm

2010-01-26 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Tue Jan 26 21:26:28 UTC 2010

Modified Files:
src/sys/uvm [matt-nb5-mips64]: uvm_extern.h uvm_fault.c uvm_km.c
uvm_page.c

Log Message:
Pass hints to uvm_pagealloc* to get it to use the right page color rather
than guess the right page color.


To generate a diff of this commit:
cvs rdiff -u -r1.148.4.2 -r1.148.4.2.4.1 src/sys/uvm/uvm_extern.h
cvs rdiff -u -r1.125.6.1 -r1.125.6.1.4.1 src/sys/uvm/uvm_fault.c
cvs rdiff -u -r1.101.4.2.4.1 -r1.101.4.2.4.2 src/sys/uvm/uvm_km.c
cvs rdiff -u -r1.140.6.3.4.1 -r1.140.6.3.4.2 src/sys/uvm/uvm_page.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [matt-nb5-mips64] src/sys/arch/mips

2010-01-26 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Tue Jan 26 21:19:25 UTC 2010

Modified Files:
src/sys/arch/mips/conf [matt-nb5-mips64]: Makefile.mips
src/sys/arch/mips/include [matt-nb5-mips64]: cache.h cpu.h mips3_pte.h
pmap.h pte.h vmparam.h
src/sys/arch/mips/mips [matt-nb5-mips64]: cache.c mem.c pmap.c
pmap_segtab.c

Log Message:
Revamp pmap.  Add exec page caching logic from powerpc oea pmap.  Shrink struct
vm_page by placing the first pv_entry in it.  Remove pv_flags since nothing
really needed it.  Add pmap counters.  Rework virtual cache alias logic.
Allow pmap_copy_page and pmap_zero_page to deal with non-KSEG0 mappable pages.


To generate a diff of this commit:
cvs rdiff -u -r1.50.24.3 -r1.50.24.4 src/sys/arch/mips/conf/Makefile.mips
cvs rdiff -u -r1.9.96.1 -r1.9.96.2 src/sys/arch/mips/include/cache.h
cvs rdiff -u -r1.90.16.14 -r1.90.16.15 src/sys/arch/mips/include/cpu.h
cvs rdiff -u -r1.23.38.5 -r1.23.38.6 src/sys/arch/mips/include/mips3_pte.h
cvs rdiff -u -r1.54.26.7 -r1.54.26.8 src/sys/arch/mips/include/pmap.h
cvs rdiff -u -r1.19.18.1 -r1.19.18.2 src/sys/arch/mips/include/pte.h
cvs rdiff -u -r1.41.28.9 -r1.41.28.10 src/sys/arch/mips/include/vmparam.h
cvs rdiff -u -r1.33.96.2 -r1.33.96.3 src/sys/arch/mips/mips/cache.c
cvs rdiff -u -r1.35.38.4 -r1.35.38.5 src/sys/arch/mips/mips/mem.c
cvs rdiff -u -r1.179.16.12 -r1.179.16.13 src/sys/arch/mips/mips/pmap.c
cvs rdiff -u -r1.1.2.3 -r1.1.2.4 src/sys/arch/mips/mips/pmap_segtab.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [matt-nb5-mips64] src/sys/arch/mips/include

2010-01-26 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Tue Jan 26 21:09:54 UTC 2010

Modified Files:
src/sys/arch/mips/include [matt-nb5-mips64]: elf_machdep.h

Log Message:
If ELFSIZE == 64, define ELF64_MACHDEP_ID_CASES regardless of _LP64


To generate a diff of this commit:
cvs rdiff -u -r1.10.96.7 -r1.10.96.8 src/sys/arch/mips/include/elf_machdep.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [matt-nb5-mips64] src/sys/arch/mips/mips

2010-01-26 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Tue Jan 26 21:07:14 UTC 2010

Modified Files:
src/sys/arch/mips/mips [matt-nb5-mips64]: vm_machdep.c

Log Message:
Make sure the kernel pages allocated for vmmapbuf have the same page color.


To generate a diff of this commit:
cvs rdiff -u -r1.121.6.1.2.5 -r1.121.6.1.2.6 \
src/sys/arch/mips/mips/vm_machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [matt-nb5-mips64] src/sys/arch/mips/mips

2010-01-26 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Tue Jan 26 21:05:26 UTC 2010

Modified Files:
src/sys/arch/mips/mips [matt-nb5-mips64]: lock_stubs.S

Log Message:
Add ucas_{32,64}


To generate a diff of this commit:
cvs rdiff -u -r1.9.18.5 -r1.9.18.6 src/sys/arch/mips/mips/lock_stubs.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/powerd

2010-01-26 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Jan 26 20:37:13 UTC 2010

Modified Files:
src/usr.sbin/powerd: powerd.8

Log Message:
Some miscellaneous fixes:

 * Apparently there is only a single location for the scripts. Thus, remove
   the references to "/etc/powerd/scripts/apm" and "/etc/powerd/scripts/acpi".
 * Correct confusion: instead of "the device with which the device is
   associated", write "the device with which the event is associated".
   Correct also an example related to this.
 * Improve wording, grammar, and markup in few places.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/usr.sbin/powerd/powerd.8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/fs/msdosfs

2010-01-26 Thread Joerg Sonnenberger
Module Name:src
Committed By:   joerg
Date:   Tue Jan 26 20:25:52 UTC 2010

Modified Files:
src/sys/fs/msdosfs: msdosfs_fat.c

Log Message:
On broken filesystems the fillinmap inner loop may have never read a
block, so don't try to release it if bp==NULL.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/fs/msdosfs/msdosfs_fat.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Re: CVS commit: src/dist/dhcp/dst

2010-01-26 Thread Matthias Drochner

m.droch...@fz-juelich.de said:
> OK, I'll check whether/how upstream fixed it first.

Found that bind9 (bundling the same library) sets the
macro to "(void)0", so I've done likewise.

best regards
Matthias





Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt




CVS commit: src/dist/dhcp/dst

2010-01-26 Thread Matthias Drochner
Module Name:src
Committed By:   drochner
Date:   Tue Jan 26 19:11:01 UTC 2010

Modified Files:
src/dist/dhcp/dst: dst_api.c dst_internal.h prandom.c

Log Message:
rather than adding braces in the code, define the offending macro
to "(void)0". This is what similar code in bind9 (up to 9.5) does.
(native NetBSD code usually does "do { } while (/* CONSTCOND */ 0)"
in this case)
Anyway, I've checked the code, didn't find ambiguities due to
the empty statements, so the whole thing is harmless.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/dist/dhcp/dst/dst_api.c
cvs rdiff -u -r1.1 -r1.2 src/dist/dhcp/dst/dst_internal.h
cvs rdiff -u -r1.5 -r1.6 src/dist/dhcp/dst/prandom.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/netinet

2010-01-26 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Tue Jan 26 18:09:08 UTC 2010

Modified Files:
src/sys/netinet: tcp_input.c tcp_output.c

Log Message:
tcp sockbuf autoscaling was initially added turned off because it
was experimental.  People (including myself) have been running with
it turned on for eons now, so flip the default to enabled.


To generate a diff of this commit:
cvs rdiff -u -r1.299 -r1.300 src/sys/netinet/tcp_input.c
cvs rdiff -u -r1.168 -r1.169 src/sys/netinet/tcp_output.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man9

2010-01-26 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Tue Jan 26 18:08:24 UTC 2010

Modified Files:
src/share/man/man9: sysmon_pswitch.9

Log Message:
Fix .Bl markup - s/-compat/-compact/


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/share/man/man9/sysmon_pswitch.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/net/rumptest

2010-01-26 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Tue Jan 26 17:52:21 UTC 2010

Modified Files:
src/sys/rump/net/rumptest: Makefile rumptest_net.c

Log Message:
support bpf from sockin too (i.e. DLT_NULL/AF_UNSPEC)


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/rump/net/rumptest/Makefile
cvs rdiff -u -r1.16 -r1.17 src/sys/rump/net/rumptest/rumptest_net.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/dev/lib/libbpf

2010-01-26 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Tue Jan 26 17:50:02 UTC 2010

Modified Files:
src/sys/rump/dev/lib/libbpf: component.c

Log Message:
let attach via module space


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/rump/dev/lib/libbpf/component.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/rump/net/lib/libsockin

2010-01-26 Thread Antti Kantee
Module Name:src
Committed By:   pooka
Date:   Tue Jan 26 17:41:20 UTC 2010

Modified Files:
src/sys/rump/net/lib/libsockin: sockin.c

Log Message:
support bpf


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/rump/net/lib/libsockin/sockin.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/doc

2010-01-26 Thread Matthias Drochner
Module Name:src
Committed By:   drochner
Date:   Tue Jan 26 16:59:27 UTC 2010

Modified Files:
src/doc: 3RDPARTY

Log Message:
note current isc-dhcp versions
(our branch is not listed as supported anymore)


To generate a diff of this commit:
cvs rdiff -u -r1.745 -r1.746 src/doc/3RDPARTY

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Re: CVS commit: src/dist/dhcp/dst

2010-01-26 Thread Matthias Drochner

chris...@astron.com said:
> I think that the EREPORT macro should be changed instead. Macros that
> look like statements, should behave like statements.

OK, I'll check whether/how upstream fixed it first.
best regards
Matthias





Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt




CVS commit: src

2010-01-26 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Tue Jan 26 15:11:56 UTC 2010

Modified Files:
src/distrib/sets/lists/text: mi
src/etc/mtree: NetBSD.dist.base
src/gnu/usr.bin/groff/contrib: Makefile
Added Files:
src/gnu/usr.bin/groff/contrib/mom: Makefile Makefile.inc
src/gnu/usr.bin/groff/contrib/mom/examples: Makefile
src/gnu/usr.bin/groff/contrib/mom/momdoc: Makefile

Log Message:
Install mom macro sets again, per request from Petar Bogdanovic.
Don't install generated PostScript files that were part of the reason
for the removal.

Based on a patch by him with slight changes.


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/distrib/sets/lists/text/mi
cvs rdiff -u -r1.9 -r1.10 src/etc/mtree/NetBSD.dist.base
cvs rdiff -u -r1.4 -r1.5 src/gnu/usr.bin/groff/contrib/Makefile
cvs rdiff -u -r0 -r1.4 src/gnu/usr.bin/groff/contrib/mom/Makefile \
src/gnu/usr.bin/groff/contrib/mom/Makefile.inc
cvs rdiff -u -r0 -r1.8 src/gnu/usr.bin/groff/contrib/mom/examples/Makefile
cvs rdiff -u -r0 -r1.3 src/gnu/usr.bin/groff/contrib/mom/momdoc/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/distrib/sets/lists/comp

2010-01-26 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Tue Jan 26 15:08:52 UTC 2010

Modified Files:
src/distrib/sets/lists/comp: md.amd64

Log Message:
libmagic compat lib is installed again, remove obsolete marker.


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/distrib/sets/lists/comp/md.amd64

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.sbin/powerd

2010-01-26 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Jan 26 14:28:23 UTC 2010

Modified Files:
src/usr.sbin/powerd: powerd.8

Log Message:
Emphasize the script names and events.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/usr.sbin/powerd/powerd.8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys

2010-01-26 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Tue Jan 26 14:22:00 UTC 2010

Modified Files:
src/sys/dev/sysmon: sysmon_envsys_events.c
src/sys/sys: envsys.h

Log Message:
Move the limits out of the event structure and into the main sensor.

Use the limits_flags only for calls to the {get,set}_limits() callbacks
and merge the results into upropset, rather than trying to maintain both
values (error prone).


To generate a diff of this commit:
cvs rdiff -u -r1.75 -r1.76 src/sys/dev/sysmon/sysmon_envsys_events.c
cvs rdiff -u -r1.26 -r1.27 src/sys/sys/envsys.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/distrib/sets/lists/comp

2010-01-26 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Jan 26 14:06:36 UTC 2010

Modified Files:
src/distrib/sets/lists/comp: mi

Log Message:
Add sysmon_pswitch(9).


To generate a diff of this commit:
cvs rdiff -u -r1.1377 -r1.1378 src/distrib/sets/lists/comp/mi

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man9

2010-01-26 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Jan 26 14:00:38 UTC 2010

Modified Files:
src/share/man/man9: Makefile
Added Files:
src/share/man/man9: sysmon_pswitch.9

Log Message:
Document also the sysmon power switches; sysmon_pswitch(9).


To generate a diff of this commit:
cvs rdiff -u -r1.312 -r1.313 src/share/man/man9/Makefile
cvs rdiff -u -r0 -r1.1 src/share/man/man9/sysmon_pswitch.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/kern

2010-01-26 Thread Havard Eidnes
Module Name:src
Committed By:   he
Date:   Tue Jan 26 12:59:51 UTC 2010

Modified Files:
src/sys/kern: subr_prf.c

Log Message:
On a recursive panic(), don't try to take a dump, as that may very
well have triggered the recursive panic.
Fix the comment for panic() to reflect now-current reality: the code
was already changed never to sync() on panic(), now we avoid dumping
core on a recursive panic.


To generate a diff of this commit:
cvs rdiff -u -r1.137 -r1.138 src/sys/kern/subr_prf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/distrib/sets/lists/comp

2010-01-26 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Tue Jan 26 12:45:46 UTC 2010

Modified Files:
src/distrib/sets/lists/comp: md.amd64

Log Message:
Convert remaining base-obsolete to comp-obsolete.


To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 src/distrib/sets/lists/comp/md.amd64

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Re: CVS commit: src

2010-01-26 Thread David Brownlee
2010/1/26 Andrew Doran 
>
> On Wed, Nov 18, 2009 at 11:35:15PM +, YAMAMOTO Takashi wrote:
> >
> > > On Wed, Nov 18, 2009 at 01:29:05AM +, YAMAMOTO Takashi wrote:
> > >>
> > >> > Module Name:     src
> > >> > Committed By:    dyoung
> > >> > Date:            Tue Nov 17 18:36:07 UTC 2009
> > >> >
> > >> > Modified Files:
> > >> >  src/distrib/sets/lists/comp: mi
> > >> >  src/share/man/man9: Makefile spl.9
> > >> >
> > >> > Log Message:
> > >> > Describe spllower(9) and splraise(9).
> > >>
> > >> these are MD implementation details which are not appropriate to be
> > >> described in this page.  please revert.
> > >> adding xrefs to splraiseipl and makeiplcookie instead is probably
> > >> a good idea.
> > >
> > > I see.  I will describe spllower(9) and splraise(9) in an i386 page,
> > > instead.
> >
> > imo, for internal functions like them, it's more appropriate to put
> > comments in the source code than man pages.
>
> ... or in a book about the kernel.  Section 9 describes how to use kernel
> facilities, not how they work internally.  By documenting this item you
> give the impression of availability and stability, neither of which is
> provided.

I think its safe to say that the best place to keep implementation
documentation is with the code (at least in the same tree) so it can
track changes, and from there its a small step to shipping the
documentation with the system.

Whether that is in manpages which are specifically tagged as
'implementation specific and subject to change', in a different man
section (9i?), or somewhere else in /usr/share which can be referenced
by manpages is open to debate, though I think it would help if we had
a policy so everyone knew what to expect.

Ideally those contributing and using the documentation most should
have the biggest say, but just to throw up a strawman how about:

Implementation manpages:
a) Go in section 9i
b) Must all carry the line "implementation specific and subject to
change", and "as of NetBSD x", eg: 5.99.23
c) Should reference source files which include relevant definitions
d) Source files that include relevant definitions should include a
well defined reference to the manpage with a note to keep updated
e) Its fine for a manpage (9 or 9i) to include "this is documented
futher/fully in source file ${foo}"


Re: CVS commit: src

2010-01-26 Thread Andrew Doran
On Wed, Nov 18, 2009 at 11:35:15PM +, YAMAMOTO Takashi wrote:
> hi,
> 
> > On Wed, Nov 18, 2009 at 01:29:05AM +, YAMAMOTO Takashi wrote:
> >> hi,
> >> 
> >> > Module Name: src
> >> > Committed By:dyoung
> >> > Date:Tue Nov 17 18:36:07 UTC 2009
> >> > 
> >> > Modified Files:
> >> >  src/distrib/sets/lists/comp: mi
> >> >  src/share/man/man9: Makefile spl.9
> >> > 
> >> > Log Message:
> >> > Describe spllower(9) and splraise(9).
> >> 
> >> these are MD implementation details which are not appropriate to be
> >> described in this page.  please revert.
> >> adding xrefs to splraiseipl and makeiplcookie instead is probably
> >> a good idea.
> > 
> > I see.  I will describe spllower(9) and splraise(9) in an i386 page,
> > instead.
> 
> imo, for internal functions like them, it's more appropriate to put
> comments in the source code than man pages.

... or in a book about the kernel.  Section 9 describes how to use kernel
facilities, not how they work internally.  By documenting this item you
give the impression of availability and stability, neither of which is
provided.




CVS commit: src/share/man/man9

2010-01-26 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Jan 26 08:48:39 UTC 2010

Modified Files:
src/share/man/man9: sysmon_taskq.9

Log Message:
Mention that all tasks are executed before the halt.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/share/man/man9/sysmon_taskq.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: [matt-nb5-mips64] src/gnu/dist/binutils/bfd

2010-01-26 Thread Matt Thomas
Module Name:src
Committed By:   matt
Date:   Tue Jan 26 08:40:49 UTC 2010

Modified Files:
src/gnu/dist/binutils/bfd [matt-nb5-mips64]: elfn32-mips.c

Log Message:
Add a is_local_label_name function so that objcopy/strip can strip out
local symbols of a N32 image.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.3 -r1.1.1.3.32.1 src/gnu/dist/binutils/bfd/elfn32-mips.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/distrib/sets/lists/comp

2010-01-26 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Jan 26 08:30:21 UTC 2010

Modified Files:
src/distrib/sets/lists/comp: mi

Log Message:
Include all references from sysmon_taskq(9).


To generate a diff of this commit:
cvs rdiff -u -r1.1376 -r1.1377 src/distrib/sets/lists/comp/mi

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man9

2010-01-26 Thread Jukka Ruohonen
Module Name:src
Committed By:   jruoho
Date:   Tue Jan 26 08:14:09 UTC 2010

Modified Files:
src/share/man/man9: Makefile

Log Message:
Build links for rest of the sysmon_taskq(9) functions.


To generate a diff of this commit:
cvs rdiff -u -r1.311 -r1.312 src/share/man/man9/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/external/bsd/drm/dist/bsd-core

2010-01-26 Thread Jeremy Morse
Module Name:src
Committed By:   jmorse
Date:   Tue Jan 26 08:01:27 UTC 2010

Modified Files:
src/sys/external/bsd/drm/dist/bsd-core: drmP.h drm_bufs.c drm_memory.c

Log Message:
PR/42262: Support drm drivers (intel G33/G45) submapping pci resources


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/external/bsd/drm/dist/bsd-core/drmP.h
cvs rdiff -u -r1.6 -r1.7 src/sys/external/bsd/drm/dist/bsd-core/drm_bufs.c \
src/sys/external/bsd/drm/dist/bsd-core/drm_memory.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.