CVS commit: src/lib/libc/sys
Module Name:src Committed By: mrg Date: Wed Jul 1 06:01:42 UTC 2009 Modified Files: src/lib/libc/sys: getrlimit.2 Log Message: document RLIMIT_AS. text from freebsd. fixes PR#41517. To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/lib/libc/sys/getrlimit.2 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/libc/sys/getrlimit.2 diff -u src/lib/libc/sys/getrlimit.2:1.30 src/lib/libc/sys/getrlimit.2:1.31 --- src/lib/libc/sys/getrlimit.2:1.30 Wed Mar 11 13:39:14 2009 +++ src/lib/libc/sys/getrlimit.2 Wed Jul 1 06:01:42 2009 @@ -1,4 +1,4 @@ -.\" $NetBSD: getrlimit.2,v 1.30 2009/03/11 13:39:14 joerg Exp $ +.\" $NetBSD: getrlimit.2,v 1.31 2009/07/01 06:01:42 mrg Exp $ .\" .\" Copyright (c) 1980, 1991, 1993 .\" The Regents of the University of California. All rights reserved. @@ -58,6 +58,8 @@ .Fa resource parameter is one of the following: .Bl -tag -width RLIMIT_FSIZEAA +.It Li RLIMIT_AS +The maximum amount (in bytes) of virtual memory the process is allowed to map. .It Li RLIMIT_CORE The largest size (in bytes) .Pa core
CVS commit: xsrc/external/mit/xf86-video-crime/dist/src
Module Name:xsrc Committed By: macallan Date: Wed Jul 1 03:52:11 UTC 2009 Modified Files: xsrc/external/mit/xf86-video-crime/dist/src: crime_accel.c Log Message: remove one bogus bailout check in CrimeDoCPUToScreenComposite() - now text in KDE menus is visible again. TODO: - find out why straight horizontal and vertical lines aren't drawn properly - make static alpha work - use the ring buffer to feed commands into the rendering engine To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 \ xsrc/external/mit/xf86-video-crime/dist/src/crime_accel.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: xsrc/external/mit/xf86-video-crime/dist/src/crime_accel.c diff -u xsrc/external/mit/xf86-video-crime/dist/src/crime_accel.c:1.9 xsrc/external/mit/xf86-video-crime/dist/src/crime_accel.c:1.10 --- xsrc/external/mit/xf86-video-crime/dist/src/crime_accel.c:1.9 Sat Apr 11 20:43:04 2009 +++ xsrc/external/mit/xf86-video-crime/dist/src/crime_accel.c Wed Jul 1 03:52:11 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: crime_accel.c,v 1.9 2009/04/11 20:43:04 macallan Exp $ */ +/* $NetBSD: crime_accel.c,v 1.10 2009/07/01 03:52:11 macallan Exp $ */ /* * Copyright (c) 2008 Michael Lorenz * All rights reserved. @@ -1336,12 +1336,6 @@ PixmapPtr pPix = (PixmapPtr)(pMask->pDrawable); int skipleft; -if (alpha == 0x) { - /* actually we can but for now we don't care */ - xf86Msg(X_ERROR, - "can't colour expand with alpha\n"); - return; -} if (op != PictOpOver) { xf86Msg(X_ERROR, "!over\n"); return;
CVS commit: src/sbin/newfs
Module Name:src Committed By: uwe Date: Wed Jul 1 02:43:35 UTC 2009 Modified Files: src/sbin/newfs: newfs.8 Log Message: G/c sentence fragment left over from vinum reference (forgotten in 1.69). Noticed by bad@ in PR bin/41652 To generate a diff of this commit: cvs rdiff -u -r1.73 -r1.74 src/sbin/newfs/newfs.8 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sbin/newfs/newfs.8 diff -u src/sbin/newfs/newfs.8:1.73 src/sbin/newfs/newfs.8:1.74 --- src/sbin/newfs/newfs.8:1.73 Sun May 10 13:28:00 2009 +++ src/sbin/newfs/newfs.8 Wed Jul 1 02:43:34 2009 @@ -1,4 +1,4 @@ -.\" $NetBSD: newfs.8,v 1.73 2009/05/10 13:28:00 lukem Exp $ +.\" $NetBSD: newfs.8,v 1.74 2009/07/01 02:43:34 uwe Exp $ .\" .\" Copyright (c) 1983, 1987, 1991, 1993, 1994 .\" The Regents of the University of California. All rights reserved. @@ -347,7 +347,6 @@ only if the last character of .Ar special references the same partition as the minor device number. -that provide disk like block and character devices. .Sh SEE ALSO .Xr fstat 2 , .Xr disktab 5 ,
CVS commit: src/sys/kern
Module Name:src Committed By: martin Date: Tue Jun 30 20:32:49 UTC 2009 Modified Files: src/sys/kern: kern_descrip.c Log Message: Update fd_freefile when kqueue descriptors are not copied from parent to child. From Wolfgang Solfrank in PR kern/41651. Approved by Andrew Doran. To generate a diff of this commit: cvs rdiff -u -r1.197 -r1.198 src/sys/kern/kern_descrip.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/kern/kern_descrip.c diff -u src/sys/kern/kern_descrip.c:1.197 src/sys/kern/kern_descrip.c:1.198 --- src/sys/kern/kern_descrip.c:1.197 Mon Jun 8 00:19:56 2009 +++ src/sys/kern/kern_descrip.c Tue Jun 30 20:32:49 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_descrip.c,v 1.197 2009/06/08 00:19:56 yamt Exp $ */ +/* $NetBSD: kern_descrip.c,v 1.198 2009/06/30 20:32:49 martin Exp $ */ /*- * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc. @@ -70,7 +70,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: kern_descrip.c,v 1.197 2009/06/08 00:19:56 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_descrip.c,v 1.198 2009/06/30 20:32:49 martin Exp $"); #include #include @@ -1423,6 +1423,8 @@ } if (__predict_false(fp->f_type == DTYPE_KQUEUE)) { /* kqueue descriptors cannot be copied. */ + if (i < newfdp->fd_freefile) + newfdp->fd_freefile = i; continue; } /* It's active: add a reference to the file. */
CVS commit: src/crypto/external/bsd/netpgp/dist/src/netpgp
Module Name:src Committed By: agc Date: Tue Jun 30 18:54:20 UTC 2009 Modified Files: src/crypto/external/bsd/netpgp/dist/src/netpgp: netpgp.c Log Message: Check that a filename has been given, where one has required. Fixes a bug reported by Mark Kirby. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 \ src/crypto/external/bsd/netpgp/dist/src/netpgp/netpgp.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/crypto/external/bsd/netpgp/dist/src/netpgp/netpgp.c diff -u src/crypto/external/bsd/netpgp/dist/src/netpgp/netpgp.c:1.4 src/crypto/external/bsd/netpgp/dist/src/netpgp/netpgp.c:1.5 --- src/crypto/external/bsd/netpgp/dist/src/netpgp/netpgp.c:1.4 Sat Jun 13 05:25:09 2009 +++ src/crypto/external/bsd/netpgp/dist/src/netpgp/netpgp.c Tue Jun 30 18:54:20 2009 @@ -159,6 +159,17 @@ progname, progname, usagemsg); } +/* check the file is not NULL */ +static int +nonnull(char *f, char *progname) +{ + if (f == NULL) { + (void) fprintf(stderr, "%s: No filename provided\n", progname); + return 0; + } + return 1; +} + /* do a command once for a specified file 'f' */ static int netpgp_cmd(netpgp_t *netpgp, prog_t *p, char *f) @@ -167,30 +178,37 @@ switch (p->cmd) { case ENCRYPT: - return netpgp_encrypt_file(netpgp, + return nonnull(f, p->progname) && + netpgp_encrypt_file(netpgp, netpgp_getvar(netpgp, "userid"), f, p->output, p->armour); case DECRYPT: - return netpgp_decrypt_file(netpgp, f, p->output, p->armour); + return nonnull(f, p->progname) && + netpgp_decrypt_file(netpgp, f, p->output, p->armour); case SIGN: - return netpgp_sign_file(netpgp, + return nonnull(f, p->progname) && + netpgp_sign_file(netpgp, netpgp_getvar(netpgp, "userid"), f, p->output, p->armour, !cleartext, p->detached); case CLEARSIGN: - return netpgp_sign_file(netpgp, + return nonnull(f, p->progname) && + netpgp_sign_file(netpgp, netpgp_getvar(netpgp, "userid"), f, p->output, p->armour, cleartext, p->detached); case VERIFY: - return netpgp_verify_file(netpgp, f, NULL, p->armour); + return nonnull(f, p->progname) && + netpgp_verify_file(netpgp, f, NULL, p->armour); case VERIFY_CAT: - return netpgp_verify_file(netpgp, f, + return nonnull(f, p->progname) && + netpgp_verify_file(netpgp, f, (p->output) ? p->output : "-", p->armour); case LIST_PACKETS: - return netpgp_list_packets(netpgp, f, p->armour, NULL); + return nonnull(f, p->progname) && + netpgp_list_packets(netpgp, f, p->armour, NULL); case HELP_CMD: default: print_usage(usage, p->progname);
CVS commit: src/sys/dev/acpi
Module Name:src Committed By: pgoyette Date: Tue Jun 30 16:14:49 UTC 2009 Modified Files: src/sys/dev/acpi: acpi_tz.c Log Message: Change acpi_tz sensor behavior as follows: 1. ENVSYS_WARNOVER event is generated whenever any active cooling level is exceeded. 2. ENVSYS_CRITOVER event is generated whenever _HOT limit is exceeded; if the _HOT limit is not defined, then ENVSYS_CRITOVER will be generated when the _CRT limit is exceeded. 3. For Passive Cooling Only mode, there will be no change in behavior. Additionally, since there are specific actions taken at each of the Active Cooling Levels (powering parts of a zone on or off), and the limits are not user-programmable, 4. The {warn,crit}{min,max} threshold levels will be specified only by the device itself; event reporting thresholds may not be set from userland. No comments received for two weeks after proposing these changes on both current-users@ and tech-kern@ To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42 src/sys/dev/acpi/acpi_tz.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/acpi/acpi_tz.c diff -u src/sys/dev/acpi/acpi_tz.c:1.41 src/sys/dev/acpi/acpi_tz.c:1.42 --- src/sys/dev/acpi/acpi_tz.c:1.41 Wed Jun 3 22:34:18 2009 +++ src/sys/dev/acpi/acpi_tz.c Tue Jun 30 16:14:49 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: acpi_tz.c,v 1.41 2009/06/03 22:34:18 pgoyette Exp $ */ +/* $NetBSD: acpi_tz.c,v 1.42 2009/06/30 16:14:49 pgoyette Exp $ */ /* * Copyright (c) 2003 Jared D. McNeill @@ -30,7 +30,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: acpi_tz.c,v 1.41 2009/06/03 22:34:18 pgoyette Exp $"); +__KERNEL_RCSID(0, "$NetBSD: acpi_tz.c,v 1.42 2009/06/30 16:14:49 pgoyette Exp $"); #include #include @@ -129,6 +129,8 @@ static int acpitz_get_integer(device_t, const char *, UINT32 *); static void acpitz_tick(void *); static void acpitz_init_envsys(device_t); +static void acpitz_get_limits(struct sysmon_envsys *, envsys_data_t *, + sysmon_envsys_lim_t *); CFATTACH_DECL_NEW(acpitz, sizeof(struct acpitz_softc), acpitz_match, acpitz_attach, NULL, NULL); @@ -262,6 +264,8 @@ if (sc->sc_zone.ac[i] <= tmp) active = i; } + if (active != ATZ_ACTIVE_NONE) + sc->sc_sensor.state = ENVSYS_SWARNOVER; flags = sc->sc_flags & ~(ATZ_F_CRITICAL|ATZ_F_HOT|ATZ_F_PASSIVE); @@ -284,7 +288,7 @@ "zone went critical at temp %sC\n", acpitz_celcius_string(tmp)); } else if (changed & ATZ_F_HOT) { -sc->sc_sensor.state = ENVSYS_SWARNOVER; +sc->sc_sensor.state = ENVSYS_SCRITOVER; aprint_debug_dev(dv, "zone went hot at temp %sC\n", acpitz_celcius_string(tmp)); @@ -584,21 +588,45 @@ struct acpitz_softc *sc = device_private(dv); sc->sc_sme = sysmon_envsys_create(); + sc->sc_sme->sme_get_limits = acpitz_get_limits; + sc->sc_sme->sme_cookie = sc; + sc->sc_sme->sme_name = device_xname(dv); + sc->sc_sme->sme_flags = SME_DISABLE_REFRESH; sc->sc_sensor.monitor = true; - sc->sc_sensor.flags = ENVSYS_FMONLIMITS; + sc->sc_sensor.flags = ENVSYS_FMONLIMITS | ENVSYS_FMONNOTSUPP; sc->sc_sensor.units = ENVSYS_STEMP; strlcpy(sc->sc_sensor.desc, "temperature", sizeof(sc->sc_sensor.desc)); - if (sysmon_envsys_sensor_attach(sc->sc_sme, &sc->sc_sensor)) { - sysmon_envsys_destroy(sc->sc_sme); - return; - } + if (sysmon_envsys_sensor_attach(sc->sc_sme, &sc->sc_sensor)) + goto out; /* hook into sysmon */ - sc->sc_sme->sme_name = device_xname(dv); - sc->sc_sme->sme_flags = SME_DISABLE_REFRESH; + if (sysmon_envsys_register(sc->sc_sme) == 0) + return; +out: + aprint_error_dev(dv, "unable to register with sysmon\n"); + sysmon_envsys_destroy(sc->sc_sme); +} - if (sysmon_envsys_register(sc->sc_sme)) { - aprint_error_dev(dv, "unable to register with sysmon\n"); - sysmon_envsys_destroy(sc->sc_sme); - } +static void +acpitz_get_limits(struct sysmon_envsys *sme, envsys_data_t *edata, + sysmon_envsys_lim_t *limits) +{ + struct acpitz_softc *sc = sme->sme_cookie; + int i; + + limits->sel_flags = 0; + + if (sc->sc_zone.hot != ATZ_TMP_INVALID) { + limits->sel_flags |= PROP_CRITMAX; + limits->sel_critmax = sc->sc_zone.hot; + } else if (sc->sc_zone.crt != ATZ_TMP_INVALID) { + limits->sel_flags |= PROP_CRITMAX; + limits->sel_critmax = sc->sc_zone.crt; + } + for (i = 0; i < ATZ_NLEVELS; i++) + if (sc->sc_zone.ac[i] != ATZ_TMP_INVALID) { + limits->sel_critmax = sc->sc_zone.ac[i]; + limits->sel_flags |= PROP_WARNMAX; + break; + } }
CVS commit: src/sys/rump/librump/rumpkern
Module Name:src Committed By: pooka Date: Tue Jun 30 15:28:01 UTC 2009 Modified Files: src/sys/rump/librump/rumpkern: rump.3 Log Message: add reference To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/rump/librump/rumpkern/rump.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/rump/librump/rumpkern/rump.3 diff -u src/sys/rump/librump/rumpkern/rump.3:1.4 src/sys/rump/librump/rumpkern/rump.3:1.5 --- src/sys/rump/librump/rumpkern/rump.3:1.4 Thu May 28 09:41:05 2009 +++ src/sys/rump/librump/rumpkern/rump.3 Tue Jun 30 15:28:01 2009 @@ -1,4 +1,4 @@ -.\" $NetBSD: rump.3,v 1.4 2009/05/28 09:41:05 wiz Exp $ +.\" $NetBSD: rump.3,v 1.5 2009/06/30 15:28:01 pooka Exp $ .\" .\" Copyright (c) 2008 Antti Kantee. All rights reserved. .\" @@ -114,16 +114,23 @@ .Rs .%A Antti Kantee .%D March 2009 -.%J Proceedings of AsiaBSDCon 2009 +.%B Proceedings of AsiaBSDCon 2009 .%P pp. 71-80 .%T Environmental Independence: BSD Kernel TCP/IP in Userspace .Re .Rs .%A Antti Kantee .%D May 2009 -.%J BSDCan 2009 +.%B BSDCan 2009 .%T Kernel Development in Userspace - The Rump Approach .Re +.Rs +.%A Antti Kantee +.%D June 2009 +.%B Proceedings of the 2009 USENIX Annual Technical Conference +.%P pp. 201-214 +.%T Rump File Systems: Kernel Code Reborn +.Re .Sh HISTORY .Nm first appeared in
CVS commit: src/sys/crypto/blowfish
Module Name:src Committed By: pooka Date: Tue Jun 30 13:14:40 UTC 2009 Modified Files: src/sys/crypto/blowfish: bf_locl.h Log Message: Apply const where necessary (XXX: where is bf_locl.org?) To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/crypto/blowfish/bf_locl.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/crypto/blowfish/bf_locl.h diff -u src/sys/crypto/blowfish/bf_locl.h:1.4 src/sys/crypto/blowfish/bf_locl.h:1.5 --- src/sys/crypto/blowfish/bf_locl.h:1.4 Sun Dec 11 12:20:48 2005 +++ src/sys/crypto/blowfish/bf_locl.h Tue Jun 30 13:14:40 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: bf_locl.h,v 1.4 2005/12/11 12:20:48 christos Exp $ */ +/* $NetBSD: bf_locl.h,v 1.5 2009/06/30 13:14:40 pooka Exp $ */ /* $KAME: bf_locl.h,v 1.5 2000/08/31 06:03:48 itojun Exp $ */ /* crypto/bf/bf_local.h */ @@ -187,15 +187,15 @@ v=R>>BF_1; \ u&=BF_M; \ v&=BF_M; \ - t= *(BF_LONG *)((unsigned char *)&(S[ 0])+u); \ + t= *(const BF_LONG *)((const unsigned char *)&(S[ 0])+u); \ u=R>>BF_2; \ - t+= *(BF_LONG *)((unsigned char *)&(S[256])+v); \ + t+= *(const BF_LONG *)((const unsigned char *)&(S[256])+v); \ v=R<