CVS commit: src/usr.bin/fstat
Module Name:src Committed By: lukem Date: Sun Apr 12 06:36:12 UTC 2009 Modified Files: src/usr.bin/fstat: fstat.c fstat.h isofs.c misc.c ntfs.c ptyfs.c tmpfs.c Log Message: Fix sign-compare issues. To generate a diff of this commit: cvs rdiff -u -r1.87 -r1.88 src/usr.bin/fstat/fstat.c cvs rdiff -u -r1.8 -r1.9 src/usr.bin/fstat/fstat.h cvs rdiff -u -r1.6 -r1.7 src/usr.bin/fstat/isofs.c cvs rdiff -u -r1.3 -r1.4 src/usr.bin/fstat/misc.c cvs rdiff -u -r1.11 -r1.12 src/usr.bin/fstat/ntfs.c cvs rdiff -u -r1.5 -r1.6 src/usr.bin/fstat/ptyfs.c cvs rdiff -u -r1.7 -r1.8 src/usr.bin/fstat/tmpfs.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/fstat/fstat.c diff -u src/usr.bin/fstat/fstat.c:1.87 src/usr.bin/fstat/fstat.c:1.88 --- src/usr.bin/fstat/fstat.c:1.87 Mon Dec 29 00:59:08 2008 +++ src/usr.bin/fstat/fstat.c Sun Apr 12 06:36:12 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: fstat.c,v 1.87 2008/12/29 00:59:08 christos Exp $ */ +/* $NetBSD: fstat.c,v 1.88 2009/04/12 06:36:12 lukem Exp $ */ /*- * Copyright (c) 1988, 1993 @@ -39,7 +39,7 @@ #if 0 static char sccsid[] = "@(#)fstat.c 8.3 (Berkeley) 5/2/95"; #else -__RCSID("$NetBSD: fstat.c,v 1.87 2008/12/29 00:59:08 christos Exp $"); +__RCSID("$NetBSD: fstat.c,v 1.88 2009/04/12 06:36:12 lukem Exp $"); #endif #endif /* not lint */ @@ -519,7 +519,7 @@ (void)snprintf(mode, sizeof mode, "%o", fst.mode); else strmode(fst.mode, mode); - (void)printf(" %7lu %*s", (unsigned long)fst.fileid, nflg ? 5 : 10, mode); + (void)printf(" %7"PRIu64" %*s", fst.fileid, nflg ? 5 : 10, mode); switch (vn.v_type) { case VBLK: case VCHR: { @@ -580,7 +580,7 @@ } fsp->fsid = inode.i_dev & 0x; - fsp->fileid = (long)inode.i_number; + fsp->fileid = inode.i_number; fsp->mode = (mode_t)inode.i_mode; fsp->size = inode.i_size; @@ -599,7 +599,7 @@ return 0; } fsp->fsid = inode.i_dev & 0x; - fsp->fileid = (long)inode.i_number; + fsp->fileid = inode.i_number; if (!KVM_READ(&inode.i_e2fs_mode, &mode, sizeof mode)) { dprintf("can't read inode %p's mode at %p for pid %d", VTOI(vp), Index: src/usr.bin/fstat/fstat.h diff -u src/usr.bin/fstat/fstat.h:1.8 src/usr.bin/fstat/fstat.h:1.9 --- src/usr.bin/fstat/fstat.h:1.8 Tue Jul 22 22:58:04 2008 +++ src/usr.bin/fstat/fstat.h Sun Apr 12 06:36:12 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: fstat.h,v 1.8 2008/07/22 22:58:04 christos Exp $ */ +/* $NetBSD: fstat.h,v 1.9 2009/04/12 06:36:12 lukem Exp $ */ /*- * Copyright (c) 1988, 1993 * The Regents of the University of California. All rights reserved. @@ -30,7 +30,7 @@ struct filestat { long fsid; - long fileid; + ino_t fileid; mode_t mode; off_t size; dev_t rdev; @@ -40,7 +40,8 @@ * a kvm_read that returns true if everything is read */ #define KVM_READ(kaddr, paddr, len) \ - (kvm_read(kd, (u_long)(kaddr), (void *)(paddr), (len)) == (len)) + ((size_t)kvm_read(kd, (u_long)(kaddr), (void *)(paddr), (len)) \ + == (size_t)(len)) #define KVM_NLIST(nl) \ kvm_nlist(kd, (nl)) #define KVM_GETERR() \ Index: src/usr.bin/fstat/isofs.c diff -u src/usr.bin/fstat/isofs.c:1.6 src/usr.bin/fstat/isofs.c:1.7 --- src/usr.bin/fstat/isofs.c:1.6 Thu May 11 11:56:38 2006 +++ src/usr.bin/fstat/isofs.c Sun Apr 12 06:36:12 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: isofs.c,v 1.6 2006/05/11 11:56:38 yamt Exp $ */ +/* $NetBSD: isofs.c,v 1.7 2009/04/12 06:36:12 lukem Exp $ */ /*- * Copyright (c) 1988, 1993 * The Regents of the University of California. All rights reserved. @@ -29,7 +29,7 @@ */ #include -__RCSID("$NetBSD: isofs.c,v 1.6 2006/05/11 11:56:38 yamt Exp $"); +__RCSID("$NetBSD: isofs.c,v 1.7 2009/04/12 06:36:12 lukem Exp $"); #include #include @@ -54,7 +54,7 @@ return 0; } fsp->fsid = inode.i_dev & 0x; - fsp->fileid = (long)inode.i_number; + fsp->fileid = inode.i_number; fsp->mode = inode.inode.iso_mode; fsp->size = inode.i_size; fsp->rdev = inode.i_dev; Index: src/usr.bin/fstat/misc.c diff -u src/usr.bin/fstat/misc.c:1.3 src/usr.bin/fstat/misc.c:1.4 --- src/usr.bin/fstat/misc.c:1.3 Thu Feb 26 17:30:51 2009 +++ src/usr.bin/fstat/misc.c Sun Apr 12 06:36:12 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: misc.c,v 1.3 2009/02/26 17:30:51 christos Exp $ */ +/* $NetBSD: misc.c,v 1.4 2009/04/12 06:36:12 lukem Exp $ */ /*- * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include -__RCSID("$NetBSD: misc.c,v 1.3 2009/02/26 17:30:51 christos Exp $"); +__RCSID("$NetBSD: misc.c,v 1.4 2009/04/12 06:36:12 lukem Exp $"); #include #include @@ -149,7 +149,7 @@ warnx("Could not find %d symbols", n); } for (i = 0; i < NL_MAX; i++) - if ((intptr_t)f->f_ops == nl[i].n_value) + if ((uintptr_t)f->f_ops == nl[i].n_value) break; switch (i) { case NL_BPF: Index: src/usr.bin/fstat/ntfs.c diff -u src/usr.bin/fstat/ntfs.c:1.11 src/usr.bin/fstat/ntfs.c:1.12 --- src/usr.bin/fstat/ntfs.c:1.11 Mon
CVS commit: src/usr.bin/finger
Module Name:src Committed By: lukem Date: Sun Apr 12 06:18:54 UTC 2009 Modified Files: src/usr.bin/finger: finger.c lprint.c net.c util.c Log Message: Fix WARNS=4 issues (-Wshadow, -Wcast-qual, -Wsign-compare) To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/usr.bin/finger/finger.c cvs rdiff -u -r1.21 -r1.22 src/usr.bin/finger/lprint.c cvs rdiff -u -r1.22 -r1.23 src/usr.bin/finger/net.c cvs rdiff -u -r1.27 -r1.28 src/usr.bin/finger/util.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/finger/finger.c diff -u src/usr.bin/finger/finger.c:1.28 src/usr.bin/finger/finger.c:1.29 --- src/usr.bin/finger/finger.c:1.28 Mon Jul 21 14:19:22 2008 +++ src/usr.bin/finger/finger.c Sun Apr 12 06:18:54 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: finger.c,v 1.28 2008/07/21 14:19:22 lukem Exp $ */ +/* $NetBSD: finger.c,v 1.29 2009/04/12 06:18:54 lukem Exp $ */ /* * Copyright (c) 1989, 1993 @@ -52,7 +52,7 @@ #if 0 static char sccsid[] = "@(#)finger.c 8.5 (Berkeley) 5/4/95"; #else -__RCSID("$NetBSD: finger.c,v 1.28 2008/07/21 14:19:22 lukem Exp $"); +__RCSID("$NetBSD: finger.c,v 1.29 2009/04/12 06:18:54 lukem Exp $"); #endif #endif /* not lint */ @@ -192,7 +192,7 @@ PERSON *pn; DBT data, key; struct passwd *pw; - int r, sflag; + int r, seqflag; struct utmpentry *ep; for (ep = ehead; ep; ep = ep->next) { @@ -204,10 +204,10 @@ enter_where(ep, pn); } if (db && lflag) - for (sflag = R_FIRST;; sflag = R_NEXT) { + for (seqflag = R_FIRST;; seqflag = R_NEXT) { PERSON *tmp; - r = (*db->seq)(db, &key, &data, sflag); + r = (*db->seq)(db, &key, &data, seqflag); if (r == -1) err(1, "db seq"); if (r == 1) @@ -223,7 +223,7 @@ PERSON *pn; DBT data, key; struct passwd *pw; - int r, sflag, *used, *ip; + int r, seqflag, *used, *ip; char **ap, **nargv, **np, **p; struct utmpentry *ep; @@ -284,10 +284,10 @@ enter_where(ep, pn); } if (db != NULL) - for (sflag = R_FIRST;; sflag = R_NEXT) { + for (seqflag = R_FIRST;; seqflag = R_NEXT) { PERSON *tmp; - r = (*db->seq)(db, &key, &data, sflag); + r = (*db->seq)(db, &key, &data, seqflag); if (r == -1) err(1, "db seq"); if (r == 1) Index: src/usr.bin/finger/lprint.c diff -u src/usr.bin/finger/lprint.c:1.21 src/usr.bin/finger/lprint.c:1.22 --- src/usr.bin/finger/lprint.c:1.21 Wed Jan 4 01:17:54 2006 +++ src/usr.bin/finger/lprint.c Sun Apr 12 06:18:54 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: lprint.c,v 1.21 2006/01/04 01:17:54 perry Exp $ */ +/* $NetBSD: lprint.c,v 1.22 2009/04/12 06:18:54 lukem Exp $ */ /* * Copyright (c) 1989, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)lprint.c 8.3 (Berkeley) 4/28/95"; #else -__RCSID( "$NetBSD: lprint.c,v 1.21 2006/01/04 01:17:54 perry Exp $"); +__RCSID( "$NetBSD: lprint.c,v 1.22 2009/04/12 06:18:54 lukem Exp $"); #endif #endif /* not lint */ @@ -68,9 +68,9 @@ #define _PATH_PLAN ".plan" #define _PATH_PROJECT ".project" -static int demi_print(char *, int); +static int demi_print(const char *, int); static void lprint(PERSON *); -static int show_text(char *, char *, char *); +static int show_text(const char *, const char *, const char *); static void vputc(int); #ifdef __SVR4 @@ -263,7 +263,7 @@ } static int -demi_print(char *str, int oddfield) +demi_print(const char *str, int oddfield) { static int lenlast; int lenthis, maxlen; @@ -301,7 +301,7 @@ } static int -show_text(char *directory, char *file_name, char *header) +show_text(const char *directory, const char *file_name, const char *header) { struct stat sb; FILE *fp; @@ -316,7 +316,7 @@ return(0); /* If short enough, and no newlines, show it on a single line.*/ - if (sb.st_size <= LINE_LEN - strlen(header) - 5) { + if (sb.st_size <= (off_t)(LINE_LEN - strlen(header) - 5)) { nr = read(fd, tbuf, sizeof(tbuf)); if (nr <= 0) { (void)close(fd); Index: src/usr.bin/finger/net.c diff -u src/usr.bin/finger/net.c:1.22 src/usr.bin/finger/net.c:1.23 --- src/usr.bin/finger/net.c:1.22 Wed Jan 4 01:17:54 2006 +++ src/usr.bin/finger/net.c Sun Apr 12 06:18:54 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: net.c,v 1.22 2006/01/04 01:17:54 perry Exp $ */ +/* $NetBSD: net.c,v 1.23 2009/04/12 06:18:54 lukem Exp $ */ /* * Copyright (c) 1989, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)net.c 8.4 (Berkeley) 4/28/95"; #else -__RCSID("$NetBSD: net.c,v 1.22 2006/01/04 01:17:54 perry Exp $"); +__RCSID("$NetBSD: net.c,v 1.23 2009/04/12 06:18:54 lukem Exp $"); #endif #endif /* not lint */ @@ -72,7 +72,7 @@ char *host; struct addrinfo hints, *res, *res0; int error; - char *emsg = NULL; + const char *emsg = NULL; lastc = 0; if (!(host = strrchr(name, '@'))) Index: src/usr.bin/finger/util.c diff -u src/usr.bin/finger/util.c:1.27 src/usr.bin/finger/util.c:1.28 --- src/usr.bin/finger/util.c:1.27 Sat May 5 16:55:17 2007 +++ src/us
CVS commit: src/usr.bin/fgen
Module Name:src Committed By: lukem Date: Sun Apr 12 03:35:43 UTC 2009 Modified Files: src/usr.bin/fgen: fgen.h fgen.l Log Message: Fix WARNS=4 issues (-Wshadow, -Wcast-qual, -Wsign-compare, etc) To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/usr.bin/fgen/fgen.h cvs rdiff -u -r1.29 -r1.30 src/usr.bin/fgen/fgen.l 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/fgen/fgen.h diff -u src/usr.bin/fgen/fgen.h:1.6 src/usr.bin/fgen/fgen.h:1.7 --- src/usr.bin/fgen/fgen.h:1.6 Sun Apr 12 03:13:09 2009 +++ src/usr.bin/fgen/fgen.h Sun Apr 12 03:35:43 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: fgen.h,v 1.6 2009/04/12 03:13:09 lukem Exp $ */ +/* $NetBSD: fgen.h,v 1.7 2009/04/12 03:35:43 lukem Exp $ */ /* * fgen.h -- stuff for the fcode tokenizer. * @@ -48,7 +48,7 @@ /* Defined fcode and string. */ struct fcode { - char *name; + const char *name; long num; int type; struct fcode *l; @@ -57,8 +57,8 @@ /* macro instruction as separate words */ struct macro { - char *name; - char *equiv; + const char *name; + const char *equiv; int type; struct macro *l; struct macro *r; Index: src/usr.bin/fgen/fgen.l diff -u src/usr.bin/fgen/fgen.l:1.29 src/usr.bin/fgen/fgen.l:1.30 --- src/usr.bin/fgen/fgen.l:1.29 Sun Apr 12 03:15:35 2009 +++ src/usr.bin/fgen/fgen.l Sun Apr 12 03:35:43 2009 @@ -1,5 +1,5 @@ %{ -/* $NetBSD: fgen.l,v 1.29 2009/04/12 03:15:35 lukem Exp $ */ +/* $NetBSD: fgen.l,v 1.30 2009/04/12 03:35:43 lukem Exp $ */ /* FLEX input for FORTH input file scanner */ /* * Copyright (c) 1998 Eduardo Horvath. @@ -47,7 +47,7 @@ #endif #if defined(__RCSID) && !defined(lint) -__RCSID("$NetBSD: fgen.l,v 1.29 2009/04/12 03:15:35 lukem Exp $"); +__RCSID("$NetBSD: fgen.l,v 1.30 2009/04/12 03:35:43 lukem Exp $"); #endif %} @@ -74,7 +74,7 @@ #include #include "fgen.h" -TOKEN token; +TOKEN ltoken; /* * Global variables that control the parse state. @@ -85,7 +85,7 @@ int outf = 1; /* stdout */ int state = 0; int nextfcode = 0x800; -int base = TOK_HEX; +int numbase = TOK_HEX; long outpos; char *outbuf = NULL; char *outfile, *infile; @@ -100,7 +100,7 @@ Cell parse_stack[PSTKSIZ]; int parse_stack_ptr = 0; -void token_err(int, char *, char *, char *, ...) +void token_err(int, const char *, const char *, const char *, ...) __attribute__((__format__(__printf__, 4, 5))); YY_DECL; @@ -113,177 +113,177 @@ %% -0 { token.type = TOK_OTHER; token.text = yytext; return &token; } +0 { ltoken.type = TOK_OTHER; ltoken.text = yytext; return
CVS commit: src/usr.bin/fgen
Module Name:src Committed By: lukem Date: Sun Apr 12 03:15:35 UTC 2009 Modified Files: src/usr.bin/fgen: fgen.l Log Message: add missing commas in initializer for .d and .h macros, which appear to have broken the intended behavior of those. To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/usr.bin/fgen/fgen.l 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/fgen/fgen.l diff -u src/usr.bin/fgen/fgen.l:1.28 src/usr.bin/fgen/fgen.l:1.29 --- src/usr.bin/fgen/fgen.l:1.28 Sun Apr 12 03:13:09 2009 +++ src/usr.bin/fgen/fgen.l Sun Apr 12 03:15:35 2009 @@ -1,5 +1,5 @@ %{ -/* $NetBSD: fgen.l,v 1.28 2009/04/12 03:13:09 lukem Exp $ */ +/* $NetBSD: fgen.l,v 1.29 2009/04/12 03:15:35 lukem Exp $ */ /* FLEX input for FORTH input file scanner */ /* * Copyright (c) 1998 Eduardo Horvath. @@ -47,7 +47,7 @@ #endif #if defined(__RCSID) && !defined(lint) -__RCSID("$NetBSD: fgen.l,v 1.28 2009/04/12 03:13:09 lukem Exp $"); +__RCSID("$NetBSD: fgen.l,v 1.29 2009/04/12 03:15:35 lukem Exp $"); #endif %} @@ -704,13 +704,13 @@ { "/c*", "chars" }, { "ca1+", "char+" }, { "carret", "b(lit) 00 00 00 0x0d" }, - { ".d" "base @ swap 0x0a base ! . base !" }, + { ".d", "base @ swap 0x0a base ! . base !" }, { "decode-bytes", ">r over r@ + swap r@ - rot r>" }, { "3drop", "drop 2drop" }, { "3dup", "2 pick 2 pick 2 pick" }, { "erase", "0 fill" }, { "false", "0" }, - { ".h" "base @ swap 0x10 base ! . base !" }, + { ".h", "base @ swap 0x10 base ! . base !" }, { "linefeed", "b(lit) 00 00 00 0x0a" }, { "/n*", "cells" }, { "na1+", "cell+", },
CVS commit: src/usr.bin/fgen
Module Name:src Committed By: lukem Date: Sun Apr 12 03:13:10 UTC 2009 Modified Files: src/usr.bin/fgen: fgen.h fgen.l Log Message: ANSI KNF To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/usr.bin/fgen/fgen.h cvs rdiff -u -r1.27 -r1.28 src/usr.bin/fgen/fgen.l 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/fgen/fgen.h diff -u src/usr.bin/fgen/fgen.h:1.5 src/usr.bin/fgen/fgen.h:1.6 --- src/usr.bin/fgen/fgen.h:1.5 Fri Oct 5 22:36:02 2001 +++ src/usr.bin/fgen/fgen.h Sun Apr 12 03:13:09 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: fgen.h,v 1.5 2001/10/05 22:36:02 eeh Exp $ */ +/* $NetBSD: fgen.h,v 1.6 2009/04/12 03:13:09 lukem Exp $ */ /* * fgen.h -- stuff for the fcode tokenizer. * @@ -41,7 +41,7 @@ }; #define TOKEN struct tok -#define YY_DECL TOKEN* yylex __P((void)) +#define YY_DECL TOKEN* yylex(void) #define FCODE 0xF00DBABE #define MACRO 0xFEEDBABE Index: src/usr.bin/fgen/fgen.l diff -u src/usr.bin/fgen/fgen.l:1.27 src/usr.bin/fgen/fgen.l:1.28 --- src/usr.bin/fgen/fgen.l:1.27 Sat Apr 22 17:51:09 2006 +++ src/usr.bin/fgen/fgen.l Sun Apr 12 03:13:09 2009 @@ -1,5 +1,5 @@ %{ -/* $NetBSD: fgen.l,v 1.27 2006/04/22 17:51:09 christos Exp $ */ +/* $NetBSD: fgen.l,v 1.28 2009/04/12 03:13:09 lukem Exp $ */ /* FLEX input for FORTH input file scanner */ /* * Copyright (c) 1998 Eduardo Horvath. @@ -47,7 +47,7 @@ #endif #if defined(__RCSID) && !defined(lint) -__RCSID("$NetBSD: fgen.l,v 1.27 2006/04/22 17:51:09 christos Exp $"); +__RCSID("$NetBSD: fgen.l,v 1.28 2009/04/12 03:13:09 lukem Exp $"); #endif %} @@ -100,7 +100,7 @@ Cell parse_stack[PSTKSIZ]; int parse_stack_ptr = 0; -void token_err __P((int, char *, char *, char *, ...)) +void token_err(int, char *, char *, char *, ...) __attribute__((__format__(__printf__, 4, 5))); YY_DECL; @@ -289,22 +289,22 @@ %% /* Function definitions */ -void push __P((Cell)); -Cell pop __P((void)); -int depth __P((void)); -int fadd __P((struct fcode *, struct fcode *)); -struct fcode *flookup __P((struct fcode *, char *)); -int aadd __P((struct macro *, struct macro *)); -struct macro *alookup __P((struct macro *, char *)); -void initdic __P((void)); -void usage __P((char *)); -void tokenize __P((YY_BUFFER_STATE)); -int emit __P((char *)); -int spit __P((long)); -void sspit __P((char *)); -int apply_macros __P((YY_BUFFER_STATE, char *)); -int main __P((int argc, char *argv[])); -Cell cvt __P((char *, char **, int base)); +void push(Cell); +Cell pop(void); +int depth(void); +int fadd(struct fcode *, struct fcode *); +struct fcode *flookup(struct fcode *, char *); +int aadd(struct macro *, struct macro *); +struct macro *alookup(struct macro *, char *); +void initdic(void); +void usage(char *); +void tokenize(YY_BUFFER_STATE); +int emit(char *); +int spit(long); +void sspit(char *); +int apply_macros(YY_BUFFER_STATE, char *); +int main(int argc, char *argv[]); +Cell cvt(char *, char **, int base); /* * Standard FCode names and numbers. Includes standard @@ -733,9 +733,7 @@ */ #define strtol(x, y, z) cvt(x, y, z) Cell -cvt(s, e, base) -char *s, **e; -int base; +cvt(char *s, char **e, int base) { Cell v = 0; int c, n = 0; @@ -771,8 +769,7 @@ */ void -push(val) -Cell val; +push(Cell val) { parse_stack[parse_stack_ptr++] = val; if (parse_stack_ptr >= PSTKSIZ) { @@ -782,14 +779,14 @@ } Cell -pop() +pop(void) { ASSERT(parse_stack_ptr); return parse_stack[--parse_stack_ptr]; } int -depth() +depth(void) { return (parse_stack_ptr); } @@ -798,8 +795,7 @@ * Insert fcode into dictionary. */ int -fadd(dict, new) -struct fcode *dict, *new; +fadd(struct fcode *dict, struct fcode *new) { int res = strcmp(dict->name, new->name); @@ -841,9 +837,7 @@ * Look for a code in the dictionary. */ struct fcode * -flookup(dict, str) -struct fcode *dict; -char *str; +flookup(struct fcode *dict, char *str) { int res; if (!dict) return (dict); @@ -867,8 +861,7 @@ * Insert alias into macros. */ int -aadd(dict, new) - struct macro *dict, *new; +aadd(struct macro *dict, struct macro *new) { int res = strcmp(dict->name, new->name); @@ -910,9 +903,7 @@ * Look for a macro in the aliases. */ struct macro * -alookup(dict, str) -struct macro *dict; -char *str; +alookup(struct macro *dict, char *str) { int res; if (!dict) return (dict); @@ -934,7 +925,7 @@ * all the standard FCodes. */ void -initdic() +initdic(void) { struct fcode *code = fcodes; struct macro *alias = macros; @@ -971,9 +962,7 @@ } int -apply_macros(input, str) - YY_BUFFER_STATE input; - char *str; +apply_macros(YY_BUFFER_STATE input, char *str) { struct macro *xform = alookup(aliases, str); @@ -990,17 +979,14 @@ } void -usage(me) - char *me; +usage(char *me) { (void)fprintf(stderr, "%s: [-d level] [-o outfile] infile\n", me); exit(1); } int -main(argc, argv) - int argc; - c
CVS commit: src/usr.bin/fdformat
Module Name:src Committed By: lukem Date: Sun Apr 12 02:53:56 UTC 2009 Modified Files: src/usr.bin/fdformat: Makefile fdformat.c Log Message: fix -Wsign-compare issues To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/usr.bin/fdformat/Makefile cvs rdiff -u -r1.15 -r1.16 src/usr.bin/fdformat/fdformat.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/fdformat/Makefile diff -u src/usr.bin/fdformat/Makefile:1.11 src/usr.bin/fdformat/Makefile:1.12 --- src/usr.bin/fdformat/Makefile:1.11 Sun Mar 8 15:37:12 2009 +++ src/usr.bin/fdformat/Makefile Sun Apr 12 02:53:56 2009 @@ -1,6 +1,5 @@ -# $NetBSD: Makefile,v 1.11 2009/03/08 15:37:12 he Exp $ +# $NetBSD: Makefile,v 1.12 2009/04/12 02:53:56 lukem Exp $ -WARNS=3 .if (${MACHINE_ARCH} == "alpha" || \ ${MACHINE_ARCH} == "arm" || \ ${MACHINE_ARCH} == "armeb" || \ Index: src/usr.bin/fdformat/fdformat.c diff -u src/usr.bin/fdformat/fdformat.c:1.15 src/usr.bin/fdformat/fdformat.c:1.16 --- src/usr.bin/fdformat/fdformat.c:1.15 Mon Apr 28 20:24:12 2008 +++ src/usr.bin/fdformat/fdformat.c Sun Apr 12 02:53:56 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: fdformat.c,v 1.15 2008/04/28 20:24:12 martin Exp $ */ +/* $NetBSD: fdformat.c,v 1.16 2009/04/12 02:53:56 lukem Exp $ */ /*- * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc. @@ -36,7 +36,7 @@ #include #ifndef lint -__RCSID("$NetBSD: fdformat.c,v 1.15 2008/04/28 20:24:12 martin Exp $"); +__RCSID("$NetBSD: fdformat.c,v 1.16 2009/04/12 02:53:56 lukem Exp $"); #endif #include @@ -106,7 +106,7 @@ (void)printf("- SEEK ERROR\n"); return 1; } - if (read(fd, buf, tracksize) != tracksize) { + if ((size_t)read(fd, buf, tracksize) != tracksize) { (void)printf("- VERIFY ERROR\n"); return 1; } @@ -286,9 +286,9 @@ } cmd.formatcmd_version = FDFORMAT_VERSION; - for (cyl = 0; cyl < parms.ncyl; cyl++) { + for (cyl = 0; (unsigned int)cyl < parms.ncyl; cyl++) { cmd.cylinder = cyl; - for (trk = 0; trk < parms.ntrk; trk++) { + for (trk = 0; (unsigned int)trk < parms.ntrk; trk++) { cmd.head = trk; (void)printf("\rFormatting track %i / head %i ", cyl, trk); (void)fflush(stdout);
CVS commit: src/usr.bin/expand
Module Name:src Committed By: lukem Date: Sun Apr 12 02:51:36 UTC 2009 Modified Files: src/usr.bin/expand: expand.c Log Message: fix -Wsign-compare issue To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/usr.bin/expand/expand.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/expand/expand.c diff -u src/usr.bin/expand/expand.c:1.12 src/usr.bin/expand/expand.c:1.13 --- src/usr.bin/expand/expand.c:1.12 Mon Jul 21 14:19:22 2008 +++ src/usr.bin/expand/expand.c Sun Apr 12 02:51:36 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: expand.c,v 1.12 2008/07/21 14:19:22 lukem Exp $ */ +/* $NetBSD: expand.c,v 1.13 2009/04/12 02:51:36 lukem Exp $ */ /* * Copyright (c) 1980, 1993 @@ -39,7 +39,7 @@ #if 0 static char sccsid[] = "@(#)expand.c 8.1 (Berkeley) 6/9/93"; #endif -__RCSID("$NetBSD: expand.c,v 1.12 2008/07/21 14:19:22 lukem Exp $"); +__RCSID("$NetBSD: expand.c,v 1.13 2009/04/12 02:51:36 lukem Exp $"); #endif /* not lint */ #include @@ -160,7 +160,7 @@ i = i * 10 + *cp++ - '0'; if (i <= 0 || i > 256) errx(EXIT_FAILURE, "Too large tab stop spec `%d'", i); - if (nstops > 0 && i <= tabstops[nstops-1]) + if (nstops > 0 && (size_t)i <= tabstops[nstops-1]) errx(EXIT_FAILURE, "Out of order tabstop spec `%d'", i); if (nstops == sizeof(tabstops) / sizeof(tabstops[0]) - 1) errx(EXIT_FAILURE, "Too many tabstops");
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] +
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/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
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 .\" 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/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/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 AT&T .\" 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/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 AT&T .\" @(#)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: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 AT&T -.\" $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
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/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 -__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 #include @@ -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/sys/arch/mvme68k/stand
Module Name:src Committed By: snj Date: Sun Apr 12 02:19:56 UTC 2009 Modified Files: src/sys/arch/mvme68k/stand [netbsd-5]: Makefile.booters src/sys/arch/mvme68k/stand/bootst [netbsd-5]: dev_tape.c version Log Message: Pull up following revision(s) (requested by scw in ticket #688): sys/arch/mvme68k/stand/Makefile.booters: revision 1.18 sys/arch/mvme68k/stand/bootst/dev_tape.c: revision 1.11 sys/arch/mvme68k/stand/bootst/version: revision 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. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.14.88.1 src/sys/arch/mvme68k/stand/Makefile.booters cvs rdiff -u -r1.10 -r1.10.10.1 src/sys/arch/mvme68k/stand/bootst/dev_tape.c cvs rdiff -u -r1.4 -r1.4.132.1 src/sys/arch/mvme68k/stand/bootst/version 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/mvme68k/stand/Makefile.booters diff -u src/sys/arch/mvme68k/stand/Makefile.booters:1.14 src/sys/arch/mvme68k/stand/Makefile.booters:1.14.88.1 --- src/sys/arch/mvme68k/stand/Makefile.booters:1.14 Sat Dec 24 22:22:33 2005 +++ src/sys/arch/mvme68k/stand/Makefile.booters Sun Apr 12 02:19:56 2009 @@ -1,10 +1,10 @@ -# $NetBSD: Makefile.booters,v 1.14 2005/12/24 22:22:33 tsutsui Exp $ +# $NetBSD: Makefile.booters,v 1.14.88.1 2009/04/12 02:19:56 snj Exp $ S?= ${.CURDIR}/../../../.. MDEC_DIR?= /usr/mdec RELOC?= 0x3F -COPTS?= -O2 -Wall -Wno-main -Wmissing-prototypes -Wstrict-prototypes \ - -ffreestanding +COPTS?= -Os -Wall -Wno-main -Wmissing-prototypes -Wstrict-prototypes \ + -ffreestanding -fomit-frame-pointer DEFS?= STRIPFLAG?= Index: src/sys/arch/mvme68k/stand/bootst/dev_tape.c diff -u src/sys/arch/mvme68k/stand/bootst/dev_tape.c:1.10 src/sys/arch/mvme68k/stand/bootst/dev_tape.c:1.10.10.1 --- src/sys/arch/mvme68k/stand/bootst/dev_tape.c:1.10 Mon Apr 28 20:23:29 2008 +++ src/sys/arch/mvme68k/stand/bootst/dev_tape.c Sun Apr 12 02:19:56 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: dev_tape.c,v 1.10 2008/04/28 20:23:29 martin Exp $ */ +/* $NetBSD: dev_tape.c,v 1.10.10.1 2009/04/12 02:19:56 snj Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -169,7 +169,7 @@ static int blkoffset = 0; #define hackload_addr ((char *)0x08) /* Load tape segment here */ -#define hackload_blocks 0x2000 /* 2Mb worth */ +#define hackload_blocks 0x3000 /* 3Mb worth */ if ((ti->flag & IGNORE_FILENUM) == 0) { /* Index: src/sys/arch/mvme68k/stand/bootst/version diff -u src/sys/arch/mvme68k/stand/bootst/version:1.4 src/sys/arch/mvme68k/stand/bootst/version:1.4.132.1 --- src/sys/arch/mvme68k/stand/bootst/version:1.4 Fri Nov 9 19:53:14 2001 +++ src/sys/arch/mvme68k/stand/bootst/version Sun Apr 12 02:19:56 2009 @@ -1,7 +1,8 @@ -$NetBSD: version,v 1.4 2001/11/09 19:53:14 scw Exp $ +$NetBSD: version,v 1.4.132.1 2009/04/12 02:19:56 snj Exp $ 1.1: Initial bootst (from Dale Rahn) 1.2: Update based on sun3 tapeboot (by Chuck Cranor) 1.3: Support verbose/quiet boot. 1.4: loadfile() update: ELF symbols no longer need backward seeks. 1.5: loadfile() update to avoid backwards seeks for ELF Program Headers. +1.6: hackprom_diskrd() needs loads up to 3MB from tape for current kernels.
CVS commit: src/sys
Module Name:src Committed By: christos Date: Sat Apr 11 23:05:26 UTC 2009 Modified Files: src/sys/dev/dmover: dmover_io.c src/sys/dev/putter: putter.c src/sys/kern: kern_drvctl.c sys_mqueue.c sys_pipe.c vfs_vnops.c src/sys/net: bpf.c if_tap.c src/sys/opencrypto: cryptodev.c Log Message: Fix locking as Andy explained. Also fill in uid and gid like sys_pipe did. To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34 src/sys/dev/dmover/dmover_io.c cvs rdiff -u -r1.22 -r1.23 src/sys/dev/putter/putter.c cvs rdiff -u -r1.25 -r1.26 src/sys/kern/kern_drvctl.c cvs rdiff -u -r1.15 -r1.16 src/sys/kern/sys_mqueue.c cvs rdiff -u -r1.111 -r1.112 src/sys/kern/sys_pipe.c cvs rdiff -u -r1.164 -r1.165 src/sys/kern/vfs_vnops.c cvs rdiff -u -r1.145 -r1.146 src/sys/net/bpf.c cvs rdiff -u -r1.56 -r1.57 src/sys/net/if_tap.c cvs rdiff -u -r1.48 -r1.49 src/sys/opencrypto/cryptodev.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/dmover/dmover_io.c diff -u src/sys/dev/dmover/dmover_io.c:1.33 src/sys/dev/dmover/dmover_io.c:1.34 --- src/sys/dev/dmover/dmover_io.c:1.33 Sat Apr 11 11:47:33 2009 +++ src/sys/dev/dmover/dmover_io.c Sat Apr 11 19:05:26 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: dmover_io.c,v 1.33 2009/04/11 15:47:33 christos Exp $ */ +/* $NetBSD: dmover_io.c,v 1.34 2009/04/11 23:05:26 christos Exp $ */ /* * Copyright (c) 2002, 2003 Wasabi Systems, Inc. @@ -55,7 +55,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: dmover_io.c,v 1.33 2009/04/11 15:47:33 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dmover_io.c,v 1.34 2009/04/11 23:05:26 christos Exp $"); #include #include @@ -585,6 +585,8 @@ st->st_atime = ds->ds_atime; st->st_mtime = ds->ds_mtime; st->st_ctime = st->st_birthtime = ds->ds_btime; + st->st_uid = kauth_cred_geteuid(fp->f_cred); + st->st_gid = kauth_cred_getegid(fp->f_cred); KERNEL_UNLOCK(NULL); return 0; } Index: src/sys/dev/putter/putter.c diff -u src/sys/dev/putter/putter.c:1.22 src/sys/dev/putter/putter.c:1.23 --- src/sys/dev/putter/putter.c:1.22 Sat Apr 11 11:47:33 2009 +++ src/sys/dev/putter/putter.c Sat Apr 11 19:05:26 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: putter.c,v 1.22 2009/04/11 15:47:33 christos Exp $ */ +/* $NetBSD: putter.c,v 1.23 2009/04/11 23:05:26 christos Exp $ */ /* * Copyright (c) 2006, 2007 Antti Kantee. All Rights Reserved. @@ -35,7 +35,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: putter.c,v 1.22 2009/04/11 15:47:33 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: putter.c,v 1.23 2009/04/11 23:05:26 christos Exp $"); #include #include @@ -47,6 +47,7 @@ #include #include #include +#include #include @@ -216,8 +217,8 @@ size_t origres, moved; int error; - getnanotime(&pi->pi_atime); KERNEL_LOCK(1, NULL); + getnanotime(&pi->pi_atime); if (pi->pi_private == PUTTER_EMBRYO || pi->pi_private == PUTTER_DEAD) { printf("putter_fop_read: private %d not inited\n", pi->pi_idx); @@ -265,8 +266,8 @@ size_t frsize; int error; - getnanotime(&pi->pi_mtime); KERNEL_LOCK(1, NULL); + getnanotime(&pi->pi_mtime); DPRINTF(("putter_fop_write (%p): writing response, resid %zu\n", pi->pi_private, uio->uio_resid)); @@ -416,6 +417,8 @@ st->st_atimespec = pi->pi_atime; st->st_mtimespec = pi->pi_mtime; st->st_ctimespec = st->st_birthtimespec = pi->pi_btime; + st->st_uid = kauth_cred_geteuid(fp->f_cred); + st->st_gid = kauth_cred_getegid(fp->f_cred); KERNEL_UNLOCK_ONE(NULL); return 0; } Index: src/sys/kern/kern_drvctl.c diff -u src/sys/kern/kern_drvctl.c:1.25 src/sys/kern/kern_drvctl.c:1.26 --- src/sys/kern/kern_drvctl.c:1.25 Sat Apr 11 11:47:33 2009 +++ src/sys/kern/kern_drvctl.c Sat Apr 11 19:05:26 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_drvctl.c,v 1.25 2009/04/11 15:47:33 christos Exp $ */ +/* $NetBSD: kern_drvctl.c,v 1.26 2009/04/11 23:05:26 christos Exp $ */ /* * Copyright (c) 2004 @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: kern_drvctl.c,v 1.25 2009/04/11 15:47:33 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_drvctl.c,v 1.26 2009/04/11 23:05:26 christos Exp $"); #include #include @@ -45,6 +45,7 @@ #include #include #include +#include struct drvctl_event { TAILQ_ENTRY(drvctl_event) dce_link; @@ -375,6 +376,8 @@ drvctl_stat(struct file *fp, struct stat *st) { (void)memset(st, 0, sizeof(*st)); + st->st_uid = kauth_cred_geteuid(fp->f_cred); + st->st_gid = kauth_cred_getegid(fp->f_cred); return 0; } Index: src/sys/kern/sys_mqueue.c diff -u src/sys/kern/sys_mqueue.c:1.15 src/sys/kern/sys_mqueue.c:1.16 --- src/sys/kern/sys_mqueue.c:1.15 Sat Apr 11 11:47:33 2009 +++ src/sys/kern/sys_mqueue.c Sat Apr 11 19:05:26 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: sys_mqueue.c,v 1.15 2009/04/11 15:47:33 christos Exp $ */ +/* $NetBSD: sys_mqueue.c,v 1.16 2009/04/11 23:05:26 christos Exp $ */ /* * Copyright (c) 2007, 2008 Mindaug
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: 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: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: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: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/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: joerg Date: Sat Apr 11 21:56:01 UTC 2009 Modified Files: src/share/man/man4/man4.vax: hk.4 Log Message: Fix markup. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 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.14 --- 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 Sat Apr 11 21:56:01 2009 @@ -1,4 +1,4 @@ -.\" $NetBSD: hk.4,v 1.13 2003/08/07 10:31:11 agc Exp $ +.\" $NetBSD: hk.4,v 1.14 2009/04/11 21:56:01 joerg 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: 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/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: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/lib/libc/string
Module Name:src Committed By: christos Date: Sat Apr 11 21:42:16 UTC 2009 Modified Files: src/lib/libc/string: memrchr.c Log Message: make this work properly, by moving to the end of the buffer before starting the search. remove clauses 3 + 4. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/lib/libc/string/memrchr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/libc/string/memrchr.c diff -u src/lib/libc/string/memrchr.c:1.1 src/lib/libc/string/memrchr.c:1.2 --- src/lib/libc/string/memrchr.c:1.1 Fri Apr 10 19:13:38 2009 +++ src/lib/libc/string/memrchr.c Sat Apr 11 17:42:16 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: memrchr.c,v 1.1 2009/04/10 23:13:38 christos Exp $ */ +/* $NetBSD: memrchr.c,v 1.2 2009/04/11 21:42:16 christos Exp $ */ /*- * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -15,13 +15,6 @@ * 2. Redistributions in binary form must reproduce the above copyright *notice, this list of conditions and the following disclaimer in the *documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - *must display the following acknowledgement: - *This product includes software developed by the NetBSD - *Foundation, Inc. and its contributors. - * 4. Neither the name of The NetBSD Foundation nor the names of its - *contributors may be used to endorse or promote products derived - *from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED @@ -37,7 +30,7 @@ */ #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: memrchr.c,v 1.1 2009/04/10 23:13:38 christos Exp $"); +__RCSID("$NetBSD: memrchr.c,v 1.2 2009/04/11 21:42:16 christos Exp $"); #endif /* LIBC_SCCS and not lint */ #include @@ -49,12 +42,12 @@ _DIAGASSERT(s != NULL); if (n != 0) { - const unsigned char *p = s; + const unsigned char *p = (const unsigned char *)s + n; const unsigned char cmp = c; do { - if (*p-- == cmp) -return __UNCONST(p + 1); + if (*--p == cmp) +return __UNCONST(p); } while (--n != 0); } return NULL;
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: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
CVS commit: src/lib/libedit
Module Name:src Committed By: joerg Date: Sat Apr 11 20:53:15 UTC 2009 Modified Files: src/lib/libedit: editrc.5 Log Message: Don't use .Xo/.Xc to work around ancient macro argument limit in groff. To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 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.22 src/lib/libedit/editrc.5:1.23 --- src/lib/libedit/editrc.5:1.22 Mon Mar 9 19:24:27 2009 +++ src/lib/libedit/editrc.5 Sat Apr 11 20:53:15 2009 @@ -1,4 +1,4 @@ -.\" $NetBSD: editrc.5,v 1.22 2009/03/09 19:24:27 joerg Exp $ +.\" $NetBSD: editrc.5,v 1.23 2009/04/11 20:53:15 joerg Exp $ .\" .\" Copyright (c) 1997-2000 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -87,16 +87,8 @@ .Pp The following builtin commands are available: .Bl -tag -width 4n -.It Ic bind Xo -.Op Fl a -.Op Fl e -.Op Fl k -.Op Fl l -.Op Fl r -.Op Fl s -.Op Fl v -.Op Ar key Op Ar command -.Xc +.It Ic bind Oo Fl a Oc Oo Fl e Oc Oo Fl k Oc Oo Fl l Oc Oo Fl r Oc \ +Oo Fl s Oc Oo Fl v Oc Oo Ar key Op Ar command Oc Without options, list all bound keys, and the editor command to which each is bound. If @@ -192,11 +184,7 @@ .Sq \e and .Sq ^ . -.It Ic echotc Xo -.Op Fl sv -.Ar arg -.Ar ... -.Xc +.It Ic echotc Oo Fl sv Oc Ar arg Ar ... Exercise terminal capabilities given in .Ar arg Ar ... . If @@ -252,16 +240,8 @@ as defined in .Xr termcap 5 . No sanity checking is done. -.It Ic setty Xo -.Op Fl a -.Op Fl d -.Op Fl q -.Op Fl x -.Op Ar +mode -.Op Ar -mode -.Op Ar mode -.Op Ar char=c -.Xc +.It Ic setty Oo Fl a Oc Oo Fl d Oc Oo Fl q Oc Oo Fl x Oc Oo Ar +mode Oc \ +Oo Ar -mode Oc Oo Ar mode Oc Oo Ar char=c Oc Control which tty modes that .Nm won't allow the user to change.
CVS commit: src/lib/libedit
Module Name:src Committed By: joerg Date: Sat Apr 11 20:48:26 UTC 2009 Modified Files: src/lib/libedit: editline.3 Log Message: Don't use .Xo/.Xc to avoid ancient macro argument limit. To generate a diff of this commit: cvs rdiff -u -r1.66 -r1.67 src/lib/libedit/editline.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/libedit/editline.3 diff -u src/lib/libedit/editline.3:1.66 src/lib/libedit/editline.3:1.67 --- src/lib/libedit/editline.3:1.66 Wed Apr 1 08:58:47 2009 +++ src/lib/libedit/editline.3 Sat Apr 11 20:48:26 2009 @@ -1,4 +1,4 @@ -.\" $NetBSD: editline.3,v 1.66 2009/04/01 08:58:47 wiz Exp $ +.\" $NetBSD: editline.3,v 1.67 2009/04/11 20:48:26 joerg Exp $ .\" .\" Copyright (c) 1997-2003 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -274,66 +274,43 @@ and .Dv SIGWINCH . Otherwise, the current signal handlers will be used. -.It Dv EL_BIND , Xo -.Fa "const char *" , -.Fa "..." , -.Dv NULL -.Xc +.It Dv EL_BIND , Fa "const char *" , Fa "..." , Dv NULL Perform the .Ic bind builtin command. Refer to .Xr editrc 5 for more information. -.It Dv EL_ECHOTC , Xo -.Fa "const char *" , -.Fa "..." , -.Dv NULL -.Xc +.It Dv EL_ECHOTC , Fa "const char *" , Fa "..." , Dv NULL Perform the .Ic echotc builtin command. Refer to .Xr editrc 5 for more information. -.It Dv EL_SETTC , Xo -.Fa "const char *" , -.Fa "..." , -.Dv NULL -.Xc +.It Dv EL_SETTC , Fa "const char *" , Fa "..." , Dv NULL Perform the .Ic settc builtin command. Refer to .Xr editrc 5 for more information. -.It Dv EL_SETTY , Xo -.Fa "const char *" , -.Fa "..." , -.Dv NULL -.Xc +.It Dv EL_SETTY , Fa "const char *" , Fa "..." , Dv NULL Perform the .Ic setty builtin command. Refer to .Xr editrc 5 for more information. -.It Dv EL_TELLTC , Xo -.Fa "const char *" , -.Fa "..." , -.Dv NULL -.Xc +.It Dv EL_TELLTC , Fa "const char *" , Fa "..." , Dv NULL Perform the .Ic telltc builtin command. Refer to .Xr editrc 5 for more information. -.It Dv EL_ADDFN , Xo -.Fa "const char *name" , -.Fa "const char *help" , -.Fa "unsigned char (*func)(EditLine *e, int ch)" -.Xc +.It Dv EL_ADDFN , Fa "const char *name" , Fa "const char *help" , \ +Fa "unsigned char (*func)(EditLine *e, int ch)" Add a user defined function, .Fn func , referred to as @@ -375,10 +352,8 @@ .It Dv CC_FATAL Fatal error, reset tty to known state. .El -.It Dv EL_HIST , Xo -.Fa "History *(*func)(History *, int op, ...)" , -.Fa "const char *ptr" -.Xc +.It Dv EL_HIST , Fa "History *(*func)(History *, int op, ...)" , \ +Fa "const char *ptr" Defines which history function to use, which is usually .Fn history . .Fa ptr @@ -630,18 +605,11 @@ .Fn history_init . .It Dv H_CLEAR Clear the history. -.It Dv H_FUNC , Xo -.Fa "void *ptr" , -.Fa "history_gfun_t first" , -.Fa "history_gfun_t next" , -.Fa "history_gfun_t last" , -.Fa "history_gfun_t prev" , -.Fa "history_gfun_t curr" , -.Fa "history_sfun_t set" , -.Fa "history_vfun_t clear" , -.Fa "history_efun_t enter" , -.Fa "history_efun_t add" -.Xc +.It Dv H_FUNC , Fa "void *ptr" , Fa "history_gfun_t first" , \ +Fa "history_gfun_t next" , Fa "history_gfun_t last" , \ +Fa "history_gfun_t prev" , Fa "history_gfun_t curr" , \ +Fa "history_sfun_t set" , Fa "history_vfun_t clear" , \ +Fa "history_efun_t enter" , Fa "history_efun_t add" Define functions to perform various history operations. .Fa ptr is the argument given to a function when it's invoked.
CVS commit: xsrc/external/mit/xf86-video-crime/dist/src
Module Name:xsrc Committed By: macallan Date: Sat Apr 11 20:43:04 UTC 2009 Modified Files: xsrc/external/mit/xf86-video-crime/dist/src: crime.h crime_accel.c Log Message: clip MTE-drawn rectangles by hand, now pwm looks right again To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 xsrc/external/mit/xf86-video-crime/dist/src/crime.h cvs rdiff -u -r1.8 -r1.9 \ xsrc/external/mit/xf86-video-crime/dist/src/crime_accel.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: xsrc/external/mit/xf86-video-crime/dist/src/crime.h diff -u xsrc/external/mit/xf86-video-crime/dist/src/crime.h:1.4 xsrc/external/mit/xf86-video-crime/dist/src/crime.h:1.5 --- xsrc/external/mit/xf86-video-crime/dist/src/crime.h:1.4 Tue Mar 31 15:57:34 2009 +++ xsrc/external/mit/xf86-video-crime/dist/src/crime.h Sat Apr 11 20:43:04 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: crime.h,v 1.4 2009/03/31 15:57:34 macallan Exp $ */ +/* $NetBSD: crime.h,v 1.5 2009/04/11 20:43:04 macallan Exp $ */ /* * Copyright (c) 2008 Michael Lorenz * All rights reserved. @@ -91,6 +91,7 @@ int start, xdir, ydir; int format; int use_mte; + int cxa, cxe, cya, cye; uint32_t expand[2048]; uint32_t pattern[8]; uint32_t alpha_color; Index: xsrc/external/mit/xf86-video-crime/dist/src/crime_accel.c diff -u xsrc/external/mit/xf86-video-crime/dist/src/crime_accel.c:1.8 xsrc/external/mit/xf86-video-crime/dist/src/crime_accel.c:1.9 --- xsrc/external/mit/xf86-video-crime/dist/src/crime_accel.c:1.8 Tue Apr 7 23:11:44 2009 +++ xsrc/external/mit/xf86-video-crime/dist/src/crime_accel.c Sat Apr 11 20:43:04 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: crime_accel.c,v 1.8 2009/04/07 23:11:44 macallan Exp $ */ +/* $NetBSD: crime_accel.c,v 1.9 2009/04/11 20:43:04 macallan Exp $ */ /* * Copyright (c) 2008 Michael Lorenz * All rights reserved. @@ -64,6 +64,9 @@ #define MAKE_ROOM(x) do {} while ((16 - \ CRIME_PIPE_LEVEL(*CRIMEREG(0x4000))) < x); +#define MAX(a, b) (a > b ? a : b) +#define MIN(a, b) (a < b ? a : b) + CARD32 CrimeAlphaTextureFormats[] = {PICT_a8, 0}; CARD32 CrimeTextureFormats[] = {PICT_a8b8g8r8, PICT_a8r8g8b8, 0}; @@ -264,13 +267,25 @@ ) { CrimePtr fPtr = CRIMEPTR(pScrn); + int xa, xe, ya, ye; LOG(CRIME_DEBUG_RECTFILL); if (fPtr->use_mte) { - MAKE_ROOM(2); - WRITE4(CRIME_MTE_DST0, (x << 18) | (y & 0x)); - WRITE4ST(CRIME_MTE_DST1, - x + w) << 2) - 1 ) << 16) | ((y + h - 1) & 0x)); + + /* + * the MTE doesn't support clipping so we have to do it + * ourselves - luckily it's trivial with rectangles + */ + xa = MAX(fPtr->cxa, x); + ya = MAX(fPtr->cya, y); + xe = MIN(fPtr->cxe, x + w); + ye = MIN(fPtr->cye, y + h); + if ((xa < xe) && (ya < ye)) { + MAKE_ROOM(2); + WRITE4(CRIME_MTE_DST0, (xa << 18) | (ya & 0x)); + WRITE4ST(CRIME_MTE_DST1, + (((xe << 2) - 1 ) << 16) | ((ye - 1) & 0x)); + } } else { MAKE_ROOM(2); WRITE4(CRIME_DE_X_VERTEX_0, (x << 16) | (y & 0x)); @@ -644,6 +659,10 @@ MAKE_ROOM(2); WRITE4(CRIME_DE_SCISSOR, (left << 16) | top); WRITE4(CRIME_DE_SCISSOR + 4, ((right + 1) << 16) | (bottom + 1)); + fPtr->cxa = left; + fPtr->cxe = right; + fPtr->cya = top; + fPtr->cye = bottom; SYNC; DONE(CRIME_DEBUG_CLIPPING); } @@ -657,6 +676,10 @@ MAKE_ROOM(2); WRITE4(CRIME_DE_SCISSOR, 0); WRITE4(CRIME_DE_SCISSOR + 4, 0x3fff3fff); + fPtr->cxa = 0; + fPtr->cxe = 2047; + fPtr->cya = 0; + fPtr->cye = 2047; SYNC; DONE(CRIME_DEBUG_CLIPPING); } @@ -2000,7 +2023,8 @@ /* clipping */ pXAAInfo->ClippingFlags = HARDWARE_CLIP_SCREEN_TO_SCREEN_COPY | - HARDWARE_CLIP_SOLID_FILL | HARDWARE_CLIP_SOLID_LINE | + HARDWARE_CLIP_SOLID_FILL | + HARDWARE_CLIP_SOLID_LINE | HARDWARE_CLIP_MONO_8x8_FILL | HARDWARE_CLIP_DASHED_LINE; pXAAInfo->SetClippingRectangle = CrimeSetClippingRectangle; pXAAInfo->DisableClipping = CrimeDisableClipping;
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/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/libutil
Module Name:src Committed By: joerg Date: Sat Apr 11 17:26:32 UTC 2009 Modified Files: src/lib/libutil: util.3 Log Message: Use semantic markup. To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/lib/libutil/util.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/util.3 diff -u src/lib/libutil/util.3:1.18 src/lib/libutil/util.3:1.19 --- src/lib/libutil/util.3:1.18 Mon Nov 17 15:21:43 2008 +++ src/lib/libutil/util.3 Sat Apr 11 17:26:32 2009 @@ -1,4 +1,4 @@ -.\" $NetBSD: util.3,v 1.18 2008/11/17 15:21:43 wiz Exp $ +.\" $NetBSD: util.3,v 1.19 2009/04/11 17:26:32 joerg Exp $ .\" .\" Copyright (c) 2001 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -49,61 +49,57 @@ Declarations for these functions may be obtained from the include file .Pa \*[Lt]util.h\*[Gt] . .Sh LIST OF FUNCTIONS -.sp 2 -.nf -.ta \w'getmaxpartitions.3'u+2n +\w'get the maximum number of partitions allowed per disk'u -\fIName/Page\fP \fIDescription\fP -.ta \w'getmaxpartitions.3'u+2n +\w'get the maximum number of partitions allowed per disk'u+6nC -.sp 5p -disklabel_dkcksum.3 compute the checksum for a disklabel -disklabel_scan.3 scan a buffer for a valid disklabel -forkpty.3 tty utility function -getbootfile.3 get the name of the booted kernel file -getlabeloffset.3 get the sector number and offset of the disklabel -getlabelsector.3 get the sector number and offset of the disklabel -getmaxpartitions.3 get the maximum number of partitions allowed per disk -getrawpartition.3 get the system ``raw'' partition -login.3 login utility function -login_cap.3 query login.conf database about a user class -login_close.3 query login.conf database about a user class -login_getcapbool.3 query login.conf database about a user class -login_getcapnum.3 query login.conf database about a user class -login_getcapsize.3 query login.conf database about a user class -login_getcapstr.3 query login.conf database about a user class -login_getcaptime.3 query login.conf database about a user class -login_getclass.3 query login.conf database about a user class -login_tty.3 tty utility function -loginx.3 login utility function -logout.3 login utility function -logoutx.3 login utility function -logwtmp.3 login utility function -logwtmpx.3 login utility function -opendisk.3 open a disk partition -openpty.3 tty utility function -pidfile.3 write a daemon pid file -pidlock.3 locks based on files containing PIDs -pw_abort.3 passwd file update function -pw_copy.3 utility function for interactive passwd file updates -pw_edit.3 utility function for interactive passwd file updates -pw_error.3 utility function for interactive passwd file updates -pw_getconf.3 password encryption configuration access function -pw_getprefix.3 passwd file update function -pw_init.3 utility function for interactive passwd file updates -pw_lock.3 passwd file update function -pw_mkdb.3 passwd file update function -pw_prompt.3 utility function for interactive passwd file updates -pw_scan.3 utility function for interactive passwd file updates -pw_setprefix.3 passwd file update function -secure_path.3 determine if a file appears to be ``secure'' -setclasscontext.3 query login.conf database about a user class -setusercontext.3 query login.conf database about a user class -snprintb.3 bitmask output conversion -sockaddr_snprintf.3 socket address formatting function -ttyaction.3 ttyaction utility function -ttylock.3 locks based on files containing PIDs -ttymsg.3 ttymsg utility function -ttyunlock.3 locks based on files containing PIDs -.fi +.Bl -column ".Xr sockaddr_snprintf 3" -compact +.It Sy Name Description +.It Xr disklabel_dkcksum 3 Ta compute the checksum for a disklabel +.It Xr disklabel_scan 3 Ta scan a buffer for a valid disklabel +.It Xr forkpty 3 Ta tty utility function +.It Xr getbootfile 3 Ta get the name of the booted kernel file +.It Xr getlabeloffset 3 Ta get the sector number and offset of the disklabel +.It Xr getlabelsector 3 Ta get the sector number and offset of the disklabel +.It Xr getmaxpartitions 3 Ta get the maximum number of partitions allowed per disk +.It Xr getrawpartition 3 Ta get the system ``raw'' partition +.It Xr login 3 Ta login utility function +.It Xr login_cap 3 Ta query login.conf database about a user class +.It Xr login_close 3 Ta query login.conf database about a user class +.It Xr login_getcapbool 3 Ta query login.conf database about a user class +.It Xr login_getcapnum 3 Ta query login.conf database about a user class +.It Xr login_getcapsize 3 Ta query login.conf database about a user class +.It Xr login_getcapstr 3 Ta query login.conf database about a user class +.It Xr login_getcaptime 3 Ta query login.conf database about a user class +.It Xr login_getclass 3 Ta query login.conf database about a user class +.It Xr login_tty 3 Ta tty utility function +.It Xr loginx 3 Ta login utility function +.It Xr lo
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/librmt
Module Name:src Committed By: wiz Date: Sat Apr 11 16:59:05 UTC 2009 Modified Files: src/lib/librmt: rmtops.3 Log Message: Use Aq instead of \*[Lt]...\*[Gt]. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 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.11 src/lib/librmt/rmtops.3:1.12 --- src/lib/librmt/rmtops.3:1.11 Sat Apr 11 15:46:04 2009 +++ src/lib/librmt/rmtops.3 Sat Apr 11 16:59:05 2009 @@ -1,4 +1,4 @@ -.\" $NetBSD: rmtops.3,v 1.11 2009/04/11 15:46:04 joerg Exp $ +.\" $NetBSD: rmtops.3,v 1.12 2009/04/11 16:59:05 wiz Exp $ .\" .Dd October 16, 2001 .Dt RMTOPS 3 @@ -77,7 +77,7 @@ .\" is recognized. .Pp For transparency, the user should include the file -.Pa \*[Lt]rmt.h\*[Gt] , +.Aq Pa rmt.h , which has the following defines in it: .Pp .Bd -literal
CVS commit: src/lib/libc/regex
Module Name:src Committed By: wiz Date: Sat Apr 11 16:58:21 UTC 2009 Modified Files: src/lib/libc/regex: regex.3 Log Message: Improve markup. To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 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.19 src/lib/libc/regex/regex.3:1.20 --- src/lib/libc/regex/regex.3:1.19 Sat Apr 11 15:44:42 2009 +++ src/lib/libc/regex/regex.3 Sat Apr 11 16:58:21 2009 @@ -1,4 +1,4 @@ -.\" $NetBSD: regex.3,v 1.19 2009/04/11 15:44:42 joerg Exp $ +.\" $NetBSD: regex.3,v 1.20 2009/04/11 16:58:21 wiz Exp $ .\" .\" Copyright (c) 1992, 1993, 1994 .\" The Regents of the University of California. All rights reserved. @@ -105,7 +105,7 @@ of an RE. .Pp The header -.Em \*[Lt]regex.h\*[Gt] +.Aq Pa regex.h declares two structure types, .Fa regex_t and @@ -529,7 +529,8 @@ .Pp .Bl -tag -width XXXREG_ECOLLATE -compact .It Dv REG_NOMATCH -regexec() failed to match +.Fn regexec +failed to match .It Dv REG_BADPAT invalid regular expression .It Dv REG_ECOLLATE
CVS commit: src/lib/libevent
Module Name:src Committed By: wiz Date: Sat Apr 11 16:55:04 UTC 2009 Modified Files: src/lib/libevent: evdns.3 Log Message: New sentence, new line. This page could use more markup. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 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.2 src/lib/libevent/evdns.3:1.3 --- src/lib/libevent/evdns.3:1.2 Sat Apr 11 15:29:50 2009 +++ src/lib/libevent/evdns.3 Sat Apr 11 16:55:04 2009 @@ -1,4 +1,4 @@ -.\" $NetBSD: evdns.3,v 1.2 2009/04/11 15:29:50 joerg Exp $ +.\" $NetBSD: evdns.3,v 1.3 2009/04/11 16:55:04 wiz Exp $ .\" .\" Copyright (c) 2006 Niels Provos .\" All rights reserved. @@ -85,40 +85,48 @@ .Pp Async DNS lookups are really a whole lot harder than they should be, mostly stemming from the fact that the libc resolver has never been -very good at them. Before you use this library you should see if libc +very good at them. +Before you use this library you should see if libc can do the job for you with the modern async call getaddrinfo_a -(see http://www.imperialviolet.org/page25.html#e498). Otherwise, -please continue. +(see http://www.imperialviolet.org/page25.html#e498). +Otherwise, please continue. .Pp This code is based on libevent and you must call event_init before -any of the APIs in this file. You must also seed the OpenSSL random +any of the APIs in this file. +You must also seed the OpenSSL random source if you are using OpenSSL for ids (see below). .Pp This library is designed to be included and shipped with your source -code. You statically link with it. You should also test for the -existence of strtok_r and define HAVE_STRTOK_R if you have it. +code. +You statically link with it. +You should also test for the existence of strtok_r and define +HAVE_STRTOK_R if you have it. .Pp The DNS protocol requires a good source of id numbers and these -numbers should be unpredictable for spoofing reasons. There are -three methods for generating them here and you must define exactly -one of them. In increasing order of preference: +numbers should be unpredictable for spoofing reasons. +There are three methods for generating them here and you must define +exactly one of them. +In increasing order of preference: .Pp .Bl -tag -width "DNS_USE_GETTIMEOFDAY_FOR_ID" -compact -offset indent .It DNS_USE_GETTIMEOFDAY_FOR_ID -Using the bottom 16 bits of the usec result from gettimeofday. This -is a pretty poor solution but should work anywhere. +Using the bottom 16 bits of the usec result from gettimeofday. +This is a pretty poor solution but should work anywhere. .It DNS_USE_CPU_CLOCK_FOR_ID Using the bottom 16 bits of the nsec result from the CPU's time -counter. This is better, but may not work everywhere. Requires -POSIX realtime support and you'll need to link against -lrt on -glibc systems at least. +counter. +This is better, but may not work everywhere. +Requires POSIX realtime support and you'll need to link against +-lrt on glibc systems at least. .It DNS_USE_OPENSSL_FOR_ID -Uses the OpenSSL RAND_bytes call to generate the data. You must -have seeded the pool before making any calls to this library. +Uses the OpenSSL RAND_bytes call to generate the data. +You must have seeded the pool before making any calls to this +library. .El .Pp The library keeps track of the state of nameservers and will avoid -them when they go down. Otherwise it will round robin between them. +them when they go down. +Otherwise it will round robin between them. .Pp Quick start guide: .Bd -literal @@ -130,8 +138,8 @@ 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. +When the lookup is complete the callback function is called. +The first argument will be one of the DNS_ERR_* defines in evdns.h. Hopefully it will be DNS_ERR_NONE, in which case type will be DNS_IPv4_A, count will be the number of IP addresses, ttl is the time which the data can be cached for (in seconds), addresses will point @@ -141,19 +149,22 @@ Searching: .Pp In order for this library to be a good replacement for glibc's resolver it -supports searching. This involves setting a list of default domains, in -which names will be queried for. The number of dots in the query name -determines the order in which this list is used. +supports searching. +This involves setting a list of default domains, in which names +will be queried for. +The number of dots in the query name determines the order in which +this list is used. .Pp Searching appears to be a single lookup from the point of view of the API, although many DNS queries may be generated from a single call to -evdns_resolve. Searching can also drastically slow down the resolution -of names. +evd
CVS commit: src/lib/libpthread
Module Name:src Committed By: wiz Date: Sat Apr 11 16:51:39 UTC 2009 Modified Files: src/lib/libpthread: pthread_attr.3 pthread_mutexattr.3 Log Message: Avoid duplicate .Pp. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/lib/libpthread/pthread_attr.3 cvs rdiff -u -r1.8 -r1.9 src/lib/libpthread/pthread_mutexattr.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/libpthread/pthread_attr.3 diff -u src/lib/libpthread/pthread_attr.3:1.9 src/lib/libpthread/pthread_attr.3:1.10 --- src/lib/libpthread/pthread_attr.3:1.9 Sat Apr 11 15:35:15 2009 +++ src/lib/libpthread/pthread_attr.3 Sat Apr 11 16:51:39 2009 @@ -1,4 +1,4 @@ -.\" $NetBSD: pthread_attr.3,v 1.9 2009/04/11 15:35:15 joerg Exp $ +.\" $NetBSD: pthread_attr.3,v 1.10 2009/04/11 16:51:39 wiz Exp $ .\" .\" Copyright (c) 2002 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -214,7 +214,7 @@ .Fa param is invalid. .El -.Pp +.\" .Pp .\" .Fn pthread_attr_setschedpolicy .\" may fail if: .\" .Bl -tag -width Er Index: src/lib/libpthread/pthread_mutexattr.3 diff -u src/lib/libpthread/pthread_mutexattr.3:1.8 src/lib/libpthread/pthread_mutexattr.3:1.9 --- src/lib/libpthread/pthread_mutexattr.3:1.8 Sun May 4 19:43:05 2008 +++ src/lib/libpthread/pthread_mutexattr.3 Sat Apr 11 16:51:39 2009 @@ -1,4 +1,4 @@ -.\" $NetBSD: pthread_mutexattr.3,v 1.8 2008/05/04 19:43:05 martin Exp $ +.\" $NetBSD: pthread_mutexattr.3,v 1.9 2009/04/11 16:51:39 wiz Exp $ .\" .\" Copyright (c) 2002 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -184,7 +184,7 @@ .Fa type is invalid. .El -.Pp +.\" .Pp .\" .Fn pthread_mutexattr_setprioceiling .\" may fail if: .\" .Bl -tag -width Er
CVS commit: src/lib/libpthread
Module Name:src Committed By: wiz Date: Sat Apr 11 16:51:28 UTC 2009 Modified Files: src/lib/libpthread: pthread.3 Log Message: Remove trailing whitespace. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/lib/libpthread/pthread.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/libpthread/pthread.3 diff -u src/lib/libpthread/pthread.3:1.9 src/lib/libpthread/pthread.3:1.10 --- src/lib/libpthread/pthread.3:1.9 Wed Oct 8 10:11:11 2008 +++ src/lib/libpthread/pthread.3 Sat Apr 11 16:51:28 2009 @@ -1,4 +1,4 @@ -.\" $NetBSD: pthread.3,v 1.9 2008/10/08 10:11:11 ad Exp $ +.\" $NetBSD: pthread.3,v 1.10 2009/04/11 16:51:28 wiz Exp $ .\" .\" Copyright (c) 2003, 2007 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -89,7 +89,7 @@ .Pp If not set in the environment, the .Nm -library behaves as if +library behaves as if .Sy AEL has been specified. .It Ev PTHREAD_RRTIME
CVS commit: src/lib/libpuffs
Module Name:src Committed By: wiz Date: Sat Apr 11 16:48:53 UTC 2009 Modified Files: src/lib/libpuffs: puffs_cc.3 puffs_ops.3 Log Message: New sentence, new line. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/lib/libpuffs/puffs_cc.3 cvs rdiff -u -r1.24 -r1.25 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_cc.3 diff -u src/lib/libpuffs/puffs_cc.3:1.13 src/lib/libpuffs/puffs_cc.3:1.14 --- src/lib/libpuffs/puffs_cc.3:1.13 Fri Feb 20 14:26:56 2009 +++ src/lib/libpuffs/puffs_cc.3 Sat Apr 11 16:48:53 2009 @@ -1,4 +1,4 @@ -.\" $NetBSD: puffs_cc.3,v 1.13 2009/02/20 14:26:56 pooka Exp $ +.\" $NetBSD: puffs_cc.3,v 1.14 2009/04/11 16:48:53 wiz Exp $ .\" .\" Copyright (c) 2007, 2008 Antti Kantee. All rights reserved. .\" @@ -83,7 +83,8 @@ This cookie should be hooked to the .Va pcc so that the correct continuation can be continued when the event it -was waiting for triggers. Alternatively, the +was waiting for triggers. +Alternatively, the .Xr puffs_framebuf 3 framework and .Fn puffs_mainloop Index: src/lib/libpuffs/puffs_ops.3 diff -u src/lib/libpuffs/puffs_ops.3:1.24 src/lib/libpuffs/puffs_ops.3:1.25 --- src/lib/libpuffs/puffs_ops.3:1.24 Sat Apr 11 15:37:12 2009 +++ src/lib/libpuffs/puffs_ops.3 Sat Apr 11 16:48:53 2009 @@ -1,4 +1,4 @@ -.\" $NetBSD: puffs_ops.3,v 1.24 2009/04/11 15:37:12 joerg Exp $ +.\" $NetBSD: puffs_ops.3,v 1.25 2009/04/11 16:48:53 wiz Exp $ .\" .\" Copyright (c) 2007 Antti Kantee. All rights reserved. .\" @@ -698,8 +698,8 @@ .Dv PUFFS_IO_APPEND is specified, the data should be appended to the end of the file. .It Fn puffs_node_print "pu" "opc" -Print information about node. This is used only for kernel-initiated -diagnostic purposes. +Print information about node. +This is used only for kernel-initiated diagnostic purposes. .It Fn puffs_node_reclaim "pu" "opc" The kernel will no longer reference the cookie and resources associated with it may be freed.
CVS commit: src/lib/libukfs
Module Name:src Committed By: joerg Date: Sat Apr 11 16:44:01 UTC 2009 Modified Files: src/lib/libukfs: ukfs.3 Log Message: Use .Bl -ohang instead of physical markup. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/lib/libukfs/ukfs.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/libukfs/ukfs.3 diff -u src/lib/libukfs/ukfs.3:1.7 src/lib/libukfs/ukfs.3:1.8 --- src/lib/libukfs/ukfs.3:1.7 Mon Apr 6 12:03:50 2009 +++ src/lib/libukfs/ukfs.3 Sat Apr 11 16:44:01 2009 @@ -1,4 +1,4 @@ -.\" $NetBSD: ukfs.3,v 1.7 2009/04/06 12:03:50 pooka Exp $ +.\" $NetBSD: ukfs.3,v 1.8 2009/04/11 16:44:01 joerg Exp $ .\" .\" Copyright (c) 2008 Antti Kantee. All rights reserved. .\" @@ -62,32 +62,21 @@ .Ft struct ukfs which should be released after use. .Sh INITIALIZATION -.Ft int -.br +.Bl -ohang +.It Ft int .Fn ukfs_init -.Pp -.Ft int -.br +.It Ft int .Fn ukfs_modload "const char *fname" -.Pp -.Ft int -.br +.It Ft int .Fn ukfs_modload_dir "const char *dirname" -.Pp -.Ft ssize_t -.br +.It Ft ssize_t .Fn ukfs_vfstypes "char *buf" "size_t buflen" -.Pp -.Ft struct ukfs * -.br -.Fo ukfs_mount -.Fa "const char *vfsname" "const char *devpath" "const char *mounpath" -.Fa "int mntflags" "void *arg" "size_t alen" -.Fc -.Pp -.Ft void -.br +.It Ft struct ukfs * +.Fn ukfs_mount "const char *vfsname" "const char *devpath" \ +"const char *mountpath" "int mntflags" "void *arg" "size_t alen" +.It Ft void .Fn ukfs_release "struct ukfs *ukfs" "int flags" +.El .Pp .Fn ukfs_init intializes the library and must be called once per process using @@ -195,126 +184,67 @@ This is required if the file system has already been unmounted due to prior activity, otherwise 0 should be passed. .Sh OPERATION -.Ft int -.br +.Bl -ohang +.It Ft int .Fn ukfs_chdir "struct ukfs *ukfs" "const char *path" -.Pp -.Ft int -.br -.Fo ukfs_getdents -.Fa "struct ukfs *ukfs" "const char *dirname" "off_t *off" -.Fa "uint8_t *buf" "size_t bufsize" -.Fc -.Pp -.Ft ssize_t -.br -.Fo ukfs_read -.Fa "struct ukfs *ukfs" "const char *filename" "off_t off" -.Fa "uint8_t *buf" "size_t bufsize" -.Fc -.Pp -.Ft ssize_t -.br -.Fo ukfs_write -.Fa "struct ukfs *ukfs" "const char *filename" "off_t off" -.Fa "uint8_t *buf" "size_t bufsize" -.Fc -.Pp -.Ft int -.br +.It Ft int +.Fn ukfs_getdents "struct ukfs *ukfs" "const char *dirname" "off_t *off" \ +"uint8_t *buf" "size_t bufsize" +.It Ft ssize_t +.Fn ukfs_read "struct ukfs *ukfs" "const char *filename" "off_t off" \ +"uint8_t *buf" "size_t bufsize" +.It Ft ssize_t +.Fn ukfs_write "struct ukfs *ukfs" "const char *filename" "off_t off" \ +"uint8_t *buf" "size_t bufsize" +.It Ft int .Fn ukfs_create "struct ukfs *ukfs" "const char *filename" "mode_t mode" -.Pp -.Ft int -.br +.It Ft int .Fn ukfs_mknod "struct ukfs *ukfs" "const char *path" "mode_t mode" "dev_t dev" -.Pp -.Ft int -.br +.It Ft int .Fn ukfs_mkfifo "struct ukfs *ukfs" "const char *path" "mode_t mode" -.Pp -.Ft int -.br +.It Ft int .Fn ukfs_mkdir "struct ukfs *ukfs" "const char *filename" "mode_t mode" -.Pp -.Ft int -.br +.It Ft int .Fn ukfs_remove "struct ukfs *ukfs" "const char *filename" -.Pp -.Ft int -.br +.It Ft int .Fn ukfs_rmdir "struct ukfs *ukfs" "const char *filename" -.Pp -.Ft int -.br +.It Ft int .Fn ukfs_link "struct ukfs *ukfs" "const char *filename" "const char *f_create" -.Pp -.Ft int -.br -.Fo ukfs_symlink -.Fa "struct ukfs *ukfs" "const char *filename" "const char *linkname" -.Fc -.Pp -.Ft ssize_t -.br -.Fo ukfs_readlink -.Fa "struct ukfs *ukfs" "const char *filename" "char *linkbuf" "size_t buflen" -.Fc -.Pp -.Ft int -.br +.It Ft int +.Fn ukfs_symlink "struct ukfs *ukfs" "const char *filename" \ +"const char *linkname" +.It Ft ssize_t +.Fn ukfs_readlink "struct ukfs *ukfs" "const char *filename" \ +"char *linkbuf" "size_t buflen" +.It Ft int .Fn ukfs_rename "struct ukfs *ukfs" "const char *from" "const char *to" -.Pp -.Ft int -.br -.Fo ukfs_stat -.Fa "struct ukfs *ukfs" "const char *filename" "struct stat *file_stat" -.Fc -.Pp -.Ft int -.br -.Fo ukfs_lstat -.Fa "struct ukfs *ukfs" "const char *filename" "struct stat *file_stat" -.Fc -.Pp -.Ft int -.br +.It Ft int +.Fn ukfs_stat "struct ukfs *ukfs" "const char *filename" \ +"struct stat *file_stat" +.It Ft int +.Fn ukfs_lstat "struct ukfs *ukfs" "const char *filename" \ +"struct stat *file_stat" +.It Ft int .Fn ukfs_chmod "struct ukfs *ukfs" "const char *filename" "mode_t mode" -.Pp -.Ft int -.br +.It Ft int .Fn ukfs_lchmod "struct ukfs *ukfs" "const char *filename" "mode_t mode" -.Pp -.Ft int -.br -.Fo ukfs_chown -.Fa "struct ukfs *ukfs" "const char *filename" "uid_t uid" "gid_t gid" -.Fc -.Pp -.Ft int -.br -.Fo ukfs_lchown -.Fa "struct ukfs *ukfs" "const char *filename" "uid_t uid" "gid_t gid" -.Fc -.Pp -.Ft int -.br +.It Ft int +.Fn ukfs_chown "struct ukfs *ukfs" "const char *filename" "uid_t uid" \ +"gid_t gid" +.It Ft int +.Fn ukfs_lchown "s
CVS commit: src/lib/libc/time
Module Name:src Committed By: joerg Date: Sat Apr 11 16:29:09 UTC 2009 Modified Files: src/lib/libc/time: time2posix.3 Log Message: Add missing quotes. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/lib/libc/time/time2posix.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/time/time2posix.3 diff -u src/lib/libc/time/time2posix.3:1.13 src/lib/libc/time/time2posix.3:1.14 --- src/lib/libc/time/time2posix.3:1.13 Wed Apr 16 13:34:58 2003 +++ src/lib/libc/time/time2posix.3 Sat Apr 11 16:29:09 2009 @@ -1,4 +1,4 @@ -.\" $NetBSD: time2posix.3,v 1.13 2003/04/16 13:34:58 wiz Exp $ +.\" $NetBSD: time2posix.3,v 1.14 2009/04/11 16:29:09 joerg Exp $ .Dd April 1, 2001 .Dt TIME2POSIX 3 .Os @@ -86,7 +86,7 @@ .Va time_t and its conversion to, and back from, the POSIX representation over the leap second inserted at the end of June, 1993. -.Bl -column "93/06/30" "23:59:59" "A+0" "X=time2posix(T)" "posix2time(X) -offset indent +.Bl -column "93/06/30" "23:59:59" "A+0" "X=time2posix(T)" "posix2time(X)" -offset indent .It Sy DATE TIME T X=time2posix(T) posix2time(X) .It 93/06/30 23:59:59 A+0 B+0 A+0 .It 93/06/30 23:59:60 A+1 B+1 A+1 or A+2 @@ -95,7 +95,7 @@ .El .Pp A leap second deletion would look like... -.Bl -column "??/06/30" "23:59:58" "A+0" "X=time2posix(T)" "posix2time(X) -offset indent +.Bl -column "??/06/30" "23:59:58" "A+0" "X=time2posix(T)" "posix2time(X)" -offset indent .It Sy DATE TIME T X=time2posix(T) posix2time(X) .It ??/06/30 23:59:58 A+0 B+0 A+0 .It ??/07/01 00:00:00 A+1 B+2 A+1
CVS commit: src/lib/libc/stdlib
Module Name:src Committed By: joerg Date: Sat Apr 11 16:17:26 UTC 2009 Modified Files: src/lib/libc/stdlib: tsearch.3 Log Message: Fix markup. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 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.10 --- src/lib/libc/stdlib/tsearch.3:1.9 Fri Dec 7 07:33:13 2007 +++ src/lib/libc/stdlib/tsearch.3 Sat Apr 11 16:17:26 2009 @@ -1,4 +1,4 @@ -.\" $NetBSD: tsearch.3,v 1.9 2007/12/07 07:33:13 simonb Exp $ +.\" $NetBSD: tsearch.3,v 1.10 2009/04/11 16:17:26 joerg Exp $ .\" Copyright (c) 1997 Todd C. Miller .\" 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: src/lib/libc/time
Module Name:src Committed By: joerg Date: Sat Apr 11 16:15:27 UTC 2009 Modified Files: src/lib/libc/time: strftime.3 Log Message: Fix markup. To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 src/lib/libc/time/strftime.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/time/strftime.3 diff -u src/lib/libc/time/strftime.3:1.23 src/lib/libc/time/strftime.3:1.24 --- src/lib/libc/time/strftime.3:1.23 Sat Jun 17 04:58:14 2006 +++ src/lib/libc/time/strftime.3 Sat Apr 11 16:15:27 2009 @@ -30,7 +30,7 @@ .\" SUCH DAMAGE. .\" .\" from: @(#)strftime.3 5.12 (Berkeley) 6/29/91 -.\" $NetBSD: strftime.3,v 1.23 2006/06/17 04:58:14 reed Exp $ +.\" $NetBSD: strftime.3,v 1.24 2009/04/11 16:15:27 joerg Exp $ .\" .Dd April 14, 2004 .Dt STRFTIME 3 @@ -104,7 +104,6 @@ (the ISO 8601 date format). .It Cm \&%G is replaced by the ISO 8601 year with century as a decimal number. -.TP .It Cm \&%g is replaced by the ISO 8601 year without century as a decimal number (00-99). This is the year that includes the greater part of the week. @@ -112,7 +111,6 @@ See also the .Ql \&%V conversion specification. -.TP .It Cm \&%H is replaced by the hour (24-hour clock) as a decimal number [00,23]. .It Cm \&%I
CVS commit: src/lib/libutil
Module Name:src Committed By: joerg Date: Sat Apr 11 16:13:49 UTC 2009 Modified Files: src/lib/libutil: sockaddr_snprintf.3 Log Message: Fix markup. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 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.7 --- src/lib/libutil/sockaddr_snprintf.3:1.6 Wed Apr 30 13:10:52 2008 +++ src/lib/libutil/sockaddr_snprintf.3 Sat Apr 11 16:13:49 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.7 2009/04/11 16:13:49 joerg 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: src/lib/libc/rpc
Module Name:src Committed By: joerg Date: Sat Apr 11 16:07:20 UTC 2009 Modified Files: src/lib/libc/rpc: rpcbind.3 Log Message: Fix markup. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 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.11 --- src/lib/libc/rpc/rpcbind.3:1.10 Sat Dec 3 15:16:19 2005 +++ src/lib/libc/rpc/rpcbind.3 Sat Apr 11 16:07:20 2009 @@ -1,7 +1,7 @@ .\" @(#)rpcbind.3n 1.25 93/05/07 SMI; from SVr4 .\" Copyright 1989 AT&T .\" 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.11 2009/04/11 16:07:20 joerg 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: src/lib/libc/rpc
Module Name:src Committed By: joerg Date: Sat Apr 11 16:03:29 UTC 2009 Modified Files: src/lib/libc/rpc: rpc_xdr.3 Log Message: Fix markup. To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 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.8 --- src/lib/libc/rpc/rpc_xdr.3:1.7 Wed Apr 16 13:34:43 2003 +++ src/lib/libc/rpc/rpc_xdr.3 Sat Apr 11 16:03:29 2009 @@ -2,7 +2,7 @@ .\" Copyright 1989 AT&T .\" @(#)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.8 2009/04/11 16:03:29 joerg 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: src/lib/libc/rpc
Module Name:src Committed By: joerg Date: Sat Apr 11 15:55:28 UTC 2009 Modified Files: src/lib/libc/rpc: rpc_svc_calls.3 Log Message: Remove .IP, it doesn't change output. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/lib/libc/rpc/rpc_svc_calls.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_svc_calls.3 diff -u src/lib/libc/rpc/rpc_svc_calls.3:1.10 src/lib/libc/rpc/rpc_svc_calls.3:1.11 --- src/lib/libc/rpc/rpc_svc_calls.3:1.10 Mon May 3 15:57:36 2004 +++ src/lib/libc/rpc/rpc_svc_calls.3 Sat Apr 11 15:55:28 2009 @@ -2,7 +2,7 @@ .\" Copyright 1989 AT&T .\" @(#)rpc_svc_calls 1.5 89/07/25 SMI; .\" Copyright (c) 1988 Sun Microsystems, Inc. - All Rights Reserved. -.\" $NetBSD: rpc_svc_calls.3,v 1.10 2004/05/03 15:57:36 lukem Exp $ +.\" $NetBSD: rpc_svc_calls.3,v 1.11 2009/04/11 15:55:28 joerg Exp $ .Dd May 3, 1993 .Dt RPC_SVC_CALLS 3 .Os @@ -226,7 +226,6 @@ and who wish to use this array must perform this derivation themselves. .Pp .It Fn svc_run -.IP This routine never returns. It waits for RPC requests to arrive, and calls the appropriate service
CVS commit: src/lib/libc/rpc
Module Name:src Committed By: joerg Date: Sat Apr 11 15:51:44 UTC 2009 Modified Files: src/lib/libc/rpc: rpc.3 Log Message: Fix markup. To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 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.21 --- src/lib/libc/rpc/rpc.3:1.20 Sat Sep 16 08:29:08 2006 +++ src/lib/libc/rpc/rpc.3 Sat Apr 11 15:51:44 2009 @@ -1,6 +1,6 @@ .\" @(#)rpc.3n 1.31 93/08/31 SMI; from SVr4 .\" Copyright 1989 AT&T -.\" $NetBSD: rpc.3,v 1.20 2006/09/16 08:29:08 yamt Exp $ +.\" $NetBSD: rpc.3,v 1.21 2009/04/11 15:51:44 joerg 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 -.Xr rpc_xdr 3 , -.It Fn xprt_register Ta -.Xr rpc_svc_calls 3 , -.It Fn xprt_unregister Ta -.Xr rpc_svc_calls 3 , +.I
CVS commit: src/usr.bin/make
Module Name:src Committed By: snj Date: Sat Apr 11 15:51:43 UTC 2009 Modified Files: src/usr.bin/make: make.1 Log Message: Typo fix: many file -> many files. To generate a diff of this commit: cvs rdiff -u -r1.155 -r1.156 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.155 src/usr.bin/make/make.1:1.156 --- src/usr.bin/make/make.1:1.155 Sat Apr 11 09:44:22 2009 +++ src/usr.bin/make/make.1 Sat Apr 11 15:51:42 2009 @@ -1,4 +1,4 @@ -.\" $NetBSD: make.1,v 1.155 2009/04/11 09:44:22 wiz Exp $ +.\" $NetBSD: make.1,v 1.156 2009/04/11 15:51:42 snj Exp $ .\" .\" Copyright (c) 1990, 1993 .\" The Regents of the University of California. All rights reserved. @@ -199,7 +199,7 @@ and have names of the form .Pa makeXX . .Em NOTE : -This can create many file in +This can create many files in .Ev TMPDIR or .Pa /tmp ,
CVS commit: src/sys
Module Name:src Committed By: christos Date: Sat Apr 11 15:47:34 UTC 2009 Modified Files: src/sys/dev/dmover: dmover_io.c src/sys/dev/putter: putter.c src/sys/kern: kern_drvctl.c sys_mqueue.c src/sys/net: bpf.c bpfdesc.h if_tap.c src/sys/opencrypto: cryptodev.c src/sys/sys: mqueue.h Log Message: Fix PR/37878 and PR/37550: Provide stat(2) for all devices and don't use fbadop_stat. To generate a diff of this commit: cvs rdiff -u -r1.32 -r1.33 src/sys/dev/dmover/dmover_io.c cvs rdiff -u -r1.21 -r1.22 src/sys/dev/putter/putter.c cvs rdiff -u -r1.24 -r1.25 src/sys/kern/kern_drvctl.c cvs rdiff -u -r1.14 -r1.15 src/sys/kern/sys_mqueue.c cvs rdiff -u -r1.144 -r1.145 src/sys/net/bpf.c cvs rdiff -u -r1.29 -r1.30 src/sys/net/bpfdesc.h cvs rdiff -u -r1.55 -r1.56 src/sys/net/if_tap.c cvs rdiff -u -r1.47 -r1.48 src/sys/opencrypto/cryptodev.c cvs rdiff -u -r1.6 -r1.7 src/sys/sys/mqueue.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/dev/dmover/dmover_io.c diff -u src/sys/dev/dmover/dmover_io.c:1.32 src/sys/dev/dmover/dmover_io.c:1.33 --- src/sys/dev/dmover/dmover_io.c:1.32 Sat Apr 4 06:12:51 2009 +++ src/sys/dev/dmover/dmover_io.c Sat Apr 11 11:47:33 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: dmover_io.c,v 1.32 2009/04/04 10:12:51 ad Exp $ */ +/* $NetBSD: dmover_io.c,v 1.33 2009/04/11 15:47:33 christos Exp $ */ /* * Copyright (c) 2002, 2003 Wasabi Systems, Inc. @@ -55,7 +55,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: dmover_io.c,v 1.32 2009/04/04 10:12:51 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dmover_io.c,v 1.33 2009/04/11 15:47:33 christos Exp $"); #include #include @@ -100,6 +100,9 @@ volatile int ds_flags; u_int ds_nreqs; struct simplelock ds_slock; + struct timespec ds_atime; + struct timespec ds_mtime; + struct timespec ds_btime; }; static ONCE_DECL(dmio_cleaner_control); @@ -358,6 +361,7 @@ if (ds->ds_session == NULL) return (ENXIO); + getnanotime(&ds->ds_atime); s = splsoftclock(); simple_lock(&ds->ds_slock); @@ -487,6 +491,7 @@ if (ds->ds_session == NULL) return (ENXIO); + getnanotime(&ds->ds_mtime); s = splsoftclock(); simple_lock(&ds->ds_slock); @@ -569,6 +574,21 @@ return (error); } +static int +dmio_stat(struct file *fp, struct stat *st) +{ + struct dmio_state *ds = fp->f_data; + + (void)memset(st, 0, sizeof(st)); + KERNEL_LOCK(1, NULL); + st->st_dev = makedev(cdevsw_lookup_major(&dmoverio_cdevsw), 0); + st->st_atime = ds->ds_atime; + st->st_mtime = ds->ds_mtime; + st->st_ctime = st->st_birthtime = ds->ds_btime; + KERNEL_UNLOCK(NULL); + return 0; +} + /* * dmio_ioctl: * @@ -734,7 +754,7 @@ .fo_ioctl = dmio_ioctl, .fo_fcntl = fnullop_fcntl, .fo_poll = dmio_poll, - .fo_stat = fbadop_stat, + .fo_stat = dmio_stat, .fo_close = dmio_close, .fo_kqfilter = fnullop_kqfilter, .fo_drain = fnullop_drain, @@ -759,6 +779,8 @@ s = splsoftclock(); ds = pool_get(&dmio_state_pool, PR_WAITOK); splx(s); + getnanotime(&ds->ds_btime); + ds->ds_atime = ds->ds_mtime = ds->ds_btime; memset(ds, 0, sizeof(*ds)); simple_lock_init(&ds->ds_slock); Index: src/sys/dev/putter/putter.c diff -u src/sys/dev/putter/putter.c:1.21 src/sys/dev/putter/putter.c:1.22 --- src/sys/dev/putter/putter.c:1.21 Sat Apr 4 06:12:51 2009 +++ src/sys/dev/putter/putter.c Sat Apr 11 11:47:33 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: putter.c,v 1.21 2009/04/04 10:12:51 ad Exp $ */ +/* $NetBSD: putter.c,v 1.22 2009/04/11 15:47:33 christos Exp $ */ /* * Copyright (c) 2006, 2007 Antti Kantee. All Rights Reserved. @@ -35,7 +35,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: putter.c,v 1.21 2009/04/04 10:12:51 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: putter.c,v 1.22 2009/04/11 15:47:33 christos Exp $"); #include #include @@ -44,12 +44,29 @@ #include #include #include +#include #include #include #include /* + * Device routines. These are for when /dev/puffs is initially + * opened before it has been cloned. + */ + +dev_type_open(puttercdopen); +dev_type_close(puttercdclose); +dev_type_ioctl(puttercdioctl); + +/* dev */ +const struct cdevsw putter_cdevsw = { + puttercdopen, puttercdclose, noread, nowrite, + noioctl, nostop, notty, nopoll, + nommap, nokqfilter, D_OTHER +}; + +/* * Configuration data. * * This is static-size for now. Will be redone for devfs. @@ -111,6 +128,9 @@ uint8_t *pi_curput; size_t pi_curres; void *pi_curopaq; + struct timespec pi_atime; + struct timespec pi_mtime; + struct timespec pi_btime; TAILQ_ENTRY(putter_instance) pi_entries; }; @@ -171,6 +191,7 @@ kauth_cred_t, int); static int putter_fop_ioctl(file_t*, u_long, void *); static int putter_fop_poll(file_t *, int); +static int putter_fop_stat(file_t *, struct stat *); static int putter_fop_close(file_t *); static int putter_fop_kqfilter(file_t *, struct knote *); @@ -181,7 +202
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 -__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 #include @@ -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 15:46:04 UTC 2009 Modified Files: src/lib/librmt: rmtops.3 Log Message: Use semantic markup. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 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.10 src/lib/librmt/rmtops.3:1.11 --- src/lib/librmt/rmtops.3:1.10 Mon Mar 9 19:24:27 2009 +++ src/lib/librmt/rmtops.3 Sat Apr 11 15:46:04 2009 @@ -1,4 +1,4 @@ -.\" $NetBSD: rmtops.3,v 1.10 2009/03/09 19:24:27 joerg Exp $ +.\" $NetBSD: rmtops.3,v 1.11 2009/04/11 15:46:04 joerg Exp $ .\" .Dd October 16, 2001 .Dt RMTOPS 3 @@ -54,9 +54,7 @@ or she has an account and the appropriate remote permissions. .Pp A remote tape drive file name has the form -.sp - [u...@]hostname:/dev/??? -.sp +.Dl [u...@]hostname:/dev/??? where .Em system is the remote system,
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/lib/libpuffs
Module Name:src Committed By: joerg Date: Sat Apr 11 15:37:12 UTC 2009 Modified Files: src/lib/libpuffs: puffs_ops.3 Log Message: Fix markup. To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 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.23 src/lib/libpuffs/puffs_ops.3:1.24 --- src/lib/libpuffs/puffs_ops.3:1.23 Fri Feb 20 14:26:56 2009 +++ src/lib/libpuffs/puffs_ops.3 Sat Apr 11 15:37:12 2009 @@ -1,4 +1,4 @@ -.\" $NetBSD: puffs_ops.3,v 1.23 2009/02/20 14:26:56 pooka Exp $ +.\" $NetBSD: puffs_ops.3,v 1.24 2009/04/11 15:37:12 joerg 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: src/lib/libpuffs
Module Name:src Committed By: joerg Date: Sat Apr 11 15:36:22 UTC 2009 Modified Files: src/lib/libpuffs: puffs_cred.3 Log Message: Fix missing quote. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/lib/libpuffs/puffs_cred.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_cred.3 diff -u src/lib/libpuffs/puffs_cred.3:1.4 src/lib/libpuffs/puffs_cred.3:1.5 --- src/lib/libpuffs/puffs_cred.3:1.4 Fri Feb 20 14:26:56 2009 +++ src/lib/libpuffs/puffs_cred.3 Sat Apr 11 15:36:22 2009 @@ -1,4 +1,4 @@ -.\" $NetBSD: puffs_cred.3,v 1.4 2009/02/20 14:26:56 pooka Exp $ +.\" $NetBSD: puffs_cred.3,v 1.5 2009/04/11 15:36:22 joerg Exp $ .\" .\" Copyright (c) 2007 Antti Kantee. All rights reserved. .\" @@ -34,7 +34,7 @@ .Sh SYNOPSIS .In puffs.h .Ft int -.Fn puffs_cred_getuid "const struct puffs_cred *pcr" "uid_t *uid +.Fn puffs_cred_getuid "const struct puffs_cred *pcr" "uid_t *uid" .Ft int .Fn puffs_cred_getgid "const struct puffs_cred *pcr" "gid_t *gid" .Ft int
CVS commit: src/lib/libpthread
Module Name:src Committed By: joerg Date: Sat Apr 11 15:35:16 UTC 2009 Modified Files: src/lib/libpthread: pthread_attr.3 Log Message: .\" are comments, not ./" To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/lib/libpthread/pthread_attr.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/libpthread/pthread_attr.3 diff -u src/lib/libpthread/pthread_attr.3:1.8 src/lib/libpthread/pthread_attr.3:1.9 --- src/lib/libpthread/pthread_attr.3:1.8 Sun Oct 19 21:27:46 2008 +++ src/lib/libpthread/pthread_attr.3 Sat Apr 11 15:35:15 2009 @@ -1,4 +1,4 @@ -.\" $NetBSD: pthread_attr.3,v 1.8 2008/10/19 21:27:46 snj Exp $ +.\" $NetBSD: pthread_attr.3,v 1.9 2009/04/11 15:35:15 joerg Exp $ .\" .\" Copyright (c) 2002 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -56,22 +56,22 @@ .Sh NAME .Nm pthread_attr_init , .Nm pthread_attr_destroy , -./" .Nm pthread_attr_setstacksize , -./" .Nm pthread_attr_getstacksize , -./" .Nm pthread_attr_setguardsize , -./" .Nm pthread_attr_getguardsize , -./" .Nm pthread_attr_setstackaddr , -./" .Nm pthread_attr_getstackaddr , +.\" .Nm pthread_attr_setstacksize , +.\" .Nm pthread_attr_getstacksize , +.\" .Nm pthread_attr_setguardsize , +.\" .Nm pthread_attr_getguardsize , +.\" .Nm pthread_attr_setstackaddr , +.\" .Nm pthread_attr_getstackaddr , .Nm pthread_attr_setdetachstate , .Nm pthread_attr_getdetachstate , -./" .Nm pthread_attr_setinheritsched , -./" .Nm pthread_attr_getinheritsched , +.\" .Nm pthread_attr_setinheritsched , +.\" .Nm pthread_attr_getinheritsched , .Nm pthread_attr_setschedparam , .Nm pthread_attr_getschedparam -./" .Nm pthread_attr_setschedpolicy , -./" .Nm pthread_attr_getschedpolicy , -./" .Nm pthread_attr_setscope , -./" .Nm pthread_attr_getscope +.\" .Nm pthread_attr_setschedpolicy , +.\" .Nm pthread_attr_getschedpolicy , +.\" .Nm pthread_attr_setscope , +.\" .Nm pthread_attr_getscope .Nd thread attribute operations .Sh LIBRARY .Lb libpthread @@ -81,38 +81,38 @@ .Fn pthread_attr_init "pthread_attr_t *attr" .Ft int .Fn pthread_attr_destroy "pthread_attr_t *attr" -./" .Ft int -./" .Fn pthread_attr_setstacksize "pthread_attr_t *attr" "size_t stacksize" -./" .Ft int -./" .Fn pthread_attr_getstacksize "const pthread_attr_t * restrict attr" "size_t * restrict stacksize" -./" .Ft int -./" .Fn pthread_attr_setguardsize "pthread_attr_t *attr" "size_t guardsize" -./" .Ft int -./" .Fn pthread_attr_getguardsize "const pthread_attr_t * restrict attr" "size_t * restrict guardsize" -./" .Ft int -./" .Fn pthread_attr_setstackaddr "pthread_attr_t *attr" "void *stackaddr" -./" .Ft int -./" .Fn pthread_attr_getstackaddr "const pthread_attr_t * restrict attr" "void ** restrict stackaddr" +.\" .Ft int +.\" .Fn pthread_attr_setstacksize "pthread_attr_t *attr" "size_t stacksize" +.\" .Ft int +.\" .Fn pthread_attr_getstacksize "const pthread_attr_t * restrict attr" "size_t * restrict stacksize" +.\" .Ft int +.\" .Fn pthread_attr_setguardsize "pthread_attr_t *attr" "size_t guardsize" +.\" .Ft int +.\" .Fn pthread_attr_getguardsize "const pthread_attr_t * restrict attr" "size_t * restrict guardsize" +.\" .Ft int +.\" .Fn pthread_attr_setstackaddr "pthread_attr_t *attr" "void *stackaddr" +.\" .Ft int +.\" .Fn pthread_attr_getstackaddr "const pthread_attr_t * restrict attr" "void ** restrict stackaddr" .Ft int .Fn pthread_attr_setdetachstate "pthread_attr_t *attr" "int detachstate" .Ft int .Fn pthread_attr_getdetachstate "const pthread_attr_t *attr" "int *detachstate" -./" .Ft int -./" .Fn pthread_attr_setinheritsched "pthread_attr_t *attr" "int inheritsched" -./" .Ft int -./" .Fn pthread_attr_getinheritsched "const pthread_attr_t * restrict attr" "int * restrict inheritsched" +.\" .Ft int +.\" .Fn pthread_attr_setinheritsched "pthread_attr_t *attr" "int inheritsched" +.\" .Ft int +.\" .Fn pthread_attr_getinheritsched "const pthread_attr_t * restrict attr" "int * restrict inheritsched" .Ft int .Fn pthread_attr_setschedparam "pthread_attr_t * restrict attr" "const struct sched_param * restrict param" .Ft int .Fn pthread_attr_getschedparam "const pthread_attr_t * restrict attr" "struct sched_param * restrict param" -./" .Ft int -./" .Fn pthread_attr_setschedpolicy "pthread_attr_t *attr" "int policy" -./" .Ft int -./" .Fn pthread_attr_getschedpolicy "const pthread_attr_t * restrict attr" "int * restrict policy" -./" .Ft int -./" .Fn pthread_attr_setscope "pthread_attr_t *attr" "int contentionscope" -./" .Ft int -./" .Fn pthread_attr_getscope "const pthread_attr_t * restrict attr" "int * restrict contentionscope" +.\" .Ft int +.\" .Fn pthread_attr_setschedpolicy "pthread_attr_t *attr" "int policy" +.\" .Ft int +.\" .Fn pthread_attr_getschedpolicy "const pthread_attr_t * restrict attr" "int * restrict policy" +.\" .Ft int +.\" .Fn pthread_attr_setscope "pthread_attr_t *attr" "int contentionscope" +.\" .Ft int +.\" .Fn pthread_attr_getscop
CVS commit: src/lib/libc/gmon
Module Name:src Committed By: joerg Date: Sat Apr 11 15:33:27 UTC 2009 Modified Files: src/lib/libc/gmon: moncontrol.3 Log Message: Fix markup. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/lib/libc/gmon/moncontrol.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/gmon/moncontrol.3 diff -u src/lib/libc/gmon/moncontrol.3:1.9 src/lib/libc/gmon/moncontrol.3:1.10 --- src/lib/libc/gmon/moncontrol.3:1.9 Thu Aug 7 16:43:03 2003 +++ src/lib/libc/gmon/moncontrol.3 Sat Apr 11 15:33:27 2009 @@ -1,4 +1,4 @@ -.\" $NetBSD: moncontrol.3,v 1.9 2003/08/07 16:43:03 agc Exp $ +.\" $NetBSD: moncontrol.3,v 1.10 2009/04/11 15:33:27 joerg Exp $ .\" .\" Copyright (c) 1980, 1991, 1992, 1993 .\" The Regents of the University of California. All rights reserved. @@ -105,8 +105,9 @@ setting this is the only reasonable way to get all profiling data. .El .Sh FILES -.Bl -tag -width Pa -compact -.It Pa gmon.out execution data file +.Bl -tag -width ".Pa gmon.out" -compact +.It Pa gmon.out +execution data file .El .Sh SEE ALSO .Xr cc 1 ,
CVS commit: src/lib/libc/net
Module Name:src Committed By: joerg Date: Sat Apr 11 15:32:03 UTC 2009 Modified Files: src/lib/libc/net: iso_addr.3 Log Message: Remove reundant quote. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/lib/libc/net/iso_addr.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/net/iso_addr.3 diff -u src/lib/libc/net/iso_addr.3:1.8 src/lib/libc/net/iso_addr.3:1.9 --- src/lib/libc/net/iso_addr.3:1.8 Thu Aug 7 16:43:11 2003 +++ src/lib/libc/net/iso_addr.3 Sat Apr 11 15:32:03 2009 @@ -1,4 +1,4 @@ -.\" $NetBSD: iso_addr.3,v 1.8 2003/08/07 16:43:11 agc Exp $ +.\" $NetBSD: iso_addr.3,v 1.9 2009/04/11 15:32:03 joerg Exp $ .\" .\" Copyright (c) 1993 .\" The Regents of the University of California. All rights reserved. @@ -35,7 +35,7 @@ .Sh NAME .Nm iso_addr , .Nm iso_ntoa -.Nd "elementary network address conversion routines for Open System Interconnection +.Nd elementary network address conversion routines for Open System Interconnection .Sh LIBRARY .Lb libc .Sh SYNOPSIS
CVS commit: src/lib/libc/gen
Module Name:src Committed By: joerg Date: Sat Apr 11 15:30:50 UTC 2009 Modified Files: src/lib/libc/gen: glob.3 Log Message: Fix markup. To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/lib/libc/gen/glob.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/gen/glob.3 diff -u src/lib/libc/gen/glob.3:1.34 src/lib/libc/gen/glob.3:1.35 --- src/lib/libc/gen/glob.3:1.34 Wed Apr 8 19:27:39 2009 +++ src/lib/libc/gen/glob.3 Sat Apr 11 15:30:49 2009 @@ -1,4 +1,4 @@ -.\" $NetBSD: glob.3,v 1.34 2009/04/08 19:27:39 wiz Exp $ +.\" $NetBSD: glob.3,v 1.35 2009/04/11 15:30:49 joerg Exp $ .\" .\" Copyright (c) 1989, 1991, 1993, 1994 .\" The Regents of the University of California. All rights reserved. @@ -492,7 +492,7 @@ .Fn globfree functions first appeared in .Bx 4.4 . -.The +The .Fn glob_pattern_p function is modelled after the one found in glibc. .Sh BUGS
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 .\" 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/distrib/sets
Module Name:src Committed By: apb Date: Sat Apr 11 15:09:32 UTC 2009 Modified Files: src/distrib/sets: Makefile makesrctars maketars Log Message: In various places that manipulate mtree specs, use "mtree -CS" to sort. Remove some now-redundant standalone sort commands. To generate a diff of this commit: cvs rdiff -u -r1.65 -r1.66 src/distrib/sets/Makefile cvs rdiff -u -r1.35 -r1.36 src/distrib/sets/makesrctars cvs rdiff -u -r1.67 -r1.68 src/distrib/sets/maketars Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/sets/Makefile diff -u src/distrib/sets/Makefile:1.65 src/distrib/sets/Makefile:1.66 --- src/distrib/sets/Makefile:1.65 Thu Nov 13 20:40:11 2008 +++ src/distrib/sets/Makefile Sat Apr 11 15:09:32 2009 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.65 2008/11/13 20:40:11 apb Exp $ +# $NetBSD: Makefile,v 1.66 2009/04/11 15:09:32 apb Exp $ # The `all' target must appear before bsd.own.mk is pulled in. all: @@ -89,7 +89,7 @@ ( cat ${NETBSDSRCDIR}/etc/mtree/NetBSD.dist ; \ echo '/unset all' ; \ cat ${METALOG} ) \ - | ${TOOL_MTREE} -C -k all -N ${NETBSDSRCDIR}/etc > ${METALOG}.new && \ + | ${TOOL_MTREE} -CS -k all -N ${NETBSDSRCDIR}/etc > ${METALOG}.new && \ ( rm -f ${METALOG} ; \ mv ${METALOG}.new ${METALOG} ) cat ${METALOG} | ${GREP} -v " optional" > ${.TARGET} Index: src/distrib/sets/makesrctars diff -u src/distrib/sets/makesrctars:1.35 src/distrib/sets/makesrctars:1.36 --- src/distrib/sets/makesrctars:1.35 Fri Apr 3 22:36:35 2009 +++ src/distrib/sets/makesrctars Sat Apr 11 15:09:32 2009 @@ -1,6 +1,6 @@ #! /bin/sh # -# $NetBSD: makesrctars,v 1.35 2009/04/03 22:36:35 perry Exp $ +# $NetBSD: makesrctars,v 1.36 2009/04/11 15:09:32 apb Exp $ # # makesrctars srcdir setdir # Create source tarballs in setdir from the source under srcdir. @@ -87,7 +87,7 @@ egrep='.' fi set -f - ${MTREE} -c -X "${intmp}" | ${MTREE} -C -k type | \ + ${MTREE} -c -X "${intmp}" | ${MTREE} -CS -k type | \ ${EGREP} -v 'type=link' | ${EGREP} ${egrep} | \ ${SED} -e 's:type=file:& mode=0664:' \ -e 's:type=dir:& mode=0775:' \ Index: src/distrib/sets/maketars diff -u src/distrib/sets/maketars:1.67 src/distrib/sets/maketars:1.68 --- src/distrib/sets/maketars:1.67 Fri Apr 3 22:36:35 2009 +++ src/distrib/sets/maketars Sat Apr 11 15:09:32 2009 @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: maketars,v 1.67 2009/04/03 22:36:35 perry Exp $ +# $NetBSD: maketars,v 1.68 2009/04/11 15:09:32 apb Exp $ # # Make release tar files for some or all lists. Usage: # maketars [-b] [-x] [-i installdir] [-a arch] [-m machine] [-s setsdir] @@ -144,14 +144,13 @@ if [ -n "${metalog}" ]; then ${setfilesonly} && msg "Creating ${setlistdir}/set.${setname}" ${AWK} -f "${rundir}/getdirs.awk" "${SDIR}/flist.${setname}" \ - | ${SORT} -u > "${SDIR}/flist.${setname}.full" + > "${SDIR}/flist.${setname}.full" ( echo "/set uname=root gname=wheel" ${AWK} -f "${rundir}/join.awk" \ -"${SDIR}/flist.${setname}.full" "${metalog}" \ -| ${SORT} -u +"${SDIR}/flist.${setname}.full" "${metalog}" echo "./etc/mtree/set.${setname} type=file mode=0444" - ) | ${MTREE} -C -k all -R time -N "${etcdir}" \ + ) | ${MTREE} -CS -k all -R time -N "${etcdir}" \ > "${setlistdir}/set.${setname}" # We deliberately do not add set.${setname} to ${metalog}, # because we depend on it as an input.
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/sys
Module Name:src Committed By: christos Date: Sat Apr 11 14:42:28 UTC 2009 Modified Files: src/sys/kern: sys_pipe.c src/sys/sys: pipe.h Log Message: - maintain timespec internally. - set birthtime too. To generate a diff of this commit: cvs rdiff -u -r1.109 -r1.110 src/sys/kern/sys_pipe.c cvs rdiff -u -r1.25 -r1.26 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.109 src/sys/kern/sys_pipe.c:1.110 --- src/sys/kern/sys_pipe.c:1.109 Sat Apr 4 06:12:51 2009 +++ src/sys/kern/sys_pipe.c Sat Apr 11 10:42:28 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: sys_pipe.c,v 1.109 2009/04/04 10:12:51 ad Exp $ */ +/* $NetBSD: sys_pipe.c,v 1.110 2009/04/11 14:42:28 christos Exp $ */ /*- * Copyright (c) 2003, 2007, 2008, 2009 The NetBSD Foundation, Inc. @@ -68,7 +68,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: sys_pipe.c,v 1.109 2009/04/04 10:12:51 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sys_pipe.c,v 1.110 2009/04/11 14:42:28 christos Exp $"); #include #include @@ -349,7 +349,7 @@ KASSERT(pipe != NULL); *pipep = pipe; error = 0; - getmicrotime(&pipe->pipe_ctime); + getnanotime(&pipe->pipe_ctime); pipe->pipe_atime = pipe->pipe_ctime; pipe->pipe_mtime = pipe->pipe_ctime; pipe->pipe_lock = mutex; @@ -585,7 +585,7 @@ } if (error == 0) - getmicrotime(&rpipe->pipe_atime); + getnanoime(&rpipe->pipe_atime); pipeunlock(rpipe); unlocked_error: @@ -1032,7 +1032,7 @@ error = 0; if (error == 0) - getmicrotime(&wpipe->pipe_mtime); + getnanotime(&wpipe->pipe_mtime); /* * We have something to offer, wake up select/poll. @@ -1186,16 +1186,16 @@ { struct pipe *pipe = fp->f_data; - memset((void *)ub, 0, sizeof(*ub)); + memset(ub, 0, sizeof(*ub)); ub->st_mode = S_IFIFO | S_IRUSR | S_IWUSR; ub->st_blksize = pipe->pipe_buffer.size; if (ub->st_blksize == 0 && pipe->pipe_peer) ub->st_blksize = pipe->pipe_peer->pipe_buffer.size; ub->st_size = pipe->pipe_buffer.cnt; ub->st_blocks = (ub->st_size) ? 1 : 0; - TIMEVAL_TO_TIMESPEC(&pipe->pipe_atime, &ub->st_atimespec); - TIMEVAL_TO_TIMESPEC(&pipe->pipe_mtime, &ub->st_mtimespec); - TIMEVAL_TO_TIMESPEC(&pipe->pipe_ctime, &ub->st_ctimespec); + ub->st_atimespec = pipe->pipe_atime; + ub->st_mtimespec = pipe->pipe_mtime; + ub->st_ctimespec = ub->st_birthtimespec = pipe->pipe_ctime; 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.25 src/sys/sys/pipe.h:1.26 --- src/sys/sys/pipe.h:1.25 Sun Feb 1 13:23:04 2009 +++ src/sys/sys/pipe.h Sat Apr 11 10:42:28 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: pipe.h,v 1.25 2009/02/01 18:23:04 ad Exp $ */ +/* $NetBSD: pipe.h,v 1.26 2009/04/11 14:42:28 christos Exp $ */ /* * Copyright (c) 1996 John S. Dyson @@ -109,9 +109,9 @@ struct pipebuf pipe_buffer; /* data storage */ struct pipemapping pipe_map; /* pipe mapping for direct I/O */ struct selinfo pipe_sel; /* for compat with select */ - struct timeval pipe_atime; /* time of last access */ - struct timeval pipe_mtime; /* time of last modify */ - struct timeval pipe_ctime; /* time of status change */ + struct timespec pipe_atime; /* time of last access */ + struct timespec pipe_mtime; /* time of last modify */ + struct timespec pipe_ctime; /* time of status change */ 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/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/usr.bin/mail
Module Name:src Committed By: christos Date: Sat Apr 11 14:22:32 UTC 2009 Modified Files: src/usr.bin/mail: Makefile cmd3.c cmd4.c fio.c format.c mime_attach.c thread.c Log Message: - magic fix for short files - knf from Anon Ymous To generate a diff of this commit: cvs rdiff -u -r1.31 -r1.32 src/usr.bin/mail/Makefile cvs rdiff -u -r1.40 -r1.41 src/usr.bin/mail/cmd3.c cvs rdiff -u -r1.5 -r1.6 src/usr.bin/mail/cmd4.c cvs rdiff -u -r1.32 -r1.33 src/usr.bin/mail/fio.c cvs rdiff -u -r1.14 -r1.15 src/usr.bin/mail/format.c cvs rdiff -u -r1.12 -r1.13 src/usr.bin/mail/mime_attach.c cvs rdiff -u -r1.8 -r1.9 src/usr.bin/mail/thread.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/mail/Makefile diff -u src/usr.bin/mail/Makefile:1.31 src/usr.bin/mail/Makefile:1.32 --- src/usr.bin/mail/Makefile:1.31 Fri Apr 10 09:08:24 2009 +++ src/usr.bin/mail/Makefile Sat Apr 11 10:22:32 2009 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.31 2009/04/10 13:08:24 christos Exp $ +# $NetBSD: Makefile,v 1.32 2009/04/11 14:22:32 christos Exp $ # @(#)Makefile 8.3 (Berkeley) 4/20/95 .include @@ -15,6 +15,7 @@ # CPPFLAGS+= -DBROKEN_EXEC_TTY_RESTORE # broken since 4.99.10 CPPFLAGS+= -DBROKEN_CLONE_STAT # see PRs 37878 and 37550 +CPPFLAGS+= -DBROKEN_MAGIC # bad MIME type on short files # Debugging options (most should go away - please leave for now). # Index: src/usr.bin/mail/cmd3.c diff -u src/usr.bin/mail/cmd3.c:1.40 src/usr.bin/mail/cmd3.c:1.41 --- src/usr.bin/mail/cmd3.c:1.40 Fri Apr 10 09:08:24 2009 +++ src/usr.bin/mail/cmd3.c Sat Apr 11 10:22:32 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: cmd3.c,v 1.40 2009/04/10 13:08:24 christos Exp $ */ +/* $NetBSD: cmd3.c,v 1.41 2009/04/11 14:22:32 christos Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)cmd3.c 8.2 (Berkeley) 4/20/95"; #else -__RCSID("$NetBSD: cmd3.c,v 1.40 2009/04/10 13:08:24 christos Exp $"); +__RCSID("$NetBSD: cmd3.c,v 1.41 2009/04/11 14:22:32 christos Exp $"); #endif #endif /* not lint */ @@ -477,7 +477,7 @@ (void)printf("address missing!\n"); return 1; } - for ( ip = msgvec; *ip; ip++) { + for (ip = msgvec; *ip; ip++) { int e; if ((e = forward_one(*ip, hdr.h_to)) != 0) return e; @@ -578,7 +578,7 @@ return 1; smargs = unpack(hdr.h_to); - for ( ip = msgvec; *ip; ip++) { + for (ip = msgvec; *ip; ip++) { int e; if ((e = bounce_one(*ip, smargs, hdr.h_to)) != 0) return e; Index: src/usr.bin/mail/cmd4.c diff -u src/usr.bin/mail/cmd4.c:1.5 src/usr.bin/mail/cmd4.c:1.6 --- src/usr.bin/mail/cmd4.c:1.5 Fri Apr 10 09:08:24 2009 +++ src/usr.bin/mail/cmd4.c Sat Apr 11 10:22:32 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: cmd4.c,v 1.5 2009/04/10 13:08:24 christos Exp $ */ +/* $NetBSD: cmd4.c,v 1.6 2009/04/11 14:22:32 christos Exp $ */ /*- * Copyright (c) 2006 The NetBSD Foundation, Inc. @@ -35,7 +35,7 @@ #if 0 static char sccsid[] = "@(#)cmd3.c 8.2 (Berkeley) 4/20/95"; #else -__RCSID("$NetBSD: cmd4.c,v 1.5 2009/04/10 13:08:24 christos Exp $"); +__RCSID("$NetBSD: cmd4.c,v 1.6 2009/04/11 14:22:32 christos Exp $"); #endif #endif /* not lint */ @@ -137,13 +137,13 @@ int cnt; cnt = 1; - for (h = 0; h < (int)__arraycount(smoptstbl); h++ ) + for (h = 0; h < (int)__arraycount(smoptstbl); h++) for (sp = smoptstbl[h]; sp && sp->s_name != NULL; sp = sp->s_link) cnt++; argv = salloc(cnt * sizeof(*argv)); ap = argv; - for (h = 0; h < (int)__arraycount(smoptstbl); h++ ) + for (h = 0; h < (int)__arraycount(smoptstbl); h++) for (sp = smoptstbl[h]; sp && sp->s_name != NULL; sp = sp->s_link) *ap++ = sp->s_name; *ap = NULL; Index: src/usr.bin/mail/fio.c diff -u src/usr.bin/mail/fio.c:1.32 src/usr.bin/mail/fio.c:1.33 --- src/usr.bin/mail/fio.c:1.32 Fri Apr 10 09:08:24 2009 +++ src/usr.bin/mail/fio.c Sat Apr 11 10:22:32 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: fio.c,v 1.32 2009/04/10 13:08:24 christos Exp $ */ +/* $NetBSD: fio.c,v 1.33 2009/04/11 14:22:32 christos Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)fio.c 8.2 (Berkeley) 4/20/95"; #else -__RCSID("$NetBSD: fio.c,v 1.32 2009/04/10 13:08:24 christos Exp $"); +__RCSID("$NetBSD: fio.c,v 1.33 2009/04/11 14:22:32 christos Exp $"); #endif #endif /* not lint */ @@ -235,7 +235,7 @@ (void)fwrite(linebuf, sizeof(*linebuf), len, otf); if (ferror(otf)) err(EXIT_FAILURE, "/tmp"); - if(len) + if (len) linebuf[len - 1] = 0; if (maybe && linebuf[0] == 'F' && ishead(linebuf)) { nmsgCount++; Index: src/usr.bin/mail/format.c diff -u src/usr.bin/mail/format.c:1.14 src/usr.bin/mail/format.c:1.15 --- src/usr.bin/mail/format.c:1.14 Fri Apr 10 09:08:24 2009 +++ src/usr.bin/mail/format.c Sat Apr 11 10:22:32 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: format.c,v 1.14 2009/04/10 13:08:24 christos Exp $ */ +/* $NetBSD: format.c,v 1.15 2009/04/11 14:22:32 christos Ex
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/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/getencstat
Module Name:src Committed By: wiz Date: Sat Apr 11 13:24:01 UTC 2009 Modified Files: src/usr.sbin/sesd/getencstat: getencstat.8 Log Message: New sentence, new line. Remove empty section. Add comma in enumeration. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/usr.sbin/sesd/getencstat/getencstat.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/getencstat/getencstat.8 diff -u src/usr.sbin/sesd/getencstat/getencstat.8:1.4 src/usr.sbin/sesd/getencstat/getencstat.8:1.5 --- src/usr.sbin/sesd/getencstat/getencstat.8:1.4 Wed Apr 8 13:47:07 2009 +++ src/usr.sbin/sesd/getencstat/getencstat.8 Sat Apr 11 13:24:00 2009 @@ -1,4 +1,4 @@ -.\" $NetBSD: getencstat.8,v 1.4 2009/04/08 13:47:07 joerg Exp $ +.\" $NetBSD: getencstat.8,v 1.5 2009/04/11 13:24:00 wiz Exp $ .\" $OpenBSD: $ .\" $FreeBSD: $ .\" @@ -46,7 +46,9 @@ .Sh DESCRIPTION .Nm gets summary and detailed SCSI Environmental Services (or SAF-TE) device -enclosure status. The overall status is printed out. If the overall status +enclosure status. +The overall status is printed out. +If the overall status is considered okay, nothing else is printed out (unless the .Fl v option is used). @@ -57,7 +59,7 @@ or in one or more of the states of .Sy INFORMATIONAL , .Sy NON-CRITICAL , -.Sy CRITICAL +.Sy CRITICAL , or .Sy UNRECOVERABLE states. @@ -86,4 +88,3 @@ .Xr sesd 8 , .Xr setencstat 8 , .Xr setobjstat 8 -.Sh BUGS
CVS commit: src/usr.bin/deroff
Module Name:src Committed By: lukem Date: Sat Apr 11 13:01:27 UTC 2009 Modified Files: src/usr.bin/deroff: deroff.c Log Message: fix -Wsign-compare issues To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/usr.bin/deroff/deroff.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/deroff/deroff.c diff -u src/usr.bin/deroff/deroff.c:1.5 src/usr.bin/deroff/deroff.c:1.6 --- src/usr.bin/deroff/deroff.c:1.5 Sat Dec 15 19:44:50 2007 +++ src/usr.bin/deroff/deroff.c Sat Apr 11 13:01:27 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: deroff.c,v 1.5 2007/12/15 19:44:50 perry Exp $ */ +/* $NetBSD: deroff.c,v 1.6 2009/04/11 13:01:27 lukem Exp $ */ /* taken from: OpenBSD: deroff.c,v 1.6 2004/06/02 14:58:46 tom Exp */ @@ -74,13 +74,14 @@ #if 0 static const char sccsid[] = "@(#)deroff.c 8.1 (Berkeley) 6/6/93"; #else -static const char rcsid[] = "$NetBSD: deroff.c,v 1.5 2007/12/15 19:44:50 perry Exp $"; +static const char rcsid[] = "$NetBSD: deroff.c,v 1.6 2009/04/11 13:01:27 lukem Exp $"; #endif #endif /* not lint */ #include #include #include +#include #include #include #include @@ -436,7 +437,8 @@ while (C == ' ') ; /* nothing */ - for (p = fname ; p - fname < sizeof(fname) && (*p = c) != '\n' && + for (p = fname ; p - fname < (ptrdiff_t)sizeof(fname) && + (*p = c) != '\n' && c != ' ' && c != '\t' && c != '\\'; ++p) C; *p = '\0'; @@ -494,7 +496,7 @@ line[0] = c; lp = line; - while (lp - line < sizeof(line)) { + while (lp - line < (ptrdiff_t)sizeof(line)) { if (c == '\\') { *lp = ' '; backsl();
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 +#include #include #include @@ -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/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/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 #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: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/config
Module Name:src Committed By: lukem Date: Sat Apr 11 12:41:11 UTC 2009 Modified Files: src/usr.bin/config: hash.c mkheaders.c mkioconf.c mkmakefile.c pack.c scan.l sem.c Log Message: Fix WARNS=4 issues (-Wcast-qual -Wsign-compare -Wshadow) To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/usr.bin/config/hash.c src/usr.bin/config/pack.c cvs rdiff -u -r1.14 -r1.15 src/usr.bin/config/mkheaders.c cvs rdiff -u -r1.13 -r1.14 src/usr.bin/config/mkioconf.c cvs rdiff -u -r1.12 -r1.13 src/usr.bin/config/mkmakefile.c cvs rdiff -u -r1.11 -r1.12 src/usr.bin/config/scan.l cvs rdiff -u -r1.32 -r1.33 src/usr.bin/config/sem.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/config/hash.c diff -u src/usr.bin/config/hash.c:1.5 src/usr.bin/config/hash.c:1.6 --- src/usr.bin/config/hash.c:1.5 Wed Dec 27 17:50:27 2006 +++ src/usr.bin/config/hash.c Sat Apr 11 12:41:10 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: hash.c,v 1.5 2006/12/27 17:50:27 alc Exp $ */ +/* $NetBSD: hash.c,v 1.6 2009/04/11 12:41:10 lukem Exp $ */ /* * Copyright (c) 1992, 1993 @@ -209,7 +209,7 @@ void ht_free(struct hashtab *ht) { - int i; + size_t i; struct hashent *hp; struct hashenthead *hpp; @@ -305,7 +305,7 @@ { struct hashent *hp; struct hashenthead *hpp; - u_int i; + size_t i; int rval = 0; for (i = 0; i < ht->ht_size; i++) { Index: src/usr.bin/config/pack.c diff -u src/usr.bin/config/pack.c:1.5 src/usr.bin/config/pack.c:1.6 --- src/usr.bin/config/pack.c:1.5 Sat Jan 13 23:47:36 2007 +++ src/usr.bin/config/pack.c Sat Apr 11 12:41:10 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: pack.c,v 1.5 2007/01/13 23:47:36 christos Exp $ */ +/* $NetBSD: pack.c,v 1.6 2009/04/11 12:41:10 lukem Exp $ */ /* * Copyright (c) 1992, 1993 @@ -288,9 +288,9 @@ static int samelocs(const void *ptr, int off, int len) { - const char **p, **q; + const char * const *p, * const *q; - for (p = &locators.vec[off], q = (const char **)ptr; --len >= 0;) + for (p = &locators.vec[off], q = (const char * const *)ptr; --len >= 0;) if (*p++ != *q++) return (0); /* different */ return (1); /* same */ @@ -323,10 +323,10 @@ const struct pspec *p1, *p2; int l1, l2; - p1 = (*(const struct devi **)a)->i_pspec; + p1 = (*(const struct devi * const *)a)->i_pspec; l1 = p1 != NULL ? p1->p_iattr->a_loclen : 0; - p2 = (*(const struct devi **)b)->i_pspec; + p2 = (*(const struct devi * const *)b)->i_pspec; l2 = p2 != NULL ? p2->p_iattr->a_loclen : 0; return (l2 - l1); Index: src/usr.bin/config/mkheaders.c diff -u src/usr.bin/config/mkheaders.c:1.14 src/usr.bin/config/mkheaders.c:1.15 --- src/usr.bin/config/mkheaders.c:1.14 Sun Dec 28 01:23:46 2008 +++ src/usr.bin/config/mkheaders.c Sat Apr 11 12:41:10 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: mkheaders.c,v 1.14 2008/12/28 01:23:46 christos Exp $ */ +/* $NetBSD: mkheaders.c,v 1.15 2009/04/11 12:41:10 lukem Exp $ */ /* * Copyright (c) 1992, 1993 @@ -72,9 +72,9 @@ */ /* Unlikely constant for undefined options */ -#define UNDEFINED ('n' << 24 | 0 << 20 | 't' << 12 | 0xdef) +#define UNDEFINED ('n' << 24 | 0 << 20 | 't' << 12 | 0xdefU) /* Value for defined options with value UNDEFINED */ -#define DEFINED (0xdef1 << 16 | 'n' << 8 | 0xed) +#define DEFINED (0xdef1U << 16 | 'n' << 8 | 0xed) /* * Make the various config-generated header files. @@ -346,7 +346,7 @@ static int emitlocs(void) { - char *tfname; + const char *tfname; int rval; FILE *tfp; Index: src/usr.bin/config/mkioconf.c diff -u src/usr.bin/config/mkioconf.c:1.13 src/usr.bin/config/mkioconf.c:1.14 --- src/usr.bin/config/mkioconf.c:1.13 Tue Jan 20 18:20:48 2009 +++ src/usr.bin/config/mkioconf.c Sat Apr 11 12:41:10 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: mkioconf.c,v 1.13 2009/01/20 18:20:48 drochner Exp $ */ +/* $NetBSD: mkioconf.c,v 1.14 2009/04/11 12:41:10 lukem Exp $ */ /* * Copyright (c) 1992, 1993 @@ -124,8 +124,8 @@ { int n1, n2; - n1 = (*(const struct devi **)a)->i_cfindex; - n2 = (*(const struct devi **)b)->i_cfindex; + n1 = (*(const struct devi * const *)a)->i_cfindex; + n2 = (*(const struct devi * const *)b)->i_cfindex; return (n1 - n2); } @@ -353,7 +353,7 @@ const char *state, *basename, *attachment; struct nvlist *nv; struct attr *a; - char *loc; + const char *loc; char locbuf[20]; const char *lastname = ""; Index: src/usr.bin/config/mkmakefile.c diff -u src/usr.bin/config/mkmakefile.c:1.12 src/usr.bin/config/mkmakefile.c:1.13 --- src/usr.bin/config/mkmakefile.c:1.12 Fri Mar 13 20:44:59 2009 +++ src/usr.bin/config/mkmakefile.c Sat Apr 11 12:41:10 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: mkmakefile.c,v 1.12 2009/03/13 20:44:59 cube Exp $ */ +/* $NetBSD: mkmakefile.c,v 1.13 2009/04/11 12:41:10 lukem Exp $ */ /* * Copyright (c) 1992, 1993 @@ -280,7 +280,7 @@ emitdefs(FILE *fp) { struct nvlist *nv; - char *sp; + const char *sp; fprintf(fp, "KERNEL_BUILD=%s\n", c
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 #include -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.bin/comm
Module Name:src Committed By: lukem Date: Sat Apr 11 12:18:45 UTC 2009 Modified Files: src/usr.bin/comm: comm.c Log Message: fix -Wcast-qual issues for WARNS=4 To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/usr.bin/comm/comm.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/comm/comm.c diff -u src/usr.bin/comm/comm.c:1.16 src/usr.bin/comm/comm.c:1.17 --- src/usr.bin/comm/comm.c:1.16 Mon Jul 21 14:19:22 2008 +++ src/usr.bin/comm/comm.c Sat Apr 11 12:18:45 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: comm.c,v 1.16 2008/07/21 14:19:22 lukem Exp $ */ +/* $NetBSD: comm.c,v 1.17 2009/04/11 12:18:45 lukem Exp $ */ /* * Copyright (c) 1989, 1993, 1994 @@ -42,7 +42,7 @@ #if 0 static char sccsid[] = "@(#)comm.c 8.4 (Berkeley) 5/4/95"; #endif -__RCSID("$NetBSD: comm.c,v 1.16 2008/07/21 14:19:22 lukem Exp $"); +__RCSID("$NetBSD: comm.c,v 1.17 2009/04/11 12:18:45 lukem Exp $"); #endif /* not lint */ #include @@ -55,10 +55,10 @@ #define MAXLINELEN (LINE_MAX + 1) -char *tabs[] = { "", "\t", "\t\t" }; +const char *tabs[] = { "", "\t", "\t\t" }; FILE *file(const char *); -void show(FILE *, char *, char *); +void show(FILE *, const char *, char *); void usage(void); int @@ -67,8 +67,8 @@ int comp, file1done, file2done, read1, read2; int ch, flag1, flag2, flag3; FILE *fp1, *fp2; - char *col1, *col2, *col3; - char **p, line1[MAXLINELEN], line2[MAXLINELEN]; + const char *col1, *col2, *col3, **p; + char line1[MAXLINELEN], line2[MAXLINELEN]; int (*compare)(const char*,const char*); (void)setlocale(LC_ALL, ""); @@ -164,7 +164,7 @@ } void -show(FILE *fp, char *offset, char *buf) +show(FILE *fp, const char *offset, char *buf) { while (printf("%s%s", offset, buf) >= 0 && fgets(buf, MAXLINELEN, fp)) ;
CVS commit: src/usr.bin/cmp
Module Name:src Committed By: lukem Date: Sat Apr 11 12:16:12 UTC 2009 Modified Files: src/usr.bin/cmp: cmp.c extern.h misc.c regular.c special.c Log Message: Fix WARNS=4 issues (many -Wcast-qual, one -Wsign-compare on amd64) To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/usr.bin/cmp/cmp.c cvs rdiff -u -r1.7 -r1.8 src/usr.bin/cmp/extern.h cvs rdiff -u -r1.11 -r1.12 src/usr.bin/cmp/misc.c cvs rdiff -u -r1.20 -r1.21 src/usr.bin/cmp/regular.c cvs rdiff -u -r1.12 -r1.13 src/usr.bin/cmp/special.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/cmp/cmp.c diff -u src/usr.bin/cmp/cmp.c:1.16 src/usr.bin/cmp/cmp.c:1.17 --- src/usr.bin/cmp/cmp.c:1.16 Mon Jul 21 14:19:21 2008 +++ src/usr.bin/cmp/cmp.c Sat Apr 11 12:16:12 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: cmp.c,v 1.16 2008/07/21 14:19:21 lukem Exp $ */ +/* $NetBSD: cmp.c,v 1.17 2009/04/11 12:16:12 lukem Exp $ */ /* * Copyright (c) 1987, 1990, 1993, 1994 @@ -39,7 +39,7 @@ #if 0 static char sccsid[] = "@(#)cmp.c 8.3 (Berkeley) 4/2/94"; #else -__RCSID("$NetBSD: cmp.c,v 1.16 2008/07/21 14:19:21 lukem Exp $"); +__RCSID("$NetBSD: cmp.c,v 1.17 2009/04/11 12:16:12 lukem Exp $"); #endif #endif /* not lint */ @@ -67,7 +67,7 @@ struct stat sb1, sb2; off_t skip1 = 0, skip2 = 0; int ch, fd1, fd2, special; - char *file1, *file2; + const char *file1, *file2; setlocale(LC_ALL, ""); Index: src/usr.bin/cmp/extern.h diff -u src/usr.bin/cmp/extern.h:1.7 src/usr.bin/cmp/extern.h:1.8 --- src/usr.bin/cmp/extern.h:1.7 Tue Aug 21 14:09:53 2007 +++ src/usr.bin/cmp/extern.h Sat Apr 11 12:16:12 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: extern.h,v 1.7 2007/08/21 14:09:53 christos Exp $ */ +/* $NetBSD: extern.h,v 1.8 2009/04/11 12:16:12 lukem Exp $ */ /*- * Copyright (c) 1991, 1993, 1994 @@ -35,10 +35,10 @@ #define DIFF_EXIT 1 #define ERR_EXIT 2 /* error exit code */ -void c_regular(int, char *, off_t, off_t, int, char *, off_t, off_t); -void c_special(int, char *, off_t, int, char *, off_t); -void diffmsg(char *, char *, off_t, off_t); -void eofmsg(char *, off_t, off_t); -void errmsg(char *, off_t, off_t); +void c_regular(int, const char *, off_t, off_t, int, const char *, off_t, off_t); +void c_special(int, const char *, off_t, int, const char *, off_t); +void diffmsg(const char *, const char *, off_t, off_t); +void eofmsg(const char *, off_t, off_t); +void errmsg(const char *, off_t, off_t); extern int lflag, sflag; Index: src/usr.bin/cmp/misc.c diff -u src/usr.bin/cmp/misc.c:1.11 src/usr.bin/cmp/misc.c:1.12 --- src/usr.bin/cmp/misc.c:1.11 Wed Aug 22 16:59:19 2007 +++ src/usr.bin/cmp/misc.c Sat Apr 11 12:16:12 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: misc.c,v 1.11 2007/08/22 16:59:19 christos Exp $ */ +/* $NetBSD: misc.c,v 1.12 2009/04/11 12:16:12 lukem Exp $ */ /*- * Copyright (c) 1991, 1993, 1994 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)misc.c 8.3 (Berkeley) 4/2/94"; #else -__RCSID("$NetBSD: misc.c,v 1.11 2007/08/22 16:59:19 christos Exp $"); +__RCSID("$NetBSD: misc.c,v 1.12 2009/04/11 12:16:12 lukem Exp $"); #endif #endif /* not lint */ @@ -47,7 +47,7 @@ #include "extern.h" void -errmsg(char *file, off_t byte, off_t line) +errmsg(const char *file, off_t byte, off_t line) { if (lflag) err(ERR_EXIT, "%s: char %lld, line %lld", file, @@ -57,7 +57,7 @@ } void -eofmsg(char *file, off_t byte, off_t line) +eofmsg(const char *file, off_t byte, off_t line) { if (!sflag) { if (!lflag) @@ -75,7 +75,7 @@ } void -diffmsg(char *file1, char *file2, off_t byte, off_t line) +diffmsg(const char *file1, const char *file2, off_t byte, off_t line) { if (!sflag) (void)printf("%s %s differ: char %lld, line %lld\n", Index: src/usr.bin/cmp/regular.c diff -u src/usr.bin/cmp/regular.c:1.20 src/usr.bin/cmp/regular.c:1.21 --- src/usr.bin/cmp/regular.c:1.20 Sat Jun 3 21:47:55 2006 +++ src/usr.bin/cmp/regular.c Sat Apr 11 12:16:12 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: regular.c,v 1.20 2006/06/03 21:47:55 christos Exp $ */ +/* $NetBSD: regular.c,v 1.21 2009/04/11 12:16:12 lukem Exp $ */ /*- * Copyright (c) 1991, 1993, 1994 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)regular.c 8.3 (Berkeley) 4/2/94"; #else -__RCSID("$NetBSD: regular.c,v 1.20 2006/06/03 21:47:55 christos Exp $"); +__RCSID("$NetBSD: regular.c,v 1.21 2009/04/11 12:16:12 lukem Exp $"); #endif #endif /* not lint */ @@ -51,8 +51,8 @@ #include "extern.h" void -c_regular(int fd1, char *file1, off_t skip1, off_t len1, -int fd2, char *file2, off_t skip2, off_t len2) +c_regular(int fd1, const char *file1, off_t skip1, off_t len1, +int fd2, const char *file2, off_t skip2, off_t len2) { u_char ch, *p1, *p2; off_t byte, length, line; @@ -73,7 +73,7 @@ dfound = 0; length = MIN(len1, len2); for (blk_sz = 1024 * 1024; length != 0; length -= blk_sz) { - if (blk_sz > length) + if (blk_sz > (uint64_t)length) blk
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->p
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 -__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 #include @@ -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/cdplay
Module Name:src Committed By: lukem Date: Sat Apr 11 11:52:35 UTC 2009 Modified Files: src/usr.bin/cdplay: cdplay.c Log Message: fix -W sign-compare issues. To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42 src/usr.bin/cdplay/cdplay.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/cdplay/cdplay.c diff -u src/usr.bin/cdplay/cdplay.c:1.41 src/usr.bin/cdplay/cdplay.c:1.42 --- src/usr.bin/cdplay/cdplay.c:1.41 Sun Feb 22 08:32:25 2009 +++ src/usr.bin/cdplay/cdplay.c Sat Apr 11 11:52:35 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: cdplay.c,v 1.41 2009/02/22 08:32:25 dholland Exp $ */ +/* $NetBSD: cdplay.c,v 1.42 2009/04/11 11:52:35 lukem Exp $ */ /* * Copyright (c) 1999, 2000, 2001 Andrew Doran. @@ -40,7 +40,7 @@ #include #ifndef lint -__RCSID("$NetBSD: cdplay.c,v 1.41 2009/02/22 08:32:25 dholland Exp $"); +__RCSID("$NetBSD: cdplay.c,v 1.42 2009/04/11 11:52:35 lukem Exp $"); #endif /* not lint */ #include @@ -603,8 +603,8 @@ int play(const char *arg, int fromuser) { - int rv, n, start, end, istart, iend, blk, len, relend; - u_int tr1, tr2, m1, m2, s1, s2, f1, f2, tm, ts, tf; + int rv, start, end, istart, iend, blk, len, relend; + u_int n, tr1, tr2, m1, m2, s1, s2, f1, f2, tm, ts, tf; struct ioc_toc_header h; if (shuffle && fromuser) { @@ -878,8 +878,9 @@ if (dir == 0 || shuffle != 0) { if (fromuser || (rv != CD_AS_PLAY_IN_PROGRESS && rv != CD_AS_PLAY_PAUSED)) - trk = shuffle < 0 ? (-shuffle) : (h.starting_track + - arc4random() % (h.ending_track - h.starting_track + 1)); + trk = shuffle < 0 ? (-shuffle) : + (int)((h.starting_track + + arc4random() % (h.ending_track - h.starting_track + 1))); else return (0); } else { @@ -1192,7 +1193,8 @@ struct ioc_toc_header h; u_int mm, ss, ff; int rv; - int lba, i, n, rc; + int i, n, rc; + uint32_t lba; if (!tbvalid) { if ((rc = ioctl(fd, CDIOREADTOCHEADER, &h)) < 0) { @@ -1263,7 +1265,7 @@ { const struct cmdtab *c, *mc; char *p, *q; - int len; + unsigned int len; for (p = buf; isspace((unsigned char)*p); p++) continue; @@ -1297,7 +1299,7 @@ } /* Try short hand forms then... */ if (len >= c->min && strncasecmp(buf, c->name, len) == 0) { - if (*cmd != -1 && *cmd != c->command) { + if (*cmd != -1 && *cmd != (int)c->command) { warnx("ambiguous command"); return (0); }
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) - t
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/sys/arch/mvme68k/mvme68k
Module Name:src Committed By: scw Date: Sat Apr 11 11:04:42 UTC 2009 Modified Files: src/sys/arch/mvme68k/mvme68k: disksubr.c Log Message: Fix previous. printlp() and printclp() are not varargs functions. To generate a diff of this commit: cvs rdiff -u -r1.33 -r1.34 src/sys/arch/mvme68k/mvme68k/disksubr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/mvme68k/mvme68k/disksubr.c diff -u src/sys/arch/mvme68k/mvme68k/disksubr.c:1.33 src/sys/arch/mvme68k/mvme68k/disksubr.c:1.34 --- src/sys/arch/mvme68k/mvme68k/disksubr.c:1.33 Sat Jan 12 09:54:29 2008 +++ src/sys/arch/mvme68k/mvme68k/disksubr.c Sat Apr 11 11:04:41 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: disksubr.c,v 1.33 2008/01/12 09:54:29 tsutsui Exp $ */ +/* $NetBSD: disksubr.c,v 1.34 2009/04/11 11:04:41 scw Exp $ */ /* * Copyright (c) 1995 Dale Rahn. @@ -31,7 +31,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.33 2008/01/12 09:54:29 tsutsui Exp $"); +__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.34 2009/04/11 11:04:41 scw Exp $"); #include #include @@ -101,8 +101,8 @@ cputobsdlabel(lp, clp); #ifdef DEBUG if(disksubr_debug > 0) { - printlp(lp, "%s:bsd label", __func__); - printclp(clp, "%s:cpu label", __func__); + printlp(lp, "readdisklabel: bsd label"); + printclp(clp, "readdisklabel: cpu label"); } #endif return msg; @@ -121,9 +121,9 @@ #ifdef DEBUG if (disksubr_debug > 0) { - printlp(nlp, "%s:new disklabel", __func__); - printlp(olp, "%s:old disklabel", __func__); - printclp(clp, "%s:cpu disklabel", __func__); + printlp(nlp, "setdisklabel: new disklabel"); + printlp(olp, "setdisklabel: old disklabel"); + printclp(clp, "setdisklabel:cpu disklabel"); } #endif @@ -169,7 +169,7 @@ *olp = *nlp; #ifdef DEBUG if(disksubr_debug > 0) { - printlp(olp, "%s:old->new disklabel", __func__); + printlp(olp, "setdisklabel: old->new disklabel"); } #endif return 0; @@ -187,7 +187,7 @@ #ifdef DEBUG if(disksubr_debug > 0) { - printlp(lp, "%s: bsd label", __func__); + printlp(lp, "writedisklabel: bsd label"); } #endif @@ -220,7 +220,7 @@ #ifdef DEBUG if (disksubr_debug > 0) { - printclp(clp, "%s:cpu label", __func__); + printclp(clp, "writedisklabel: cpu label"); } #endif
CVS commit: src/sys/arch/mvme68k/dev
Module Name:src Committed By: scw Date: Sat Apr 11 11:01:47 UTC 2009 Modified Files: src/sys/arch/mvme68k/dev: zs.c Log Message: Invoke zs_lock_init() _after_ copying console state to avoid a later lock-related panic. To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42 src/sys/arch/mvme68k/dev/zs.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/mvme68k/dev/zs.c diff -u src/sys/arch/mvme68k/dev/zs.c:1.41 src/sys/arch/mvme68k/dev/zs.c:1.42 --- src/sys/arch/mvme68k/dev/zs.c:1.41 Fri Jun 13 12:26:02 2008 +++ src/sys/arch/mvme68k/dev/zs.c Sat Apr 11 11:01:47 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: zs.c,v 1.41 2008/06/13 12:26:02 cegger Exp $ */ +/* $NetBSD: zs.c,v 1.42 2009/04/11 11:01:47 scw Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -39,7 +39,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.41 2008/06/13 12:26:02 cegger Exp $"); +__KERNEL_RCSID(0, "$NetBSD: zs.c,v 1.42 2009/04/11 11:01:47 scw Exp $"); #include #include @@ -143,7 +143,6 @@ zsc_args.hwflags = zs_hwflags[zsc_unit][channel]; cs = &zsc->zsc_cs_store[channel]; zsc->zsc_cs[channel] = cs; - zs_lock_init(cs); /* * If we're the console, copy the channel state, and @@ -161,6 +160,7 @@ cs->cs_defspeed = zs_defspeed[zsc_unit][channel]; } + zs_lock_init(cs); cs->cs_brg_clk = pclk / 16; cs->cs_creg[2] = cs->cs_preg[2] = vector; zs_set_speed(cs, cs->cs_defspeed);
CVS commit: src/sys/lib/libsa
Module Name:src Committed By: lukem Date: Sat Apr 11 10:57:56 UTC 2009 Modified Files: src/sys/lib/libsa: net.c Log Message: fix sign-compare issue To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/sys/lib/libsa/net.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/lib/libsa/net.c diff -u src/sys/lib/libsa/net.c:1.34 src/sys/lib/libsa/net.c:1.35 --- src/sys/lib/libsa/net.c:1.34 Sat Jan 31 06:22:46 2009 +++ src/sys/lib/libsa/net.c Sat Apr 11 10:57:55 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: net.c,v 1.34 2009/01/31 06:22:46 isaki Exp $ */ +/* $NetBSD: net.c,v 1.35 2009/04/11 10:57:55 lukem Exp $ */ /* * Copyright (c) 1992 Regents of the University of California. @@ -120,8 +120,8 @@ tleft = 0; continue; } - if (cc < ssize) -panic("sendrecv: short write! (%zd < %zd)", + if ((size_t)cc < ssize) +panic("sendrecv: short write! (%zd < %zu)", cc, ssize); tlast = t;
CVS commit: src/sys/arch/mvme68k/stand
Module Name:src Committed By: scw Date: Sat Apr 11 10:56:13 UTC 2009 Modified Files: src/sys/arch/mvme68k/stand: Makefile.booters src/sys/arch/mvme68k/stand/bootst: dev_tape.c version Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/sys/arch/mvme68k/stand/Makefile.booters cvs rdiff -u -r1.10 -r1.11 src/sys/arch/mvme68k/stand/bootst/dev_tape.c cvs rdiff -u -r1.4 -r1.5 src/sys/arch/mvme68k/stand/bootst/version 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/mvme68k/stand/Makefile.booters diff -u src/sys/arch/mvme68k/stand/Makefile.booters:1.17 src/sys/arch/mvme68k/stand/Makefile.booters:1.18 --- src/sys/arch/mvme68k/stand/Makefile.booters:1.17 Fri Apr 3 10:38:13 2009 +++ src/sys/arch/mvme68k/stand/Makefile.booters Sat Apr 11 10:56:12 2009 @@ -1,10 +1,10 @@ -# $NetBSD: Makefile.booters,v 1.17 2009/04/03 10:38:13 tsutsui Exp $ +# $NetBSD: Makefile.booters,v 1.18 2009/04/11 10:56:12 scw Exp $ S?= ${.CURDIR}/../../../.. MDEC_DIR?= /usr/mdec RELOC?= 0x3F -COPTS?= -O2 -Wall -Wno-main -Wmissing-prototypes -Wstrict-prototypes \ - -ffreestanding +COPTS?= -Os -Wall -Wno-main -Wmissing-prototypes -Wstrict-prototypes \ + -ffreestanding -fomit-frame-pointer DEFS?= STRIPFLAG?= Index: src/sys/arch/mvme68k/stand/bootst/dev_tape.c diff -u src/sys/arch/mvme68k/stand/bootst/dev_tape.c:1.10 src/sys/arch/mvme68k/stand/bootst/dev_tape.c:1.11 --- src/sys/arch/mvme68k/stand/bootst/dev_tape.c:1.10 Mon Apr 28 20:23:29 2008 +++ src/sys/arch/mvme68k/stand/bootst/dev_tape.c Sat Apr 11 10:56:13 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: dev_tape.c,v 1.10 2008/04/28 20:23:29 martin Exp $ */ +/* $NetBSD: dev_tape.c,v 1.11 2009/04/11 10:56:13 scw Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -169,7 +169,7 @@ static int blkoffset = 0; #define hackload_addr ((char *)0x08) /* Load tape segment here */ -#define hackload_blocks 0x2000 /* 2Mb worth */ +#define hackload_blocks 0x3000 /* 3Mb worth */ if ((ti->flag & IGNORE_FILENUM) == 0) { /* Index: src/sys/arch/mvme68k/stand/bootst/version diff -u src/sys/arch/mvme68k/stand/bootst/version:1.4 src/sys/arch/mvme68k/stand/bootst/version:1.5 --- src/sys/arch/mvme68k/stand/bootst/version:1.4 Fri Nov 9 19:53:14 2001 +++ src/sys/arch/mvme68k/stand/bootst/version Sat Apr 11 10:56:13 2009 @@ -1,7 +1,8 @@ -$NetBSD: version,v 1.4 2001/11/09 19:53:14 scw Exp $ +$NetBSD: version,v 1.5 2009/04/11 10:56:13 scw Exp $ 1.1: Initial bootst (from Dale Rahn) 1.2: Update based on sun3 tapeboot (by Chuck Cranor) 1.3: Support verbose/quiet boot. 1.4: loadfile() update: ELF symbols no longer need backward seeks. 1.5: loadfile() update to avoid backwards seeks for ELF Program Headers. +1.6: hackprom_diskrd() needs loads up to 3MB from tape for current kernels.
CVS commit: src/usr.bin/audio
Module Name:src Committed By: lukem Date: Sat Apr 11 10:43:10 UTC 2009 Modified Files: src/usr.bin/audio/ctl: ctl.c src/usr.bin/audio/play: play.c src/usr.bin/audio/record: record.c Log Message: fix -Wsign-compare and other WARNS=4 issues To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/usr.bin/audio/ctl/ctl.c cvs rdiff -u -r1.49 -r1.50 src/usr.bin/audio/play/play.c cvs rdiff -u -r1.46 -r1.47 src/usr.bin/audio/record/record.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/audio/ctl/ctl.c diff -u src/usr.bin/audio/ctl/ctl.c:1.37 src/usr.bin/audio/ctl/ctl.c:1.38 --- src/usr.bin/audio/ctl/ctl.c:1.37 Mon Apr 28 20:24:12 2008 +++ src/usr.bin/audio/ctl/ctl.c Sat Apr 11 10:43:09 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: ctl.c,v 1.37 2008/04/28 20:24:12 martin Exp $ */ +/* $NetBSD: ctl.c,v 1.38 2009/04/11 10:43:09 lukem Exp $ */ /* * Copyright (c) 1997 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include #ifndef lint -__RCSID("$NetBSD: ctl.c,v 1.37 2008/04/28 20:24:12 martin Exp $"); +__RCSID("$NetBSD: ctl.c,v 1.38 2009/04/11 10:43:09 lukem Exp $"); #endif @@ -302,11 +302,11 @@ enc.index = i; if (ioctl(fd, AUDIO_GETENC, &enc) < 0) break; - if (pos >= sizeof(encbuf)-1) + if (pos >= (int)sizeof(encbuf)-1) break; if (pos) encbuf[pos++] = ','; - if (pos >= sizeof(encbuf)-1) + if (pos >= (int)sizeof(encbuf)-1) break; pos += snprintf(encbuf+pos, sizeof(encbuf)-pos, "%s:%d%s", enc.name, enc.precision, Index: src/usr.bin/audio/play/play.c diff -u src/usr.bin/audio/play/play.c:1.49 src/usr.bin/audio/play/play.c:1.50 --- src/usr.bin/audio/play/play.c:1.49 Thu May 29 14:51:27 2008 +++ src/usr.bin/audio/play/play.c Sat Apr 11 10:43:09 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: play.c,v 1.49 2008/05/29 14:51:27 mrg Exp $ */ +/* $NetBSD: play.c,v 1.50 2009/04/11 10:43:09 lukem Exp $ */ /* * Copyright (c) 1999 Matthew R. Green @@ -28,7 +28,7 @@ #include #ifndef lint -__RCSID("$NetBSD: play.c,v 1.49 2008/05/29 14:51:27 mrg Exp $"); +__RCSID("$NetBSD: play.c,v 1.50 2009/04/11 10:43:09 lukem Exp $"); #endif @@ -277,19 +277,19 @@ filesize -= hdrlen; addr = (char *)addr + hdrlen; - if (filesize < datasize || datasize == 0) { - if (filesize < datasize) + if ((uint64_t)filesize < datasize || datasize == 0) { + if ((uint64_t)filesize < datasize) warnx("bogus datasize: %ld", (u_long)datasize); datasize = filesize; } while (datasize > bufsize) { - if (write(audiofd, addr, bufsize) != bufsize) + if ((size_t)write(audiofd, addr, bufsize) != bufsize) err(1, "write failed"); addr = (char *)addr + bufsize; datasize -= bufsize; } - if (write(audiofd, addr, (size_t)datasize) != (ssize_t)datasize) + if ((size_t)write(audiofd, addr, datasize) != datasize) err(1, "final write failed"); if (ioctl(audiofd, AUDIO_DRAIN) < 0 && !qflag) Index: src/usr.bin/audio/record/record.c diff -u src/usr.bin/audio/record/record.c:1.46 src/usr.bin/audio/record/record.c:1.47 --- src/usr.bin/audio/record/record.c:1.46 Thu May 29 14:51:27 2008 +++ src/usr.bin/audio/record/record.c Sat Apr 11 10:43:10 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: record.c,v 1.46 2008/05/29 14:51:27 mrg Exp $ */ +/* $NetBSD: record.c,v 1.47 2009/04/11 10:43:10 lukem Exp $ */ /* * Copyright (c) 1999, 2002 Matthew R. Green @@ -32,7 +32,7 @@ #include #ifndef lint -__RCSID("$NetBSD: record.c,v 1.46 2008/05/29 14:51:27 mrg Exp $"); +__RCSID("$NetBSD: record.c,v 1.47 2009/04/11 10:43:10 lukem Exp $"); #endif @@ -334,11 +334,11 @@ (void)gettimeofday(&start_time, NULL); while (no_time_limit || timeleft(&start_time, &record_time)) { - if (read(audiofd, buffer, bufsize) != bufsize) + if ((size_t)read(audiofd, buffer, bufsize) != bufsize) err(1, "read failed"); if (conv_func) (*conv_func)(buffer, bufsize); - if (write(outfd, buffer, bufsize) != bufsize) + if ((size_t)write(outfd, buffer, bufsize) != bufsize) err(1, "write failed"); total_size += bufsize; }
CVS commit: src/sys/arch/hppa/hppa
Module Name:src Committed By: skrll Date: Sat Apr 11 09:49:24 UTC 2009 Modified Files: src/sys/arch/hppa/hppa: trap.c Log Message: Fixup two more syscalls with 64-bit args. Remove reference to script that is supposed to do this automatically - I don't have it. Fixes PR/41185. To generate a diff of this commit: cvs rdiff -u -r1.57 -r1.58 src/sys/arch/hppa/hppa/trap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/hppa/hppa/trap.c diff -u src/sys/arch/hppa/hppa/trap.c:1.57 src/sys/arch/hppa/hppa/trap.c:1.58 --- src/sys/arch/hppa/hppa/trap.c:1.57 Tue Oct 21 12:16:59 2008 +++ src/sys/arch/hppa/hppa/trap.c Sat Apr 11 09:49:23 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: trap.c,v 1.57 2008/10/21 12:16:59 ad Exp $ */ +/* $NetBSD: trap.c,v 1.58 2009/04/11 09:49:23 skrll Exp $ */ /*- * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc. @@ -62,7 +62,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.57 2008/10/21 12:16:59 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.58 2009/04/11 09:49:23 skrll Exp $"); /* #define INTRDEBUG */ /* #define TRAPDEBUG */ @@ -1180,11 +1180,6 @@ * will probably screw up any and all emulation. */ switch (code) { - /* - * BEGIN automatically generated - * by /home/fredette/project/hppa/makescargfix.pl - * do not edit! - */ case SYS_pread: /* * syscallarg(int) fd; @@ -1277,13 +1272,31 @@ args[4] = args[4 + 1]; args[4 + 1] = tmp; break; + case SYS___posix_fadvise50: + /* + * syscallarg(int) fd; + * syscallarg(int) pad; + * syscallarg(off_t) offset; + * syscallarg(off_t) len; + * syscallarg(int) advice; + */ + tmp = args[2]; + args[2] = args[2 + 1]; + args[2 + 1] = tmp; + tmp = args[4]; + args[4] = args[4 + 1]; + args[4 + 1] = tmp; + case SYS___mknod50: + /* + * syscallarg(const char *) path; + * syscallarg(mode_t) mode; + * syscallarg(dev_t) dev; + */ + tmp = args[2]; + args[2] = args[2 + 1]; + args[2 + 1] = tmp; default: break; - /* - * END automatically generated - * by /home/fredette/project/hppa/makescargfix.pl - * do not edit! - */ } #ifdef USERTRACE
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/usr.bin/make
Module Name:src Committed By: apb Date: Sat Apr 11 09:41:18 UTC 2009 Modified Files: src/usr.bin/make: job.c job.h make.1 pathnames.h Log Message: Honour the TMPDIR environment variable instead of always using /tmp as a place to store temporary files. To generate a diff of this commit: cvs rdiff -u -r1.144 -r1.145 src/usr.bin/make/job.c cvs rdiff -u -r1.38 -r1.39 src/usr.bin/make/job.h cvs rdiff -u -r1.153 -r1.154 src/usr.bin/make/make.1 cvs rdiff -u -r1.16 -r1.17 src/usr.bin/make/pathnames.h 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/job.c diff -u src/usr.bin/make/job.c:1.144 src/usr.bin/make/job.c:1.145 --- src/usr.bin/make/job.c:1.144 Fri Jan 23 21:26:30 2009 +++ src/usr.bin/make/job.c Sat Apr 11 09:41:18 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: job.c,v 1.144 2009/01/23 21:26:30 dsl Exp $ */ +/* $NetBSD: job.c,v 1.145 2009/04/11 09:41:18 apb Exp $ */ /* * Copyright (c) 1988, 1989, 1990 The Regents of the University of California. @@ -70,14 +70,14 @@ */ #ifndef MAKE_NATIVE -static char rcsid[] = "$NetBSD: job.c,v 1.144 2009/01/23 21:26:30 dsl Exp $"; +static char rcsid[] = "$NetBSD: job.c,v 1.145 2009/04/11 09:41:18 apb Exp $"; #else #include #ifndef lint #if 0 static char sccsid[] = "@(#)job.c 8.2 (Berkeley) 3/19/94"; #else -__RCSID("$NetBSD: job.c,v 1.144 2009/01/23 21:26:30 dsl Exp $"); +__RCSID("$NetBSD: job.c,v 1.145 2009/04/11 09:41:18 apb Exp $"); #endif #endif /* not lint */ #endif @@ -342,6 +342,8 @@ #define KILLPG(pid, sig) killpg((pid), (sig)) #endif +static char *tmpdir; /* directory name, always ending with "/" */ + static void JobChildSig(int); static void JobContinueSig(int); static Job *JobFindPid(int, int); @@ -1538,11 +1540,10 @@ (!noExecute && !touchFlag)) { /* * tfile is the name of a file into which all shell commands are - * put. It is used over by removing it before the child shell is - * executed. The XX in the string are replaced by the pid of - * the make process in a 6-character field with leading zeroes. + * put. It is removed before the child shell is executed, unless + * DEBUG(SCRIPT) is set. */ - char tfile[sizeof(TMPPAT)]; + char *tfile; sigset_t mask; /* * We're serious here, but if the commands were bogus, we're @@ -1553,7 +1554,9 @@ } JobSigLock(&mask); - (void)strcpy(tfile, TMPPAT); + tfile = bmake_malloc(strlen(tmpdir) + sizeof(TMPPAT)); + strcpy(tfile, tmpdir); + strcat(tfile, TMPPAT); if ((tfd = mkstemp(tfile)) == -1) Punt("Could not create temporary file %s", strerror(errno)); if (!DEBUG(SCRIPT)) @@ -1584,6 +1587,8 @@ if (numCommands == 0) { noExec = TRUE; } + + free(tfile); } else if (NoExecute(gn)) { /* * Not executing anything -- just print all the commands to stdout @@ -2116,6 +2121,8 @@ Job_Init(void) { GNode *begin; /* node for commands to do at the very start */ +const char*p; +size_tlen; /* Allocate space for all the job info */ job_table = bmake_malloc(maxJobs * sizeof *job_table); @@ -2128,6 +2135,18 @@ lastNode = NULL; +/* set tmpdir, and ensure that it ends with "/" */ +p = getenv("TMPDIR"); +if (p == NULL || *p == '\0') { + p = _PATH_TMP; +} +len = strlen(p); +tmpdir = bmake_malloc(len + 2); +strcpy(tmpdir, p); +if (tmpdir[len - 1] != '/') { + strcat(tmpdir, "/"); +} + if (maxJobs == 1) { /* * If only one job can run at a time, there's no need for a banner, Index: src/usr.bin/make/job.h diff -u src/usr.bin/make/job.h:1.38 src/usr.bin/make/job.h:1.39 --- src/usr.bin/make/job.h:1.38 Sat Dec 13 15:19:29 2008 +++ src/usr.bin/make/job.h Sat Apr 11 09:41:18 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: job.h,v 1.38 2008/12/13 15:19:29 dsl Exp $ */ +/* $NetBSD: job.h,v 1.39 2009/04/11 09:41:18 apb Exp $ */ /* * Copyright (c) 1988, 1989, 1990 The Regents of the University of California. @@ -80,7 +80,7 @@ #ifndef _JOB_H_ #define _JOB_H_ -#define TMPPAT "/tmp/makeXX" +#define TMPPAT "makeXX" /* relative to tmpdir */ #ifdef USE_SELECT /* Index: src/usr.bin/make/make.1 diff -u src/usr.bin/make/make.1:1.153 src/usr.bin/make/make.1:1.154 --- src/usr.bin/make/make.1:1.153 Sat Jan 24 13:02:33 2009 +++ src/usr.bin/make/make.1 Sat Apr 11 09:41:18 2009 @@ -1,4 +1,4 @@ -.\" $NetBSD: make.1,v 1.153 2009/01/24 13:02:33 wiz Exp $ +.\" $NetBSD: make.1,v 1.154 2009/04/11 09:41:18 apb Exp $ .\" .\" Copyright (c) 1990, 1993 .\" The Regents of the University of California. All rights reserved. @@ -185,16 +185,24 @@ Print debugging information about making targets, including modification dates. .It Ar n -Don't delete the temporary command scripts created in +Don't delete the temporary command scripts created when running commands. +These temporary scripts are created in the directory +referred to by the +.Ev TMPDIR +environment va
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 # 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 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 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 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 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 --- src/sbin/fsck_lfs/Makefile:1.15 Fri Dec 28 21:44:32 2007 +++ src/sbin/fsck_lfs/M
CVS commit: src/sbin/newfs
Module Name:src Committed By: lukem Date: Sat Apr 11 07:20:09 UTC 2009 Modified Files: src/sbin/newfs: mkfs.c newfs.c Log Message: fix sign-compare issues To generate a diff of this commit: cvs rdiff -u -r1.104 -r1.105 src/sbin/newfs/mkfs.c cvs rdiff -u -r1.103 -r1.104 src/sbin/newfs/newfs.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/mkfs.c diff -u src/sbin/newfs/mkfs.c:1.104 src/sbin/newfs/mkfs.c:1.105 --- src/sbin/newfs/mkfs.c:1.104 Sat Dec 8 21:40:23 2007 +++ src/sbin/newfs/mkfs.c Sat Apr 11 07:20:09 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: mkfs.c,v 1.104 2007/12/08 21:40:23 jnemeth Exp $ */ +/* $NetBSD: mkfs.c,v 1.105 2009/04/11 07:20:09 lukem Exp $ */ /* * Copyright (c) 1980, 1989, 1993 @@ -73,7 +73,7 @@ #if 0 static char sccsid[] = "@(#)mkfs.c 8.11 (Berkeley) 5/3/95"; #else -__RCSID("$NetBSD: mkfs.c,v 1.104 2007/12/08 21:40:23 jnemeth Exp $"); +__RCSID("$NetBSD: mkfs.c,v 1.105 2009/04/11 07:20:09 lukem Exp $"); #endif #endif /* not lint */ @@ -161,7 +161,7 @@ mkfs(const char *fsys, int fi, int fo, mode_t mfsmode, uid_t mfsuid, gid_t mfsgid) { - uint fragsperinodeblk, ncg; + uint fragsperinodeblk, ncg, u; uint cgzero; uint64_t inodeblks, cgall; int32_t cylno, i, csfrags; @@ -177,7 +177,7 @@ #ifdef MFS if (mfs && !Nflag) { calc_memfree(); - if (fssize * sectorsize > memleft) + if ((uint64_t)fssize * sectorsize > memleft) fssize = memleft / sectorsize; if ((membase = mkfs_malloc(fssize * sectorsize)) == NULL) exit(12); @@ -287,7 +287,7 @@ sblock.fs_fsbtodb = ilog2(sblock.fs_fsize / sectorsize); sblock.fs_size = dbtofsb(&sblock, fssize); if (Oflag <= 1) { - if (sblock.fs_size >= 1ull << 31) { + if ((uint64_t)sblock.fs_size >= 1ull << 31) { printf("Too many fragments (0x%" PRIx64 ") for a UFS1 filesystem\n", sblock.fs_size); exit(22); @@ -370,7 +370,7 @@ if (inodeblks == 0) inodeblks = 1; /* Ensure that there are at least 2 data blocks (or we fail below) */ - if (inodeblks > (sblock.fs_size - sblock.fs_iblkno)/sblock.fs_frag - 2) + if (inodeblks > (uint64_t)(sblock.fs_size - sblock.fs_iblkno)/sblock.fs_frag - 2) inodeblks = (sblock.fs_size-sblock.fs_iblkno)/sblock.fs_frag-2; /* Even UFS2 limits number of inodes to 2^31 (fs_ipg is int32_t) */ if (inodeblks * INOPB(&sblock) >= 1ull << 31) @@ -388,10 +388,10 @@ * but for small file sytems (especially ones with a lot * of inodes) this is not desirable (or possible). */ - i = sblock.fs_size / 2 / (sblock.fs_iblkno + + u = sblock.fs_size / 2 / (sblock.fs_iblkno + inodeblks * sblock.fs_frag); - if (i > ncg) - ncg = i; + if (u > ncg) + ncg = u; if (ncg > MINCYLGRPS) ncg = MINCYLGRPS; if (ncg > inodeblks) @@ -417,7 +417,7 @@ } sblock.fs_ipg = inodes_per_cg; /* Sanity check on our sums... */ - if (CGSIZE(&sblock) > sblock.fs_bsize) { + if ((int)CGSIZE(&sblock) > sblock.fs_bsize) { printf("CGSIZE miscalculated %d > %d\n", (int)CGSIZE(&sblock), sblock.fs_bsize); exit(24); @@ -735,6 +735,7 @@ { daddr_t cbase, dmax; int32_t i, d, dlower, dupper, blkno; + uint32_t u; struct ufs1_dinode *dp1; struct ufs2_dinode *dp2; int start; @@ -812,8 +813,8 @@ } acg.cg_cs.cs_nifree += sblock.fs_ipg; if (cylno == 0) - for (i = 0; i < ROOTINO; i++) { - setbit(cg_inosused(&acg, 0), i); + for (u = 0; u < ROOTINO; u++) { + setbit(cg_inosused(&acg, 0), u); acg.cg_cs.cs_nifree--; } if (cylno > 0) { @@ -1237,7 +1238,7 @@ wtfs(fsbtodb(&sblock, cgtod(&sblock, 0)), sblock.fs_cgsize, &acg); sblock.fs_cstotal.cs_nifree--; fscs_0->cs_nifree--; - if (ino >= sblock.fs_ipg * sblock.fs_ncg) { + if (ino >= (ino_t)(sblock.fs_ipg * sblock.fs_ncg)) { printf("fsinit: inode value out of range (%llu).\n", (unsigned long long)ino); exit(32); Index: src/sbin/newfs/newfs.c diff -u src/sbin/newfs/newfs.c:1.103 src/sbin/newfs/newfs.c:1.104 --- src/sbin/newfs/newfs.c:1.103 Fri Apr 3 13:22:05 2009 +++ src/sbin/newfs/newfs.c Sat Apr 11 07:20:09 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: newfs.c,v 1.103 2009/04/03 13:22:05 pooka Exp $ */ +/* $NetBSD: newfs.c,v 1.104 2009/04/11 07:20:09 lukem Exp $ */ /* * Copyright (c) 1983, 1989, 1993, 1994 @@ -78,7 +78,7 @@ #if 0 static char sccsid[] = "@(#)newfs.c 8.13 (Berkeley) 5/1/95"; #else -__RCSID("$NetBSD: newfs.c,v 1.103 2009/04/03 13:22:05 pooka Exp $"); +__RCSID("$NetBSD: newfs.c,v 1.104 2009/04/11 07:20:09 lukem Exp $"); #endif #endif /* not lint */ @@ -551,7 +551,7 @@ errx(1, "Unable to determine file system size"); } - if (dkw.dkw_parent[0] && fssize > dkw.dkw_size) + if (dkw.dkw_parent[0] && (uint64_t)fssize > dkw.dkw_size) errx(1, "size %" PRIu64 " exceeds maximum file system size on " "`%s' of %" PRIu64 " sectors", fssize, special, dkw.dkw_size); @@ -723,7 +723,7 @@ if (!(gp = getgrnam(gname)) && !isdigit((unsigned ch
CVS commit: src/sbin/newfs_sysvbfs
Module Name:src Committed By: lukem Date: Sat Apr 11 07:16:30 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.5 -r1.6 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.5 src/sbin/newfs_sysvbfs/newfs_sysvbfs.c:1.6 --- src/sbin/newfs_sysvbfs/newfs_sysvbfs.c:1.5 Fri Apr 10 13:48:00 2009 +++ src/sbin/newfs_sysvbfs/newfs_sysvbfs.c Sat Apr 11 07:16:30 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: newfs_sysvbfs.c,v 1.5 2009/04/10 13:48:00 wiz Exp $ */ +/* $NetBSD: newfs_sysvbfs.c,v 1.6 2009/04/11 07:16:30 lukem Exp $ */ /*- * Copyright (c) 2004 The NetBSD Foundation, Inc. @@ -137,7 +137,7 @@ while (filesize > 0) { size_t writenow = MIN(filesize, sizeof(zbuf)); -if (write(fd, zbuf, writenow) != writenow) { +if ((size_t)write(fd, zbuf, writenow) != writenow) { perror("zwrite"); exit(EXIT_FAILURE); }
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)); }