CVS commit: src/sys/ufs/ext2fs
Module Name:src Committed By: christos Date: Tue Aug 23 06:40:54 UTC 2016 Modified Files: src/sys/ufs/ext2fs: ext2fs_xattr.c Log Message: CID 1371648: off by one in index checking KNF. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/ufs/ext2fs/ext2fs_xattr.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/ufs/ext2fs/ext2fs_xattr.c diff -u src/sys/ufs/ext2fs/ext2fs_xattr.c:1.3 src/sys/ufs/ext2fs/ext2fs_xattr.c:1.4 --- src/sys/ufs/ext2fs/ext2fs_xattr.c:1.3 Sun Aug 14 07:40:31 2016 +++ src/sys/ufs/ext2fs/ext2fs_xattr.c Tue Aug 23 02:40:54 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: ext2fs_xattr.c,v 1.3 2016/08/14 11:40:31 jdolecek Exp $ */ +/* $NetBSD: ext2fs_xattr.c,v 1.4 2016/08/23 06:40:54 christos Exp $ */ /*- * Copyright (c) 2016 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ext2fs_xattr.c,v 1.3 2016/08/14 11:40:31 jdolecek Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ext2fs_xattr.c,v 1.4 2016/08/23 06:40:54 christos Exp $"); #include #include @@ -68,7 +68,9 @@ static const char * const xattr_prefix_i }; static int -ext2fs_find_xattr(struct ext2fs_xattr_entry *e, uint8_t *start, uint8_t *end, int attrnamespace, struct uio *uio, size_t *size, uint8_t name_index, const char *name) +ext2fs_find_xattr(struct ext2fs_xattr_entry *e, uint8_t *start, uint8_t *end, +int attrnamespace, struct uio *uio, size_t *size, uint8_t name_index, +const char *name) { uint8_t *value; int error; @@ -83,8 +85,10 @@ ext2fs_find_xattr(struct ext2fs_xattr_en * Only EXT2FS_XATTR_PREFIX_USER is USER, anything else * is considered SYSTEM. */ - if ((attrnamespace == EXTATTR_NAMESPACE_USER && e->e_name_index != EXT2FS_XATTR_PREFIX_USER) || - (attrnamespace == EXTATTR_NAMESPACE_SYSTEM && e->e_name_index == EXT2FS_XATTR_PREFIX_USER)) { + if ((attrnamespace == EXTATTR_NAMESPACE_USER + && e->e_name_index != EXT2FS_XATTR_PREFIX_USER) || + (attrnamespace == EXTATTR_NAMESPACE_SYSTEM + && e->e_name_index == EXT2FS_XATTR_PREFIX_USER)) { continue; } @@ -94,8 +98,8 @@ ext2fs_find_xattr(struct ext2fs_xattr_en continue; value_offs = fs2h32(e->e_value_offs); - value_len = fs2h32(e->e_value_size); - value = &start[value_offs]; + value_len = fs2h32(e->e_value_size); + value = &start[value_offs]; /* make sure the value offset are sane */ if (&value[value_len] > end) @@ -103,8 +107,8 @@ ext2fs_find_xattr(struct ext2fs_xattr_en if (uio != NULL) { /* - * Figure out maximum to transfer -- use buffer size and - * local data limit. + * Figure out maximum to transfer -- use buffer size + * and local data limit. */ len = MIN(uio->uio_resid, value_len); old_len = uio->uio_resid; @@ -131,24 +135,27 @@ ext2fs_find_xattr(struct ext2fs_xattr_en } static int -ext2fs_get_inode_xattr(struct inode *ip, int attrnamespace, struct uio *uio, size_t *size, uint8_t name_index, const char *name) +ext2fs_get_inode_xattr(struct inode *ip, int attrnamespace, struct uio *uio, +size_t *size, uint8_t name_index, const char *name) { struct ext2fs_dinode *di = ip->i_din.e2fs_din; struct ext2fs_xattr_ibody_header *h; uint8_t *start, *end; start = &((uint8_t *)di)[EXT2_REV0_DINODE_SIZE + di->e2di_extra_isize]; - h = (struct ext2fs_xattr_ibody_header *)start; - end = &((uint8_t *)di)[EXT2_DINODE_SIZE(ip->i_e2fs)]; + h = (struct ext2fs_xattr_ibody_header *)start; + end = &((uint8_t *)di)[EXT2_DINODE_SIZE(ip->i_e2fs)]; if (end <= start || fs2h32(h->h_magic) != EXT2FS_XATTR_MAGIC) return ENODATA; - return ext2fs_find_xattr(EXT2FS_XATTR_IFIRST(h), start, end, attrnamespace, uio, size, name_index, name); + return ext2fs_find_xattr(EXT2FS_XATTR_IFIRST(h), start, end, + attrnamespace, uio, size, name_index, name); } static int -ext2fs_get_block_xattr(struct inode *ip, int attrnamespace, struct uio *uio, size_t *size, uint8_t name_index, const char *name) +ext2fs_get_block_xattr(struct inode *ip, int attrnamespace, struct uio *uio, +size_t *size, uint8_t name_index, const char *name) { struct ext2fs_dinode *di = ip->i_din.e2fs_din; uint8_t *start, *end; @@ -165,7 +172,8 @@ ext2fs_get_block_xattr(struct inode *ip, if (xblk == 0) return 0; - error = bread(ip->i_devvp, fsbtodb(ip->i_e2fs, xblk), (int)ip->i_e2fs->e2fs_bsize, 0, &bp); + error = bread(ip->i_devvp, fsbtodb(ip->i_e2fs, xblk), + (int)ip->i_e2fs->e2fs_bsize, 0, &bp); if (error) goto out; @@ -176,9 +184,10 @@ ext2fs_get_block_xattr(struct inode *ip, if (end <= start || fs2h32(h->h_magic) != EXT2FS_XATTR_MAGIC) goto out; - error = ext2fs_find_xattr(EXT2FS_XATTR_BFIRST(h), start, end, attrnamespace, uio, size, name_index, name); + error = ext2fs_find_xattr(EXT2FS_XATTR_BFIRST(h), start, end, + attrnamespace, uio, size, name_index, name); -out: +out: if
CVS commit: src/sys/ufs/ext2fs
Module Name:src Committed By: christos Date: Tue Aug 23 06:40:25 UTC 2016 Modified Files: src/sys/ufs/ext2fs: ext2fs_lookup.c Log Message: KNF, no functional change To generate a diff of this commit: cvs rdiff -u -r1.87 -r1.88 src/sys/ufs/ext2fs/ext2fs_lookup.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/ufs/ext2fs/ext2fs_lookup.c diff -u src/sys/ufs/ext2fs/ext2fs_lookup.c:1.87 src/sys/ufs/ext2fs/ext2fs_lookup.c:1.88 --- src/sys/ufs/ext2fs/ext2fs_lookup.c:1.87 Thu Aug 18 20:05:43 2016 +++ src/sys/ufs/ext2fs/ext2fs_lookup.c Tue Aug 23 02:40:25 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: ext2fs_lookup.c,v 1.87 2016/08/19 00:05:43 jdolecek Exp $ */ +/* $NetBSD: ext2fs_lookup.c,v 1.88 2016/08/23 06:40:25 christos Exp $ */ /* * Modified for NetBSD 1.2E @@ -48,7 +48,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ext2fs_lookup.c,v 1.87 2016/08/19 00:05:43 jdolecek Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ext2fs_lookup.c,v 1.88 2016/08/23 06:40:25 christos Exp $"); #include #include @@ -305,8 +305,6 @@ ext2fs_lookup(void *v) int dirblksiz = ump->um_dirblksiz; ino_t foundino; struct ufs_lookup_results *results; - doff_t i_offset; /* cached i_offset value */ - struct ext2fs_searchslot ss; flags = cnp->cn_flags; @@ -386,7 +384,6 @@ ext2fs_lookup(void *v) prevoff = results->ulr_offset; endsearch = roundup(ext2fs_size(dp), dirblksiz); enduseful = 0; - /* * Try to lookup dir entry using htree directory index. * @@ -394,6 +391,8 @@ ext2fs_lookup(void *v) * we will fall back to linear search. */ if (!ext2fs_is_dot_entry(cnp) && ext2fs_htree_has_idx(dp)) { + doff_t i_offset; /* cached i_offset value */ + struct ext2fs_searchslot ss; numdirpasses = 1; entryoffsetinblock = 0; @@ -402,8 +401,7 @@ ext2fs_lookup(void *v) &prevoff, &enduseful, &ss); switch (htree_lookup_ret) { case 0: - ep = (struct ext2fs_direct*)((char *)bp->b_data + - (i_offset & bmask)); + ep = (void *)((char *)bp->b_data + (i_offset & bmask)); foundino = ep->e2d_ino; goto found; case ENOENT: @@ -428,8 +426,8 @@ searchloop: if ((results->ulr_offset & bmask) == 0) { if (bp != NULL) brelse(bp, 0); - error = ext2fs_blkatoff(vdp, (off_t)results->ulr_offset, NULL, - &bp); + error = ext2fs_blkatoff(vdp, (off_t)results->ulr_offset, + NULL, &bp); if (error != 0) return error; entryoffsetinblock = 0;
CVS commit: src/sys/ufs/ext2fs
Module Name:src Committed By: christos Date: Tue Aug 23 06:24:30 UTC 2016 Modified Files: src/sys/ufs/ext2fs: ext2fs_vfsops.c Log Message: CID 1371644: use strlcpy, remove dup copy. To generate a diff of this commit: cvs rdiff -u -r1.202 -r1.203 src/sys/ufs/ext2fs/ext2fs_vfsops.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/ufs/ext2fs/ext2fs_vfsops.c diff -u src/sys/ufs/ext2fs/ext2fs_vfsops.c:1.202 src/sys/ufs/ext2fs/ext2fs_vfsops.c:1.203 --- src/sys/ufs/ext2fs/ext2fs_vfsops.c:1.202 Sat Aug 20 17:22:25 2016 +++ src/sys/ufs/ext2fs/ext2fs_vfsops.c Tue Aug 23 02:24:30 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: ext2fs_vfsops.c,v 1.202 2016/08/20 21:22:25 jdolecek Exp $ */ +/* $NetBSD: ext2fs_vfsops.c,v 1.203 2016/08/23 06:24:30 christos Exp $ */ /* * Copyright (c) 1989, 1991, 1993, 1994 @@ -60,7 +60,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ext2fs_vfsops.c,v 1.202 2016/08/20 21:22:25 jdolecek Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ext2fs_vfsops.c,v 1.203 2016/08/23 06:24:30 christos Exp $"); #if defined(_KERNEL_OPT) #include "opt_compat_netbsd.h" @@ -242,12 +242,9 @@ ext2fs_done(void) static void ext2fs_sb_setmountinfo(struct m_ext2fs *fs, struct mount *mp) { - (void)strncpy(fs->e2fs_fsmnt, mp->mnt_stat.f_mntonname, + (void)strlcpy(fs->e2fs_fsmnt, mp->mnt_stat.f_mntonname, sizeof(fs->e2fs_fsmnt)); if (fs->e2fs_ronly == 0 && fs->e2fs.e2fs_rev > E2FS_REV0) { - (void)strncpy(fs->e2fs.e2fs_fsmnt, mp->mnt_stat.f_mntonname, -sizeof(fs->e2fs.e2fs_fsmnt)); - fs->e2fs.e2fs_mtime = time_second; fs->e2fs.e2fs_mnt_count++;
CVS commit: src/sys/ufs/ext2fs
Module Name:src Committed By: christos Date: Tue Aug 23 06:23:27 UTC 2016 Modified Files: src/sys/ufs/ext2fs: ext2fs_htree.c Log Message: CID 1371645: remove dead code To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/ufs/ext2fs/ext2fs_htree.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/ufs/ext2fs/ext2fs_htree.c diff -u src/sys/ufs/ext2fs/ext2fs_htree.c:1.8 src/sys/ufs/ext2fs/ext2fs_htree.c:1.9 --- src/sys/ufs/ext2fs/ext2fs_htree.c:1.8 Sat Aug 20 15:45:20 2016 +++ src/sys/ufs/ext2fs/ext2fs_htree.c Tue Aug 23 02:23:26 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: ext2fs_htree.c,v 1.8 2016/08/20 19:45:20 jdolecek Exp $ */ +/* $NetBSD: ext2fs_htree.c,v 1.9 2016/08/23 06:23:26 christos Exp $ */ /*- * Copyright (c) 2010, 2012 Zheng Liu @@ -29,7 +29,7 @@ * $FreeBSD: head/sys/fs/ext2fs/ext2fs_htree.c 294653 2016-01-24 02:41:49Z pfg $ */ #include -__KERNEL_RCSID(0, "$NetBSD: ext2fs_htree.c,v 1.8 2016/08/20 19:45:20 jdolecek Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ext2fs_htree.c,v 1.9 2016/08/23 06:23:26 christos Exp $"); #include #include @@ -451,8 +451,6 @@ ext2fs_htree_create_index(struct vnode * bdwrite(bp); dp->i_flag |= IN_CHANGE | IN_UPDATE; - if (error) - goto out; /* * Write directory block 1.
CVS commit: src/bin/expr
Module Name:src Committed By: sevan Date: Tue Aug 23 03:21:16 UTC 2016 Modified Files: src/bin/expr: expr.1 Log Message: Instruction to not split the line needs to be stated separately. To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/bin/expr/expr.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/bin/expr/expr.1 diff -u src/bin/expr/expr.1:1.34 src/bin/expr/expr.1:1.35 --- src/bin/expr/expr.1:1.34 Tue Aug 23 02:58:45 2016 +++ src/bin/expr/expr.1 Tue Aug 23 03:21:16 2016 @@ -1,4 +1,4 @@ -.\" $NetBSD: expr.1,v 1.34 2016/08/23 02:58:45 sevan Exp $ +.\" $NetBSD: expr.1,v 1.35 2016/08/23 03:21:16 sevan Exp $ .\" .\" Copyright (c) 2000,2003 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -258,7 +258,8 @@ Initial implementation by .An Pace Willisson .Aq p...@blitz.com was largely rewritten by -.An -nosplit J.T. Conklin +.An -nosplit +.An J.T. Conklin .Aq j...@netbsd.org . It was rewritten again for .Nx 1.6
CVS commit: src/bin/expr
Module Name:src Committed By: sevan Date: Tue Aug 23 02:58:45 UTC 2016 Modified Files: src/bin/expr: expr.1 Log Message: Add HISTORY section Credit author of initial implementation in AUTHORS section Bump date Remove contraction highlighted by textproc/igor To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34 src/bin/expr/expr.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/bin/expr/expr.1 diff -u src/bin/expr/expr.1:1.33 src/bin/expr/expr.1:1.34 --- src/bin/expr/expr.1:1.33 Sun Aug 12 17:27:04 2012 +++ src/bin/expr/expr.1 Tue Aug 23 02:58:45 2016 @@ -1,4 +1,4 @@ -.\" $NetBSD: expr.1,v 1.33 2012/08/12 17:27:04 wiz Exp $ +.\" $NetBSD: expr.1,v 1.34 2016/08/23 02:58:45 sevan Exp $ .\" .\" Copyright (c) 2000,2003 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -27,7 +27,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd April 20, 2004 +.Dd August 23, 2016 .Dt EXPR 1 .Os .Sh NAME @@ -214,7 +214,7 @@ treat it as a delimiter to mark the end line options, and ignore it. Some .Nm -implementations don't recognize it at all; others +implementations do not recognize it at all; others might ignore it even in cases where doing so results in syntax error. There should be same result for both following examples, @@ -242,11 +242,25 @@ The .Ar length keyword is an extension for compatibility with GNU .Nm . +.Sh HISTORY +An +.Nm +utility first appeared in the Programmer's Workbench (PWB/UNIX). +A public domain licensed version of +.Nm +written by +.An Pace Willisson +.Aq p...@blitz.com +appeared in +.Bx 386 0.1 . .Sh AUTHORS -Original implementation was written by -.An J.T. Conklin +Initial implementation by +.An Pace Willisson +.Aq p...@blitz.com +was largely rewritten by +.An -nosplit J.T. Conklin .Aq j...@netbsd.org . -It was rewritten for +It was rewritten again for .Nx 1.6 by .An Jaromir Dolecek
CVS commit: src/sys/fs/tmpfs
Module Name:src Committed By: skrll Date: Mon Aug 22 23:07:36 UTC 2016 Modified Files: src/sys/fs/tmpfs: tmpfs_mem.c Log Message: Two fixes from rmind - tmpfs_node_get: restore (decrement) the node count on the error path. - tmpfs_bytes_max: save the value of uvmexp.freetarg (since it is unlocked/racy). To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/fs/tmpfs/tmpfs_mem.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/fs/tmpfs/tmpfs_mem.c diff -u src/sys/fs/tmpfs/tmpfs_mem.c:1.8 src/sys/fs/tmpfs/tmpfs_mem.c:1.9 --- src/sys/fs/tmpfs/tmpfs_mem.c:1.8 Fri Jun 13 11:57:48 2014 +++ src/sys/fs/tmpfs/tmpfs_mem.c Mon Aug 22 23:07:36 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: tmpfs_mem.c,v 1.8 2014/06/13 11:57:48 pooka Exp $ */ +/* $NetBSD: tmpfs_mem.c,v 1.9 2016/08/22 23:07:36 skrll Exp $ */ /* * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc. @@ -35,7 +35,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: tmpfs_mem.c,v 1.8 2014/06/13 11:57:48 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: tmpfs_mem.c,v 1.9 2016/08/22 23:07:36 skrll Exp $"); #include #include @@ -116,12 +116,13 @@ uint64_t tmpfs_bytes_max(struct tmpfs_mount *mp) { psize_t freepages = tmpfs_mem_info(false); + int freetarg = uvmexp.freetarg; // XXX unlocked uint64_t avail_mem; - if (freepages < uvmexp.freetarg) { + if (freepages < freetarg) { freepages = 0; } else { - freepages -= uvmexp.freetarg; + freepages -= freetarg; } avail_mem = round_page(mp->tm_bytes_used) + (freepages << PAGE_SHIFT); return MIN(mp->tm_mem_limit, avail_mem); @@ -187,6 +188,7 @@ tmpfs_node_get(struct tmpfs_mount *mp) return NULL; } if (!tmpfs_mem_incr(mp, sizeof(struct tmpfs_node))) { + atomic_dec_uint(&mp->tm_nodes_cnt); return NULL; } return pool_get(&tmpfs_node_pool, PR_WAITOK);
CVS commit: src/doc
Module Name:src Committed By: wiz Date: Mon Aug 22 22:53:02 UTC 2016 Modified Files: src/doc: 3RDPARTY Log Message: gcc-6.2 out. To generate a diff of this commit: cvs rdiff -u -r1.1353 -r1.1354 src/doc/3RDPARTY Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/3RDPARTY diff -u src/doc/3RDPARTY:1.1353 src/doc/3RDPARTY:1.1354 --- src/doc/3RDPARTY:1.1353 Sat Aug 20 17:09:34 2016 +++ src/doc/3RDPARTY Mon Aug 22 22:53:02 2016 @@ -1,4 +1,4 @@ -# $NetBSD: 3RDPARTY,v 1.1353 2016/08/20 17:09:34 wiz Exp $ +# $NetBSD: 3RDPARTY,v 1.1354 2016/08/22 22:53:02 wiz Exp $ # # This file contains a list of the software that has been integrated into # NetBSD where we are not the primary maintainer. @@ -439,7 +439,7 @@ There is a flex2netbsd script to help ne Package: gcc Version: 4.8.5/5.4 -Current Vers: 4.8.5/5.4/6.1 +Current Vers: 4.8.5/5.4/6.2 Maintainer: FSF Archive Site: ftp://ftp.gnu.org/gnu/gcc/ Home Page: http://www.gnu.org/software/gcc/
CVS commit: src/usr.sbin/nfsd
Module Name:src Committed By: christos Date: Mon Aug 22 16:08:51 UTC 2016 Modified Files: src/usr.sbin/nfsd: nfsd.c Log Message: PR/51437: Hauke Fath: write a byte to the socket so that nfsd -u does not die. To generate a diff of this commit: cvs rdiff -u -r1.66 -r1.67 src/usr.sbin/nfsd/nfsd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.sbin/nfsd/nfsd.c diff -u src/usr.sbin/nfsd/nfsd.c:1.66 src/usr.sbin/nfsd/nfsd.c:1.67 --- src/usr.sbin/nfsd/nfsd.c:1.66 Thu Mar 17 11:25:46 2016 +++ src/usr.sbin/nfsd/nfsd.c Mon Aug 22 12:08:51 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: nfsd.c,v 1.66 2016/03/17 15:25:46 christos Exp $ */ +/* $NetBSD: nfsd.c,v 1.67 2016/08/22 16:08:51 christos Exp $ */ /* * Copyright (c) 1989, 1993, 1994 @@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 19 #if 0 static char sccsid[] = "@(#)nfsd.c 8.9 (Berkeley) 3/29/95"; #else -__RCSID("$NetBSD: nfsd.c,v 1.66 2016/03/17 15:25:46 christos Exp $"); +__RCSID("$NetBSD: nfsd.c,v 1.67 2016/08/22 16:08:51 christos Exp $"); #endif #endif /* not lint */ @@ -323,13 +323,14 @@ daemon2_fork(void) pid = fork(); switch (pid) { case -1: - return -1; + return -1; case 0: - /* child */ - (void)close(detach_msg_pipe[0]); + /* child */ + (void)close(detach_msg_pipe[0]); + (void)write(detach_msg_pipe[1], "", 1); return detach_msg_pipe[1]; default: - break; + break; } /* Parent */ @@ -497,6 +498,8 @@ main(int argc, char *argv[]) if (debug == 0) { parent_fd = daemon2_fork(); + if (parent_fd == -1) + logit(LOG_ERR, "daemon2_fork failed"); openlog("nfsd", LOG_PID, LOG_DAEMON); }
CVS commit: src/distrib/sets/lists/xdebug
Module Name:src Committed By: htodd Date: Mon Aug 22 15:08:48 UTC 2016 Modified Files: src/distrib/sets/lists/xdebug: md.i386 Log Message: Fix debug build for i386 xorg. To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/distrib/sets/lists/xdebug/md.i386 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/sets/lists/xdebug/md.i386 diff -u src/distrib/sets/lists/xdebug/md.i386:1.31 src/distrib/sets/lists/xdebug/md.i386:1.32 --- src/distrib/sets/lists/xdebug/md.i386:1.31 Mon Aug 22 04:15:58 2016 +++ src/distrib/sets/lists/xdebug/md.i386 Mon Aug 22 15:08:48 2016 @@ -1,4 +1,4 @@ -# $NetBSD: md.i386,v 1.31 2016/08/22 04:15:58 mlelstv Exp $ +# $NetBSD: md.i386,v 1.32 2016/08/22 15:08:48 htodd Exp $ ./usr/X11R7/lib/libI810XvMC_g.a-unknown- debuglib,xorg ./usr/X11R7/lib/libIntelXvMC_g.a -unknown- debuglib,xorg ./usr/X11R7/lib/libchromeXvMCPro_g.a -unknown- debuglib,xorg @@ -46,9 +46,11 @@ ./usr/libdata/debug/usr/X11R7/lib/libIntelXvMC.so.1.0.debug -unknown- xorg,debug ./usr/libdata/debug/usr/X11R7/lib/libchromeXvMC.so.1.0.debug -unknown- xorg,debug ./usr/libdata/debug/usr/X11R7/lib/libchromeXvMCPro.so.1.0.debug -unknown- xorg,debug -./usr/libdata/debug/usr/X11R7/lib/libdrm_amdgpu.so.0.1.debug -unknown- xorg,debug +./usr/libdata/debug/usr/X11R7/lib/libdrm_amdgpu.so.0.1.debug -unknown- xorg,obsolete +./usr/libdata/debug/usr/X11R7/lib/libdrm_amdgpu.so.1.0.debug -unknown- xorg,debug ./usr/libdata/debug/usr/X11R7/lib/libdrm_intel.so.0.2.debug -unknown- xorg,debug -./usr/libdata/debug/usr/X11R7/lib/libdrm_nouveau.so.2.0.debug -unknown- xorg,debug +./usr/libdata/debug/usr/X11R7/lib/libdrm_nouveau.so.2.0.debug -unknown- xorg,obsolete +./usr/libdata/debug/usr/X11R7/lib/libdrm_nouveau.so.3.0.debug -unknown- xorg,debug ./usr/libdata/debug/usr/X11R7/lib/modules/dri/i810_dri.so.0.debug -unknown- obsolete ./usr/libdata/debug/usr/X11R7/lib/modules/dri/i915_dri.so.0.debug -unknown- xorg,debug ./usr/libdata/debug/usr/X11R7/lib/modules/dri/i965_dri.so.0.debug -unknown- xorg,debug
CVS commit: src/sys/arch/mips/mips
Module Name:src Committed By: skrll Date: Mon Aug 22 11:34:42 UTC 2016 Modified Files: src/sys/arch/mips/mips: pmap_machdep.c Log Message: KNF To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/arch/mips/mips/pmap_machdep.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/arch/mips/mips/pmap_machdep.c diff -u src/sys/arch/mips/mips/pmap_machdep.c:1.4 src/sys/arch/mips/mips/pmap_machdep.c:1.5 --- src/sys/arch/mips/mips/pmap_machdep.c:1.4 Mon Aug 22 11:34:06 2016 +++ src/sys/arch/mips/mips/pmap_machdep.c Mon Aug 22 11:34:42 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: pmap_machdep.c,v 1.4 2016/08/22 11:34:06 skrll Exp $ */ +/* $NetBSD: pmap_machdep.c,v 1.5 2016/08/22 11:34:42 skrll Exp $ */ /*- * Copyright (c) 1998, 2001 The NetBSD Foundation, Inc. @@ -67,7 +67,7 @@ #include -__KERNEL_RCSID(0, "$NetBSD: pmap_machdep.c,v 1.4 2016/08/22 11:34:06 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pmap_machdep.c,v 1.5 2016/08/22 11:34:42 skrll Exp $"); /* * Manages physical address maps. @@ -654,7 +654,7 @@ pmap_md_page_syncicache(struct vm_page * */ if (MIPS_HAS_R4K_MMU) { if (VM_PAGEMD_CACHED_P(mdpg)) { - mips_icache_sync_range_index( va, PAGE_SIZE); + mips_icache_sync_range_index(va, PAGE_SIZE); } } else { mips_icache_sync_range(MIPS_PHYS_TO_KSEG0(VM_PAGE_TO_PHYS(pg)),
CVS commit: src/sys/arch/mips/mips
Module Name:src Committed By: skrll Date: Mon Aug 22 11:34:06 UTC 2016 Modified Files: src/sys/arch/mips/mips: pmap_machdep.c Log Message: Can't KASSERT that a lock isn't held. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/arch/mips/mips/pmap_machdep.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/arch/mips/mips/pmap_machdep.c diff -u src/sys/arch/mips/mips/pmap_machdep.c:1.3 src/sys/arch/mips/mips/pmap_machdep.c:1.4 --- src/sys/arch/mips/mips/pmap_machdep.c:1.3 Fri Aug 19 10:05:35 2016 +++ src/sys/arch/mips/mips/pmap_machdep.c Mon Aug 22 11:34:06 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: pmap_machdep.c,v 1.3 2016/08/19 10:05:35 skrll Exp $ */ +/* $NetBSD: pmap_machdep.c,v 1.4 2016/08/22 11:34:06 skrll Exp $ */ /*- * Copyright (c) 1998, 2001 The NetBSD Foundation, Inc. @@ -67,7 +67,7 @@ #include -__KERNEL_RCSID(0, "$NetBSD: pmap_machdep.c,v 1.3 2016/08/19 10:05:35 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pmap_machdep.c,v 1.4 2016/08/22 11:34:06 skrll Exp $"); /* * Manages physical address maps. @@ -177,7 +177,6 @@ pmap_md_map_ephemeral_page(struct vm_pag UVMHIST_LOG(pmaphist, "(pg=%p, prot=%d, ptep=%p)", pg, prot, old_pte_p, 0); - KASSERT(locked_p || !VM_PAGEMD_PVLIST_LOCKED_P(mdpg)); KASSERT(!locked_p || VM_PAGEMD_PVLIST_LOCKED_P(mdpg)); if (!MIPS_CACHE_VIRTUAL_ALIAS || !mips_cache_badalias(pv->pv_va, pa)) { @@ -258,7 +257,6 @@ pmap_md_unmap_ephemeral_page(struct vm_p UVMHIST_LOG(pmaphist, "(pg=%p, va=%#lx, pte=%#"PRIxPTE")", pg, va, pte_value(old_pte), 0); - KASSERT(locked_p || !VM_PAGEMD_PVLIST_LOCKED_P(mdpg)); KASSERT(!locked_p || VM_PAGEMD_PVLIST_LOCKED_P(mdpg)); if (MIPS_CACHE_VIRTUAL_ALIAS) {
CVS commit: src/tests/lib/libm
Module Name:src Committed By: maya Date: Mon Aug 22 10:36:20 UTC 2016 Modified Files: src/tests/lib/libm: t_ilogb.c Log Message: Mistakes were made, compare correct values now. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libm/t_ilogb.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/tests/lib/libm/t_ilogb.c diff -u src/tests/lib/libm/t_ilogb.c:1.1 src/tests/lib/libm/t_ilogb.c:1.2 --- src/tests/lib/libm/t_ilogb.c:1.1 Mon Aug 22 08:49:33 2016 +++ src/tests/lib/libm/t_ilogb.c Mon Aug 22 10:36:20 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: t_ilogb.c,v 1.1 2016/08/22 08:49:33 maya Exp $ */ +/* $NetBSD: t_ilogb.c,v 1.2 2016/08/22 10:36:20 maya Exp $ */ /*- * Copyright (c) 2016 The NetBSD Foundation, Inc. @@ -83,11 +83,11 @@ ATF_TC_BODY(ilogb, tc) ATF_CHECK(ilogbl(-INFINITY) == INT_MAX); ATF_CHECK_RAISED_INVALID; - ATF_CHECK(ilogbf(2^20) == 20); + ATF_CHECK(ilogbf(1024) == 10); ATF_CHECK_RAISED_NOTHING; - ATF_CHECK(ilogb(2^20) == 20); + ATF_CHECK(ilogb(1024) == 10); ATF_CHECK_RAISED_NOTHING; - ATF_CHECK(ilogbl(2^20) == 20); + ATF_CHECK(ilogbl(1024) == 10); ATF_CHECK_RAISED_NOTHING; #ifndef __vax__
CVS commit: src/external/bsd/unbound
Module Name:src Committed By: martin Date: Mon Aug 22 09:38:50 UTC 2016 Modified Files: src/external/bsd/unbound: Makefile Log Message: Visit "etc" so our rc.d file gets installed. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/external/bsd/unbound/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/bsd/unbound/Makefile diff -u src/external/bsd/unbound/Makefile:1.1 src/external/bsd/unbound/Makefile:1.2 --- src/external/bsd/unbound/Makefile:1.1 Sat Aug 20 11:20:31 2016 +++ src/external/bsd/unbound/Makefile Mon Aug 22 09:38:50 2016 @@ -1,5 +1,5 @@ -# $NetBSD: Makefile,v 1.1 2016/08/20 11:20:31 christos Exp $ +# $NetBSD: Makefile,v 1.2 2016/08/22 09:38:50 martin Exp $ -SUBDIR+= lib .WAIT sbin bin +SUBDIR+= lib .WAIT sbin bin etc .include
CVS commit: src
Module Name:src Committed By: mrg Date: Mon Aug 22 08:58:57 UTC 2016 Modified Files: src/distrib/sets/lists/xdebug: md.sparc64 src/distrib/sets/lists/xserver: md.sparc64 src/external/mit/xorg/server/drivers: Makefile Log Message: now sunffb builds, build it for xorg-server 1.18 To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/distrib/sets/lists/xdebug/md.sparc64 cvs rdiff -u -r1.60 -r1.61 src/distrib/sets/lists/xserver/md.sparc64 cvs rdiff -u -r1.86 -r1.87 src/external/mit/xorg/server/drivers/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/sets/lists/xdebug/md.sparc64 diff -u src/distrib/sets/lists/xdebug/md.sparc64:1.7 src/distrib/sets/lists/xdebug/md.sparc64:1.8 --- src/distrib/sets/lists/xdebug/md.sparc64:1.7 Sat Aug 20 05:24:26 2016 +++ src/distrib/sets/lists/xdebug/md.sparc64 Mon Aug 22 08:58:57 2016 @@ -1,4 +1,4 @@ -# $NetBSD: md.sparc64,v 1.7 2016/08/20 05:24:26 mrg Exp $ +# $NetBSD: md.sparc64,v 1.8 2016/08/22 08:58:57 mrg Exp $ ./usr/X11R7/lib/modules/extensions/libcfb32_g.a -unknown- obsolete ./usr/X11R7/lib/modules/extensions/libcfb_g.a -unknown- obsolete ./usr/X11R7/lib/modules/extensions/libdbe_g.a -unknown- debuglib,xorg,obsolete @@ -75,7 +75,7 @@ ./usr/libdata/debug/usr/X11R7/lib/modules/drivers/r128_drv.so.6.debug -unknown- xorg,debug ./usr/libdata/debug/usr/X11R7/lib/modules/drivers/radeon_drv.so.6.debug -unknown- xorg,debug ./usr/libdata/debug/usr/X11R7/lib/modules/drivers/suncg6_drv.so.1.debug -unknown- xorg,debug -./usr/libdata/debug/usr/X11R7/lib/modules/drivers/sunffb_drv.so.1.debug -unknown- xorg,debug,xorg_server_ver=110 +./usr/libdata/debug/usr/X11R7/lib/modules/drivers/sunffb_drv.so.1.debug -unknown- xorg,debug ./usr/libdata/debug/usr/X11R7/lib/modules/drivers/sunleo_drv.so.1.debug -unknown- xorg,debug,xorg_server_ver=110 ./usr/libdata/debug/usr/X11R7/lib/modules/drivers/void_drv.so.1.debug -unknown- obsolete ./usr/libdata/debug/usr/X11R7/lib/modules/drivers/ws_drv.so.1.debug -unknown- xorg,debug Index: src/distrib/sets/lists/xserver/md.sparc64 diff -u src/distrib/sets/lists/xserver/md.sparc64:1.60 src/distrib/sets/lists/xserver/md.sparc64:1.61 --- src/distrib/sets/lists/xserver/md.sparc64:1.60 Sat Aug 20 05:24:26 2016 +++ src/distrib/sets/lists/xserver/md.sparc64 Mon Aug 22 08:58:57 2016 @@ -1,4 +1,4 @@ -# $NetBSD: md.sparc64,v 1.60 2016/08/20 05:24:26 mrg Exp $ x11 +# $NetBSD: md.sparc64,v 1.61 2016/08/22 08:58:57 mrg Exp $ x11 ./usr/X11R7/bin/X -unknown- xorg ./usr/X11R7/bin/Xorg -unknown- xorg ./usr/X11R7/bin/cvt -unknown- xorg @@ -45,8 +45,8 @@ ./usr/X11R7/lib/modules/drivers/radeon_drv.so.6 -unknown- xorg ./usr/X11R7/lib/modules/drivers/suncg6_drv.so -unknown- xorg ./usr/X11R7/lib/modules/drivers/suncg6_drv.so.1 -unknown- xorg -./usr/X11R7/lib/modules/drivers/sunffb_drv.so -unknown- xorg,xorg_server_ver=110 -./usr/X11R7/lib/modules/drivers/sunffb_drv.so.1 -unknown- xorg,xorg_server_ver=110 +./usr/X11R7/lib/modules/drivers/sunffb_drv.so -unknown- xorg +./usr/X11R7/lib/modules/drivers/sunffb_drv.so.1 -unknown- xorg ./usr/X11R7/lib/modules/drivers/sunleo_drv.so -unknown- xorg,xorg_server_ver=110 ./usr/X11R7/lib/modules/drivers/sunleo_drv.so.1 -unknown- xorg,xorg_server_ver=110 ./usr/X11R7/lib/modules/drivers/void_drv.so -unknown- obsolete @@ -179,7 +179,7 @@ ./usr/X11R7/man/cat4/r128.0-unknown- .cat,xorg ./usr/X11R7/man/cat4/radeon.0-unknown- .cat,xorg ./usr/X11R7/man/cat4/suncg6.0-unknown- .cat,xorg -./usr/X11R7/man/cat4/sunffb.0-unknown- .cat,xorg,xorg_server_ver=110 +./usr/X11R7/man/cat4/sunffb.0-unknown- .cat,xorg ./usr/X11R7/man/cat4/sunleo.0-unknown- .cat,xorg,xorg_server_ver=110 ./usr/X11R7/man/cat4/void.0-unknown- obsolete ./usr/X11R7/man/cat4/ws.0-unknown- .cat,xorg @@ -201,7 +201,7 @@ ./usr/X11R7/man/html4/r128.html-unknown- html,xorg ./usr/X11R7/man/html4/radeon.html -unknown- html,xorg ./usr/X11R7/man/html4/suncg6.html -unknown- html,xorg -./usr/X11R7/man/html4/sunffb.html -unknown- html,xorg,xorg_server_ver=110 +./usr/X11R7/man/html4/sunffb.html -unknown- html,xorg ./usr/X11R7/man/html4/sunleo.html -unknown- html,xorg,xorg_server_ver=110 ./usr/X11R7/man/html4/void.html-unknown- obsolete ./usr/X11R7/man/html4/ws.html-unknown- html,xorg @@ -223,7 +223,7 @@ ./usr/X11R7/man/man4/r128.4-unknown- .man,xorg ./usr/X11R7/man/man4/radeon.4-unknown- .man,xorg ./usr/X11R7/man/man4/suncg6.4-unknown- .man,xorg -./usr/X11R7/man/man4/sunffb.4-unknown- .man,xorg,xorg_server_ver=110 +./usr/X11R7/man/man4/sunffb.4-unknown- .man,xorg ./usr/X11R7/man/man4/sunleo.4-unknown- .man,xorg,xorg_server_ver=110 ./usr/X11R7/man/man4/void.4-unknown- obsolete ./usr/X11R7/man/man4/ws.4-unknown- .man,xorg Index: src/external/mit/xorg/server/drivers/Makefile diff -u src/external/m
CVS commit: src
Module Name:src Committed By: maya Date: Mon Aug 22 08:49:33 UTC 2016 Modified Files: src/distrib/sets/lists/debug: mi src/distrib/sets/lists/tests: mi src/tests/lib/libm: Makefile Added Files: src/tests/lib/libm: t_ilogb.c Log Message: add failing test for PR lib/51427 ilogb(INFINITY)=-INT_MAX, it should be INT_MAX while here, test raised exceptions, other values. XXX some platforms don't have exceptions To generate a diff of this commit: cvs rdiff -u -r1.164 -r1.165 src/distrib/sets/lists/debug/mi cvs rdiff -u -r1.683 -r1.684 src/distrib/sets/lists/tests/mi cvs rdiff -u -r1.37 -r1.38 src/tests/lib/libm/Makefile cvs rdiff -u -r0 -r1.1 src/tests/lib/libm/t_ilogb.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/sets/lists/debug/mi diff -u src/distrib/sets/lists/debug/mi:1.164 src/distrib/sets/lists/debug/mi:1.165 --- src/distrib/sets/lists/debug/mi:1.164 Sat Aug 20 11:34:49 2016 +++ src/distrib/sets/lists/debug/mi Mon Aug 22 08:49:33 2016 @@ -1,4 +1,4 @@ -# $NetBSD: mi,v 1.164 2016/08/20 11:34:49 christos Exp $ +# $NetBSD: mi,v 1.165 2016/08/22 08:49:33 maya Exp $ ./etc/mtree/set.debug comp-sys-root ./usr/lib comp-sys-usr compatdir ./usr/lib/i18n/libBIG5_g.a comp-c-debuglib debuglib,compatfile @@ -2105,6 +2105,7 @@ ./usr/libdata/debug/usr/tests/lib/libm/t_floor.debug tests-obsolete obsolete,compattestfile ./usr/libdata/debug/usr/tests/lib/libm/t_fmod.debug tests-lib-debug debug,atf,compattestfile ./usr/libdata/debug/usr/tests/lib/libm/t_hypot.debug tests-lib-debug debug,atf,compattestfile +./usr/libdata/debug/usr/tests/lib/libm/t_ilogb.debug tests-lib-debug debug,atf,compattestfile ./usr/libdata/debug/usr/tests/lib/libm/t_infinity.debug tests-lib-debug debug,atf,compattestfile ./usr/libdata/debug/usr/tests/lib/libm/t_ldexp.debug tests-lib-debug debug,atf,compattestfile ./usr/libdata/debug/usr/tests/lib/libm/t_libm.debug tests-obsolete obsolete,compattestfile Index: src/distrib/sets/lists/tests/mi diff -u src/distrib/sets/lists/tests/mi:1.683 src/distrib/sets/lists/tests/mi:1.684 --- src/distrib/sets/lists/tests/mi:1.683 Fri Aug 19 10:22:42 2016 +++ src/distrib/sets/lists/tests/mi Mon Aug 22 08:49:33 2016 @@ -1,4 +1,4 @@ -# $NetBSD: mi,v 1.683 2016/08/19 10:22:42 christos Exp $ +# $NetBSD: mi,v 1.684 2016/08/22 08:49:33 maya Exp $ # # Note: don't delete entries from here - mark them as "obsolete" instead. # @@ -2912,6 +2912,7 @@ ./usr/tests/lib/libm/t_floor tests-obsolete obsolete ./usr/tests/lib/libm/t_fmod tests-lib-tests compattestfile,atf ./usr/tests/lib/libm/t_hypot tests-lib-tests compattestfile,atf +./usr/tests/lib/libm/t_ilogb tests-lib-tests compattestfile,atf ./usr/tests/lib/libm/t_infinity tests-lib-tests compattestfile,atf ./usr/tests/lib/libm/t_ldexp tests-lib-tests compattestfile,atf ./usr/tests/lib/libm/t_libm tests-obsolete obsolete Index: src/tests/lib/libm/Makefile diff -u src/tests/lib/libm/Makefile:1.37 src/tests/lib/libm/Makefile:1.38 --- src/tests/lib/libm/Makefile:1.37 Sun Jan 24 20:26:47 2016 +++ src/tests/lib/libm/Makefile Mon Aug 22 08:49:33 2016 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.37 2016/01/24 20:26:47 gson Exp $ +# $NetBSD: Makefile,v 1.38 2016/08/22 08:49:33 maya Exp $ .include @@ -23,6 +23,7 @@ TESTS_C+= t_exp TESTS_C+= t_fenv TESTS_C+= t_fmod TESTS_C+= t_hypot +TESTS_C+= t_ilogb TESTS_C+= t_infinity TESTS_C+= t_ldexp TESTS_C+= t_log Added files: Index: src/tests/lib/libm/t_ilogb.c diff -u /dev/null src/tests/lib/libm/t_ilogb.c:1.1 --- /dev/null Mon Aug 22 08:49:33 2016 +++ src/tests/lib/libm/t_ilogb.c Mon Aug 22 08:49:33 2016 @@ -0,0 +1,109 @@ +/* $NetBSD: t_ilogb.c,v 1.1 2016/08/22 08:49:33 maya Exp $ */ + +/*- + * Copyright (c) 2016 The NetBSD Foundation, Inc. + * All rights reserved. + * + * This code is derived from software contributed to The NetBSD Foundation + * by Maya Rashish. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + *notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + *notice, this list of conditions and the following disclaimer in the + *documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED + * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS + * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + * CONSEQUENTIAL DAMAGES (
CVS commit: xsrc/external/mit/xf86-video-sunffb/dist/src
Module Name:xsrc Committed By: mrg Date: Mon Aug 22 08:47:22 UTC 2016 Modified Files: xsrc/external/mit/xf86-video-sunffb/dist/src: ffb_dac.c Log Message: deal with an issue compat-api.h should deal with. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 \ xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_dac.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-sunffb/dist/src/ffb_dac.c diff -u xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_dac.c:1.5 xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_dac.c:1.6 --- xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_dac.c:1.5 Fri Aug 19 19:16:01 2016 +++ xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_dac.c Mon Aug 22 08:47:22 2016 @@ -566,8 +566,13 @@ FFBDacSaveScreen(ScreenPtr pScreen, int if (redraw) { /* this causes a complete redraw of the screen */ +#ifdef XF86_SCRN_INTERFACE // compat-api.h +pScrn->EnableDisableFBAccess(pScrn, FALSE); +pScrn->EnableDisableFBAccess(pScrn, TRUE); +#else pScrn->EnableDisableFBAccess(pScreen->myNum, FALSE); pScrn->EnableDisableFBAccess(pScreen->myNum, TRUE); +#endif } return TRUE; }
CVS commit: src/external/mit/xorg/server/drivers/xf86-video-sunffb
Module Name:src Committed By: mrg Date: Mon Aug 22 08:39:20 UTC 2016 Modified Files: src/external/mit/xorg/server/drivers/xf86-video-sunffb: Makefile Log Message: ffb_dga.c has const issues as well To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 \ src/external/mit/xorg/server/drivers/xf86-video-sunffb/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/mit/xorg/server/drivers/xf86-video-sunffb/Makefile diff -u src/external/mit/xorg/server/drivers/xf86-video-sunffb/Makefile:1.9 src/external/mit/xorg/server/drivers/xf86-video-sunffb/Makefile:1.10 --- src/external/mit/xorg/server/drivers/xf86-video-sunffb/Makefile:1.9 Sat Aug 20 20:22:54 2016 +++ src/external/mit/xorg/server/drivers/xf86-video-sunffb/Makefile Mon Aug 22 08:39:20 2016 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2016/08/20 20:22:54 mrg Exp $ +# $NetBSD: Makefile,v 1.10 2016/08/22 08:39:20 mrg Exp $ DRIVER= xf86-video-sunffb DRIVER_NAME= sunffb_drv @@ -26,4 +26,5 @@ MAN= sunffb.4 # XXX .if ${HAVE_GCC} > 48 COPTS.ffb_dac.c+= ${${ACTIVE_CC} == "gcc":? -Wno-error=discarded-qualifiers :} +COPTS.ffb_dga.c+= ${${ACTIVE_CC} == "gcc":? -Wno-error=discarded-qualifiers :} .endif
CVS commit: src/sys/dev/pci
Module Name:src Committed By: msaitoh Date: Mon Aug 22 08:35:42 UTC 2016 Modified Files: src/sys/dev/pci: pci_subr.c Log Message: Don't follow an incorrect pointer in an extended capability header. Tested with Super Micro X10SDV-8C-TLN4F bus 255, device 12, function 0 (BIOS 1.1b). To generate a diff of this commit: cvs rdiff -u -r1.149 -r1.150 src/sys/dev/pci/pci_subr.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/pci/pci_subr.c diff -u src/sys/dev/pci/pci_subr.c:1.149 src/sys/dev/pci/pci_subr.c:1.150 --- src/sys/dev/pci/pci_subr.c:1.149 Wed Aug 17 06:32:01 2016 +++ src/sys/dev/pci/pci_subr.c Mon Aug 22 08:35:42 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: pci_subr.c,v 1.149 2016/08/17 06:32:01 msaitoh Exp $ */ +/* $NetBSD: pci_subr.c,v 1.150 2016/08/22 08:35:42 msaitoh Exp $ */ /* * Copyright (c) 1997 Zubin D. Dittia. All rights reserved. @@ -40,7 +40,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.149 2016/08/17 06:32:01 msaitoh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.150 2016/08/22 08:35:42 msaitoh Exp $"); #ifdef _KERNEL_OPT #include "opt_pci.h" @@ -3490,6 +3490,10 @@ pci_conf_print_extcaplist( off = PCI_EXTCAPLIST_NEXT(rval); if (off == 0) break; + else if (off <= PCI_CONF_SIZE) { + printf("next pointer: 0x%03x (incorrect)\n", off); + return; + } rval = regs[o2i(off)]; }
CVS commit: xsrc/external/mit/xf86-video-sunffb/dist/src
Module Name:xsrc Committed By: mrg Date: Mon Aug 22 08:28:32 UTC 2016 Modified Files: xsrc/external/mit/xf86-video-sunffb/dist/src: ffb_accel_common.c ffb_exa.c Log Message: include config.h #ifdef HAVE_CONFIG_H To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 \ xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_accel_common.c cvs rdiff -u -r1.3 -r1.4 \ xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_exa.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-sunffb/dist/src/ffb_accel_common.c diff -u xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_accel_common.c:1.2 xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_accel_common.c:1.3 --- xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_accel_common.c:1.2 Fri Aug 19 19:16:01 2016 +++ xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_accel_common.c Mon Aug 22 08:28:32 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: ffb_accel_common.c,v 1.2 2016/08/19 19:16:01 mrg Exp $ */ +/* $NetBSD: ffb_accel_common.c,v 1.3 2016/08/22 08:28:32 mrg Exp $ */ /* * Copyright (C) 1998,1999,2000 Jakub Jelinek (ja...@redhat.com) * Copyright (C) 1998 Michal Rehacek (ma...@iname.com) @@ -28,6 +28,10 @@ #include +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "ffb_fifo.h" #include "ffb_rcache.h" #include "ffb.h" Index: xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_exa.c diff -u xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_exa.c:1.3 xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_exa.c:1.4 --- xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_exa.c:1.3 Fri Aug 19 19:16:01 2016 +++ xsrc/external/mit/xf86-video-sunffb/dist/src/ffb_exa.c Mon Aug 22 08:28:32 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: ffb_exa.c,v 1.3 2016/08/19 19:16:01 mrg Exp $ */ +/* $NetBSD: ffb_exa.c,v 1.4 2016/08/22 08:28:32 mrg Exp $ */ /* * Copyright (c) 2015 Michael Lorenz * All rights reserved. @@ -31,6 +31,10 @@ #include +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "ffb_fifo.h" #include "ffb_rcache.h" #include "ffb.h"
CVS commit: src/lib/libc/stdio
Module Name:src Committed By: christos Date: Mon Aug 22 07:41:10 UTC 2016 Modified Files: src/lib/libc/stdio: fgetwln.c Log Message: missing _ To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/lib/libc/stdio/fgetwln.c 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/stdio/fgetwln.c diff -u src/lib/libc/stdio/fgetwln.c:1.6 src/lib/libc/stdio/fgetwln.c:1.7 --- src/lib/libc/stdio/fgetwln.c:1.6 Mon Aug 22 02:11:39 2016 +++ src/lib/libc/stdio/fgetwln.c Mon Aug 22 03:41:10 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: fgetwln.c,v 1.6 2016/08/22 06:11:39 christos Exp $ */ +/* $NetBSD: fgetwln.c,v 1.7 2016/08/22 07:41:10 christos Exp $ */ /*- * Copyright (c) 2002-2004 Tim J. Robbins. @@ -31,7 +31,7 @@ #if 0 __FBSDID("$FreeBSD: src/lib/libc/stdio/fgetwln.c,v 1.2 2004/08/06 17:00:09 tjr Exp $"); #else -__RCSID("$NetBSD: fgetwln.c,v 1.6 2016/08/22 06:11:39 christos Exp $"); +__RCSID("$NetBSD: fgetwln.c,v 1.7 2016/08/22 07:41:10 christos Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -94,7 +94,7 @@ fgetwln(FILE * __restrict fp, size_t *le if (wc == L'\n') break; } - if (len == 0 || fp->flags & __SERR) + if (len == 0 || fp->_flags & __SERR) goto error; FUNLOCKFILE(fp);
CVS commit: src/distrib/sets/lists/etc
Module Name:src Committed By: christos Date: Mon Aug 22 07:37:43 UTC 2016 Modified Files: src/distrib/sets/lists/etc: mi Log Message: Add missing unbound To generate a diff of this commit: cvs rdiff -u -r1.239 -r1.240 src/distrib/sets/lists/etc/mi Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/sets/lists/etc/mi diff -u src/distrib/sets/lists/etc/mi:1.239 src/distrib/sets/lists/etc/mi:1.240 --- src/distrib/sets/lists/etc/mi:1.239 Sat Dec 12 21:06:16 2015 +++ src/distrib/sets/lists/etc/mi Mon Aug 22 03:37:43 2016 @@ -1,4 +1,4 @@ -# $NetBSD: mi,v 1.239 2015/12/13 02:06:16 christos Exp $ +# $NetBSD: mi,v 1.240 2016/08/22 07:37:43 christos Exp $ # # Note: end-user configuration files that are moved to another location # should not be marked "obsolete"; they should just be removed from @@ -292,6 +292,7 @@ ./etc/rc.d/timedetc-timed-rc ./etc/rc.d/tpctletc-sys-rc ./etc/rc.d/ttys etc-sys-rc +./etc/rc.d/unboundetc-net-rc ./etc/rc.d/veriexecetc-sys-rc ./etc/rc.d/virecoveretc-sys-rc ./etc/rc.d/wdogctletc-sysutil-rc
CVS commit: src/lib/libm/man
Module Name:src Committed By: maya Date: Mon Aug 22 07:33:31 UTC 2016 Modified Files: src/lib/libm/man: ilogb.3 Log Message: BUGS section is no longer correct FP_ILOGB0 and FP_ILOGBNAN are both defined in math.h To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/lib/libm/man/ilogb.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/libm/man/ilogb.3 diff -u src/lib/libm/man/ilogb.3:1.3 src/lib/libm/man/ilogb.3:1.4 --- src/lib/libm/man/ilogb.3:1.3 Tue Aug 2 10:15:03 2011 +++ src/lib/libm/man/ilogb.3 Mon Aug 22 07:33:30 2016 @@ -1,4 +1,4 @@ -.\" $NetBSD: ilogb.3,v 1.3 2011/08/02 10:15:03 wiz Exp $ +.\" $NetBSD: ilogb.3,v 1.4 2016/08/22 07:33:30 maya Exp $ .\" .\" Copyright (c) 2011 Jukka Ruohonen .\" All rights reserved. @@ -24,7 +24,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd July 29, 2011 +.Dd August 22, 2016 .Dt ILOGB 3 .Os .Sh NAME @@ -102,10 +102,3 @@ a domain error occurs but an unspecified .Sh STANDARDS The described functions conform to .St -isoC-99 . -.Sh BUGS -Neither -.Dv FP_ILOGB0 -nor -.Dv FP_ILOGBNAN -is defined currently in -.Nx .