CVS commit: src/external/gpl3/gcc/dist/gcc/config/rs6000
Module Name:src Committed By: matt Date: Tue Jan 20 07:12:41 UTC 2015 Modified Files: src/external/gpl3/gcc/dist/gcc/config/rs6000: rs6000.c Log Message: Don't enable string instructions on NetBSD if -Os is used. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 \ src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c diff -u src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c:1.9 src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c:1.10 --- src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c:1.9 Sat Jan 10 01:06:42 2015 +++ src/external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c Tue Jan 20 07:12:41 2015 @@ -3249,10 +3249,14 @@ rs6000_option_override_internal (bool gl /* If we are optimizing big endian systems for space and it's OK to use instructions that would be microcoded on the Cell, use the - load/store multiple and string instructions. */ + load/store multiple and string instructions. Don't use string + instructions on NetBSD because the e500 doesn't support them. */ if (BYTES_BIG_ENDIAN && optimize_size && rs6000_gen_cell_microcode) rs6000_isa_flags |= ~rs6000_isa_flags_explicit & (OPTION_MASK_MULTIPLE - | OPTION_MASK_STRING); +#if !defined (POWERPC_NETBSD) + | OPTION_MASK_STRING +#endif + | 0); /* Don't allow -mmultiple or -mstring on little endian systems unless the cpu is a 750, because the hardware doesn't support the
CVS commit: src/sys/sys
Module Name:src Committed By: christos Date: Tue Jan 20 01:10:16 UTC 2015 Modified Files: src/sys/sys: socket.h Log Message: add void casts to CMSG_ To generate a diff of this commit: cvs rdiff -u -r1.112 -r1.113 src/sys/sys/socket.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/sys/socket.h diff -u src/sys/sys/socket.h:1.112 src/sys/sys/socket.h:1.113 --- src/sys/sys/socket.h:1.112 Mon Jan 19 20:02:25 2015 +++ src/sys/sys/socket.h Mon Jan 19 20:10:16 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: socket.h,v 1.112 2015/01/20 01:02:25 christos Exp $ */ +/* $NetBSD: socket.h,v 1.113 2015/01/20 01:10:16 christos Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -528,10 +528,11 @@ struct cmsghdr { /* given pointer to struct cmsghdr, return pointer to data */ #define CMSG_DATA(cmsg) \ - ((u_char *)(void *)(cmsg) + __CMSG_ALIGN(sizeof(struct cmsghdr))) +((void *)((u_char *)(void *)(cmsg) + \ +__CMSG_ALIGN(sizeof(struct cmsghdr #define CCMSG_DATA(cmsg) \ - ((const u_char *)(const void *)(cmsg) + \ - __CMSG_ALIGN(sizeof(struct cmsghdr))) +((const void *)((const u_char *)(const void *)(cmsg) + \ +__CMSG_ALIGN(sizeof(struct cmsghdr /* * Alignment requirement for CMSG struct manipulation. @@ -549,11 +550,11 @@ struct cmsghdr { /* given pointer to struct cmsghdr, return pointer to next cmsghdr */ #define CMSG_NXTHDR(mhdr, cmsg) \ - (((char *)(cmsg) + __CMSG_ALIGN((cmsg)->cmsg_len) + \ + (((char *)(void *)(cmsg) + __CMSG_ALIGN((cmsg)->cmsg_len) + \ __CMSG_ALIGN(sizeof(struct cmsghdr)) > \ - (((char *)(mhdr)->msg_control) + (mhdr)->msg_controllen)) ? \ + (((char *)(void *)(mhdr)->msg_control) + (mhdr)->msg_controllen)) ?\ (struct cmsghdr *)0 : \ - (struct cmsghdr *)(void *)((char *)(cmsg) + \ + (struct cmsghdr *)(void *)((char *)(void *)(cmsg) + \ __CMSG_ALIGN((cmsg)->cmsg_len))) /* @@ -562,7 +563,7 @@ struct cmsghdr { */ #define CMSG_FIRSTHDR(mhdr) \ ((mhdr)->msg_controllen >= sizeof(struct cmsghdr) ? \ - (struct cmsghdr *)(mhdr)->msg_control : \ + (struct cmsghdr *)(void *)(mhdr)->msg_control : \ (struct cmsghdr *)0) #define CMSG_SPACE(l) (__CMSG_ALIGN(sizeof(struct cmsghdr)) + __CMSG_ALIGN(l))
CVS commit: src/sys/sys
Module Name:src Committed By: christos Date: Tue Jan 20 01:02:25 UTC 2015 Modified Files: src/sys/sys: socket.h Log Message: add lint comment To generate a diff of this commit: cvs rdiff -u -r1.111 -r1.112 src/sys/sys/socket.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/sys/socket.h diff -u src/sys/sys/socket.h:1.111 src/sys/sys/socket.h:1.112 --- src/sys/sys/socket.h:1.111 Tue Dec 2 14:38:16 2014 +++ src/sys/sys/socket.h Mon Jan 19 20:02:25 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: socket.h,v 1.111 2014/12/02 19:38:16 christos Exp $ */ +/* $NetBSD: socket.h,v 1.112 2015/01/20 01:02:25 christos Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -341,7 +341,7 @@ struct sockcred { * Compute size of a sockcred structure with groups. */ #define SOCKCREDSIZE(ngrps) \ - (sizeof(struct sockcred) + (sizeof(gid_t) * \ + (/*CONSTCOND*/sizeof(struct sockcred) + (sizeof(gid_t) * \ ((ngrps) ? ((ngrps) - 1) : 0))) #endif /* _NETBSD_SOURCE */
CVS commit: src/distrib/notes/common
Module Name:src Committed By: sevan Date: Mon Jan 19 20:25:29 UTC 2015 Modified Files: src/distrib/notes/common: main Log Message: Added myself To generate a diff of this commit: cvs rdiff -u -r1.515 -r1.516 src/distrib/notes/common/main Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/notes/common/main diff -u src/distrib/notes/common/main:1.515 src/distrib/notes/common/main:1.516 --- src/distrib/notes/common/main:1.515 Sun Jan 11 04:03:47 2015 +++ src/distrib/notes/common/main Mon Jan 19 20:25:29 2015 @@ -1,4 +1,4 @@ -.\" $NetBSD: main,v 1.515 2015/01/11 04:03:47 snj Exp $ +.\" $NetBSD: main,v 1.516 2015/01/19 20:25:29 sevan Exp $ .\" .\" Copyright (c) 1999-2012 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -1243,6 +1243,7 @@ If you're one of them, and would like to .It Ta Tetsuya Isaki Ta Mt is...@netbsd.org .It Ta ITOH Yasufumi Ta Mt it...@netbsd.org .It Ta IWAMOTO Toshihiro Ta Mt tos...@netbsd.org +.It Ta Sevan Janiyan Ta Mt se...@netbsd.org .It Ta Matthew Jacob Ta Mt mja...@netbsd.org .It Ta Soren Jacobsen Ta Mt s...@netbsd.org .It Ta Lonhyn T. Jasinskyj Ta Mt lon...@netbsd.org
CVS commit: src/sys/arch/amiga/dev
Module Name:src Committed By: phx Date: Mon Jan 19 20:10:27 UTC 2015 Modified Files: src/sys/arch/amiga/dev: sbic.c Log Message: Make it compile with -DDEBUG again. To generate a diff of this commit: cvs rdiff -u -r1.73 -r1.74 src/sys/arch/amiga/dev/sbic.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/amiga/dev/sbic.c diff -u src/sys/arch/amiga/dev/sbic.c:1.73 src/sys/arch/amiga/dev/sbic.c:1.74 --- src/sys/arch/amiga/dev/sbic.c:1.73 Thu Aug 7 08:59:42 2014 +++ src/sys/arch/amiga/dev/sbic.c Mon Jan 19 20:10:27 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: sbic.c,v 1.73 2014/08/07 08:59:42 joerg Exp $ */ +/* $NetBSD: sbic.c,v 1.74 2015/01/19 20:10:27 phx Exp $ */ /* * Copyright (c) 1990 The Regents of the University of California. @@ -81,7 +81,7 @@ #endif #include -__KERNEL_RCSID(0, "$NetBSD: sbic.c,v 1.73 2014/08/07 08:59:42 joerg Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sbic.c,v 1.74 2015/01/19 20:10:27 phx Exp $"); #include #include @@ -1231,11 +1231,17 @@ int sbicxfin(sbic_regmap_t regs, int len, void *bp) { int wait; - u_char *buf; u_char orig_csr, csr, asr; + u_char *buf; +#ifdef DEBUG + u_char *obp; +#endif wait = sbic_data_wait; buf = bp; +#ifdef DEBUG + obp = bp; +#endif GET_SBIC_csr (regs, orig_csr); __USE(orig_csr);
CVS commit: src/sys/arch/sparc64
Module Name:src Committed By: palle Date: Mon Jan 19 19:46:08 UTC 2015 Modified Files: src/sys/arch/sparc64/include: mdesc.h src/sys/arch/sparc64/sparc64: mdesc.c Log Message: sun4v: Add two new functions to the mdesc api: mdesc_find_node_by_idx() and mdesc_next_node() To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/sparc64/include/mdesc.h cvs rdiff -u -r1.2 -r1.3 src/sys/arch/sparc64/sparc64/mdesc.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/sparc64/include/mdesc.h diff -u src/sys/arch/sparc64/include/mdesc.h:1.1 src/sys/arch/sparc64/include/mdesc.h:1.2 --- src/sys/arch/sparc64/include/mdesc.h:1.1 Sat Jan 10 22:19:26 2015 +++ src/sys/arch/sparc64/include/mdesc.h Mon Jan 19 19:46:08 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: mdesc.h,v 1.1 2015/01/10 22:19:26 palle Exp $ */ +/* $NetBSD: mdesc.h,v 1.2 2015/01/19 19:46:08 palle Exp $ */ /* $OpenBSD: mdesc.h,v 1.3 2014/11/30 22:26:14 kettenis Exp $ */ /* * Copyright (c) 2009 Mark Kettenis @@ -48,4 +48,6 @@ const char *mdesc_get_prop_data(int, con int mdesc_find(const char *, uint64_t); int mdesc_find_child(int, const char *, uint64_t); int mdesc_find_node(const char *); +int mdesc_find_node_by_idx(int, const char *); +int mdesc_next_node(int); #endif Index: src/sys/arch/sparc64/sparc64/mdesc.c diff -u src/sys/arch/sparc64/sparc64/mdesc.c:1.2 src/sys/arch/sparc64/sparc64/mdesc.c:1.3 --- src/sys/arch/sparc64/sparc64/mdesc.c:1.2 Sun Jan 11 13:40:22 2015 +++ src/sys/arch/sparc64/sparc64/mdesc.c Mon Jan 19 19:46:08 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: mdesc.c,v 1.2 2015/01/11 13:40:22 palle Exp $ */ +/* $NetBSD: mdesc.c,v 1.3 2015/01/19 19:46:08 palle Exp $ */ /* $OpenBSD: mdesc.c,v 1.7 2014/11/30 22:26:15 kettenis Exp $ */ /* * Copyright (c) 2009 Mark Kettenis @@ -217,19 +217,18 @@ mdesc_find_child(int idx, const char *na } int -mdesc_find_node(const char *name) +mdesc_find_node_by_idx(int idx, const char *name) { struct md_header *hdr; struct md_element *elem; const char *name_blk; const char *str; - int idx; hdr = (struct md_header *)mdesc; elem = (struct md_element *)(mdesc + sizeof(struct md_header)); name_blk = (char *)mdesc + sizeof(struct md_header) + hdr->node_blk_sz; - for (idx = 0; elem[idx].tag == 'N'; idx = elem[idx].d.val) { + for ( ; elem[idx].tag == 'N'; idx = elem[idx].d.val) { str = name_blk + elem[idx].name_offset; if (str && strcmp(str, name) == 0) return (idx); @@ -237,3 +236,20 @@ mdesc_find_node(const char *name) return (-1); } + +int +mdesc_find_node(const char *name) +{ + return mdesc_find_node_by_idx(0, name); +} + +int +mdesc_next_node(int idx) +{ + struct md_element *elem; + + elem = (struct md_element *)(mdesc + sizeof(struct md_header)); + + return elem[idx].d.val; +} +
CVS commit: src/sys/dev/pci
Module Name:src Committed By: christos Date: Mon Jan 19 15:07:25 UTC 2015 Modified Files: src/sys/dev/pci: if_alc.c Log Message: CID 1245802: Result always 0. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/dev/pci/if_alc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/pci/if_alc.c diff -u src/sys/dev/pci/if_alc.c:1.12 src/sys/dev/pci/if_alc.c:1.13 --- src/sys/dev/pci/if_alc.c:1.12 Sun Jan 18 10:30:03 2015 +++ src/sys/dev/pci/if_alc.c Mon Jan 19 10:07:25 2015 @@ -468,8 +468,9 @@ alc_dsp_fixup(struct alc_softc *sc, int len = alc_miiext_readreg(sc, MII_EXT_PCS, MII_EXT_CLDCTL6); len = (len >> EXT_CLDCTL6_CAB_LEN_SHIFT) & EXT_CLDCTL6_CAB_LEN_MASK; - agc = alc_miidbg_readreg(sc, MII_DBG_AGC); - agc = (agc >> DBG_AGC_2_VGA_SHIFT) & DBG_AGC_2_VGA_MASK; + /* XXX: used to be (alc >> shift) & mask which is 0 */ + agc = alc_miidbg_readreg(sc, MII_DBG_AGC) & DBG_AGC_2_VGA_MASK; + agc >>= DBG_AGC_2_VGA_SHIFT; if ((media == IFM_1000_T && len > EXT_CLDCTL6_CAB_LEN_SHORT1G && agc > DBG_AGC_LONG1G_LIMT) || (media == IFM_100_TX && len > DBG_AGC_LONG100M_LIMT &&
CVS commit: src/sys/dev/pci/hdaudio
Module Name:src Committed By: njoly Date: Mon Jan 19 14:32:08 UTC 2015 Modified Files: src/sys/dev/pci/hdaudio: hdaudiodevs.h hdaudiodevs_data.h Log Message: Regen for Realtek ALC280. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/sys/dev/pci/hdaudio/hdaudiodevs.h \ src/sys/dev/pci/hdaudio/hdaudiodevs_data.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/pci/hdaudio/hdaudiodevs.h diff -u src/sys/dev/pci/hdaudio/hdaudiodevs.h:1.2 src/sys/dev/pci/hdaudio/hdaudiodevs.h:1.3 --- src/sys/dev/pci/hdaudio/hdaudiodevs.h:1.2 Sun Sep 21 14:31:03 2014 +++ src/sys/dev/pci/hdaudio/hdaudiodevs.h Mon Jan 19 14:32:08 2015 @@ -1,10 +1,10 @@ -/* $NetBSD: hdaudiodevs.h,v 1.2 2014/09/21 14:31:03 christos Exp $ */ +/* $NetBSD: hdaudiodevs.h,v 1.3 2015/01/19 14:32:08 njoly Exp $ */ /* * THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT. * * generated from: - * NetBSD: hdaudiodevs,v 1.1 2014/09/19 17:23:35 christos Exp + * NetBSD: hdaudiodevs,v 1.2 2015/01/19 14:31:32 njoly Exp */ /* @@ -77,6 +77,7 @@ #define HDAUDIO_PRODUCT_REALTEK_ALC270 0x0270 /* ALC270 */ #define HDAUDIO_PRODUCT_REALTEK_ALC272 0x0272 /* ALC272 */ #define HDAUDIO_PRODUCT_REALTEK_ALC275 0x0275 /* ALC275 */ +#define HDAUDIO_PRODUCT_REALTEK_ALC280 0x0280 /* ALC280 */ #define HDAUDIO_PRODUCT_REALTEK_ALC660_VD 0x0660 /* ALC660-VD */ #define HDAUDIO_PRODUCT_REALTEK_ALC662 0x0662 /* ALC662 */ #define HDAUDIO_PRODUCT_REALTEK_ALC663 0x0663 /* ALC663 */ Index: src/sys/dev/pci/hdaudio/hdaudiodevs_data.h diff -u src/sys/dev/pci/hdaudio/hdaudiodevs_data.h:1.2 src/sys/dev/pci/hdaudio/hdaudiodevs_data.h:1.3 --- src/sys/dev/pci/hdaudio/hdaudiodevs_data.h:1.2 Sun Sep 21 14:31:03 2014 +++ src/sys/dev/pci/hdaudio/hdaudiodevs_data.h Mon Jan 19 14:32:08 2015 @@ -1,10 +1,10 @@ -/* $NetBSD: hdaudiodevs_data.h,v 1.2 2014/09/21 14:31:03 christos Exp $ */ +/* $NetBSD: hdaudiodevs_data.h,v 1.3 2015/01/19 14:32:08 njoly Exp $ */ /* * THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT. * * generated from: - * NetBSD: hdaudiodevs,v 1.1 2014/09/19 17:23:35 christos Exp + * NetBSD: hdaudiodevs,v 1.2 2015/01/19 14:31:32 njoly Exp */ /* @@ -98,320 +98,322 @@ static const uint16_t hdaudio_products[] 274, 0, HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC275, 281, 0, - HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC660_VD, + HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC280, 288, 0, + HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC660_VD, + 295, 0, HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC662, - 298, 0, - HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC663, 305, 0, - HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC670, + HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC663, 312, 0, - HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC861, + HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC670, 319, 0, - HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC861_VD, + HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC861, 326, 0, + HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC861_VD, + 333, 0, HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC880, - 336, 0, - HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC882, 343, 0, - HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC883, + HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC882, 350, 0, - HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC885, + HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC883, 357, 0, - HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC887, + HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC885, 364, 0, - HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC888, + HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC887, 371, 0, - HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC889, + HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC888, 378, 0, - HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC892, + HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC889, 385, 0, - HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1708, + HDAUDIO_VENDOR_REALTEK, HDAUDIO_PRODUCT_REALTEK_ALC892, 392, 0, + HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1708, + 399, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1709, - 392, 0, + 399, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT170A, - 392, 0, + 399, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT170B, - 392, 0, + 399, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1709_10CH_0, - 399, 406, 0, + 406, 413, 0, HDAUDIO_VENDOR_VIATECH, HDAUDIO_PRODUCT_VIATECH_VT1709_10CH_1, - 399, 406, 0, + 406,
CVS commit: src/sys/dev/pci/hdaudio
Module Name:src Committed By: njoly Date: Mon Jan 19 14:31:32 UTC 2015 Modified Files: src/sys/dev/pci/hdaudio: hdaudiodevs Log Message: Add Realtek ALC280. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/dev/pci/hdaudio/hdaudiodevs Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/pci/hdaudio/hdaudiodevs diff -u src/sys/dev/pci/hdaudio/hdaudiodevs:1.1 src/sys/dev/pci/hdaudio/hdaudiodevs:1.2 --- src/sys/dev/pci/hdaudio/hdaudiodevs:1.1 Fri Sep 19 17:23:35 2014 +++ src/sys/dev/pci/hdaudio/hdaudiodevs Mon Jan 19 14:31:32 2015 @@ -1,4 +1,4 @@ -$NetBSD: hdaudiodevs,v 1.1 2014/09/19 17:23:35 christos Exp $ +$NetBSD: hdaudiodevs,v 1.2 2015/01/19 14:31:32 njoly Exp $ /* * Copyright (c) 2010 Jared D. McNeill @@ -70,6 +70,7 @@ product REALTEK ALC269 0x0269 ALC269 product REALTEK ALC270 0x0270 ALC270 product REALTEK ALC272 0x0272 ALC272 product REALTEK ALC275 0x0275 ALC275 +product REALTEK ALC280 0x0280 ALC280 product REALTEK ALC660_VD 0x0660 ALC660-VD product REALTEK ALC662 0x0662 ALC662 product REALTEK ALC663 0x0663 ALC663
CVS commit: src/share/man/man4
Module Name:src Committed By: wiz Date: Mon Jan 19 11:53:59 UTC 2015 Modified Files: src/share/man/man4: alc.4 Log Message: New sentence, new line. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/share/man/man4/alc.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/alc.4 diff -u src/share/man/man4/alc.4:1.4 src/share/man/man4/alc.4:1.5 --- src/share/man/man4/alc.4:1.4 Sun Jan 18 15:30:03 2015 +++ src/share/man/man4/alc.4 Mon Jan 19 11:53:59 2015 @@ -1,4 +1,4 @@ -.\" $NetBSD: alc.4,v 1.4 2015/01/18 15:30:03 christos Exp $ +.\" $NetBSD: alc.4,v 1.5 2015/01/19 11:53:59 wiz Exp $ .\" .\" Copyright (c) 2009 Kevin Lo .\" @@ -60,7 +60,8 @@ The device driver was written by .An Pyun YongHyeon and first appeared in -.Fx 8.0 . It was ported to +.Fx 8.0 . +It was ported to .Ox 4.7 by .An Kevin Lo
CVS commit: src/lib/libc/stdlib
Module Name:src Committed By: wiz Date: Mon Jan 19 11:47:41 UTC 2015 Modified Files: src/lib/libc/stdlib: strtonum.3 Log Message: Fix date. Sort section. Sort errors. Sort SEE ALSO. Break too long lines. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/lib/libc/stdlib/strtonum.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/strtonum.3 diff -u src/lib/libc/stdlib/strtonum.3:1.1 src/lib/libc/stdlib/strtonum.3:1.2 --- src/lib/libc/stdlib/strtonum.3:1.1 Sun Jan 18 17:59:36 2015 +++ src/lib/libc/stdlib/strtonum.3 Mon Jan 19 11:47:41 2015 @@ -1,4 +1,4 @@ -.\" $NetBSD: strtonum.3,v 1.1 2015/01/18 17:59:36 christos Exp $ +.\" $NetBSD: strtonum.3,v 1.2 2015/01/19 11:47:41 wiz Exp $ .\" $OpenBSD: strtonum.3,v 1.17 2013/08/14 06:32:28 jmc Exp $ .\" .\" Copyright (c) 2004 Ted Unangst @@ -15,7 +15,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: August 14 2013 $ +.Dd January 18, 2015 .Dt STRTONUM 3 .Os .Sh NAME @@ -98,14 +98,13 @@ The above example will guarantee that th 1 and 64 (inclusive). .Sh ERRORS .Bl -tag -width Er -.It Bq Er ERANGE -The given string was out of range. -.It Bq Er EINVAL -The given string did not consist solely of digit characters. .It Bq Er EINVAL +The given string did not consist solely of digit characters; or .Ar minval was larger than .Ar maxval . +.It Bq Er ERANGE +The given string was out of range. .El .Pp If an error occurs, @@ -120,48 +119,18 @@ The result was smaller than the provided .It Qq invalid The string did not consist solely of digit characters. .El -.Sh CAVEATS -The -.Fn strtonum -function was designed to facilitate safe, -robust programming and overcome the shortcomings of the -.Xr atoi 3 -and -.Xr strtol 3 -family of interfaces, however there are problems with the -.Fn strtonum -API: -.Bl -dash -.It -will return 0 on failure; 0 might not be in range, so that necessitates an error check even if you want to avoid it -.It -does not differentiate 'illegal' returns, so we can't tell the difference between partial and no conversions -.It -returns english strings -.It -can't set the base, or find where the conversion ended -.It -hardcodes long long integer type -.El -To overcome the shortcomings of -.Fn strtonum -.Nx -provides -.Fn strtou 3 -and -.Fn strtoi 3 . .Sh SEE ALSO .Xr atof 3 , .Xr atoi 3 , .Xr atol 3 , .Xr atoll 3 , .Xr sscanf 3 , -.Xr strtoi 3 , .Xr strtod 3 , +.Xr strtoi 3 , .Xr strtol 3 , .Xr strtoll 3 , .Xr strtou 3 , -.Xr strtoul 3 +.Xr strtoul 3 , .Xr strtoull 3 .Sh STANDARDS .Fn strtonum @@ -185,3 +154,35 @@ For compatibility reasons it's available in the .Vt _OPENBSD_SOURCE namespace. +.Sh CAVEATS +The +.Fn strtonum +function was designed to facilitate safe, +robust programming and overcome the shortcomings of the +.Xr atoi 3 +and +.Xr strtol 3 +family of interfaces, however there are problems with the +.Fn strtonum +API: +.Bl -dash +.It +will return 0 on failure; 0 might not be in range, so that necessitates +an error check even if you want to avoid it +.It +does not differentiate 'illegal' returns, so we can't tell the +difference between partial and no conversions +.It +returns english strings +.It +can't set the base, or find where the conversion ended +.It +hardcodes long long integer type +.El +To overcome the shortcomings of +.Fn strtonum +.Nx +provides +.Fn strtou 3 +and +.Fn strtoi 3 .