CVS commit: [netbsd-3] src/sys
Module Name:src Committed By: snj Date: Sat Apr 11 06:18:21 UTC 2009 Modified Files: src/sys/kern [netbsd-3]: uipc_usrreq.c src/sys/sys [netbsd-3]: file.h Log Message: Apply patch (requested by mlelstv in ticket #2004): Avoid deep recursion and file descriptor exhaustion. 1. unp_detach: go not call unp_gc directly for descriptors that are unixdomain sockets themselves. Instead mark them for cleanup during garbage collection. 2. unp_gc: handle detach of descriptors that were marked earlier. 3. prohibit transfer of descriptors within SCM_RIGHTS messages if (num_files_in_transit maxfiles / unp_rights_ratio) To generate a diff of this commit: cvs rdiff -u -r1.80.2.3 -r1.80.2.4 src/sys/kern/uipc_usrreq.c cvs rdiff -u -r1.53 -r1.53.4.1 src/sys/sys/file.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/kern/uipc_usrreq.c diff -u src/sys/kern/uipc_usrreq.c:1.80.2.3 src/sys/kern/uipc_usrreq.c:1.80.2.4 --- src/sys/kern/uipc_usrreq.c:1.80.2.3 Sun Aug 26 20:27:07 2007 +++ src/sys/kern/uipc_usrreq.c Sat Apr 11 06:18:20 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: uipc_usrreq.c,v 1.80.2.3 2007/08/26 20:27:07 bouyer Exp $ */ +/* $NetBSD: uipc_usrreq.c,v 1.80.2.4 2009/04/11 06:18:20 snj Exp $ */ /*- * Copyright (c) 1998, 2000, 2004 The NetBSD Foundation, Inc. @@ -103,7 +103,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: uipc_usrreq.c,v 1.80.2.3 2007/08/26 20:27:07 bouyer Exp $); +__KERNEL_RCSID(0, $NetBSD: uipc_usrreq.c,v 1.80.2.4 2009/04/11 06:18:20 snj Exp $); #include sys/param.h #include sys/systm.h @@ -523,6 +523,7 @@ u_long unpdg_recvspace = 4*1024; int unp_rights; /* file descriptors in flight */ +int unp_rights_ratio = 2; /* limit, fraction of maxfiles */ int unp_attach(struct socket *so) @@ -959,6 +960,7 @@ int i, fd, *fdp; int nfds; u_int neededspace; + u_int maxmsg; /* Sanity check the control message header */ if (cm-cmsg_type != SCM_RIGHTS || cm-cmsg_level != SOL_SOCKET || @@ -967,6 +969,11 @@ /* Verify that the file descriptors are valid */ nfds = (cm-cmsg_len - CMSG_ALIGN(sizeof(*cm))) / sizeof(int); + + maxmsg = maxfiles / unp_rights_ratio; + if (unp_rights + nfds maxmsg) + return (EAGAIN); + fdp = (int *)CMSG_DATA(cm); for (i = 0; i nfds; i++) { fd = *fdp++; @@ -1150,6 +1157,8 @@ if (fp-f_count == fp-f_msgcount) continue; } + if (fp-f_iflags FIF_DISCARDED) +continue; fp-f_flag |= FMARK; if (fp-f_type != DTYPE_SOCKET || @@ -1255,6 +1264,14 @@ for (i = nunref, fpp = extra_ref; --i = 0; ++fpp) { fp = *fpp; simple_lock(fp-f_slock); + if (fp-f_iflags FIF_DISCARDED) { + fp-f_usecount++; + fp-f_msgcount--; + simple_unlock(fp-f_slock); + unp_rights--; + (void) closef(fp, (struct lwp *)0); + simple_lock(fp-f_slock); + } FILE_USE(fp); (void) closef(fp, (struct proc *)0); } @@ -1339,7 +1356,24 @@ { if (fp == NULL) return; + simple_lock(fp-f_slock); + /* + * closing unix domain sockets may cause a deep + * recursion, so leave them open and mark them + * for the garbage collector to discard them safely. + */ + if (fp-f_type == DTYPE_SOCKET fp-f_count == 1) { + struct socket *so; + + so = (struct socket *)fp-f_data; + if (so so-so_proto-pr_domain == unixdomain + (so-so_proto-pr_flagsPR_RIGHTS) != 0) { + fp-f_iflags |= FIF_DISCARDED; + simple_unlock(fp-f_slock); + return; + } + } fp-f_usecount++; /* i.e. FILE_USE(fp) sans locking */ fp-f_msgcount--; simple_unlock(fp-f_slock); Index: src/sys/sys/file.h diff -u src/sys/sys/file.h:1.53 src/sys/sys/file.h:1.53.4.1 --- src/sys/sys/file.h:1.53 Sat Feb 12 23:14:03 2005 +++ src/sys/sys/file.h Sat Apr 11 06:18:21 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: file.h,v 1.53 2005/02/12 23:14:03 christos Exp $ */ +/* $NetBSD: file.h,v 1.53.4.1 2009/04/11 06:18:21 snj Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1993 @@ -94,9 +94,10 @@ #define FIF_WANTCLOSE 0x01 /* a close is waiting for usecount */ #define FIF_LARVAL 0x02 /* not fully constructed; don't use */ +#define FIF_DISCARDED 0x04 /* file is discarded, pending close */ #define FILE_IS_USABLE(fp) (((fp)-f_iflags \ - (FIF_WANTCLOSE|FIF_LARVAL)) == 0) + (FIF_WANTCLOSE|FIF_LARVAL|FIF_DISCARDED)) == 0) #define FILE_SET_MATURE(fp) \ do { \
CVS commit: [netbsd-5] src/share/man/man4
Module Name:src Committed By: snj Date: Sat Apr 11 06:29:51 UTC 2009 Modified Files: src/share/man/man4 [netbsd-5]: bpf.4 ses.4 Log Message: Pull up following revision(s) (requested by joerg in ticket #685): share/man/man4/ses.4: revision 1.7 share/man/man4/bpf.4: revision 1.40 Fix markup. To generate a diff of this commit: cvs rdiff -u -r1.39 -r1.39.26.1 src/share/man/man4/bpf.4 cvs rdiff -u -r1.6 -r1.6.4.1 src/share/man/man4/ses.4 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man4/bpf.4 diff -u src/share/man/man4/bpf.4:1.39 src/share/man/man4/bpf.4:1.39.26.1 --- src/share/man/man4/bpf.4:1.39 Fri Aug 4 23:30:53 2006 +++ src/share/man/man4/bpf.4 Sat Apr 11 06:29:51 2009 @@ -1,6 +1,6 @@ .\ -*- nroff -*- .\ -.\ $NetBSD: bpf.4,v 1.39 2006/08/04 23:30:53 wiz Exp $ +.\ $NetBSD: bpf.4,v 1.39.26.1 2009/04/11 06:29:51 snj Exp $ .\ .\ Copyright (c) 1990, 1991, 1992, 1993, 1994 .\ The Regents of the University of California. All rights reserved. @@ -305,7 +305,7 @@ now supports several standard .Xr ioctl 2 Ns 's which allow the user to do async and/or non-blocking I/O to an open -.I bpf +.Nm bpf file descriptor. .Bl -tag -width indent -offset indent .It Dv FIONREAD (int) Index: src/share/man/man4/ses.4 diff -u src/share/man/man4/ses.4:1.6 src/share/man/man4/ses.4:1.6.4.1 --- src/share/man/man4/ses.4:1.6 Fri May 2 19:04:17 2008 +++ src/share/man/man4/ses.4 Sat Apr 11 06:29:51 2009 @@ -1,4 +1,4 @@ -.\ $NetBSD: ses.4,v 1.6 2008/05/02 19:04:17 martin Exp $ +.\ $NetBSD: ses.4,v 1.6.4.1 2009/04/11 06:29:51 snj Exp $ .\ Copyright (c) 2001 The NetBSD Foundation, Inc. .\ All rights reserved. .\ @@ -60,7 +60,7 @@ The following .Xr ioctl 2 calls apply to -.B SES +.Em SES devices. They are defined in the header file .Aq Pa scsipi/ses.h @@ -69,12 +69,12 @@ .Bl -tag -width SESIOC_GETENCSTAT .It Dv SESIOC_GETNOBJ Used to find out how many -.B SES +.Em SES objects are driven by this particular device instance. .It Dv SESIOC_GETOBJMAP Read, from the kernel, an array of SES objects which contains the object identifier, which sub-enclosure it is in, and the -.B SES +.Em SES type of the object. .It Dv SESIOC_GETENCSTAT Get the overall enclosure status. @@ -86,7 +86,7 @@ Set the status of a particular object. .It Dv SESIOC_GETTEXT Get the associated help text for an object (not yet implemented). -.B SES +.Em SES devices often have descriptive text for an object which can tell you things like location (e.g, left power supply). .It Dv SESIOC_INIT
CVS commit: [netbsd-5] src/sys/arch/vax/vax
Module Name:src Committed By: snj Date: Sat Apr 11 06:32:37 UTC 2009 Modified Files: src/sys/arch/vax/vax [netbsd-5]: subr.S Log Message: Pull up following revision(s) (requested by mhitch in ticket #686): sys/arch/vax/vax/subr.S: revision 1.26 Apply patch from mhitch@: Make copyin(9) and copyout(9) work with 64KB or larger data blocks. Fixes broken pipe(2) problem mentioned in PR port-vax/41139. Ok'ed by ra...@. To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.25.4.1 src/sys/arch/vax/vax/subr.S 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/vax/vax/subr.S diff -u src/sys/arch/vax/vax/subr.S:1.25 src/sys/arch/vax/vax/subr.S:1.25.4.1 --- src/sys/arch/vax/vax/subr.S:1.25 Fri Aug 29 18:25:02 2008 +++ src/sys/arch/vax/vax/subr.S Sat Apr 11 06:32:37 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: subr.S,v 1.25 2008/08/29 18:25:02 matt Exp $ */ +/* $NetBSD: subr.S,v 1.25.4.1 2009/04/11 06:32:37 snj Exp $ */ /* * Copyright (c) 1994 Ludd, University of Lule}, Sweden. @@ -440,7 +440,7 @@ # ENTRY(copyout, 0) - movl 8(%ap),%r2 + movl 8(%ap),%r3 blss 3f # kernel space movl 4(%ap),%r1 brb 2f @@ -448,13 +448,18 @@ ENTRY(copyin, 0) movl 4(%ap),%r1 blss 3f # kernel space - movl 8(%ap),%r2 -2: mfpr $PR_ESP,%r3 - movab 1f,(%r3) - movc3 12(%ap),(%r1),(%r2) -1: mfpr $PR_ESP,%r3 - clrl (%r3) + movl 8(%ap),%r3 +2: mfpr $PR_ESP,%r2 + movab 1f,(%r2) +4: tstw 14(%ap) # check if = 64K + bneq 5f + movc3 12(%ap),(%r1),(%r3) +1: mfpr $PR_ESP,%r2 + clrl (%r2) ret +5: movc3 $0xfffc,(%r1),(%r3) + subl2 $0xfffc,12(%ap) + brb 4b 3: mnegl $1,%r0 ret
CVS commit: src/sbin/fsck
Module Name:src Committed By: lukem Date: Sat Apr 11 06:48:36 UTC 2009 Modified Files: src/sbin/fsck: partutil.c progress.c Log Message: fix sign-compare issues To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sbin/fsck/partutil.c cvs rdiff -u -r1.4 -r1.5 src/sbin/fsck/progress.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sbin/fsck/partutil.c diff -u src/sbin/fsck/partutil.c:1.3 src/sbin/fsck/partutil.c:1.4 --- src/sbin/fsck/partutil.c:1.3 Mon Apr 28 20:23:08 2008 +++ src/sbin/fsck/partutil.c Sat Apr 11 06:48:36 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: partutil.c,v 1.3 2008/04/28 20:23:08 martin Exp $ */ +/* $NetBSD: partutil.c,v 1.4 2009/04/11 06:48:36 lukem Exp $ */ /*- * Copyright (c) 2006 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include sys/cdefs.h -__RCSID($NetBSD: partutil.c,v 1.3 2008/04/28 20:23:08 martin Exp $); +__RCSID($NetBSD: partutil.c,v 1.4 2009/04/11 06:48:36 lukem Exp $); #include sys/types.h #include sys/disklabel.h @@ -75,7 +75,8 @@ return; ptn = strchr(s, '\0')[-1] - 'a'; - if (ptn = lp-d_npartitions || ptn != DISKPART(sb.st_rdev)) + if ((unsigned)ptn = lp-d_npartitions || + (devminor_t)ptn != DISKPART(sb.st_rdev)) return; pp = lp-d_partitions[ptn]; Index: src/sbin/fsck/progress.c diff -u src/sbin/fsck/progress.c:1.4 src/sbin/fsck/progress.c:1.5 --- src/sbin/fsck/progress.c:1.4 Mon Apr 28 20:23:08 2008 +++ src/sbin/fsck/progress.c Sat Apr 11 06:48:36 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: progress.c,v 1.4 2008/04/28 20:23:08 martin Exp $ */ +/* $NetBSD: progress.c,v 1.5 2009/04/11 06:48:36 lukem Exp $ */ /*- * Copyright (c) 1997-2004 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #ifndef SMALL #include sys/cdefs.h -__RCSID($NetBSD: progress.c,v 1.4 2008/04/28 20:23:08 martin Exp $); +__RCSID($NetBSD: progress.c,v 1.5 2009/04/11 06:48:36 lukem Exp $); /* * File system independent fsck progress bar routines. @@ -47,7 +47,7 @@ #include progress.h -static int ttywidth = 80; +static size_t ttywidth = 80; static int progress_onoff; static int progress_lowlim;
CVS commit: src/sbin/scan_ffs
Module Name:src Committed By: lukem Date: Sat Apr 11 06:52:59 UTC 2009 Modified Files: src/sbin/scan_ffs: scan_ffs.c Log Message: fix sign-compare issues To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/sbin/scan_ffs/scan_ffs.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sbin/scan_ffs/scan_ffs.c diff -u src/sbin/scan_ffs/scan_ffs.c:1.20 src/sbin/scan_ffs/scan_ffs.c:1.21 --- src/sbin/scan_ffs/scan_ffs.c:1.20 Sat Dec 15 19:44:47 2007 +++ src/sbin/scan_ffs/scan_ffs.c Sat Apr 11 06:52:59 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: scan_ffs.c,v 1.20 2007/12/15 19:44:47 perry Exp $ */ +/* $NetBSD: scan_ffs.c,v 1.21 2009/04/11 06:52:59 lukem Exp $ */ /* * Copyright (c) 2005-2007 Juan Romero Pardines @@ -33,7 +33,7 @@ #include sys/cdefs.h #ifndef lint -__RCSID($NetBSD: scan_ffs.c,v 1.20 2007/12/15 19:44:47 perry Exp $); +__RCSID($NetBSD: scan_ffs.c,v 1.21 2009/04/11 06:52:59 lukem Exp $); #endif /* not lint */ #include sys/types.h @@ -273,7 +273,7 @@ * Really enough for now. */ for (i = 1; i 16; i = 1) - if ((BLK_CNT - lastblk) == (i * SBLOCKSIZE / 512)) { + if ((BLK_CNT - lastblk) == (daddr_t)(i * SBLOCKSIZE / 512)) { if (flags LABELS) ffs_printpart(sbi, LABELS, i, n); else @@ -348,7 +348,7 @@ */ case FIRST_SBLOCK_ADDRESS: /* copy partition offset */ - if (sbi-lfs_off != lastblk) + if ((daddr_t)sbi-lfs_off != lastblk) sbi-lfs_off = BLK_CNT - (LFS_LABELPAD / 512); break; case SECOND_SBLOCK_ADDRESS:
CVS commit: src/sbin/newfs_msdos
Module Name:src Committed By: lukem Date: Sat Apr 11 06:59:19 UTC 2009 Modified Files: src/sbin/newfs_msdos: newfs_msdos.c Log Message: fix sign-compare issues To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34 src/sbin/newfs_msdos/newfs_msdos.c 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_msdos/newfs_msdos.c diff -u src/sbin/newfs_msdos/newfs_msdos.c:1.33 src/sbin/newfs_msdos/newfs_msdos.c:1.34 --- src/sbin/newfs_msdos/newfs_msdos.c:1.33 Sat Mar 28 21:34:33 2009 +++ src/sbin/newfs_msdos/newfs_msdos.c Sat Apr 11 06:59:18 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: newfs_msdos.c,v 1.33 2009/03/28 21:34:33 he Exp $ */ +/* $NetBSD: newfs_msdos.c,v 1.34 2009/04/11 06:59:18 lukem Exp $ */ /* * Copyright (c) 1998 Robert Nordier @@ -33,7 +33,7 @@ static const char rcsid[] = $FreeBSD: src/sbin/newfs_msdos/newfs_msdos.c,v 1.15 2000/10/10 01:49:37 wollman Exp $; #else -__RCSID($NetBSD: newfs_msdos.c,v 1.33 2009/03/28 21:34:33 he Exp $); +__RCSID($NetBSD: newfs_msdos.c,v 1.34 2009/04/11 06:59:18 lukem Exp $); #endif #endif /* not lint */ @@ -655,7 +655,7 @@ if (opt_B x bss) { if ((n = read(fd1, img, bpb.bps)) == -1) err(1, %s, bname); - if (n != bpb.bps) + if ((size_t)n != bpb.bps) errx(1, %s: can't read sector %u, bname, x); } else memset(img, 0, bpb.bps); @@ -743,7 +743,7 @@ } if ((n = write(fd, img, bpb.bps)) == -1) err(1, %s, fname); - if (n != bpb.bps) + if ((size_t)n != bpb.bps) errx(1, %s: can't write sector %u, fname, lsn); } }
CVS commit: [netbsd-5] src/share/man/man4
Module Name:src Committed By: snj Date: Sat Apr 11 06:59:21 UTC 2009 Modified Files: src/share/man/man4 [netbsd-5]: wapbl.4 Log Message: Pull up following revision(s) (requested by ad in ticket #687): share/man/man4/wapbl.4: revisions 1.7-1.9 Sync with reality and be a bit less literal. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.6.6.1 src/share/man/man4/wapbl.4 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man4/wapbl.4 diff -u src/share/man/man4/wapbl.4:1.6 src/share/man/man4/wapbl.4:1.6.6.1 --- src/share/man/man4/wapbl.4:1.6 Sat Aug 2 14:29:12 2008 +++ src/share/man/man4/wapbl.4 Sat Apr 11 06:59:21 2009 @@ -1,6 +1,6 @@ -.\ $NetBSD: wapbl.4,v 1.6 2008/08/02 14:29:12 simonb Exp $ +.\ $NetBSD: wapbl.4,v 1.6.6.1 2009/04/11 06:59:21 snj Exp $ .\ -.\ Copyright (c) 2008 The NetBSD Foundation, Inc. +.\ Copyright (c) 2008, 2009 The NetBSD Foundation, Inc. .\ All rights reserved. .\ .\ Redistribution and use in source and binary forms, with or without @@ -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 21, 2008 +.Dd April 10, 2009 .Dt WAPBL 4 .Os .Sh NAME @@ -33,13 +33,12 @@ .Sh SYNOPSIS .Cd options WAPBL .Cd options WAPBL_DEBUG -.Cd options WAPBL_DEBUG_SERIALIZE .Sh DESCRIPTION The .Nm -driver provides meta-data journaling for file systems. In -particular, it is used with the fast file system (FFS) to provide -rapid file system consistency checking after a system outage. +driver provides meta-data journaling for file systems. +In particular, it is used with the fast file system (FFS) to provide +rapid file system consistency checking after a system outage. It also provides better general-use performance over regular FFS. .Pp WAPBL currently maintains its journal in one of two locations: @@ -54,13 +53,13 @@ .El .Pp A new journal is created automatically when a file system is mounted -via +via .Xr mount 8 with the -.Pa -o log +.Fl o Ar log option. If no journal size has been specified with -.Xr tunefs 8 , +.Xr tunefs 8 , then the size of the journal will be based on 1MB of journal per 1GB of file system, to a maximum journal size of 64MB. @@ -125,7 +124,7 @@ will remove the log and then re-create it with the default size. This method can also be used to grow or shrink the size of the journal. .Pp -With the journal, +With the journal, .Xr fsck 8 is no longer required at system boot. If the system has been shutdown in an unclean fashion then the journal @@ -134,92 +133,75 @@ can still be used to force a consistency check of the file system should that be desired. .Pp -.Xr WAPBL 8 -has a number of debugging options. -The option -.Bd -unfilled -offset indent -options WAPBL_DEBUG -.Ed -.Pp -turns on general debugging. -The option -.Bd -unfilled -offset indent -options WAPBL_DEBUG_SERIALIZE -.Ed -.Pp -forces the serialization of all IO. -This is currently be used to help alleviate a performance issue -seen on multi-core machines, where multiple simultaneous extractions -of tar-files can cause degenerate performance. -.Pp +For kernel developers, the compile time option +.Dv WAPBL_DEBUG +turns on debugging. .Sh SEE ALSO .Xr config 1 , .Xr fsck 8 , -.Xr newfs 8 , .Xr mount 8 , +.Xr newfs 8 , .Xr umount 8 -.Sh CAVEATS -An unreplayed -.Nm -journal (eg after a crash or power failure) may cause problems if the -file system is then used with an older kernel or userland what isn't +.Sh HISTORY +.An -nosplit .Nm -aware. +was originally written by +.An Darrin B. Jewell +while at Wasabi Systems Inc. +Wasabi Systems contributed the code to +.Nx +and was integrated by +.An Simon Burge , +.An Antti Kantee , +.An Andy Doran , +and +.An Greg Oster . .Pp -An older +.Nm +first appeared in +.Nx 5.0 . +.Sh CAVEATS +Older releases of the system, and other systems that support the +.Dv UFS +format should only access +.Nm +file systems in read-only mode. +Additionally, the .Xr fsck 8 -that isn't +command from such systems should not be run against .Nm -aware will not be able to deal with an in-filesystem log. +file systems. +Failure to observe these guidelines may damage the file system. .Pp .Nm requires the super block to be in the UFS2 format. -Older FFSv1 file systems will need to be updated to the newer super block -layout with the +The super block format can be checked using the +.Fl s +option with +.Xr dumpfs 8 , +and older FFSv1 file systems will need to be updated to the newer +super block layout with the .Fl c option to .Xr fsck_ffs 8 . .Pp .Xr fsync 2 -causes the journal to be committed to disk, resulting in -non-negligible performance issues. +causes all outstanding metadata transactions to be committed to disk, +introducing additional latency. This can have an impact on database software and other software that calls .Xr
CVS commit: [netbsd-5] src/doc
Module Name:src Committed By: snj Date: Sat Apr 11 07:01:28 UTC 2009 Modified Files: src/doc [netbsd-5]: CHANGES-5.0 Log Message: Tickets 685-687. To generate a diff of this commit: cvs rdiff -u -r1.1.2.131 -r1.1.2.132 src/doc/CHANGES-5.0 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES-5.0 diff -u src/doc/CHANGES-5.0:1.1.2.131 src/doc/CHANGES-5.0:1.1.2.132 --- src/doc/CHANGES-5.0:1.1.2.131 Fri Apr 10 18:13:57 2009 +++ src/doc/CHANGES-5.0 Sat Apr 11 07:01:28 2009 @@ -1,4 +1,4 @@ -# $NetBSD: CHANGES-5.0,v 1.1.2.131 2009/04/10 18:13:57 snj Exp $ +# $NetBSD: CHANGES-5.0,v 1.1.2.132 2009/04/11 07:01:28 snj Exp $ A complete list of changes from the initial NetBSD 5.0 branch on October 2008 until the 5.0 release: @@ -5966,3 +5966,20 @@ device. Fixes PR kern/40271. [mlelstv, ticket #684] +share/man/man4/bpf.41.40 +share/man/man4/ses.41.7 + + Fix markup. + [joerg, ticket #685] + +sys/arch/vax/vax/subr.S1.26 + + Make copyin(9) and copyout(9) work with 64KB or larger data + blocks. Fixes broken pipe(2) problem mentioned in PR 41139. + [mhitch, ticket #686] + +share/man/man4/wapbl.41.7-1.9 + + Sync with reality. + [ad, ticket #687] +
CVS commit: src/sbin/fsck_ffs
Module Name:src Committed By: lukem Date: Sat Apr 11 07:31:21 UTC 2009 Modified Files: src/sbin/fsck_ffs: dir.c Log Message: fix sign-compare issues To generate a diff of this commit: cvs rdiff -u -r1.51 -r1.52 src/sbin/fsck_ffs/dir.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sbin/fsck_ffs/dir.c diff -u src/sbin/fsck_ffs/dir.c:1.51 src/sbin/fsck_ffs/dir.c:1.52 --- src/sbin/fsck_ffs/dir.c:1.51 Tue Jul 8 08:14:37 2008 +++ src/sbin/fsck_ffs/dir.c Sat Apr 11 07:31:21 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: dir.c,v 1.51 2008/07/08 08:14:37 simonb Exp $ */ +/* $NetBSD: dir.c,v 1.52 2009/04/11 07:31:21 lukem Exp $ */ /* * Copyright (c) 1980, 1986, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = @(#)dir.c 8.8 (Berkeley) 4/28/95; #else -__RCSID($NetBSD: dir.c,v 1.51 2008/07/08 08:14:37 simonb Exp $); +__RCSID($NetBSD: dir.c,v 1.52 2009/04/11 07:31:21 lukem Exp $); #endif #endif /* not lint */ @@ -198,7 +198,7 @@ idesc-id_loc = 0; for (dp = fsck_readdir(idesc); dp != NULL; dp = fsck_readdir(idesc)) { dsize = iswap16(dp-d_reclen); - if (dsize sizeof dbuf) + if (dsize (int)sizeof dbuf) dsize = sizeof dbuf; memmove(dbuf, dp, (size_t)dsize); # if (BYTE_ORDER == LITTLE_ENDIAN) @@ -727,7 +727,7 @@ btodb(sblock-fs_bsize)); dirblk = iswap32(dp1-di_db[lastbn + 1]); } - bp = getdirblk(dirblk, sblksize(sblock, DIP(dp, size), lastbn + 1)); + bp = getdirblk(dirblk, sblksize(sblock, (daddr_t)DIP(dp, size), lastbn + 1)); if (bp-b_errs) goto bad; memmove(firstblk, bp-b_un.b_buf, dirblksiz); @@ -741,7 +741,7 @@ cp += dirblksiz) memmove(cp, emptydir, sizeof emptydir); dirty(bp); - bp = getdirblk(dirblk, sblksize(sblock, DIP(dp, size), lastbn + 1)); + bp = getdirblk(dirblk, sblksize(sblock, (daddr_t)DIP(dp, size), lastbn + 1)); if (bp-b_errs) goto bad; memmove(bp-b_un.b_buf, emptydir, sizeof emptydir);
CVS commit: src/sbin/fsck_msdos
Module Name:src Committed By: lukem Date: Sat Apr 11 07:14:50 UTC 2009 Modified Files: src/sbin/fsck_msdos: boot.c check.c dir.c ext.h fat.c Log Message: fix sign-compare issues To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/sbin/fsck_msdos/boot.c cvs rdiff -u -r1.17 -r1.18 src/sbin/fsck_msdos/check.c cvs rdiff -u -r1.22 -r1.23 src/sbin/fsck_msdos/dir.c cvs rdiff -u -r1.12 -r1.13 src/sbin/fsck_msdos/ext.h cvs rdiff -u -r1.21 -r1.22 src/sbin/fsck_msdos/fat.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sbin/fsck_msdos/boot.c diff -u src/sbin/fsck_msdos/boot.c:1.14 src/sbin/fsck_msdos/boot.c:1.15 --- src/sbin/fsck_msdos/boot.c:1.14 Fri Jun 13 20:46:09 2008 +++ src/sbin/fsck_msdos/boot.c Sat Apr 11 07:14:50 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: boot.c,v 1.14 2008/06/13 20:46:09 martin Exp $ */ +/* $NetBSD: boot.c,v 1.15 2009/04/11 07:14:50 lukem Exp $ */ /* * Copyright (C) 1995, 1997 Wolfgang Solfrank @@ -28,7 +28,7 @@ #include sys/cdefs.h #ifndef lint -__RCSID($NetBSD: boot.c,v 1.14 2008/06/13 20:46:09 martin Exp $); +__RCSID($NetBSD: boot.c,v 1.15 2009/04/11 07:14:50 lukem Exp $); #endif /* not lint */ #include stdlib.h @@ -48,7 +48,7 @@ int ret = FSOK; int i; - if (read(dosfs, block, sizeof block) sizeof block) { + if ((size_t)read(dosfs, block, sizeof block) != sizeof block) { perr(could not read boot block); return FSFATAL; } Index: src/sbin/fsck_msdos/check.c diff -u src/sbin/fsck_msdos/check.c:1.17 src/sbin/fsck_msdos/check.c:1.18 --- src/sbin/fsck_msdos/check.c:1.17 Fri Jun 13 20:46:09 2008 +++ src/sbin/fsck_msdos/check.c Sat Apr 11 07:14:50 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: check.c,v 1.17 2008/06/13 20:46:09 martin Exp $ */ +/* $NetBSD: check.c,v 1.18 2009/04/11 07:14:50 lukem Exp $ */ /* * Copyright (C) 1995, 1996, 1997 Wolfgang Solfrank @@ -28,7 +28,7 @@ #include sys/cdefs.h #ifndef lint -__RCSID($NetBSD: check.c,v 1.17 2008/06/13 20:46:09 martin Exp $); +__RCSID($NetBSD: check.c,v 1.18 2009/04/11 07:14:50 lukem Exp $); #endif /* not lint */ #include stdlib.h @@ -47,7 +47,8 @@ int dosfs; struct bootblock boot; struct fatEntry *fat = NULL; - int i, finish_dosdirsection=0; + int finish_dosdirsection=0; + u_int i; int mod = 0; int ret = FSCK_EXIT_CHECK_FAILED; Index: src/sbin/fsck_msdos/dir.c diff -u src/sbin/fsck_msdos/dir.c:1.22 src/sbin/fsck_msdos/dir.c:1.23 --- src/sbin/fsck_msdos/dir.c:1.22 Fri Jun 13 20:46:09 2008 +++ src/sbin/fsck_msdos/dir.c Sat Apr 11 07:14:50 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: dir.c,v 1.22 2008/06/13 20:46:09 martin Exp $ */ +/* $NetBSD: dir.c,v 1.23 2009/04/11 07:14:50 lukem Exp $ */ /* * Copyright (C) 1995, 1996, 1997 Wolfgang Solfrank @@ -30,7 +30,7 @@ #include sys/cdefs.h #ifndef lint -__RCSID($NetBSD: dir.c,v 1.22 2008/06/13 20:46:09 martin Exp $); +__RCSID($NetBSD: dir.c,v 1.23 2009/04/11 07:14:50 lukem Exp $); #endif /* not lint */ #include stdio.h @@ -393,7 +393,7 @@ /* * Check size on ordinary files */ - int32_t physicalSize; + u_int32_t physicalSize; if (dir-head == CLUST_FREE) physicalSize = 0; @@ -963,7 +963,7 @@ lfoff = lfcl * boot-ClusterSize + boot-ClusterOffset * boot-BytesPerSec; if (lseek(dosfs, lfoff, SEEK_SET) != lfoff - || read(dosfs, lfbuf, boot-ClusterSize) != boot-ClusterSize) { + || (size_t)read(dosfs, lfbuf, boot-ClusterSize) != boot-ClusterSize) { perr(could not read LOST.DIR); return FSFATAL; } @@ -993,7 +993,7 @@ p[31] = (u_char)(d.size 24); fat[head].flags |= FAT_USED; if (lseek(dosfs, lfoff, SEEK_SET) != lfoff - || write(dosfs, lfbuf, boot-ClusterSize) != boot-ClusterSize) { + || (size_t)write(dosfs, lfbuf, boot-ClusterSize) != boot-ClusterSize) { perr(could not write LOST.DIR); return FSFATAL; } Index: src/sbin/fsck_msdos/ext.h diff -u src/sbin/fsck_msdos/ext.h:1.12 src/sbin/fsck_msdos/ext.h:1.13 --- src/sbin/fsck_msdos/ext.h:1.12 Fri Jun 13 20:46:09 2008 +++ src/sbin/fsck_msdos/ext.h Sat Apr 11 07:14:50 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: ext.h,v 1.12 2008/06/13 20:46:09 martin Exp $ */ +/* $NetBSD: ext.h,v 1.13 2009/04/11 07:14:50 lukem Exp $ */ /* * Copyright (C) 1995, 1996, 1997 Wolfgang Solfrank @@ -83,13 +83,13 @@ * Read one of the FAT copies and return a pointer to the new * allocated array holding our description of it. */ -int readfat(int, struct bootblock *, int, struct fatEntry **); +int readfat(int, struct bootblock *, u_int, struct fatEntry **); /* * Check two FAT copies for consistency and merge changes into the * first if necessary. */ -int comparefat(struct bootblock *, struct fatEntry *, struct fatEntry *, int); +int comparefat(struct bootblock *, struct fatEntry *, struct fatEntry *, u_int); /* * Check a FAT Index: src/sbin/fsck_msdos/fat.c diff -u src/sbin/fsck_msdos/fat.c:1.21 src/sbin/fsck_msdos/fat.c:1.22 ---
CVS commit: src/sbin/dump
Module Name:src Committed By: lukem Date: Sat Apr 11 07:55:35 UTC 2009 Modified Files: src/sbin/dump: dumprmt.c Log Message: fix sign-compare issue To generate a diff of this commit: cvs rdiff -u -r1.32 -r1.33 src/sbin/dump/dumprmt.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sbin/dump/dumprmt.c diff -u src/sbin/dump/dumprmt.c:1.32 src/sbin/dump/dumprmt.c:1.33 --- src/sbin/dump/dumprmt.c:1.32 Mon Dec 18 20:07:32 2006 +++ src/sbin/dump/dumprmt.c Sat Apr 11 07:55:35 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: dumprmt.c,v 1.32 2006/12/18 20:07:32 christos Exp $ */ +/* $NetBSD: dumprmt.c,v 1.33 2009/04/11 07:55:35 lukem Exp $ */ /*- * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = @(#)dumprmt.c 8.3 (Berkeley) 4/28/95; #else -__RCSID($NetBSD: dumprmt.c,v 1.32 2006/12/18 20:07:32 christos Exp $); +__RCSID($NetBSD: dumprmt.c,v 1.33 2009/04/11 07:55:35 lukem Exp $); #endif #endif /* not lint */ @@ -291,7 +291,7 @@ rmtcall(const char *cmd, const char *buf, int verbose) { - if (write(rmtape, buf, strlen(buf)) != strlen(buf)) + if ((size_t)write(rmtape, buf, strlen(buf)) != strlen(buf)) rmtconnaborted(0); return (rmtreply(cmd, verbose)); }
CVS commit: src/sbin
Module Name:src Committed By: lukem Date: Sat Apr 11 07:58:13 UTC 2009 Modified Files: src/sbin: Makefile.inc src/sbin/bioctl: Makefile src/sbin/dump: Makefile src/sbin/dump_lfs: Makefile src/sbin/fsck_ffs: Makefile src/sbin/fsck_lfs: Makefile src/sbin/fsdb: Makefile src/sbin/gpt: Makefile src/sbin/ifconfig: Makefile src/sbin/init: Makefile src/sbin/mknod: Makefile src/sbin/mount_smbfs: Makefile src/sbin/mount_tmpfs: Makefile src/sbin/mount_udf: Makefile src/sbin/newfs_ext2fs: Makefile src/sbin/newfs_lfs: Makefile src/sbin/newfs_udf: Makefile src/sbin/resize_lfs: Makefile src/sbin/setkey: Makefile src/sbin/shutdown: Makefile Log Message: Enable WARNS=4 by default except for: dump dump_lfs fsck_ffs fsck_lfs fsdb mount_smbfs newfs_ext2fs newfs_lfs resize_lfs setkey To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/sbin/Makefile.inc cvs rdiff -u -r1.3 -r1.4 src/sbin/bioctl/Makefile cvs rdiff -u -r1.35 -r1.36 src/sbin/dump/Makefile cvs rdiff -u -r1.10 -r1.11 src/sbin/dump_lfs/Makefile cvs rdiff -u -r1.38 -r1.39 src/sbin/fsck_ffs/Makefile cvs rdiff -u -r1.15 -r1.16 src/sbin/fsck_lfs/Makefile cvs rdiff -u -r1.24 -r1.25 src/sbin/fsdb/Makefile cvs rdiff -u -r1.2 -r1.3 src/sbin/gpt/Makefile cvs rdiff -u -r1.40 -r1.41 src/sbin/ifconfig/Makefile cvs rdiff -u -r1.37 -r1.38 src/sbin/init/Makefile cvs rdiff -u -r1.12 -r1.13 src/sbin/mknod/Makefile cvs rdiff -u -r1.5 -r1.6 src/sbin/mount_smbfs/Makefile cvs rdiff -u -r1.4 -r1.5 src/sbin/mount_tmpfs/Makefile cvs rdiff -u -r1.2 -r1.3 src/sbin/mount_udf/Makefile cvs rdiff -u -r1.1 -r1.2 src/sbin/newfs_ext2fs/Makefile cvs rdiff -u -r1.6 -r1.7 src/sbin/newfs_lfs/Makefile cvs rdiff -u -r1.2 -r1.3 src/sbin/newfs_udf/Makefile cvs rdiff -u -r1.3 -r1.4 src/sbin/resize_lfs/Makefile cvs rdiff -u -r1.9 -r1.10 src/sbin/setkey/Makefile cvs rdiff -u -r1.10 -r1.11 src/sbin/shutdown/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sbin/Makefile.inc diff -u src/sbin/Makefile.inc:1.20 src/sbin/Makefile.inc:1.21 --- src/sbin/Makefile.inc:1.20 Sun Oct 8 17:52:28 2006 +++ src/sbin/Makefile.inc Sat Apr 11 07:58:11 2009 @@ -1,9 +1,9 @@ -# $NetBSD: Makefile.inc,v 1.20 2006/10/08 17:52:28 peter Exp $ +# $NetBSD: Makefile.inc,v 1.21 2009/04/11 07:58:11 lukem Exp $ # @(#)Makefile.inc 8.1 (Berkeley) 6/8/93 .include bsd.own.mk # for MKDYNAMICROOT definition -WARNS?= 3 +WARNS?= 4 BINDIR?= /sbin .if (${MKDYNAMICROOT} == no) Index: src/sbin/bioctl/Makefile diff -u src/sbin/bioctl/Makefile:1.3 src/sbin/bioctl/Makefile:1.4 --- src/sbin/bioctl/Makefile:1.3 Wed Jan 2 23:45:06 2008 +++ src/sbin/bioctl/Makefile Sat Apr 11 07:58:11 2009 @@ -1,9 +1,7 @@ -# $OpenBSD: Makefile,v 1.8 2006/11/26 11:31:08 deraadt Exp $ +# $NetBSD: Makefile,v 1.4 2009/04/11 07:58:11 lukem Exp $ PROG= bioctl SRCS= bioctl.c strtonum.c MAN= bioctl.8 -WARNS= 4 - .include bsd.prog.mk Index: src/sbin/dump/Makefile diff -u src/sbin/dump/Makefile:1.35 src/sbin/dump/Makefile:1.36 --- src/sbin/dump/Makefile:1.35 Fri Aug 29 00:02:23 2008 +++ src/sbin/dump/Makefile Sat Apr 11 07:58:11 2009 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.35 2008/08/29 00:02:23 gmcgarry Exp $ +# $NetBSD: Makefile,v 1.36 2009/04/11 07:58:11 lukem Exp $ # @(#)Makefile 8.1 (Berkeley) 6/5/93 # dump.h header file @@ -20,6 +20,8 @@ # STATS read cache statistics # DIAGNOSTICS read cache diagnostic checks +WARNS?= 3 # XXX: sign-compare issues + .include bsd.own.mk PROG= dump Index: src/sbin/dump_lfs/Makefile diff -u src/sbin/dump_lfs/Makefile:1.10 src/sbin/dump_lfs/Makefile:1.11 --- src/sbin/dump_lfs/Makefile:1.10 Fri Feb 13 16:02:05 2009 +++ src/sbin/dump_lfs/Makefile Sat Apr 11 07:58:12 2009 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2009/02/13 16:02:05 uebayasi Exp $ +# $NetBSD: Makefile,v 1.11 2009/04/11 07:58:12 lukem Exp $ # @(#)Makefile 8.1 (Berkeley) 6/5/93 # lfs_inode.c LFS filestore-specific routines @@ -6,6 +6,8 @@ # DEBUG use local directory to find ddate and dumpdates # TDEBUG trace out the process forking +WARNS?= 3 # XXX: sign-compare issues + .include bsd.own.mk PROG= dump_lfs Index: src/sbin/fsck_ffs/Makefile diff -u src/sbin/fsck_ffs/Makefile:1.38 src/sbin/fsck_ffs/Makefile:1.39 --- src/sbin/fsck_ffs/Makefile:1.38 Sat Aug 30 10:46:16 2008 +++ src/sbin/fsck_ffs/Makefile Sat Apr 11 07:58:12 2009 @@ -1,6 +1,8 @@ -# $NetBSD: Makefile,v 1.38 2008/08/30 10:46:16 bouyer Exp $ +# $NetBSD: Makefile,v 1.39 2009/04/11 07:58:12 lukem Exp $ # @(#)Makefile 8.2 (Berkeley) 4/27/95 +WARNS?= 3 # XXX: sign-compare issues + .include bsd.own.mk PROG= fsck_ffs Index: src/sbin/fsck_lfs/Makefile diff -u src/sbin/fsck_lfs/Makefile:1.15 src/sbin/fsck_lfs/Makefile:1.16 ---
CVS commit: src/sbin/cgdconfig
Module Name:src Committed By: lukem Date: Sat Apr 11 07:40:37 UTC 2009 Modified Files: src/sbin/cgdconfig: utils.c Log Message: fix sign-compare issues To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/sbin/cgdconfig/utils.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sbin/cgdconfig/utils.c diff -u src/sbin/cgdconfig/utils.c:1.19 src/sbin/cgdconfig/utils.c:1.20 --- src/sbin/cgdconfig/utils.c:1.19 Sun May 11 03:15:21 2008 +++ src/sbin/cgdconfig/utils.c Sat Apr 11 07:40:37 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: utils.c,v 1.19 2008/05/11 03:15:21 elric Exp $ */ +/* $NetBSD: utils.c,v 1.20 2009/04/11 07:40:37 lukem Exp $ */ /*- * Copyright (c) 2002, 2003 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include sys/cdefs.h #ifndef lint -__RCSID($NetBSD: utils.c,v 1.19 2008/05/11 03:15:21 elric Exp $); +__RCSID($NetBSD: utils.c,v 1.20 2009/04/11 07:40:37 lukem Exp $); #endif #include sys/param.h @@ -303,7 +303,7 @@ int bits_match(const bits_t *b1, const bits_t *b2) { - int i; + size_t i; if (b1-length != b2-length) return 0; @@ -319,7 +319,7 @@ bits_xor(const bits_t *x1, const bits_t *x2) { bits_t *b; - int i; + size_t i; b = emalloc(sizeof(*b)); b-length = MAX(x1-length, x2-length);
CVS commit: src/sbin/newfs_sysvbfs
Module Name:src Committed By: lukem Date: Sat Apr 11 07:37:50 UTC 2009 Modified Files: src/sbin/newfs_sysvbfs: newfs_sysvbfs.c Log Message: fix sign-compare issue To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sbin/newfs_sysvbfs/newfs_sysvbfs.c 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_sysvbfs/newfs_sysvbfs.c diff -u src/sbin/newfs_sysvbfs/newfs_sysvbfs.c:1.6 src/sbin/newfs_sysvbfs/newfs_sysvbfs.c:1.7 --- src/sbin/newfs_sysvbfs/newfs_sysvbfs.c:1.6 Sat Apr 11 07:16:30 2009 +++ src/sbin/newfs_sysvbfs/newfs_sysvbfs.c Sat Apr 11 07:37:50 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: newfs_sysvbfs.c,v 1.6 2009/04/11 07:16:30 lukem Exp $ */ +/* $NetBSD: newfs_sysvbfs.c,v 1.7 2009/04/11 07:37:50 lukem Exp $ */ /*- * Copyright (c) 2004 The NetBSD Foundation, Inc. @@ -135,7 +135,7 @@ if (Zflag) { while (filesize 0) { -size_t writenow = MIN(filesize, sizeof(zbuf)); +size_t writenow = MIN(filesize, (off_t)sizeof(zbuf)); if ((size_t)write(fd, zbuf, writenow) != writenow) { perror(zwrite);
CVS commit: src/usr.sbin/rtsold
Module Name:src Committed By: lukem Date: Sat Apr 11 07:51:59 UTC 2009 Modified Files: src/usr.sbin/rtsold: Makefile dump.c rtsock.c rtsol.c rtsold.c rtsold.h Log Message: fix WARNS=4 issues To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/usr.sbin/rtsold/Makefile cvs rdiff -u -r1.8 -r1.9 src/usr.sbin/rtsold/dump.c \ src/usr.sbin/rtsold/rtsold.h cvs rdiff -u -r1.5 -r1.6 src/usr.sbin/rtsold/rtsock.c cvs rdiff -u -r1.14 -r1.15 src/usr.sbin/rtsold/rtsol.c cvs rdiff -u -r1.34 -r1.35 src/usr.sbin/rtsold/rtsold.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/rtsold/Makefile diff -u src/usr.sbin/rtsold/Makefile:1.12 src/usr.sbin/rtsold/Makefile:1.13 --- src/usr.sbin/rtsold/Makefile:1.12 Mon May 28 12:06:40 2007 +++ src/usr.sbin/rtsold/Makefile Sat Apr 11 07:51:59 2009 @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.12 2007/05/28 12:06:40 tls Exp $ +# $NetBSD: Makefile,v 1.13 2009/04/11 07:51:59 lukem Exp $ USE_FORT?= yes # network client (local server) +WARNS?= 4 PROG= rtsold SRCS= rtsold.c rtsol.c if.c probe.c dump.c rtsock.c Index: src/usr.sbin/rtsold/dump.c diff -u src/usr.sbin/rtsold/dump.c:1.8 src/usr.sbin/rtsold/dump.c:1.9 --- src/usr.sbin/rtsold/dump.c:1.8 Sat Jan 3 01:40:31 2004 +++ src/usr.sbin/rtsold/dump.c Sat Apr 11 07:51:59 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: dump.c,v 1.8 2004/01/03 01:40:31 itojun Exp $ */ +/* $NetBSD: dump.c,v 1.9 2009/04/11 07:51:59 lukem Exp $ */ /* $KAME: dump.c,v 1.10 2002/05/31 10:10:03 itojun Exp $ */ /* @@ -51,8 +51,8 @@ extern struct ifinfo *iflist; static void dump_interface_status __P((void)); -static char *sec2str __P((time_t)); -char *ifstatstr[] = {IDLE, DELAY, PROBE, DOWN, TENTATIVE}; +static const char *sec2str __P((time_t)); +const char *ifstatstr[] = {IDLE, DELAY, PROBE, DOWN, TENTATIVE}; static void dump_interface_status(void) @@ -94,7 +94,7 @@ } void -rtsold_dump_file(char *dumpfile) +rtsold_dump_file(const char *dumpfile) { if ((fp = fopen(dumpfile, w)) == NULL) { warnmsg(LOG_WARNING, __func__, open a dump file(%s): %s, @@ -105,7 +105,7 @@ fclose(fp); } -static char * +static const char * sec2str(time_t total) { static char result[256]; Index: src/usr.sbin/rtsold/rtsold.h diff -u src/usr.sbin/rtsold/rtsold.h:1.8 src/usr.sbin/rtsold/rtsold.h:1.9 --- src/usr.sbin/rtsold/rtsold.h:1.8 Fri May 31 10:22:17 2002 +++ src/usr.sbin/rtsold/rtsold.h Sat Apr 11 07:51:59 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: rtsold.h,v 1.8 2002/05/31 10:22:17 itojun Exp $ */ +/* $NetBSD: rtsold.h,v 1.9 2009/04/11 07:51:59 lukem Exp $ */ /* $KAME: rtsold.h,v 1.14 2002/05/31 10:10:03 itojun Exp $ */ /* @@ -91,7 +91,7 @@ extern void defrouter_probe __P((struct ifinfo *)); /* dump.c */ -extern void rtsold_dump_file __P((char *)); +extern void rtsold_dump_file __P((const char *)); /* rtsock.c */ extern int rtsock_open __P((void)); Index: src/usr.sbin/rtsold/rtsock.c diff -u src/usr.sbin/rtsold/rtsock.c:1.5 src/usr.sbin/rtsold/rtsock.c:1.6 --- src/usr.sbin/rtsold/rtsock.c:1.5 Sat Jan 3 01:40:32 2004 +++ src/usr.sbin/rtsold/rtsock.c Sat Apr 11 07:51:59 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: rtsock.c,v 1.5 2004/01/03 01:40:32 itojun Exp $ */ +/* $NetBSD: rtsock.c,v 1.6 2009/04/11 07:51:59 lukem Exp $ */ /* $KAME: rtsock.c,v 1.4 2001/09/19 06:59:41 sakane Exp $ */ /* @@ -104,7 +104,7 @@ lim = msg + n; for (next = msg; next lim; next += len) { rtm = (struct rt_msghdr *)next; - if (lim - next lenlim) + if (lim - next (intptr_t)lenlim) break; len = rtm-rtm_msglen; if (len lenlim) Index: src/usr.sbin/rtsold/rtsol.c diff -u src/usr.sbin/rtsold/rtsol.c:1.14 src/usr.sbin/rtsold/rtsol.c:1.15 --- src/usr.sbin/rtsold/rtsol.c:1.14 Thu Sep 6 09:26:21 2007 +++ src/usr.sbin/rtsold/rtsol.c Sat Apr 11 07:51:59 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: rtsol.c,v 1.14 2007/09/06 09:26:21 jnemeth Exp $ */ +/* $NetBSD: rtsol.c,v 1.15 2009/04/11 07:51:59 lukem Exp $ */ /* $KAME: rtsol.c,v 1.15 2002/05/31 10:10:03 itojun Exp $ */ /* @@ -179,7 +179,7 @@ struct in6_pktinfo *pi; struct cmsghdr *cm; int hoplimit = 255; - int i; + ssize_t i; struct sockaddr_in6 dst; dst = sin6_allrouters; @@ -211,7 +211,7 @@ i = sendmsg(rssock, sndmhdr, 0); - if (i 0 || i != ifinfo-rs_datalen) { + if (i 0 || (size_t)i != ifinfo-rs_datalen) { /* * ENETDOWN is not so serious, especially when using several * network cards on a mobile node. We ignore it. @@ -229,7 +229,8 @@ rtsol_input(int s) { char ntopbuf[INET6_ADDRSTRLEN], ifnamebuf[IFNAMSIZ]; - int ifindex = 0, i, *hlimp = NULL; + int ifindex = 0, *hlimp = NULL; + ssize_t i; struct in6_pktinfo *pi = NULL; struct ifinfo *ifi = NULL; struct icmp6_hdr *icp; @@ -267,9 +268,9 @@ return; } - if (i sizeof(struct nd_router_advert)) { + if (i (ssize_t)sizeof(struct nd_router_advert)) { warnmsg(LOG_ERR, __func__, - packet size(%d) is
CVS commit: src/usr.bin/make
Module Name:src Committed By: wiz Date: Sat Apr 11 09:44:22 UTC 2009 Modified Files: src/usr.bin/make: make.1 Log Message: Bump date for previous. To generate a diff of this commit: cvs rdiff -u -r1.154 -r1.155 src/usr.bin/make/make.1 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.bin/make/make.1 diff -u src/usr.bin/make/make.1:1.154 src/usr.bin/make/make.1:1.155 --- src/usr.bin/make/make.1:1.154 Sat Apr 11 09:41:18 2009 +++ src/usr.bin/make/make.1 Sat Apr 11 09:44:22 2009 @@ -1,4 +1,4 @@ -.\ $NetBSD: make.1,v 1.154 2009/04/11 09:41:18 apb Exp $ +.\ $NetBSD: make.1,v 1.155 2009/04/11 09:44:22 wiz Exp $ .\ .\ Copyright (c) 1990, 1993 .\ The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ .\ .\ from: @(#)make.1 8.4 (Berkeley) 3/19/94 .\ -.Dd January 24, 2009 +.Dd April 11, 2009 .Dt MAKE 1 .Os .Sh NAME
CVS commit: src/dist/bzip2
Module Name:src Committed By: lukem Date: Sat Apr 11 11:10:44 UTC 2009 Modified Files: src/dist/bzip2: bzip2.c Log Message: Resolve -Wcast-qual issues. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/dist/bzip2/bzip2.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/dist/bzip2/bzip2.c diff -u src/dist/bzip2/bzip2.c:1.7 src/dist/bzip2/bzip2.c:1.8 --- src/dist/bzip2/bzip2.c:1.7 Mon Apr 6 19:33:22 2009 +++ src/dist/bzip2/bzip2.c Sat Apr 11 11:10:43 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: bzip2.c,v 1.7 2009/04/06 19:33:22 kefren Exp $ */ +/* $NetBSD: bzip2.c,v 1.8 2009/04/11 11:10:43 lukem Exp $ */ /*---*/ @@ -220,7 +220,7 @@ static voidcleanUpAndFail( Int32 ) NORETURN; static voidcompressedStreamEOF ( void )NORETURN; -static voidcopyFileName ( Char*, Char* ); +static voidcopyFileName ( Char*, const Char* ); static void* myMalloc ( Int32 ); static voidapplySavedFileAttrToOutputFile ( IntNative fd ); @@ -921,7 +921,7 @@ /*-*/ static -void copyFileName ( Char* to, Char* from ) +void copyFileName ( Char* to, const Char* from ) { if ( strlen(from) FILE_NAME_LEN-10 ) { fprintf ( @@ -1149,8 +1149,8 @@ switch (srcMode) { case SM_I2O: - copyFileName ( inName, (Char*)(stdin) ); - copyFileName ( outName, (Char*)(stdout) ); + copyFileName ( inName, (stdin) ); + copyFileName ( outName, (stdout) ); break; case SM_F2F: copyFileName ( inName, name ); @@ -1159,7 +1159,7 @@ break; case SM_F2O: copyFileName ( inName, name ); - copyFileName ( outName, (Char*)(stdout) ); + copyFileName ( outName, (stdout) ); break; } @@ -1333,8 +1333,8 @@ cantGuess = False; switch (srcMode) { case SM_I2O: - copyFileName ( inName, (Char*)(stdin) ); - copyFileName ( outName, (Char*)(stdout) ); + copyFileName ( inName, (stdin) ); + copyFileName ( outName, (stdout) ); break; case SM_F2F: copyFileName ( inName, name ); @@ -1347,7 +1347,7 @@ break; case SM_F2O: copyFileName ( inName, name ); - copyFileName ( outName, (Char*)(stdout) ); + copyFileName ( outName, (stdout) ); break; } @@ -1525,9 +1525,9 @@ if (name == NULL srcMode != SM_I2O) panic ( testf: bad modes\n ); - copyFileName ( outName, (Char*)(none) ); + copyFileName ( outName, (none) ); switch (srcMode) { - case SM_I2O: copyFileName ( inName, (Char*)(stdin) ); break; + case SM_I2O: copyFileName ( inName, (stdin) ); break; case SM_F2F: copyFileName ( inName, name ); break; case SM_F2O: copyFileName ( inName, name ); break; } @@ -1749,7 +1749,7 @@ /*-*/ static -void addFlagsFromEnvVar ( Cell** argList, Char* varName ) +void addFlagsFromEnvVar ( Cell** argList, const Char* varName ) { Int32 i, j, k; Char *envbase, *p; @@ -1819,8 +1819,8 @@ # endif #endif - copyFileName ( inName, (Char*)(none) ); - copyFileName ( outName, (Char*)(none) ); + copyFileName ( inName, (none) ); + copyFileName ( outName, (none) ); copyFileName ( progNameReally, argv[0] ); progName = progNameReally[0]; @@ -1832,8 +1832,8 @@ expand filename wildcards in arg list. --*/ argList = NULL; - addFlagsFromEnvVar ( argList, (Char*)BZIP2 ); - addFlagsFromEnvVar ( argList, (Char*)BZIP ); + addFlagsFromEnvVar ( argList, BZIP2 ); + addFlagsFromEnvVar ( argList, BZIP ); for (i = 1; i = argc-1; i++) APPEND_FILESPEC(argList, argv[i]);
CVS commit: src/usr.bin/cal
Module Name:src Committed By: lukem Date: Sat Apr 11 11:26:34 UTC 2009 Modified Files: src/usr.bin/cal: cal.c Log Message: fix WARNS=4 issues To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/usr.bin/cal/cal.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.bin/cal/cal.c diff -u src/usr.bin/cal/cal.c:1.24 src/usr.bin/cal/cal.c:1.25 --- src/usr.bin/cal/cal.c:1.24 Mon Jul 21 14:19:21 2008 +++ src/usr.bin/cal/cal.c Sat Apr 11 11:26:34 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: cal.c,v 1.24 2008/07/21 14:19:21 lukem Exp $ */ +/* $NetBSD: cal.c,v 1.25 2009/04/11 11:26:34 lukem Exp $ */ /* * Copyright (c) 1989, 1993, 1994 @@ -42,7 +42,7 @@ #if 0 static char sccsid[] = @(#)cal.c 8.4 (Berkeley) 4/2/94; #else -__RCSID($NetBSD: cal.c,v 1.24 2008/07/21 14:19:21 lukem Exp $); +__RCSID($NetBSD: cal.c,v 1.25 2009/04/11 11:26:34 lukem Exp $); #endif #endif /* not lint */ @@ -83,13 +83,13 @@ }; int shift_days[2][4][MAXDAYS + 1]; -char *month_names[12] = { +const char *month_names[12] = { January, February, March, April, May, June, July, August, September, October, November, December, }; -char *day_headings = S M Tu W Th F S; -char *j_day_headings = S M Tu W Th F S; +const char *day_headings = S M Tu W Th F S; +const char *j_day_headings = S M Tu W Th F S; /* leap years according to the julian calendar */ #define j_leap_year(y, m, d) \ @@ -163,36 +163,36 @@ * days that get displayed, plus a crib slot. */ } *reform, reforms[] = { - { DEFAULT, 0, 1752, 9, 3 }, - { Italy, 1, 1582, 10, 5 }, - { Spain, 1, 1582, 10, 5 }, - { Portugal, 1, 1582, 10, 5 }, - { Poland, 1, 1582, 10, 5 }, - { France, 2, 1582, 12, 10 }, - { Luxembourg, 2, 1582, 12, 22 }, - { Netherlands, 2, 1582, 12, 22 }, - { Bavaria, 0, 1583, 10, 6 }, - { Austria, 2, 1584, 1, 7 }, - { Switzerland, 2, 1584, 1, 12 }, - { Hungary, 0, 1587, 10, 22 }, - { Germany, 0, 1700, 2, 19 }, - { Norway, 0, 1700, 2, 19 }, - { Denmark, 0, 1700, 2, 19 }, - { Great Britain, 0, 1752, 9, 3 }, - { England, 0, 1752, 9, 3 }, - { America, 0, 1752, 9, 3 }, - { Sweden, 0, 1753, 2, 18 }, - { Finland, 0, 1753, 2, 18 }, - { Japan, 0, 1872, 12, 20 }, - { China, 0, 1911, 11, 7 }, - { Bulgaria, 0, 1916, 4, 1 }, - { U.S.S.R., 0, 1918, 2, 1 }, - { Serbia, 0, 1919, 1, 19 }, - { Romania, 0, 1919, 1, 19 }, - { Greece, 0, 1924, 3, 10 }, - { Turkey, 0, 1925, 12, 19 }, - { Egypt, 0, 1928, 9, 18 }, - { NULL, 0,0, 0, 0 }, + { DEFAULT, 0, 1752, 9, 3, 0, 0 }, + { Italy, 1, 1582, 10, 5, 0, 0 }, + { Spain, 1, 1582, 10, 5, 0, 0 }, + { Portugal, 1, 1582, 10, 5, 0, 0 }, + { Poland, 1, 1582, 10, 5, 0, 0 }, + { France, 2, 1582, 12, 10, 0, 0 }, + { Luxembourg, 2, 1582, 12, 22, 0, 0 }, + { Netherlands, 2, 1582, 12, 22, 0, 0 }, + { Bavaria, 0, 1583, 10, 6, 0, 0 }, + { Austria, 2, 1584, 1, 7, 0, 0 }, + { Switzerland, 2, 1584, 1, 12, 0, 0 }, + { Hungary, 0, 1587, 10, 22, 0, 0 }, + { Germany, 0, 1700, 2, 19, 0, 0 }, + { Norway, 0, 1700, 2, 19, 0, 0 }, + { Denmark, 0, 1700, 2, 19, 0, 0 }, + { Great Britain, 0, 1752, 9, 3, 0, 0 }, + { England, 0, 1752, 9, 3, 0, 0 }, + { America, 0, 1752, 9, 3, 0, 0 }, + { Sweden, 0, 1753, 2, 18, 0, 0 }, + { Finland, 0, 1753, 2, 18, 0, 0 }, + { Japan, 0, 1872, 12, 20, 0, 0 }, + { China, 0, 1911, 11, 7, 0, 0 }, + { Bulgaria, 0, 1916, 4, 1, 0, 0 }, + { U.S.S.R., 0, 1918, 2, 1, 0, 0 }, + { Serbia, 0, 1919, 1, 19, 0, 0 }, + { Romania, 0, 1919, 1, 19, 0, 0 }, + { Greece, 0, 1924, 3, 10, 0, 0 }, + { Turkey, 0, 1925, 12, 19, 0, 0 }, + { Egypt, 0, 1928, 9, 18, 0, 0 }, + { NULL, 0,0, 0, 0, 0, 0 }, }; int julian; @@ -205,7 +205,7 @@ void gregorian_reform(const char *); void reform_day_array(int, int, int *, int *, int *,int *,int *,int *); int ascii_day(char *, int); -void center(char *, int, int); +void center(const char *, int, int); void day_array(int, int, int *); int day_in_week(int, int, int); int day_in_year(int, int, int); @@ -559,7 +559,7 @@ { int display, val, rc; char *b; - static char *aday[] = { + static const char *aday[] = { , 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, @@ -643,7 +643,7 @@ } void -center(char *str, int len, int separate) +center(const char *str, int len, int separate) { len -= strlen(str); @@ -863,7 +863,7 @@ int getnum(const char *p) { - long result; + unsigned long result; char *ep; errno = 0; @@ -887,6 +887,7 @@ { static char control[128]; char cap[1024]; + const char *term; char *tc; hilite++; @@ -894,10 +895,10 @@ if (!isatty(fileno(stdout))) return; - tc = getenv(TERM); - if (tc == NULL) - tc = dumb; - if (tgetent(cap[0], tc) != 1) + term = getenv(TERM); + if (term == NULL) + term = dumb; + if (tgetent(cap[0], term) != 1) return; tc = control[0];
CVS commit: src/sys/fs/tmpfs
Module Name:src Committed By: markd Date: Sat Apr 11 11:59:05 UTC 2009 Modified Files: src/sys/fs/tmpfs: tmpfs_subr.c Log Message: For chown make auth checks consistent with UFS. Fixes PR kern/40933. To generate a diff of this commit: cvs rdiff -u -r1.49 -r1.50 src/sys/fs/tmpfs/tmpfs_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/fs/tmpfs/tmpfs_subr.c diff -u src/sys/fs/tmpfs/tmpfs_subr.c:1.49 src/sys/fs/tmpfs/tmpfs_subr.c:1.50 --- src/sys/fs/tmpfs/tmpfs_subr.c:1.49 Fri Apr 10 03:40:05 2009 +++ src/sys/fs/tmpfs/tmpfs_subr.c Sat Apr 11 11:59:04 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: tmpfs_subr.c,v 1.49 2009/04/10 03:40:05 yamt Exp $ */ +/* $NetBSD: tmpfs_subr.c,v 1.50 2009/04/11 11:59:04 markd Exp $ */ /* * Copyright (c) 2005, 2006, 2007 The NetBSD Foundation, Inc. @@ -35,7 +35,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: tmpfs_subr.c,v 1.49 2009/04/10 03:40:05 yamt Exp $); +__KERNEL_RCSID(0, $NetBSD: tmpfs_subr.c,v 1.50 2009/04/11 11:59:04 markd Exp $); #include sys/param.h #include sys/dirent.h @@ -1099,7 +1099,7 @@ * several other file systems. Shouldn't this be centralized * somewhere? */ if ((kauth_cred_geteuid(cred) != node-tn_uid || uid != node-tn_uid || - (gid != node-tn_gid !(kauth_cred_getegid(cred) == node-tn_gid || + (gid != node-tn_gid !(kauth_cred_getegid(cred) == gid || (kauth_cred_ismember_gid(cred, gid, ismember) == 0 ismember ((error = kauth_authorize_generic(cred, KAUTH_GENERIC_ISSUSER, NULL)) != 0))
CVS commit: src/usr.bin/chpass
Module Name:src Committed By: lukem Date: Sat Apr 11 12:10:02 UTC 2009 Modified Files: src/usr.bin/chpass: edit.c field.c pw_yp.c table.c Log Message: Fix WARNS=4 (-Wcast-qual -Wsign-compare -Wshadow) issues. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/usr.bin/chpass/edit.c cvs rdiff -u -r1.11 -r1.12 src/usr.bin/chpass/field.c cvs rdiff -u -r1.21 -r1.22 src/usr.bin/chpass/pw_yp.c cvs rdiff -u -r1.6 -r1.7 src/usr.bin/chpass/table.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.bin/chpass/edit.c diff -u src/usr.bin/chpass/edit.c:1.19 src/usr.bin/chpass/edit.c:1.20 --- src/usr.bin/chpass/edit.c:1.19 Thu Jun 2 01:42:11 2005 +++ src/usr.bin/chpass/edit.c Sat Apr 11 12:10:02 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: edit.c,v 1.19 2005/06/02 01:42:11 lukem Exp $ */ +/* $NetBSD: edit.c,v 1.20 2009/04/11 12:10:02 lukem Exp $ */ /*- * Copyright (c) 1990, 1993, 1994 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = @(#)edit.c 8.3 (Berkeley) 4/2/94; #else -__RCSID($NetBSD: edit.c,v 1.19 2005/06/02 01:42:11 lukem Exp $); +__RCSID($NetBSD: edit.c,v 1.20 2009/04/11 12:10:02 lukem Exp $); #endif #endif /* not lint */ @@ -214,7 +214,7 @@ %s:%s:%d:%d:%s:%lu:%lu:%s:%s:%s, pw-pw_name, pw-pw_passwd, pw-pw_uid, pw-pw_gid, pw-pw_class, (u_long)pw-pw_change, (u_long)pw-pw_expire, pw-pw_gecos, - pw-pw_dir, pw-pw_shell) = sizeof(buf)) { + pw-pw_dir, pw-pw_shell) = (int)sizeof(buf)) { warnx(entries too long); return (0); } Index: src/usr.bin/chpass/field.c diff -u src/usr.bin/chpass/field.c:1.11 src/usr.bin/chpass/field.c:1.12 --- src/usr.bin/chpass/field.c:1.11 Thu Feb 17 17:09:48 2005 +++ src/usr.bin/chpass/field.c Sat Apr 11 12:10:02 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: field.c,v 1.11 2005/02/17 17:09:48 xtraeme Exp $ */ +/* $NetBSD: field.c,v 1.12 2009/04/11 12:10:02 lukem Exp $ */ /* * Copyright (c) 1988, 1993, 1994 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = @(#)field.c 8.4 (Berkeley) 4/2/94; #else -__RCSID($NetBSD: field.c,v 1.11 2005/02/17 17:09:48 xtraeme Exp $); +__RCSID($NetBSD: field.c,v 1.12 2009/04/11 12:10:02 lukem Exp $); #endif #endif /* not lint */ @@ -85,9 +85,7 @@ p_passwd(const char *p, struct passwd *pw, ENTRY *ep) { - if (!*p) - pw-pw_passwd = ; /* NOLOGIN; */ - else if (!(pw-pw_passwd = strdup(p))) { + if (!(pw-pw_passwd = strdup(p))) { warnx(can't save password entry); return (1); } @@ -163,9 +161,7 @@ p_class(const char *p, struct passwd *pw, ENTRY *ep) { - if (!*p) - pw-pw_class = ; - else if (!(pw-pw_class = strdup(p))) { + if (!(pw-pw_class = strdup(p))) { warnx(can't save entry); return (1); } @@ -230,7 +226,10 @@ const char *t; if (!*p) { - pw-pw_shell = _PATH_BSHELL; + if (!(pw-pw_shell = strdup(_PATH_BSHELL))) { + warnx(can't save entry); + return (1); + } return (0); } /* only admin can change from or to restricted shells */ Index: src/usr.bin/chpass/pw_yp.c diff -u src/usr.bin/chpass/pw_yp.c:1.21 src/usr.bin/chpass/pw_yp.c:1.22 --- src/usr.bin/chpass/pw_yp.c:1.21 Thu Feb 17 17:09:48 2005 +++ src/usr.bin/chpass/pw_yp.c Sat Apr 11 12:10:02 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: pw_yp.c,v 1.21 2005/02/17 17:09:48 xtraeme Exp $ */ +/* $NetBSD: pw_yp.c,v 1.22 2009/04/11 12:10:02 lukem Exp $ */ /* * Copyright (c) 1988 The Regents of the University of California. @@ -33,7 +33,7 @@ #if 0 static char sccsid[] = @(#)pw_yp.c 1.0 2/2/93; #else -__RCSID($NetBSD: pw_yp.c,v 1.21 2005/02/17 17:09:48 xtraeme Exp $); +__RCSID($NetBSD: pw_yp.c,v 1.22 2009/04/11 12:10:02 lukem Exp $); #endif #endif /* not lint */ @@ -103,11 +103,11 @@ } int -pw_yp(struct passwd *pw, uid_t uid) +pw_yp(struct passwd *pw, uid_t ypuid) { char *master; int r, rpcport, status; - struct yppasswd yppasswd; + struct yppasswd yppw; struct timeval tv; CLIENT *client; @@ -150,39 +150,38 @@ } /* prompt for old password */ - memset(yppasswd, 0, sizeof yppasswd); - yppasswd.oldpass = none; - yppasswd.oldpass = getpass(Old password:); - if (!yppasswd.oldpass) { + memset(yppw, 0, sizeof yppw); + yppw.oldpass = getpass(Old password:); + if (!yppw.oldpass) { warnx(Cancelled.); return (1); } /* tell rpc.yppasswdd */ - yppasswd.newpw.pw_name = strdup(pw-pw_name); - if (!yppasswd.newpw.pw_name) { + yppw.newpw.pw_name = strdup(pw-pw_name); + if (!yppw.newpw.pw_name) { err(1, strdup); /*NOTREACHED*/ } - yppasswd.newpw.pw_passwd = strdup(pw-pw_passwd); - if (!yppasswd.newpw.pw_passwd) { + yppw.newpw.pw_passwd = strdup(pw-pw_passwd); + if (!yppw.newpw.pw_passwd) { err(1, strdup); /*NOTREACHED*/ } - yppasswd.newpw.pw_uid = pw-pw_uid; - yppasswd.newpw.pw_gid = pw-pw_gid; - yppasswd.newpw.pw_gecos = strdup(pw-pw_gecos); - if (!yppasswd.newpw.pw_gecos) { + yppw.newpw.pw_uid = pw-pw_uid; + yppw.newpw.pw_gid = pw-pw_gid; + yppw.newpw.pw_gecos =
CVS commit: src/usr.bin/compress
Module Name:src Committed By: lukem Date: Sat Apr 11 12:24:37 UTC 2009 Modified Files: src/usr.bin/compress: compress.c zopen.c Log Message: Fix -Wcast-qual and -Wsign-compare issues To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/usr.bin/compress/compress.c cvs rdiff -u -r1.12 -r1.13 src/usr.bin/compress/zopen.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.bin/compress/compress.c diff -u src/usr.bin/compress/compress.c:1.24 src/usr.bin/compress/compress.c:1.25 --- src/usr.bin/compress/compress.c:1.24 Mon Jul 21 14:19:22 2008 +++ src/usr.bin/compress/compress.c Sat Apr 11 12:24:37 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: compress.c,v 1.24 2008/07/21 14:19:22 lukem Exp $ */ +/* $NetBSD: compress.c,v 1.25 2009/04/11 12:24:37 lukem Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -39,7 +39,7 @@ #if 0 static char sccsid[] = @(#)compress.c 8.2 (Berkeley) 1/7/94; #else -__RCSID($NetBSD: compress.c,v 1.24 2008/07/21 14:19:22 lukem Exp $); +__RCSID($NetBSD: compress.c,v 1.25 2009/04/11 12:24:37 lukem Exp $); #endif #endif /* not lint */ @@ -55,12 +55,12 @@ #include string.h #include unistd.h -void compress(char *, char *, int); +void compress(const char *, const char *, int); void cwarn(const char *, ...) __attribute__((__format__(__printf__,1,2))); void cwarnx(const char *, ...) __attribute__((__format__(__printf__,1,2))); -void decompress(char *, char *, int); -int permission(char *); -void setfile(char *, struct stat *); +void decompress(const char *, const char *, int); +int permission(const char *); +void setfile(const char *, struct stat *); void usage(int); int main(int, char *[]); @@ -199,9 +199,9 @@ } void -compress(char *in, char *out, int bits) +compress(const char *in, const char *out, int bits) { - int nr; + size_t nr; struct stat isb, sb; const char *error = NULL; FILE *ifp, *ofp; @@ -298,9 +298,9 @@ } void -decompress(char *in, char *out, int bits) +decompress(const char *in, const char *out, int bits) { - int nr; + size_t nr; struct stat sb; FILE *ifp, *ofp; int exists, isreg, oreg; @@ -377,7 +377,7 @@ } void -setfile(char *name, struct stat *fs) +setfile(const char *name, struct stat *fs) { static struct timeval tv[2]; @@ -412,7 +412,7 @@ } int -permission(char *fname) +permission(const char *fname) { int ch, first; Index: src/usr.bin/compress/zopen.c diff -u src/usr.bin/compress/zopen.c:1.12 src/usr.bin/compress/zopen.c:1.13 --- src/usr.bin/compress/zopen.c:1.12 Thu Feb 21 02:50:11 2008 +++ src/usr.bin/compress/zopen.c Sat Apr 11 12:24:37 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: zopen.c,v 1.12 2008/02/21 02:50:11 joerg Exp $ */ +/* $NetBSD: zopen.c,v 1.13 2009/04/11 12:24:37 lukem Exp $ */ /*- * Copyright (c) 1985, 1986, 1992, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = @(#)zopen.c 8.1 (Berkeley) 6/27/93; #else -static char rcsid[] = $NetBSD: zopen.c,v 1.12 2008/02/21 02:50:11 joerg Exp $; +static char rcsid[] = $NetBSD: zopen.c,v 1.13 2009/04/11 12:24:37 lukem Exp $; #endif #endif /* LIBC_SCCS and not lint */ @@ -247,7 +247,7 @@ zs = cookie; count = num; - bp = (u_char *)wbp; + bp = (const u_char *)wbp; if (state == S_MIDDLE) goto middle; state = S_MIDDLE; @@ -400,7 +400,7 @@ bp = buf; bits = n_bits; bytes_out += bits; - if (fwrite(bp, sizeof(char), bits, fp) != bits) + if (fwrite(bp, sizeof(char), bits, fp) != (size_t)bits) return (-1); bp += bits; bits = 0; @@ -416,7 +416,7 @@ * discover the size increase until after it has read it. */ if (offset 0) { -if (fwrite(buf, 1, n_bits, fp) != n_bits) +if (fwrite(buf, 1, n_bits, fp) != (size_t)n_bits) return (-1); bytes_out += n_bits; } @@ -437,7 +437,7 @@ /* At EOF, write the rest of the buffer. */ if (offset 0) { offset = (offset + 7) / 8; - if (fwrite(buf, 1, offset, fp) != offset) + if (fwrite(buf, 1, offset, fp) != (size_t)offset) return (-1); bytes_out += offset; }
CVS commit: src/usr.sbin/cron
Module Name:src Committed By: lukem Date: Sat Apr 11 12:44:29 UTC 2009 Modified Files: src/usr.sbin/cron: crontab.c Log Message: fix -Wcast-qual issues To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/usr.sbin/cron/crontab.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/cron/crontab.c diff -u src/usr.sbin/cron/crontab.c:1.30 src/usr.sbin/cron/crontab.c:1.31 --- src/usr.sbin/cron/crontab.c:1.30 Wed May 24 21:43:43 2006 +++ src/usr.sbin/cron/crontab.c Sat Apr 11 12:44:29 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: crontab.c,v 1.30 2006/05/24 21:43:43 christos Exp $ */ +/* $NetBSD: crontab.c,v 1.31 2009/04/11 12:44:29 lukem Exp $ */ /* Copyright 1988,1990,1993,1994 by Paul Vixie * All rights reserved @@ -22,7 +22,7 @@ #if 0 static char rcsid[] = Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp; #else -__RCSID($NetBSD: crontab.c,v 1.30 2006/05/24 21:43:43 christos Exp $); +__RCSID($NetBSD: crontab.c,v 1.31 2009/04/11 12:44:29 lukem Exp $); #endif #endif @@ -62,7 +62,7 @@ enum opt_t { opt_unknown, opt_list, opt_delete, opt_edit, opt_replace }; #if DEBUGGING -static char *Options[] = { ???, list, delete, edit, replace }; +static const char *Options[] = { ???, list, delete, edit, replace }; #endif @@ -80,12 +80,12 @@ check_error(const char *), parse_args(int c, char *v[]), skip_header(int *, FILE *), - usage(char *); + usage(const char *); static int replace_cmd(void); static void -usage(char *msg) +usage(const char *msg) { fprintf(stderr, %s: usage error: %s\n, getprogname(), msg); fprintf(stderr, usage:\t%s [-u user] file\n, getprogname()); @@ -568,7 +568,7 @@ fprintf(tmp, # DO NOT EDIT THIS FILE - edit the master and reinstall.\n); fprintf(tmp, # (%s installed on %-24.24s)\n, Filename, ctime(now)); fprintf(tmp, # (Cron version -- %s)\n, - $NetBSD: crontab.c,v 1.30 2006/05/24 21:43:43 christos Exp $); + $NetBSD: crontab.c,v 1.31 2009/04/11 12:44:29 lukem Exp $); /* copy the crontab to the tmp */
CVS commit: src/usr.bin/crunch/crunchide
Module Name:src Committed By: lukem Date: Sat Apr 11 12:53:52 UTC 2009 Modified Files: src/usr.bin/crunch/crunchide: exec_elf32.c Log Message: fix -Wsign-compare issues To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/usr.bin/crunch/crunchide/exec_elf32.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.bin/crunch/crunchide/exec_elf32.c diff -u src/usr.bin/crunch/crunchide/exec_elf32.c:1.13 src/usr.bin/crunch/crunchide/exec_elf32.c:1.14 --- src/usr.bin/crunch/crunchide/exec_elf32.c:1.13 Sat Jul 26 20:34:12 2003 +++ src/usr.bin/crunch/crunchide/exec_elf32.c Sat Apr 11 12:53:52 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: exec_elf32.c,v 1.13 2003/07/26 20:34:12 salo Exp $ */ +/* $NetBSD: exec_elf32.c,v 1.14 2009/04/11 12:53:52 lukem Exp $ */ /* * Copyright (c) 1997, 1998 Christopher G. Demetriou @@ -36,7 +36,7 @@ #include sys/cdefs.h #ifndef lint -__RCSID($NetBSD: exec_elf32.c,v 1.13 2003/07/26 20:34:12 salo Exp $); +__RCSID($NetBSD: exec_elf32.c,v 1.14 2009/04/11 12:53:52 lukem Exp $); #endif #ifndef ELFSIZE @@ -75,7 +75,7 @@ perror(fn); return -1; } - if ((rv = read(fd, buf, size)) != size) { + if ((size_t)(rv = read(fd, buf, size)) != size) { fprintf(stderr, %s: read error: %s\n, fn, rv == -1 ? strerror(errno) : short read); return -1; @@ -92,7 +92,7 @@ perror(fn); return -1; } - if ((rv = write(fd, buf, size)) != size) { + if ((size_t)(rv = write(fd, buf, size)) != size) { fprintf(stderr, %s: write error: %s\n, fn, rv == -1 ? strerror(errno) : short write); return -1; @@ -138,7 +138,7 @@ */ if (fstat(fd, sb) == -1) return 0; - if (sb.st_size sizeof eh) + if (sb.st_size (off_t)(sizeof eh)) return 0; if (read(fd, eh, sizeof eh) != sizeof eh) return 0; @@ -180,7 +180,7 @@ int symtabsnum, strtabsnum; Elf_Sym *symtabp = NULL; char *strtabp = NULL, *nstrtabp = NULL; - Elf_Word nsyms; + Elf_Word j, nsyms; Elf_Off stroff, maxoff; const char *weirdreason; ssize_t shdrsize; @@ -245,7 +245,7 @@ if ((symtabp = xmalloc(shdrp[symtabsnum].sh_size, fn, symbol table)) == NULL) goto bad; - if (xreadatoff(fd, symtabp, shdrp[symtabsnum].sh_offset, + if ((size_t)xreadatoff(fd, symtabp, shdrp[symtabsnum].sh_offset, shdrp[symtabsnum].sh_size, fn) != shdrp[symtabsnum].sh_size) goto bad; @@ -253,7 +253,7 @@ if ((strtabp = xmalloc(shdrp[strtabsnum].sh_size, fn, string table)) == NULL) goto bad; - if (xreadatoff(fd, strtabp, shdrp[strtabsnum].sh_offset, + if ((size_t)xreadatoff(fd, strtabp, shdrp[strtabsnum].sh_offset, shdrp[strtabsnum].sh_size, fn) != shdrp[strtabsnum].sh_size) goto bad; @@ -267,8 +267,8 @@ fn_size = strlen(fn); - for (i = 0; i nsyms; i++) { - Elf_Sym *sp = symtabp[i]; + for (j = 0; j nsyms; j++) { + Elf_Sym *sp = symtabp[j]; const char *symname = strtabp + sp-st_name; size_t newent_len; @@ -308,10 +308,10 @@ */ if (xwriteatoff(fd, shdrp, ehdr.e_shoff, shdrsize, fn) != shdrsize) goto bad; - if (xwriteatoff(fd, symtabp, shdrp[symtabsnum].sh_offset, + if ((size_t)xwriteatoff(fd, symtabp, shdrp[symtabsnum].sh_offset, shdrp[symtabsnum].sh_size, fn) != shdrp[symtabsnum].sh_size) goto bad; - if (xwriteatoff(fd, nstrtabp, shdrp[strtabsnum].sh_offset, + if ((size_t)xwriteatoff(fd, nstrtabp, shdrp[strtabsnum].sh_offset, shdrp[strtabsnum].sh_size, fn) != shdrp[strtabsnum].sh_size) goto bad;
CVS commit: src/usr.sbin/cron
Module Name:src Committed By: lukem Date: Sat Apr 11 12:55:29 UTC 2009 Modified Files: src/usr.sbin/cron: crontab.c Log Message: fix -Wsign-compare issue on amd64 To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/usr.sbin/cron/crontab.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/cron/crontab.c diff -u src/usr.sbin/cron/crontab.c:1.31 src/usr.sbin/cron/crontab.c:1.32 --- src/usr.sbin/cron/crontab.c:1.31 Sat Apr 11 12:44:29 2009 +++ src/usr.sbin/cron/crontab.c Sat Apr 11 12:55:29 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: crontab.c,v 1.31 2009/04/11 12:44:29 lukem Exp $ */ +/* $NetBSD: crontab.c,v 1.32 2009/04/11 12:55:29 lukem Exp $ */ /* Copyright 1988,1990,1993,1994 by Paul Vixie * All rights reserved @@ -22,7 +22,7 @@ #if 0 static char rcsid[] = Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp; #else -__RCSID($NetBSD: crontab.c,v 1.31 2009/04/11 12:44:29 lukem Exp $); +__RCSID($NetBSD: crontab.c,v 1.32 2009/04/11 12:55:29 lukem Exp $); #endif #endif @@ -554,7 +554,7 @@ warn(error stat'ing crontab input); goto out; } - if (statbuf.st_size maxtabsize) { + if (statbuf.st_size (off_t)maxtabsize) { warnx(%ld bytes is larger than the maximum size of %ld bytes, (long) statbuf.st_size, (long) maxtabsize); val = -1; @@ -568,7 +568,7 @@ fprintf(tmp, # DO NOT EDIT THIS FILE - edit the master and reinstall.\n); fprintf(tmp, # (%s installed on %-24.24s)\n, Filename, ctime(now)); fprintf(tmp, # (Cron version -- %s)\n, - $NetBSD: crontab.c,v 1.31 2009/04/11 12:44:29 lukem Exp $); + $NetBSD: crontab.c,v 1.32 2009/04/11 12:55:29 lukem Exp $); /* copy the crontab to the tmp */
CVS commit: src/usr.bin/ctags
Module Name:src Committed By: lukem Date: Sat Apr 11 12:58:03 UTC 2009 Modified Files: src/usr.bin/ctags: C.c Log Message: fix -Wsign-compare issue To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/usr.bin/ctags/C.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.bin/ctags/C.c diff -u src/usr.bin/ctags/C.c:1.17 src/usr.bin/ctags/C.c:1.18 --- src/usr.bin/ctags/C.c:1.17 Fri Mar 27 21:48:26 2009 +++ src/usr.bin/ctags/C.c Sat Apr 11 12:58:03 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: C.c,v 1.17 2009/03/27 21:48:26 christos Exp $ */ +/* $NetBSD: C.c,v 1.18 2009/04/11 12:58:03 lukem Exp $ */ /* * Copyright (c) 1987, 1993, 1994 @@ -38,11 +38,12 @@ #if 0 static char sccsid[] = @(#)C.c 8.4 (Berkeley) 4/2/94; #else -__RCSID($NetBSD: C.c,v 1.17 2009/03/27 21:48:26 christos Exp $); +__RCSID($NetBSD: C.c,v 1.18 2009/04/11 12:58:03 lukem Exp $); #endif #endif /* not lint */ #include limits.h +#include stddef.h #include stdio.h #include string.h @@ -323,7 +324,7 @@ } else { if (intoken(c)) { if (anext - maybe_attribute - sizeof attribute - 1) + (ptrdiff_t)(sizeof attribute - 1)) *anext++ = c; else break; continue;
CVS commit: src/usr.sbin/sesd/sesd
Module Name:src Committed By: wiz Date: Sat Apr 11 13:24:17 UTC 2009 Modified Files: src/usr.sbin/sesd/sesd: sesd.8 Log Message: Sort option descriptions. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/usr.sbin/sesd/sesd/sesd.8 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/sesd/sesd/sesd.8 diff -u src/usr.sbin/sesd/sesd/sesd.8:1.5 src/usr.sbin/sesd/sesd/sesd.8:1.6 --- src/usr.sbin/sesd/sesd/sesd.8:1.5 Wed Apr 8 13:41:54 2009 +++ src/usr.sbin/sesd/sesd/sesd.8 Sat Apr 11 13:24:17 2009 @@ -1,4 +1,4 @@ -.\ $NetBSD: sesd.8,v 1.5 2009/04/08 13:41:54 joerg Exp $ +.\ $NetBSD: sesd.8,v 1.6 2009/04/11 13:24:17 wiz Exp $ .\ $OpenBSD: $ .\ $FreeBSD: $ .\ @@ -58,13 +58,13 @@ .Pp The following options may be used: .Bl -tag -width Ds -.It Fl p Ar poll-interval -Change the interval of polling from the default 30 seconds to the number -of seconds specified. .It Fl d Instead of detaching and becoming a daemon, stay attached to the controlling terminal and log changes there as well as via the system logger. +.It Fl p Ar poll-interval +Change the interval of polling from the default 30 seconds to the number +of seconds specified. .El .Pp The user may then use
CVS commit: src/usr.sbin/sesd/setobjstat
Module Name:src Committed By: wiz Date: Sat Apr 11 13:24:37 UTC 2009 Modified Files: src/usr.sbin/sesd/setobjstat: setobjstat.8 Log Message: New sentence, new line. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/usr.sbin/sesd/setobjstat/setobjstat.8 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/sesd/setobjstat/setobjstat.8 diff -u src/usr.sbin/sesd/setobjstat/setobjstat.8:1.4 src/usr.sbin/sesd/setobjstat/setobjstat.8:1.5 --- src/usr.sbin/sesd/setobjstat/setobjstat.8:1.4 Wed Apr 8 13:47:07 2009 +++ src/usr.sbin/sesd/setobjstat/setobjstat.8 Sat Apr 11 13:24:37 2009 @@ -1,4 +1,4 @@ -.\ $NetBSD: setobjstat.8,v 1.4 2009/04/08 13:47:07 joerg Exp $ +.\ $NetBSD: setobjstat.8,v 1.5 2009/04/11 13:24:37 wiz Exp $ .\ $OpenBSD: $ .\ $FreeBSD: $ .\ @@ -51,8 +51,9 @@ .Pp The status fields are partially common (first byte only, which must have a value of 0x80 contained in it), but otherwise quite device -specific. A complete discussion of the possible values is impractical -here. Please refer to the ANSI SCSI specification (available on +specific. +A complete discussion of the possible values is impractical here. +Please refer to the ANSI SCSI specification (available on the FTP site ftp.t10.org). .Pp Note that devices may simply and silently ignore the setting of these values.
CVS commit: src/usr.sbin/mtree
Module Name:src Committed By: apb Date: Sat Apr 11 14:32:52 UTC 2009 Modified Files: src/usr.sbin/mtree: spec.c Log Message: When an mtree spec file omits a parent directory, missing directory in specification, instead of no such file or directory. To generate a diff of this commit: cvs rdiff -u -r1.74 -r1.75 src/usr.sbin/mtree/spec.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/mtree/spec.c diff -u src/usr.sbin/mtree/spec.c:1.74 src/usr.sbin/mtree/spec.c:1.75 --- src/usr.sbin/mtree/spec.c:1.74 Wed Apr 8 19:03:13 2009 +++ src/usr.sbin/mtree/spec.c Sat Apr 11 14:32:51 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: spec.c,v 1.74 2009/04/08 19:03:13 apb Exp $ */ +/* $NetBSD: spec.c,v 1.75 2009/04/11 14:32:51 apb Exp $ */ /*- * Copyright (c) 1989, 1993 @@ -67,7 +67,7 @@ #if 0 static char sccsid[] = @(#)spec.c 8.2 (Berkeley) 4/28/95; #else -__RCSID($NetBSD: spec.c,v 1.74 2009/04/08 19:03:13 apb Exp $); +__RCSID($NetBSD: spec.c,v 1.75 2009/04/11 14:32:51 apb Exp $); #endif #endif /* not lint */ @@ -190,7 +190,7 @@ } if (cur == NULL || cur-type != F_DIR) { mtree_err(%s: %s, tname, - strerror(ENOENT)); + missing directory in specification); } *e = '/'; pathparent = cur;
CVS commit: src/doc
Module Name:src Committed By: apb Date: Sat Apr 11 15:01:52 UTC 2009 Modified Files: src/doc: CHANGES Log Message: Mention mtree -S To generate a diff of this commit: cvs rdiff -u -r1.1205 -r1.1206 src/doc/CHANGES Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES diff -u src/doc/CHANGES:1.1205 src/doc/CHANGES:1.1206 --- src/doc/CHANGES:1.1205 Wed Apr 8 16:31:00 2009 +++ src/doc/CHANGES Sat Apr 11 15:01:52 2009 @@ -1,4 +1,4 @@ -# LIST OF CHANGES FROM LAST RELEASE: $Revision: 1.1205 $ +# LIST OF CHANGES FROM LAST RELEASE: $Revision: 1.1206 $ # # # [Note: This file does not mention every change made to the NetBSD source tree. @@ -167,3 +167,4 @@ kmem_alloc(9): Add more extensive runtime debugging facilities. [ad 20090329] cvs: Import 1.12.13 [christos 20090408] + mtree(8): Add -S option to sort entries. [apb 20090408]
CVS commit: src/lib/libevent
Module Name:src Committed By: joerg Date: Sat Apr 11 15:29:51 UTC 2009 Modified Files: src/lib/libevent: evdns.3 Log Message: Improve markup. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/lib/libevent/evdns.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/libevent/evdns.3 diff -u src/lib/libevent/evdns.3:1.1 src/lib/libevent/evdns.3:1.2 --- src/lib/libevent/evdns.3:1.1 Fri May 16 20:24:57 2008 +++ src/lib/libevent/evdns.3 Sat Apr 11 15:29:50 2009 @@ -1,4 +1,4 @@ -.\ $NetBSD: evdns.3,v 1.1 2008/05/16 20:24:57 peter Exp $ +.\ $NetBSD: evdns.3,v 1.2 2009/04/11 15:29:50 joerg Exp $ .\ .\ Copyright (c) 2006 Niels Provos pro...@citi.umich.edu .\ All rights reserved. @@ -121,11 +121,14 @@ them when they go down. Otherwise it will round robin between them. .Pp Quick start guide: - #include evdns.h - void callback(int result, char type, int count, int ttl, - void *addresses, void *arg); - evdns_resolv_conf_parse(DNS_OPTIONS_ALL, /etc/resolv.conf); - evdns_resolve(www.hostname.com, 0, callback, NULL); +.Bd -literal +#include \*[Lt]evdns.h\*[Gt] +void callback(int result, char type, int count, int ttl, + void *addresses, void *arg); + +evdns_resolv_conf_parse(DNS_OPTIONS_ALL, /etc/resolv.conf); +evdns_resolve(www.hostname.com, 0, callback, NULL); +.Ed .Pp When the lookup is complete the callback function is called. The first argument will be one of the DNS_ERR_* defines in evdns.h.
CVS commit: src/lib/libc/regex
Module Name:src Committed By: joerg Date: Sat Apr 11 15:44:42 UTC 2009 Modified Files: src/lib/libc/regex: regex.3 Log Message: Use semantic markup. To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/lib/libc/regex/regex.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/libc/regex/regex.3 diff -u src/lib/libc/regex/regex.3:1.18 src/lib/libc/regex/regex.3:1.19 --- src/lib/libc/regex/regex.3:1.18 Mon Dec 29 17:36:12 2003 +++ src/lib/libc/regex/regex.3 Sat Apr 11 15:44:42 2009 @@ -1,4 +1,4 @@ -.\ $NetBSD: regex.3,v 1.18 2003/12/29 17:36:12 wiz Exp $ +.\ $NetBSD: regex.3,v 1.19 2009/04/11 15:44:42 joerg Exp $ .\ .\ Copyright (c) 1992, 1993, 1994 .\ The Regents of the University of California. All rights reserved. @@ -514,7 +514,9 @@ .Pp A `{' followed by a digit is considered the beginning of bounds for a bounded repetition, which must then follow the syntax for bounds. -A `{' \fInot\fR followed by a digit is considered an ordinary character. +A `{' +.Em not +followed by a digit is considered an ordinary character. .Pp `^' and `$' beginning and ending subexpressions in obsolete (``basic'') REs are anchors, not ordinary characters.
CVS commit: src/sys
Module Name:src Committed By: christos Date: Sat Apr 11 15:46:19 UTC 2009 Modified Files: src/sys/kern: sys_pipe.c src/sys/sys: pipe.h Log Message: rename ctime to btime for consistency. To generate a diff of this commit: cvs rdiff -u -r1.110 -r1.111 src/sys/kern/sys_pipe.c cvs rdiff -u -r1.26 -r1.27 src/sys/sys/pipe.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/kern/sys_pipe.c diff -u src/sys/kern/sys_pipe.c:1.110 src/sys/kern/sys_pipe.c:1.111 --- src/sys/kern/sys_pipe.c:1.110 Sat Apr 11 10:42:28 2009 +++ src/sys/kern/sys_pipe.c Sat Apr 11 11:46:18 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: sys_pipe.c,v 1.110 2009/04/11 14:42:28 christos Exp $ */ +/* $NetBSD: sys_pipe.c,v 1.111 2009/04/11 15:46:18 christos Exp $ */ /*- * Copyright (c) 2003, 2007, 2008, 2009 The NetBSD Foundation, Inc. @@ -68,7 +68,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: sys_pipe.c,v 1.110 2009/04/11 14:42:28 christos Exp $); +__KERNEL_RCSID(0, $NetBSD: sys_pipe.c,v 1.111 2009/04/11 15:46:18 christos Exp $); #include sys/param.h #include sys/systm.h @@ -349,9 +349,8 @@ KASSERT(pipe != NULL); *pipep = pipe; error = 0; - getnanotime(pipe-pipe_ctime); - pipe-pipe_atime = pipe-pipe_ctime; - pipe-pipe_mtime = pipe-pipe_ctime; + getnanotime(pipe-pipe_btime); + pipe-pipe_atime = pipe-pipe_mtime = pipe-pipe_btime; pipe-pipe_lock = mutex; if (cache == pipe_rd_cache) { error = pipespace(pipe, PIPE_SIZE); @@ -585,7 +584,7 @@ } if (error == 0) - getnanoime(rpipe-pipe_atime); + getnanotime(rpipe-pipe_atime); pipeunlock(rpipe); unlocked_error: @@ -1195,7 +1194,7 @@ ub-st_blocks = (ub-st_size) ? 1 : 0; ub-st_atimespec = pipe-pipe_atime; ub-st_mtimespec = pipe-pipe_mtime; - ub-st_ctimespec = ub-st_birthtimespec = pipe-pipe_ctime; + ub-st_ctimespec = ub-st_birthtimespec = pipe-pipe_btime; ub-st_uid = kauth_cred_geteuid(fp-f_cred); ub-st_gid = kauth_cred_getegid(fp-f_cred); Index: src/sys/sys/pipe.h diff -u src/sys/sys/pipe.h:1.26 src/sys/sys/pipe.h:1.27 --- src/sys/sys/pipe.h:1.26 Sat Apr 11 10:42:28 2009 +++ src/sys/sys/pipe.h Sat Apr 11 11:46:18 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: pipe.h,v 1.26 2009/04/11 14:42:28 christos Exp $ */ +/* $NetBSD: pipe.h,v 1.27 2009/04/11 15:46:18 christos Exp $ */ /* * Copyright (c) 1996 John S. Dyson @@ -111,7 +111,7 @@ struct selinfo pipe_sel; /* for compat with select */ struct timespec pipe_atime; /* time of last access */ struct timespec pipe_mtime; /* time of last modify */ - struct timespec pipe_ctime; /* time of status change */ + struct timespec pipe_btime; /* time of creation */ pid_t pipe_pgid; /* process group for sigio */ struct pipe *pipe_peer; /* link with other direction */ u_int pipe_state; /* pipe status info */
CVS commit: src/lib/librmt
Module Name:src Committed By: joerg Date: Sat Apr 11 17:10:57 UTC 2009 Modified Files: src/lib/librmt: rmtops.3 Log Message: Remove redundant .Pp. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/lib/librmt/rmtops.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/librmt/rmtops.3 diff -u src/lib/librmt/rmtops.3:1.12 src/lib/librmt/rmtops.3:1.13 --- src/lib/librmt/rmtops.3:1.12 Sat Apr 11 16:59:05 2009 +++ src/lib/librmt/rmtops.3 Sat Apr 11 17:10:57 2009 @@ -1,4 +1,4 @@ -.\ $NetBSD: rmtops.3,v 1.12 2009/04/11 16:59:05 wiz Exp $ +.\ $NetBSD: rmtops.3,v 1.13 2009/04/11 17:10:57 joerg Exp $ .\ .Dd October 16, 2001 .Dt RMTOPS 3 @@ -79,7 +79,6 @@ For transparency, the user should include the file .Aq Pa rmt.h , which has the following defines in it: -.Pp .Bd -literal #define access rmtaccess #define close rmtclose
CVS commit: src/lib/libc/rpc
Module Name:src Committed By: joerg Date: Sat Apr 11 20:14:35 UTC 2009 Modified Files: src/lib/libc/rpc: xdr.3 Log Message: Add missing .Re. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/lib/libc/rpc/xdr.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/libc/rpc/xdr.3 diff -u src/lib/libc/rpc/xdr.3:1.10 src/lib/libc/rpc/xdr.3:1.11 --- src/lib/libc/rpc/xdr.3:1.10 Sun Sep 7 16:22:21 2003 +++ src/lib/libc/rpc/xdr.3 Sat Apr 11 20:14:35 2009 @@ -1,5 +1,5 @@ .\ @(#)xdr.3n 2.2 88/08/03 4.0 RPCSRC; from 1.16 88/03/14 SMI -.\ $NetBSD: xdr.3,v 1.10 2003/09/07 16:22:21 wiz Exp $ +.\ $NetBSD: xdr.3,v 1.11 2009/04/11 20:14:35 joerg Exp $ .\ .Dd April 17, 2003 .Dt XDR 3 @@ -506,6 +506,7 @@ .Rs .%B eXternal Data Representation: Sun Technical Notes .Pp +.Re .Rs .%A Sun Microsystems, Inc., USC-ISI .%T XDR: External Data Representation Standard
CVS commit: src/lib/libc/db/man
Module Name:src Committed By: joerg Date: Sat Apr 11 20:39:15 UTC 2009 Modified Files: src/lib/libc/db/man: dbopen.3 Log Message: -width needs an argument, so provide one. To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/lib/libc/db/man/dbopen.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/libc/db/man/dbopen.3 diff -u src/lib/libc/db/man/dbopen.3:1.16 src/lib/libc/db/man/dbopen.3:1.17 --- src/lib/libc/db/man/dbopen.3:1.16 Tue Aug 31 17:11:33 2004 +++ src/lib/libc/db/man/dbopen.3 Sat Apr 11 20:39:15 2009 @@ -1,4 +1,4 @@ -.\ $NetBSD: dbopen.3,v 1.16 2004/08/31 17:11:33 uwe Exp $ +.\ $NetBSD: dbopen.3,v 1.17 2009/04/11 20:39:15 joerg Exp $ .\ .\ Copyright (c) 1990, 1993 .\ The Regents of the University of California. All rights reserved. @@ -401,7 +401,7 @@ routine has no effect and will always succeed. .Pp The flag value may be set to the following value: -.Bl -tag -width +.Bl -tag -width .Dv R_RECNOSYNC .It Dv R_RECNOSYNC If the .Dv DB_RECNO
CVS commit: src/share/man/man4/man4.vax
Module Name:src Committed By: joerg Date: Sat Apr 11 21:35:57 UTC 2009 Modified Files: src/share/man/man4/man4.vax: up.4 Log Message: Fix markup. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/share/man/man4/man4.vax/up.4 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man4/man4.vax/up.4 diff -u src/share/man/man4/man4.vax/up.4:1.14 src/share/man/man4/man4.vax/up.4:1.15 --- src/share/man/man4/man4.vax/up.4:1.14 Mon Mar 23 16:11:00 2009 +++ src/share/man/man4/man4.vax/up.4 Sat Apr 11 21:35:57 2009 @@ -1,4 +1,4 @@ -.\ $NetBSD: up.4,v 1.14 2009/03/23 16:11:00 joerg Exp $ +.\ $NetBSD: up.4,v 1.15 2009/04/11 21:35:57 joerg Exp $ .\ .\ Copyright (c) 1991, 1993, 19801988 .\ The Regents of the University of California. All rights reserved. @@ -104,80 +104,89 @@ .Xr physio 4 ) . The location and size (in 512 byte sectors) of the partitions for the above drives: -.Bl -column header diskx undefined length -.Tn CDC No 9762 partitions -.Sy disk start length cyls - hp?a 0 15884 0-99 - hp?b 16000 33440 100-309 - hp?c 0 131680 0-822 - hp?d 49600 15884 309-408 - hp?e 65440 55936 409-758 - hp?f 121440 10080 759-822 - hp?g 49600 82080 309-822 -.Pp -.Tn CDC No 9766 300M drive partitions -.Sy disk start length cyl - up?a 0 15884 0-26 - up?b 16416 33440 27-81 - up?c 0 500384 0-822 - up?d 341696 15884 562-588 - up?e 358112 55936 589-680 - up?f 414048 861760 681-822 - up?g 341696 158528 562-822 - up?h 49856 291346 82-561 -.Pp -.Tn AMPEX DM Ns No 980 partitions -.Sy disk start length cyls - hp?a 0 15884 0-99 - hp?b 16000 33440 100-309 - hp?c 0 131680 0-822 - hp?d 49600 15884 309-408 - hp?e 65440 55936 409-758 - hp?f 121440 10080 759-822 - hp?g 49600 82080 309-822 -.Pp -.Tn AMPEX No 9300 300M drive partitions -.Sy disk start length cyl - up?a 0 15884 0-26 - up?b 16416 33440 27-81 - up?c 0 495520 0-814 - up?d 341696 15884 562-588 - up?e 358112 55936 589-680 - up?f 414048 81312 681-814 - up?g 341696 153664 562-814 - up?h 49856 291346 82-561 -.Pp -.Tn AMPEX No Capricorn 330M drive partitions -.Sy disk start length cyl - hp?a 0 15884 0-31 - hp?b 16384 33440 32-97 - hp?c 0 524288 0-1023 - hp?d 342016 15884 668-699 - hp?e 358400 55936 700-809 - hp?f 414720 109408 810-1023 - hp?g 342016 182112 668-1023 - hp?h 50176 291346 98-667 -.Pp -.Tn FUJITSU No 160M drive partitions -.Sy disk start length cyl - up?a 0 15884 0-49 - up?b 16000 33440 50-154 - up?c 0 263360 0-822 - up?d 49600 15884 155-204 - up?e 65600 55936 205-379 - up?f 121600 141600 380-822 - up?g 49600 213600 155-822 -.Pp -.Tn FUJITSU No Eagle partitions -.Sy disk start length cyls - hp?a 0 15884 0-16 - hp?b 16320 66880 17-86 - hp?c 0 808320 0-841 - hp?d 375360 15884 391-407 - hp?e 391680 55936 408-727 - hp?f 698880 109248 728-841 - hp?g 375360 432768 391-841 - hp?h 83520 291346 87-390 +.Pp +.Bl -hang +.It Tn CDC No 9762 partitions +.Bl -column diskx undefined length xxx- -compact +.It Sy disk start length cyls +.It hp?a 0 15884 0-99 +.It hp?b 16000 33440 100-309 +.It hp?c 0 131680 0-822 +.It hp?d 49600 15884 309-408 +.It hp?e 65440 55936 409-758 +.It hp?f 121440 10080 759-822 +.It hp?g 49600 82080 309-822 +.El +.It Tn CDC No 9766 300M drive partitions +.Bl -column diskx undefined length xxx- -compact +.It Sy disk start length cyl +.It up?a 0 15884 0-26 +.It up?b 16416 33440 27-81 +.It up?c 0 500384 0-822 +.It up?d 341696 15884 562-588 +.It up?e 358112 55936 589-680 +.It up?f 414048 861760 681-822 +.It up?g 341696 158528 562-822 +.It up?h 49856 291346 82-561 +.El +.It Tn AMPEX DM Ns No 980 partitions +.Bl -column diskx undefined length xxx- -compact +.It Sy disk start length cyls +.It hp?a 0 15884 0-99 +.It hp?b 16000 33440 100-309 +.It hp?c 0 131680 0-822 +.It hp?d 49600 15884 309-408 +.It hp?e 65440 55936 409-758 +.It hp?f 121440 10080 759-822 +.It hp?g 49600 82080 309-822 +.El +.It Tn AMPEX No 9300 300M drive partitions +.Bl -column diskx undefined length xxx- -compact +.It Sy disk start length cyl +.It up?a 0 15884 0-26 +.It up?b 16416 33440 27-81 +.It up?c 0 495520 0-814 +.It up?d 341696 15884 562-588 +.It up?e 358112 55936 589-680 +.It up?f 414048 81312 681-814 +.It up?g 341696 153664 562-814 +.It up?h 49856 291346 82-561 +.El +.It Tn AMPEX No Capricorn 330M drive partitions +.Bl -column diskx undefined length xxx- -compact +.It Sy disk start length cyl +.It hp?a 0 15884 0-31 +.It hp?b 16384 33440 32-97 +.It hp?c 0 524288 0-1023 +.It hp?d 342016 15884 668-699 +.It hp?e 358400 55936 700-809 +.It hp?f 414720 109408 810-1023 +.It hp?g 342016 182112 668-1023 +.It hp?h 50176 291346 98-667 +.El +.It Tn FUJITSU No 160M drive partitions +.Bl -column diskx undefined length xxx- -compact +.It Sy disk start length cyl +.It up?a 0 15884 0-49 +.It up?b 16000 33440 50-154 +.It up?c 0 263360 0-822 +.It up?d 49600 15884 155-204 +.It up?e 65600 55936 205-379 +.It up?f 121600 141600 380-822 +.It up?g 49600 213600
CVS commit: src/share/man/man4/man4.vax
Module Name:src Committed By: joerg Date: Sat Apr 11 21:38:58 UTC 2009 Modified Files: src/share/man/man4/man4.vax: uda.4 Log Message: Break paragraph with driver rewrite. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/share/man/man4/man4.vax/uda.4 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man4/man4.vax/uda.4 diff -u src/share/man/man4/man4.vax/uda.4:1.12 src/share/man/man4/man4.vax/uda.4:1.13 --- src/share/man/man4/man4.vax/uda.4:1.12 Thu Aug 7 10:31:14 2003 +++ src/share/man/man4/man4.vax/uda.4 Sat Apr 11 21:38:58 2009 @@ -1,4 +1,4 @@ -.\ $NetBSD: uda.4,v 1.12 2003/08/07 10:31:14 agc Exp $ +.\ $NetBSD: uda.4,v 1.13 2009/04/11 21:38:58 joerg Exp $ .\ .\ Copyright (c) 1980, 1987, 1991, 1993 .\ The Regents of the University of California. All rights reserved. @@ -69,7 +69,7 @@ .Nm driver appeared in .Bx 4.2 . -.br +.Pp A new .Nm driver approach showed up in
CVS commit: src/share/man/man4/man4.vax
Module Name:src Committed By: joerg Date: Sat Apr 11 21:51:19 UTC 2009 Modified Files: src/share/man/man4/man4.vax: np.4 Log Message: Don't use .It in .Bd, don't use -filled either as the line breaks are important. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/share/man/man4/man4.vax/np.4 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man4/man4.vax/np.4 diff -u src/share/man/man4/man4.vax/np.4:1.13 src/share/man/man4/man4.vax/np.4:1.14 --- src/share/man/man4/man4.vax/np.4:1.13 Thu Aug 7 10:31:13 2003 +++ src/share/man/man4/man4.vax/np.4 Sat Apr 11 21:51:19 2009 @@ -1,4 +1,4 @@ -.\ $NetBSD: np.4,v 1.13 2003/08/07 10:31:13 agc Exp $ +.\ $NetBSD: np.4,v 1.14 2009/04/11 21:51:19 joerg Exp $ .\ .\ Copyright (c) 1986, 1991, 1993 .\ The Regents of the University of California. All rights reserved. @@ -99,10 +99,10 @@ address expected for the board was found to be bad. Probably indicates hardware problems with the board, as do the following: .Pp -.Bd -filled -offset indent -compact -.It NP100 Unit %d timed out! -.It NP100 Unit %d Failed diagnostics! -.It Status from CSR0: %x. +.Bd -literal -offset indent -compact +NP100 Unit %d timed out! +NP100 Unit %d Failed diagnostics! +Status from CSR0: %x. .Ed .Pp .It Panic from NP100 unit %d!
CVS commit: src/share/man/man4/man4.vax
Module Name:src Committed By: joerg Date: Sat Apr 11 21:53:01 UTC 2009 Modified Files: src/share/man/man4/man4.vax: dhu.4 hp.4 rl.4 ts.4 Log Message: New driver, new paragraph for HISTORY. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/share/man/man4/man4.vax/dhu.4 \ src/share/man/man4/man4.vax/hp.4 src/share/man/man4/man4.vax/ts.4 cvs rdiff -u -r1.5 -r1.6 src/share/man/man4/man4.vax/rl.4 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man4/man4.vax/dhu.4 diff -u src/share/man/man4/man4.vax/dhu.4:1.12 src/share/man/man4/man4.vax/dhu.4:1.13 --- src/share/man/man4/man4.vax/dhu.4:1.12 Thu Aug 7 10:31:10 2003 +++ src/share/man/man4/man4.vax/dhu.4 Sat Apr 11 21:53:01 2009 @@ -1,4 +1,4 @@ -.\ $NetBSD: dhu.4,v 1.12 2003/08/07 10:31:10 agc Exp $ +.\ $NetBSD: dhu.4,v 1.13 2009/04/11 21:53:01 joerg Exp $ .\ .\ Copyright (c) 1985, 1991, 1993 .\ The Regents of the University of California. All rights reserved. @@ -97,7 +97,7 @@ .Nm driver appeared in .Bx 4.3 . -.br +.Pp A new .Nm driver showed up in Index: src/share/man/man4/man4.vax/hp.4 diff -u src/share/man/man4/man4.vax/hp.4:1.12 src/share/man/man4/man4.vax/hp.4:1.13 --- src/share/man/man4/man4.vax/hp.4:1.12 Thu Aug 7 10:31:11 2003 +++ src/share/man/man4/man4.vax/hp.4 Sat Apr 11 21:53:01 2009 @@ -1,4 +1,4 @@ -.\ $NetBSD: hp.4,v 1.12 2003/08/07 10:31:11 agc Exp $ +.\ $NetBSD: hp.4,v 1.13 2009/04/11 21:53:01 joerg Exp $ .\ .\ Copyright (c) 1991, 1993, 19801988 .\ The Regents of the University of California. All rights reserved. @@ -151,7 +151,7 @@ .Nm driver appeared in .Bx 4.0 . -.br +.Pp A new .Nm driver showed up in Index: src/share/man/man4/man4.vax/ts.4 diff -u src/share/man/man4/man4.vax/ts.4:1.12 src/share/man/man4/man4.vax/ts.4:1.13 --- src/share/man/man4/man4.vax/ts.4:1.12 Thu Aug 7 10:31:14 2003 +++ src/share/man/man4/man4.vax/ts.4 Sat Apr 11 21:53:01 2009 @@ -1,4 +1,4 @@ -.\ $NetBSD: ts.4,v 1.12 2003/08/07 10:31:14 agc Exp $ +.\ $NetBSD: ts.4,v 1.13 2009/04/11 21:53:01 joerg Exp $ .\ .\ Copyright (c) 1980, 1991, 1993 .\ The Regents of the University of California. All rights reserved. @@ -89,7 +89,7 @@ .Nm driver appeared in .Bx 4.1 . -.br +.Pp A new .Nm driver showed up in Index: src/share/man/man4/man4.vax/rl.4 diff -u src/share/man/man4/man4.vax/rl.4:1.5 src/share/man/man4/man4.vax/rl.4:1.6 --- src/share/man/man4/man4.vax/rl.4:1.5 Thu Aug 7 10:31:13 2003 +++ src/share/man/man4/man4.vax/rl.4 Sat Apr 11 21:53:01 2009 @@ -1,4 +1,4 @@ -.\ $NetBSD: rl.4,v 1.5 2003/08/07 10:31:13 agc Exp $ +.\ $NetBSD: rl.4,v 1.6 2009/04/11 21:53:01 joerg Exp $ .\ .\ Copyright (c) 1980, 1991, 1993 .\ The Regents of the University of California. All rights reserved. @@ -98,7 +98,7 @@ The .Nm driver has been around nearly forever. -.br +.Pp A complete new .Nm driver showed up in
CVS commit: src/share/man/man4/man4.vax
Module Name:src Committed By: joerg Date: Sat Apr 11 21:54:03 UTC 2009 Modified Files: src/share/man/man4/man4.vax: tu.4 Log Message: Don't break lines after tag in .Bl -diag like other drivers do. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/share/man/man4/man4.vax/tu.4 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man4/man4.vax/tu.4 diff -u src/share/man/man4/man4.vax/tu.4:1.14 src/share/man/man4/man4.vax/tu.4:1.15 --- src/share/man/man4/man4.vax/tu.4:1.14 Thu Aug 7 10:31:14 2003 +++ src/share/man/man4/man4.vax/tu.4 Sat Apr 11 21:54:03 2009 @@ -1,4 +1,4 @@ -.\ $NetBSD: tu.4,v 1.14 2003/08/07 10:31:14 agc Exp $ +.\ $NetBSD: tu.4,v 1.15 2009/04/11 21:54:03 joerg Exp $ .\ .\ Copyright (c) 1980, 1991, 1993 .\ The Regents of the University of California. All rights reserved. @@ -72,7 +72,6 @@ .Sh DIAGNOSTICS .Bl -diag .It tu%d: lost recv interrupt. -.br A timer watching the controller detected no interrupt for an extended period while an operation was outstanding. This usually indicates that one or more receiver interrupts
CVS commit: src/lib/libedit
Module Name:src Committed By: wiz Date: Sat Apr 11 22:17:52 UTC 2009 Modified Files: src/lib/libedit: editrc.5 Log Message: Drop trailing whitespace. To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 src/lib/libedit/editrc.5 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/libedit/editrc.5 diff -u src/lib/libedit/editrc.5:1.23 src/lib/libedit/editrc.5:1.24 --- src/lib/libedit/editrc.5:1.23 Sat Apr 11 20:53:15 2009 +++ src/lib/libedit/editrc.5 Sat Apr 11 22:17:52 2009 @@ -1,4 +1,4 @@ -.\ $NetBSD: editrc.5,v 1.23 2009/04/11 20:53:15 joerg Exp $ +.\ $NetBSD: editrc.5,v 1.24 2009/04/11 22:17:52 wiz Exp $ .\ .\ Copyright (c) 1997-2000 The NetBSD Foundation, Inc. .\ All rights reserved. @@ -212,7 +212,7 @@ .Nm editline functionality in a program. .It Ic history Ar list | Ar size Dv n | Ar unique Dv n -The +The .Ar list command lists all entries in the history. The
CVS commit: src/share/man/man4/man4.vax
Module Name:src Committed By: wiz Date: Sat Apr 11 22:20:07 UTC 2009 Modified Files: src/share/man/man4/man4.vax: up.4 Log Message: New sentence, new line. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/share/man/man4/man4.vax/up.4 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man4/man4.vax/up.4 diff -u src/share/man/man4/man4.vax/up.4:1.15 src/share/man/man4/man4.vax/up.4:1.16 --- src/share/man/man4/man4.vax/up.4:1.15 Sat Apr 11 21:35:57 2009 +++ src/share/man/man4/man4.vax/up.4 Sat Apr 11 22:20:07 2009 @@ -1,4 +1,4 @@ -.\ $NetBSD: up.4,v 1.15 2009/04/11 21:35:57 joerg Exp $ +.\ $NetBSD: up.4,v 1.16 2009/04/11 22:20:07 wiz Exp $ .\ .\ Copyright (c) 1991, 1993, 19801988 .\ The Regents of the University of California. All rights reserved. @@ -67,8 +67,8 @@ for devices which may never be installed. .Sh DISK SUPPORT The driver interrogates the controller's holding register -to determine the type of drive attached. The driver recognizes -seven different drives: +to determine the type of drive attached. +The driver recognizes seven different drives: .Tn CDC 9762, .Tn CDC @@ -88,12 +88,12 @@ .Sq Li up and .Sq Li rup -for the block and character files respectively. The second -component of the name, a drive unit number in the range of zero to -seven, is represented by a +for the block and character files respectively. +The second component of the name, a drive unit number in the range +of zero to seven, is represented by a .Sq Li \? -in the disk layouts below. The last component of the name, the -file system partition, is +in the disk layouts below. +The last component of the name, the file system partition, is designated by a letter from .Sq Li a to @@ -216,33 +216,36 @@ .Pp .It up%d: write locked. The write protect switch was set on the drive -when a write was attempted. The write operation is not recoverable. +when a write was attempted. +The write operation is not recoverable. .Pp .It up%d: not ready. The drive was spun down or off line when it was -accessed. The i/o operation is not recoverable. +accessed. +The I/O operation is not recoverable. .Pp .It up%d: not ready (flakey). The drive was not ready, but after printing the message about being not ready (which takes a fraction -of a second) was ready. The operation is recovered if no further -errors occur. +of a second) was ready. +The operation is recovered if no further errors occur. .Pp .It up%d%c: soft ecc reading fsbn %d[-%d]. A recoverable ECC error occurred on the specified sector of the specified disk partition. This happens normally -a few times a week. If it happens more frequently than -this the sectors where the errors are occurring should be checked to see -if certain cylinders on the pack, spots on the carriage of the drive -or heads are indicated. +a few times a week. +If it happens more frequently than this the sectors where the errors +are occurring should be checked to see if certain cylinders on the +pack, spots on the carriage of the drive or heads are indicated. .Pp .It sc%d: lost interrupt. A timer watching the controller detecting no interrupt for an extended period while an operation was outstanding. -This indicates a hardware or software failure. There is currently a -hardware/software problem with spinning down drives while they are -being accessed which causes this error to occur. +This indicates a hardware or software failure. +There is currently a hardware/software problem with spinning down +drives while they are being accessed which causes this error to +occur. The error causes a .Tn UNIBUS reset, and retry of the pending operations.
CVS commit: src/share/man/man4/man4.vax
Module Name:src Committed By: wiz Date: Sat Apr 11 22:20:43 UTC 2009 Modified Files: src/share/man/man4/man4.vax: uda.4 Log Message: New sentence, new line. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/share/man/man4/man4.vax/uda.4 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man4/man4.vax/uda.4 diff -u src/share/man/man4/man4.vax/uda.4:1.13 src/share/man/man4/man4.vax/uda.4:1.14 --- src/share/man/man4/man4.vax/uda.4:1.13 Sat Apr 11 21:38:58 2009 +++ src/share/man/man4/man4.vax/uda.4 Sat Apr 11 22:20:43 2009 @@ -1,4 +1,4 @@ -.\ $NetBSD: uda.4,v 1.13 2009/04/11 21:38:58 joerg Exp $ +.\ $NetBSD: uda.4,v 1.14 2009/04/11 22:20:43 wiz Exp $ .\ .\ Copyright (c) 1980, 1987, 1991, 1993 .\ The Regents of the University of California. All rights reserved. @@ -44,8 +44,8 @@ .Sh DESCRIPTION The .Nm -driver is for UNIBUS -disk controllers that use MSCP. Among these controllers are: +driver is for UNIBUS disk controllers that use MSCP. +Among these controllers are: .Pp .Bl -tag -width -offset indent -compact .It DEC UDA50 UNIBUS ctlr
CVS commit: src/share/man/man4/man4.vax
Module Name:src Committed By: wiz Date: Sat Apr 11 22:21:22 UTC 2009 Modified Files: src/share/man/man4/man4.vax: rl.4 Log Message: New sentence, new line. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/share/man/man4/man4.vax/rl.4 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man4/man4.vax/rl.4 diff -u src/share/man/man4/man4.vax/rl.4:1.6 src/share/man/man4/man4.vax/rl.4:1.7 --- src/share/man/man4/man4.vax/rl.4:1.6 Sat Apr 11 21:53:01 2009 +++ src/share/man/man4/man4.vax/rl.4 Sat Apr 11 22:21:22 2009 @@ -1,4 +1,4 @@ -.\ $NetBSD: rl.4,v 1.6 2009/04/11 21:53:01 joerg Exp $ +.\ $NetBSD: rl.4,v 1.7 2009/04/11 22:21:22 wiz Exp $ .\ .\ Copyright (c) 1980, 1991, 1993 .\ The Regents of the University of California. All rights reserved. @@ -71,8 +71,8 @@ The current command to the disk did not complete within the timeout period. This may be due to hardware failure or a heavily loaded UNIBUS. .It rl%d: read data CRC -The controller detected a CRC error on data read from the disk. Probably -a bad disk pack. +The controller detected a CRC error on data read from the disk. +Probably a bad disk pack. .It rl%d: header CRC The controller detected a CRC error on header data read from the disk. Probably a bad disk pack. @@ -81,13 +81,14 @@ not overflow/underflow the internal FIFO, probably because a heavily loaded UNIBUS or mis-ordered UNIBUS devices. .It rl%d: header not found -The requested sector was not found before the timer expired. If this error -is the only error then it may indicate a software bug. +The requested sector was not found before the timer expired. +If this error is the only error then it may indicate a software bug. .It rl%d: non-existent memory -The controller tried to do DMA to/from a non-mapped address. This is a -software bug. +The controller tried to do DMA to/from a non-mapped address. +This is a software bug. .It rl%d: memory parity error -The host memory data sent had a parity error. This is a hardware failure. +The host memory data sent had a parity error. +This is a hardware failure. .El .Sh SEE ALSO .Xr hp 4 ,
CVS commit: src/share/man/man4/man4.vax
Module Name:src Committed By: wiz Date: Sat Apr 11 22:21:45 UTC 2009 Modified Files: src/share/man/man4/man4.vax: tu.4 Log Message: New sentence, new line. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/share/man/man4/man4.vax/tu.4 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man4/man4.vax/tu.4 diff -u src/share/man/man4/man4.vax/tu.4:1.15 src/share/man/man4/man4.vax/tu.4:1.16 --- src/share/man/man4/man4.vax/tu.4:1.15 Sat Apr 11 21:54:03 2009 +++ src/share/man/man4/man4.vax/tu.4 Sat Apr 11 22:21:44 2009 @@ -1,4 +1,4 @@ -.\ $NetBSD: tu.4,v 1.15 2009/04/11 21:54:03 joerg Exp $ +.\ $NetBSD: tu.4,v 1.16 2009/04/11 22:21:44 wiz Exp $ .\ .\ Copyright (c) 1980, 1991, 1993 .\ The Regents of the University of California. All rights reserved. @@ -62,8 +62,8 @@ .Tn TU-58 on an 11/750 uses the Radial Serial Protocol .Pq Tn RSP -to communicate with the cpu over a serial line. This -protocol is inherently unreliable as it has no flow +to communicate with the cpu over a serial line. +This protocol is inherently unreliable as it has no flow control measures built in. .Sh FILES .Bl -tag -width /dev/tu0xx -compact
CVS commit: src/share/man/man4/man4.vax
Module Name:src Committed By: wiz Date: Sat Apr 11 22:22:31 UTC 2009 Modified Files: src/share/man/man4/man4.vax: hk.4 Log Message: New sentence, new line. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/share/man/man4/man4.vax/hk.4 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man4/man4.vax/hk.4 diff -u src/share/man/man4/man4.vax/hk.4:1.14 src/share/man/man4/man4.vax/hk.4:1.15 --- src/share/man/man4/man4.vax/hk.4:1.14 Sat Apr 11 21:56:01 2009 +++ src/share/man/man4/man4.vax/hk.4 Sat Apr 11 22:22:31 2009 @@ -1,4 +1,4 @@ -.\ $NetBSD: hk.4,v 1.14 2009/04/11 21:56:01 joerg Exp $ +.\ $NetBSD: hk.4,v 1.15 2009/04/11 22:22:31 wiz Exp $ .\ .\ Copyright (c) 1980, 1991, 1993 .\ The Regents of the University of California. All rights reserved. @@ -66,12 +66,12 @@ .Sq Li hk and .Sq Li rhk -for the block and character files respectively. The second -component of the name, a drive unit number in the range of zero to -seven, is represented by a +for the block and character files respectively. +The second component of the name, a drive unit number in the range +of zero to seven, is represented by a .Sq Li \? -in the disk layouts below. The last component is the file system partition -which is designated +in the disk layouts below. +The last component is the file system partition which is designated by a letter from .Sq Li a to @@ -138,17 +138,19 @@ .Pp .It rk%d: write locked. The write protect switch was set on the drive -when a write was attempted. The write operation is not recoverable. +when a write was attempted. +The write operation is not recoverable. .Pp .It rk%d: not ready. The drive was spun down or off line when it was -accessed. The i/o operation is not recoverable. +accessed. +The I/O operation is not recoverable. .Pp .It rk%d: not ready (came back!). The drive was not ready, but after printing the message about being not ready (which takes a fraction -of a second) was ready. The operation is recovered if no further -errors occur. +of a second) was ready. +The operation is recovered if no further errors occur. .Pp .It rk%d%c: soft ecc reading fsbn %d[-%d]. A recoverable @@ -156,17 +158,18 @@ error occurred on the specified sector(s) in the specified disk partition. This happens normally -a few times a week. If it happens more frequently than -this the sectors where the errors are occurring should be checked to see -if certain cylinders on the pack, spots on the carriage of the drive -or heads are indicated. +a few times a week. +If it happens more frequently than this the sectors where the errors +are occurring should be checked to see if certain cylinders on the +pack, spots on the carriage of the drive or heads are indicated. .Pp .It hk%d: lost interrupt. A timer watching the controller detected no interrupt for an extended period while an operation was outstanding. -This indicates a hardware or software failure. There is currently a -hardware/software problem with spinning down drives while they are -being accessed which causes this error to occur. +This indicates a hardware or software failure. +There is currently a hardware/software problem with spinning down +drives while they are being accessed which causes this error to +occur. The error causes a .Tn UNIBUS reset, and retry of the pending operations.
CVS commit: [netbsd-5] src/sys/fs/tmpfs
Module Name:src Committed By: snj Date: Sun Apr 12 02:22:24 UTC 2009 Modified Files: src/sys/fs/tmpfs [netbsd-5]: tmpfs_subr.c Log Message: Pull up following revision(s) (requested by markd in ticket #689): sys/fs/tmpfs/tmpfs_subr.c: revision 1.50 For chown make auth checks consistent with UFS. Fixes PR kern/40933. To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.48.6.1 src/sys/fs/tmpfs/tmpfs_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/fs/tmpfs/tmpfs_subr.c diff -u src/sys/fs/tmpfs/tmpfs_subr.c:1.48 src/sys/fs/tmpfs/tmpfs_subr.c:1.48.6.1 --- src/sys/fs/tmpfs/tmpfs_subr.c:1.48 Thu Jun 19 19:03:44 2008 +++ src/sys/fs/tmpfs/tmpfs_subr.c Sun Apr 12 02:22:24 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: tmpfs_subr.c,v 1.48 2008/06/19 19:03:44 christos Exp $ */ +/* $NetBSD: tmpfs_subr.c,v 1.48.6.1 2009/04/12 02:22:24 snj Exp $ */ /* * Copyright (c) 2005, 2006, 2007 The NetBSD Foundation, Inc. @@ -35,7 +35,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: tmpfs_subr.c,v 1.48 2008/06/19 19:03:44 christos Exp $); +__KERNEL_RCSID(0, $NetBSD: tmpfs_subr.c,v 1.48.6.1 2009/04/12 02:22:24 snj Exp $); #include sys/param.h #include sys/dirent.h @@ -1098,7 +1098,7 @@ * several other file systems. Shouldn't this be centralized * somewhere? */ if ((kauth_cred_geteuid(cred) != node-tn_uid || uid != node-tn_uid || - (gid != node-tn_gid !(kauth_cred_getegid(cred) == node-tn_gid || + (gid != node-tn_gid !(kauth_cred_getegid(cred) == gid || (kauth_cred_ismember_gid(cred, gid, ismember) == 0 ismember ((error = kauth_authorize_generic(cred, KAUTH_GENERIC_ISSUSER, NULL)) != 0))
CVS commit: [netbsd-5] src/lib/libpuffs
Module Name:src Committed By: snj Date: Sun Apr 12 02:24:16 UTC 2009 Modified Files: src/lib/libpuffs [netbsd-5]: puffs_ops.3 Log Message: Pull up following revision(s) (requested by joerg in ticket #691): lib/libpuffs/puffs_ops.3: revision 1.24 Fix markup. To generate a diff of this commit: cvs rdiff -u -r1.21.4.1 -r1.21.4.2 src/lib/libpuffs/puffs_ops.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/libpuffs/puffs_ops.3 diff -u src/lib/libpuffs/puffs_ops.3:1.21.4.1 src/lib/libpuffs/puffs_ops.3:1.21.4.2 --- src/lib/libpuffs/puffs_ops.3:1.21.4.1 Tue Feb 24 03:45:56 2009 +++ src/lib/libpuffs/puffs_ops.3 Sun Apr 12 02:24:16 2009 @@ -1,4 +1,4 @@ -.\ $NetBSD: puffs_ops.3,v 1.21.4.1 2009/02/24 03:45:56 snj Exp $ +.\ $NetBSD: puffs_ops.3,v 1.21.4.2 2009/04/12 02:24:16 snj Exp $ .\ .\ Copyright (c) 2007 Antti Kantee. All rights reserved. .\ @@ -563,7 +563,7 @@ and .Fa pcn_targ , respectively. -.B If +.Em If the target node already exists, it is specified by .Fa targ and must be replaced atomically.
CVS commit: [netbsd-5] src/lib/libc/rpc
Module Name:src Committed By: snj Date: Sun Apr 12 02:25:26 UTC 2009 Modified Files: src/lib/libc/rpc [netbsd-5]: rpc.3 Log Message: Pull up following revision(s) (requested by joerg in ticket #692): lib/libc/rpc/rpc.3: revision 1.21 Fix markup. To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.20.24.1 src/lib/libc/rpc/rpc.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/libc/rpc/rpc.3 diff -u src/lib/libc/rpc/rpc.3:1.20 src/lib/libc/rpc/rpc.3:1.20.24.1 --- src/lib/libc/rpc/rpc.3:1.20 Sat Sep 16 08:29:08 2006 +++ src/lib/libc/rpc/rpc.3 Sun Apr 12 02:25:25 2009 @@ -1,6 +1,6 @@ .\ @(#)rpc.3n 1.31 93/08/31 SMI; from SVr4 .\ Copyright 1989 ATT -.\ $NetBSD: rpc.3,v 1.20 2006/09/16 08:29:08 yamt Exp $ +.\ $NetBSD: rpc.3,v 1.20.24.1 2009/04/12 02:25:25 snj Exp $ .Dd May 7, 1993 .Dt RPC 3 .Os @@ -104,7 +104,7 @@ .El .Pp If -.I nettype +.Fa nettype is .Dv NULL , it defaults to @@ -312,178 +312,92 @@ .Bl -column authunix_create_default() rpc_clnt_create(3) .It Em RPC Routine Ta Em Manual Reference Page .Pp -.It Fn auth_destroy Ta -.Xr rpc_clnt_auth 3 , -.It Fn authdes_create Ta -.Xr rpc_soc 3 , -.It Fn authnone_create Ta -.Xr rpc_clnt_auth 3 , -.It Fn authsys_create Ta -.Xr rpc_clnt_auth 3 , -.It Fn authsys_create_default Ta -.Xr rpc_clnt_auth 3 , -.It Fn authunix_create Ta -.Xr rpc_soc 3 , -.It Fn authunix_create_default Ta -.Xr rpc_soc 3 , -.It Fn callrpc Ta -.Xr rpc_soc 3 , -.It Fn clnt_broadcast Ta -.Xr rpc_soc 3 , -.It Fn clnt_call Ta -.Xr rpc_clnt_calls 3 , -.It Fn clnt_control Ta -.Xr rpc_clnt_create 3 , -.It Fn clnt_create Ta -.Xr rpc_clnt_create 3 , -.It Fn clnt_destroy Ta -.Xr rpc_clnt_create 3 , -.It Fn clnt_dg_create Ta -.Xr rpc_clnt_create 3 , -.It Fn clnt_freeres Ta -.Xr rpc_clnt_calls 3 , -.It Fn clnt_geterr Ta -.Xr rpc_clnt_calls 3 , -.It Fn clnt_pcreateerror Ta -.Xr rpc_clnt_create 3 , -.It Fn clnt_perrno Ta -.Xr rpc_clnt_calls 3 , -.It Fn clnt_perror Ta -.Xr rpc_clnt_calls 3 , -.It Fn clnt_raw_create Ta -.Xr rpc_clnt_create 3 , -.It Fn clnt_spcreateerror Ta -.Xr rpc_clnt_create 3 , -.It Fn clnt_sperrno Ta -.Xr rpc_clnt_calls 3 , -.It Fn clnt_sperror Ta -.Xr rpc_clnt_calls 3 , -.It Fn clnt_tli_create Ta -.Xr rpc_clnt_create 3 , -.It Fn clnt_tp_create Ta -.Xr rpc_clnt_create 3 , -.It Fn clnt_udpcreate Ta -.Xr rpc_soc 3 , -.It Fn clnt_vc_create Ta -.Xr rpc_clnt_create 3 , -.It Fn clntraw_create Ta -.Xr rpc_soc 3 , -.It Fn clnttcp_create Ta -.Xr rpc_soc 3 , -.It Fn clntudp_bufcreate Ta -.Xr rpc_soc 3 , -.It Fn get_myaddress Ta -.Xr rpc_soc 3 , -.It Fn pmap_getmaps Ta -.Xr rpc_soc 3 , -.It Fn pmap_getport Ta -.Xr rpc_soc 3 , -.It Fn pmap_rmtcall Ta -.Xr rpc_soc 3 , -.It Fn pmap_set Ta -.Xr rpc_soc 3 , -.It Fn pmap_unset Ta -.Xr rpc_soc 3 , -.It Fn registerrpc Ta -.Xr rpc_soc 3 , -.It Fn rpc_broadcast Ta -.Xr rpc_clnt_calls 3 , -.It Fn rpc_broadcast_exp Ta -.Xr rpc_clnt_calls 3 , -.It Fn rpc_call Ta -.Xr rpc_clnt_calls 3 , -.It Fn rpc_reg Ta -.Xr rpc_svc_calls 3 , -.It Fn svc_create Ta -.Xr rpc_svc_create 3 , -.It Fn svc_destroy Ta -.Xr rpc_svc_create 3 , -.It Fn svc_dg_create Ta -.Xr rpc_svc_create 3 , -.It Fn svc_dg_enablecache Ta -.Xr rpc_svc_calls 3 , -.It Fn svc_fd_create Ta -.Xr rpc_svc_create 3 , -.It Fn svc_fds Ta -.Xr rpc_soc 3 , -.It Fn svc_freeargs Ta -.Xr rpc_svc_reg 3 , -.It Fn svc_getargs Ta -.Xr rpc_svc_reg 3 , -.It Fn svc_getcaller Ta -.Xr rpc_soc 3 , -.It Fn svc_getreq Ta -.Xr rpc_soc 3 , -.It Fn svc_getreqset Ta -.Xr rpc_svc_calls 3 , -.It Fn svc_getrpccaller Ta -.Xr rpc_svc_calls 3 , -.It Fn svc_kerb_reg Ta -.Xr kerberos_rpc 3 , -.It Fn svc_raw_create Ta -.Xr rpc_svc_create 3 , -.It Fn svc_reg Ta -.Xr rpc_svc_calls 3 , -.It Fn svc_register Ta -.Xr rpc_soc 3 , -.It Fn svc_run Ta -.Xr rpc_svc_reg 3 , -.It Fn svc_sendreply Ta -.Xr rpc_svc_reg 3 , -.It Fn svc_tli_create Ta -.Xr rpc_svc_create 3 , -.It Fn svc_tp_create Ta -.Xr rpc_svc_create 3 , -.It Fn svc_unreg Ta -.Xr rpc_svc_calls 3 , -.It Fn svc_unregister Ta -.Xr rpc_soc 3 , -.It Fn svc_vc_create Ta -.Xr rpc_svc_create 3 , -.It Fn svcerr_auth Ta -.Xr rpc_svc_err 3 , -.It Fn svcerr_decode Ta -.Xr rpc_svc_err 3 , -.It Fn svcerr_noproc Ta -.Xr rpc_svc_err 3 , -.It Fn svcerr_noprog Ta -.Xr rpc_svc_err 3 , -.It Fn svcerr_progvers Ta -.Xr rpc_svc_err 3 , -.It Fn svcerr_systemerr Ta -.Xr rpc_svc_err 3 , -.It Fn svcerr_weakauth Ta -.Xr rpc_svc_err 3 , -.It Fn svcfd_create Ta -.Xr rpc_soc 3 , -.It Fn svcraw_create Ta -.Xr rpc_soc 3 , -.It Fn svctcp_create Ta -.Xr rpc_soc 3 , -.It Fn svcudp_bufcreate Ta -.Xr rpc_soc 3 , -.It Fn svcudp_create Ta -.Xr rpc_soc 3 , -.It Fn xdr_accepted_reply Ta -.Xr rpc_xdr 3 , -.It Fn xdr_authsys_parms Ta -.Xr rpc_xdr 3 , -.It Fn xdr_authunix_parms Ta -.Xr rpc_soc 3 , -.It Fn xdr_callhdr Ta -.Xr rpc_xdr 3 , -.It Fn xdr_callmsg Ta -.Xr rpc_xdr 3 , -.It Fn xdr_opaque_auth Ta -.Xr rpc_xdr 3 , -.It Fn xdr_rejected_reply Ta -.Xr rpc_xdr 3 , -.It Fn xdr_replymsg Ta
CVS commit: [netbsd-5] src/lib/libc/rpc
Module Name:src Committed By: snj Date: Sun Apr 12 02:26:46 UTC 2009 Modified Files: src/lib/libc/rpc [netbsd-5]: rpc_xdr.3 Log Message: Pull up following revision(s) (requested by joerg in ticket #693): lib/libc/rpc/rpc_xdr.3: revision 1.8 Fix markup. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.7.38.1 src/lib/libc/rpc/rpc_xdr.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/libc/rpc/rpc_xdr.3 diff -u src/lib/libc/rpc/rpc_xdr.3:1.7 src/lib/libc/rpc/rpc_xdr.3:1.7.38.1 --- src/lib/libc/rpc/rpc_xdr.3:1.7 Wed Apr 16 13:34:43 2003 +++ src/lib/libc/rpc/rpc_xdr.3 Sun Apr 12 02:26:46 2009 @@ -2,7 +2,7 @@ .\ Copyright 1989 ATT .\ @(#)rpc_xdr.new 1.1 89/04/06 SMI; .\ Copyright (c) 1988 Sun Microsystems, Inc. - All Rights Reserved. -.\ $NetBSD: rpc_xdr.3,v 1.7 2003/04/16 13:34:43 wiz Exp $ +.\ $NetBSD: rpc_xdr.3,v 1.7.38.1 2009/04/12 02:26:46 snj Exp $ .Dd May 3, 1993 .Dt RPC_XDR 3 .Os @@ -60,9 +60,7 @@ It includes machine-name, uid, gid list, etc. .Pp .It Fn xdr_callhdr -Used for describing -.SM RPC -call header messages. +Used for describing RPC call header messages. It encodes the static part of the call message header in the XDR language format. It includes information such as transaction
CVS commit: [netbsd-5] src/lib/libc/rpc
Module Name:src Committed By: snj Date: Sun Apr 12 02:27:36 UTC 2009 Modified Files: src/lib/libc/rpc [netbsd-5]: rpcbind.3 Log Message: Pull up following revision(s) (requested by joerg in ticket #693): lib/libc/rpc/rpcbind.3: revision 1.11 Fix markup. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.10.26.1 src/lib/libc/rpc/rpcbind.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/libc/rpc/rpcbind.3 diff -u src/lib/libc/rpc/rpcbind.3:1.10 src/lib/libc/rpc/rpcbind.3:1.10.26.1 --- src/lib/libc/rpc/rpcbind.3:1.10 Sat Dec 3 15:16:19 2005 +++ src/lib/libc/rpc/rpcbind.3 Sun Apr 12 02:27:36 2009 @@ -1,7 +1,7 @@ .\ @(#)rpcbind.3n 1.25 93/05/07 SMI; from SVr4 .\ Copyright 1989 ATT .\ Copyright (c) 1988 Sun Microsystems, Inc. - All Rights Reserved. -.\ $NetBSD: rpcbind.3,v 1.10 2005/12/03 15:16:19 yamt Exp $ +.\ $NetBSD: rpcbind.3,v 1.10.26.1 2009/04/12 02:27:36 snj Exp $ .Dd December 4, 2005 .Dt RPCBIND 3 .Os @@ -125,7 +125,7 @@ This procedure should normally be used for a ``ping'' and nothing else. This routine allows programs to do lookup and call, all in one step. -.IP +.Pp Note: Even if the server is not running .Fn rpcb_rmtcall does not return any error messages to the caller. @@ -156,7 +156,7 @@ .Dv FALSE otherwise. (See also -.B svc_reg(\|) +.Fn svc_reg in .Xr rpc_svc_calls 3 . If there already exists such an entry with rpcbind,
CVS commit: [netbsd-5] src/lib/libutil
Module Name:src Committed By: snj Date: Sun Apr 12 02:29:41 UTC 2009 Modified Files: src/lib/libutil [netbsd-5]: sockaddr_snprintf.3 Log Message: Pull up following revision(s) (requested by 694): lib/libutil/sockaddr_snprintf.3: revision 1.7 Fix markup. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.6.6.1 src/lib/libutil/sockaddr_snprintf.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/libutil/sockaddr_snprintf.3 diff -u src/lib/libutil/sockaddr_snprintf.3:1.6 src/lib/libutil/sockaddr_snprintf.3:1.6.6.1 --- src/lib/libutil/sockaddr_snprintf.3:1.6 Wed Apr 30 13:10:52 2008 +++ src/lib/libutil/sockaddr_snprintf.3 Sun Apr 12 02:29:40 2009 @@ -1,4 +1,4 @@ -.\ $NetBSD: sockaddr_snprintf.3,v 1.6 2008/04/30 13:10:52 martin Exp $ +.\ $NetBSD: sockaddr_snprintf.3,v 1.6.6.1 2009/04/12 02:29:40 snj Exp $ .\ .\ Copyright (c) 2004 The NetBSD Foundation, Inc. .\ All rights reserved. @@ -104,7 +104,7 @@ For .Dv AF_INET and -.AF_INET6 +.Dv AF_INET6 this is the hostname associated with the address. For all other address families, it is the same as the .Dq a @@ -176,7 +176,7 @@ For .Dv AF_INET and -.DV AF_INET6 +.Dv AF_INET6 addresses .Fn sockaddr_snprintf returns \-1 if the
CVS commit: [netbsd-5] src/lib/libc/stdlib
Module Name:src Committed By: snj Date: Sun Apr 12 02:31:34 UTC 2009 Modified Files: src/lib/libc/stdlib [netbsd-5]: tsearch.3 Log Message: Pull up following revision(s) (requested by joerg in ticket #695): lib/libc/stdlib/tsearch.3: revision 1.10 Fix markup. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.9.12.1 src/lib/libc/stdlib/tsearch.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/libc/stdlib/tsearch.3 diff -u src/lib/libc/stdlib/tsearch.3:1.9 src/lib/libc/stdlib/tsearch.3:1.9.12.1 --- src/lib/libc/stdlib/tsearch.3:1.9 Fri Dec 7 07:33:13 2007 +++ src/lib/libc/stdlib/tsearch.3 Sun Apr 12 02:31:34 2009 @@ -1,4 +1,4 @@ -.\ $NetBSD: tsearch.3,v 1.9 2007/12/07 07:33:13 simonb Exp $ +.\ $NetBSD: tsearch.3,v 1.9.12.1 2009/04/12 02:31:34 snj Exp $ .\ Copyright (c) 1997 Todd C. Miller todd.mil...@courtesan.com .\ All rights reserved. .\ @@ -86,7 +86,7 @@ .Pp .Fn twalk walks the binary search tree rooted in -.fa root +.Va root and calls the function .Fa action on each node.
CVS commit: [netbsd-5] src/share/man/man4/man4.vax
Module Name:src Committed By: snj Date: Sun Apr 12 02:33:28 UTC 2009 Modified Files: src/share/man/man4/man4.vax [netbsd-5]: up.4 Log Message: Pull up following revision(s) (requested by joerg in ticket #696): share/man/man4/man4.vax/up.4: revision 1.15 Fix markup. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.13.40.1 src/share/man/man4/man4.vax/up.4 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man4/man4.vax/up.4 diff -u src/share/man/man4/man4.vax/up.4:1.13 src/share/man/man4/man4.vax/up.4:1.13.40.1 --- src/share/man/man4/man4.vax/up.4:1.13 Thu Aug 7 10:31:14 2003 +++ src/share/man/man4/man4.vax/up.4 Sun Apr 12 02:33:28 2009 @@ -1,4 +1,4 @@ -.\ $NetBSD: up.4,v 1.13 2003/08/07 10:31:14 agc Exp $ +.\ $NetBSD: up.4,v 1.13.40.1 2009/04/12 02:33:28 snj Exp $ .\ .\ Copyright (c) 1991, 1993, 19801988 .\ The Regents of the University of California. All rights reserved. @@ -104,80 +104,89 @@ .Xr physio 4 ) . The location and size (in 512 byte sectors) of the partitions for the above drives: -.Bl -column header diskx undefined length -.Tn CDC No 9762 partitions -.Sy disk start length cyls - hp?a 0 15884 0-99 - hp?b 16000 33440 100-309 - hp?c 0 131680 0-822 - hp?d 49600 15884 309-408 - hp?e 65440 55936 409-758 - hp?f 121440 10080 759-822 - hp?g 49600 82080 309-822 -.Pp -.Tn CDC No 9766 300M drive partitions -.Sy disk start length cyl - up?a 0 15884 0-26 - up?b 16416 33440 27-81 - up?c 0 500384 0-822 - up?d 341696 15884 562-588 - up?e 358112 55936 589-680 - up?f 414048 861760 681-822 - up?g 341696 158528 562-822 - up?h 49856 291346 82-561 -.Pp -.Tn AMPEX DM Ns No 980 partitions -.Sy disk start length cyls - hp?a 0 15884 0-99 - hp?b 16000 33440 100-309 - hp?c 0 131680 0-822 - hp?d 49600 15884 309-408 - hp?e 65440 55936 409-758 - hp?f 121440 10080 759-822 - hp?g 49600 82080 309-822 -.Pp -.Tn AMPEX No 9300 300M drive partitions -.Sy disk start length cyl - up?a 0 15884 0-26 - up?b 16416 33440 27-81 - up?c 0 495520 0-814 - up?d 341696 15884 562-588 - up?e 358112 55936 589-680 - up?f 414048 81312 681-814 - up?g 341696 153664 562-814 - up?h 49856 291346 82-561 -.Pp -.Tn AMPEX No Capricorn 330M drive partitions -.Sy disk start length cyl - hp?a 0 15884 0-31 - hp?b 16384 33440 32-97 - hp?c 0 524288 0-1023 - hp?d 342016 15884 668-699 - hp?e 358400 55936 700-809 - hp?f 414720 109408 810-1023 - hp?g 342016 182112 668-1023 - hp?h 50176 291346 98-667 -.Pp -.Tn FUJITSU No 160M drive partitions -.Sy disk start length cyl - up?a 0 15884 0-49 - up?b 16000 33440 50-154 - up?c 0 263360 0-822 - up?d 49600 15884 155-204 - up?e 65600 55936 205-379 - up?f 121600 141600 380-822 - up?g 49600 213600 155-822 -.Pp -.Tn FUJITSU No Eagle partitions -.Sy disk start length cyls - hp?a 0 15884 0-16 - hp?b 16320 66880 17-86 - hp?c 0 808320 0-841 - hp?d 375360 15884 391-407 - hp?e 391680 55936 408-727 - hp?f 698880 109248 728-841 - hp?g 375360 432768 391-841 - hp?h 83520 291346 87-390 +.Pp +.Bl -hang +.It Tn CDC No 9762 partitions +.Bl -column diskx undefined length xxx- -compact +.It Sy disk start length cyls +.It hp?a 0 15884 0-99 +.It hp?b 16000 33440 100-309 +.It hp?c 0 131680 0-822 +.It hp?d 49600 15884 309-408 +.It hp?e 65440 55936 409-758 +.It hp?f 121440 10080 759-822 +.It hp?g 49600 82080 309-822 +.El +.It Tn CDC No 9766 300M drive partitions +.Bl -column diskx undefined length xxx- -compact +.It Sy disk start length cyl +.It up?a 0 15884 0-26 +.It up?b 16416 33440 27-81 +.It up?c 0 500384 0-822 +.It up?d 341696 15884 562-588 +.It up?e 358112 55936 589-680 +.It up?f 414048 861760 681-822 +.It up?g 341696 158528 562-822 +.It up?h 49856 291346 82-561 +.El +.It Tn AMPEX DM Ns No 980 partitions +.Bl -column diskx undefined length xxx- -compact +.It Sy disk start length cyls +.It hp?a 0 15884 0-99 +.It hp?b 16000 33440 100-309 +.It hp?c 0 131680 0-822 +.It hp?d 49600 15884 309-408 +.It hp?e 65440 55936 409-758 +.It hp?f 121440 10080 759-822 +.It hp?g 49600 82080 309-822 +.El +.It Tn AMPEX No 9300 300M drive partitions +.Bl -column diskx undefined length xxx- -compact +.It Sy disk start length cyl +.It up?a 0 15884 0-26 +.It up?b 16416 33440 27-81 +.It up?c 0 495520 0-814 +.It up?d 341696 15884 562-588 +.It up?e 358112 55936 589-680 +.It up?f 414048 81312 681-814 +.It up?g 341696 153664 562-814 +.It up?h 49856 291346 82-561 +.El +.It Tn AMPEX No Capricorn 330M drive partitions +.Bl -column diskx undefined length xxx- -compact +.It Sy disk start length cyl +.It hp?a 0 15884 0-31 +.It hp?b 16384 33440 32-97 +.It hp?c 0 524288 0-1023 +.It hp?d 342016 15884 668-699 +.It hp?e 358400 55936 700-809 +.It hp?f 414720 109408 810-1023 +.It hp?g 342016 182112 668-1023 +.It hp?h 50176 291346 98-667 +.El +.It Tn FUJITSU No 160M drive partitions +.Bl -column diskx undefined length xxx- -compact +.It Sy disk start length cyl +.It up?a 0 15884 0-49 +.It up?b 16000 33440 50-154
CVS commit: [netbsd-5] src/share/man/man4/man4.vax
Module Name:src Committed By: snj Date: Sun Apr 12 02:34:50 UTC 2009 Modified Files: src/share/man/man4/man4.vax [netbsd-5]: hk.4 Log Message: Pull up following revision(s) (requested by joerg in ticket #698): share/man/man4/man4.vax/hk.4: revision 1.14 Fix markup. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.13.40.1 src/share/man/man4/man4.vax/hk.4 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man4/man4.vax/hk.4 diff -u src/share/man/man4/man4.vax/hk.4:1.13 src/share/man/man4/man4.vax/hk.4:1.13.40.1 --- src/share/man/man4/man4.vax/hk.4:1.13 Thu Aug 7 10:31:11 2003 +++ src/share/man/man4/man4.vax/hk.4 Sun Apr 12 02:34:50 2009 @@ -1,4 +1,4 @@ -.\ $NetBSD: hk.4,v 1.13 2003/08/07 10:31:11 agc Exp $ +.\ $NetBSD: hk.4,v 1.13.40.1 2009/04/12 02:34:50 snj Exp $ .\ .\ Copyright (c) 1980, 1991, 1993 .\ The Regents of the University of California. All rights reserved. @@ -86,21 +86,24 @@ and .Tn RK07 drives are as follows: -.Bl -column header diskx undefined length -.Tn RK07 No partitions -.Sy disk start length cyl - hk?a 0 15884 0-240 - hk?b 15906 10032 241-392 - hk?c 0 53790 0-814 - hk?d 25938 15884 393-633 - hk?f 41844 11792 634-814 - hk?g 25938 27786 393-813 -.Pp -.Tn RK06 No partitions -.Sy disk start length cyl - hk?a 0 15884 0-240 - hk?b 15906 11154 241-409 - hk?c 0 27126 0-410 +.Bl -hang +.It Tn RK07 No partitions +.Bl -column diskx undefined length xxx- -compact +.It Sy disk start length cyl +.It hk?a 0 15884 0-240 +.It hk?b 15906 10032 241-392 +.It hk?c 0 53790 0-814 +.It hk?d 25938 15884 393-633 +.It hk?f 41844 11792 634-814 +.It hk?g 25938 27786 393-813 +.El +.It Tn RK06 No partitions +.Bl -column diskx undefined length xxx- -compact +.It Sy disk start length cyl +.It hk?a 0 15884 0-240 +.It hk?b 15906 11154 241-409 +.It hk?c 0 27126 0-410 +.El .El .Pp On a dual
CVS commit: [netbsd-5] src/doc
Module Name:src Committed By: snj Date: Sun Apr 12 02:36:33 UTC 2009 Modified Files: src/doc [netbsd-5]: CHANGES-5.0 Log Message: Tickets 688, 689, and 691-697. To generate a diff of this commit: cvs rdiff -u -r1.1.2.132 -r1.1.2.133 src/doc/CHANGES-5.0 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES-5.0 diff -u src/doc/CHANGES-5.0:1.1.2.132 src/doc/CHANGES-5.0:1.1.2.133 --- src/doc/CHANGES-5.0:1.1.2.132 Sat Apr 11 07:01:28 2009 +++ src/doc/CHANGES-5.0 Sun Apr 12 02:36:33 2009 @@ -1,4 +1,4 @@ -# $NetBSD: CHANGES-5.0,v 1.1.2.132 2009/04/11 07:01:28 snj Exp $ +# $NetBSD: CHANGES-5.0,v 1.1.2.133 2009/04/12 02:36:33 snj Exp $ A complete list of changes from the initial NetBSD 5.0 branch on October 2008 until the 5.0 release: @@ -5983,3 +5983,56 @@ Sync with reality. [ad, ticket #687] +sys/arch/mvme68k/stand/Makefile.booters 1.18 +sys/arch/mvme68k/stand/bootst/dev_tape.c 1.11 +sys/arch/mvme68k/stand/bootst/version 1.5 + + Fix for install/40961: The RAMDISK kernel has grown significantly + since bootst was written. Grab 3MB of the kernel image from tape + in hackprom_diskrd() instead of 2MB. + Bump bootst version on account of the above fix. + While here, use -Os instead of -O2 to compile mvme68k stand code. + [scw, ticket #688] + +sys/fs/tmpfs/tmpfs_subr.c 1.50 + + For chown make auth checks consistent with UFS. + Fixes PR kern/40933. + [markd, ticket #689] + +lib/libpuffs/puffs_ops.3 1.24 + + Fix markup. + [joerg, ticket #691] + +lib/libc/rpc/rpc.31.21 + + Fix markup. + [joerg, ticket #692] + +lib/libc/rpc/rpc_xdr.31.8 +lib/libc/rpc/rpcbind.31.11 + + Fix markup. + [joerg, ticket #693] + +lib/libutil/sockaddr_snprintf.3 1.7 + + Fix markup. + [joerg, ticket #694] + +lib/libc/stdlib/tsearch.3 1.10 + + Fix markup. + [joerg, ticket #695] + +share/man/man4/man4.vax/up.4 1.15 + + Fix markup. + [joerg, ticket #696] + +share/man/man4/man4.vax/hk.4 1.14 + + Fix markup. + [joerg, ticket #697] +