svn commit: r213572 - in head: lib/libjail usr.sbin/pc-sysinstall/pc-sysinstall
Author: uqs Date: Fri Oct 8 12:39:49 2010 New Revision: 213572 URL: http://svn.freebsd.org/changeset/base/213572 Log: mdoc: fix manlint warnings by unbreaking mdoc syntax Modified: head/lib/libjail/jail.3 head/usr.sbin/pc-sysinstall/pc-sysinstall/pc-sysinstall.8 Modified: head/lib/libjail/jail.3 == --- head/lib/libjail/jail.3 Fri Oct 8 12:39:05 2010(r213571) +++ head/lib/libjail/jail.3 Fri Oct 8 12:39:49 2010(r213572) @@ -248,7 +248,7 @@ jailparam_init(¶ms[1], "host.hostnam jailparam_get(params, 2, 0); hostname = jailparam_export(¶ms[1]); jailparam_free(params, 2); -... +\&... free(hostname); .Ed .Sh ERRORS Modified: head/usr.sbin/pc-sysinstall/pc-sysinstall/pc-sysinstall.8 == --- head/usr.sbin/pc-sysinstall/pc-sysinstall/pc-sysinstall.8 Fri Oct 8 12:39:05 2010(r213571) +++ head/usr.sbin/pc-sysinstall/pc-sysinstall/pc-sysinstall.8 Fri Oct 8 12:39:49 2010(r213572) @@ -62,7 +62,7 @@ Display the help data for the specified .It disk-list Provide a listing of the storage devices detected on this system. .It disk-part Ar disk -Queries the specified storage device and returns information about its +Queries the specified storage device and returns information about its partitions. .It disk-info Ar disk Returns information about a storage device's size, cylinders, heads, and @@ -106,6 +106,7 @@ used by automated install scripts. .It setup-ssh-keys Ar user Ar host Ar port Setup SSH without a password for the target host, user, and port. Used to prompt the user to log into a server before doing a rsync + ssh restore. +.El .Sh HISTORY This version of .Nm ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r213573 - in head: bin/chflags bin/stty games/caesar lib/libarchive lib/libc/gen lib/libc/locale lib/libc/net lib/libc/posix1e lib/libc/regex lib/libc/stdlib lib/libc/sys lib/libc/uuid ...
Author: uqs Date: Fri Oct 8 12:40:16 2010 New Revision: 213573 URL: http://svn.freebsd.org/changeset/base/213573 Log: mdoc: drop redundant .Pp and .LP calls They have no effect when coming in pairs, or before .Bl/.Bd Modified: head/bin/chflags/chflags.1 head/bin/stty/stty.1 head/games/caesar/caesar.6 head/lib/libarchive/libarchive-formats.5 head/lib/libc/gen/confstr.3 head/lib/libc/gen/getcap.3 head/lib/libc/gen/stringlist.3 head/lib/libc/gen/sysctl.3 head/lib/libc/locale/localeconv.3 head/lib/libc/locale/setlocale.3 head/lib/libc/net/getnetent.3 head/lib/libc/net/getprotoent.3 head/lib/libc/net/nsdispatch.3 head/lib/libc/posix1e/acl_add_flag_np.3 head/lib/libc/posix1e/acl_add_perm.3 head/lib/libc/posix1e/acl_get.3 head/lib/libc/posix1e/acl_set.3 head/lib/libc/posix1e/acl_set_entry_type_np.3 head/lib/libc/posix1e/acl_set_tag_type.3 head/lib/libc/regex/re_format.7 head/lib/libc/stdlib/malloc.3 head/lib/libc/stdlib/strtod.3 head/lib/libc/sys/aio_read.2 head/lib/libc/sys/aio_write.2 head/lib/libc/sys/clock_gettime.2 head/lib/libc/sys/gettimeofday.2 head/lib/libc/sys/kldstat.2 head/lib/libc/sys/kldsym.2 head/lib/libc/sys/kqueue.2 head/lib/libc/sys/modstat.2 head/lib/libc/sys/recv.2 head/lib/libc/sys/sched_setscheduler.2 head/lib/libc/uuid/uuid.3 head/lib/libcam/cam_cdbparse.3 head/lib/libdisk/libdisk.3 head/lib/libelf/elf_begin.3 head/lib/libgssapi/gssapi.3 head/lib/libpmc/pmc.p4.3 head/lib/libradius/radius.conf.5 head/lib/libstand/libstand.3 head/lib/libtacplus/libtacplus.3 head/lib/libutil/realhostname.3 head/lib/libutil/realhostname_sa.3 head/libexec/ftpd/ftpd.8 head/libexec/getty/gettytab.5 head/libexec/rtld-elf/rtld.1 head/sbin/camcontrol/camcontrol.8 head/sbin/ccdconfig/ccdconfig.8 head/sbin/devd/devd.conf.5 head/sbin/geom/class/journal/gjournal.8 head/sbin/geom/class/raid3/graid3.8 head/sbin/ipfw/ipfw.8 head/sbin/mknod/mknod.8 head/share/man/man3/fpgetround.3 head/share/man/man4/acpi_hp.4 head/share/man/man4/aue.4 head/share/man/man4/bpf.4 head/share/man/man4/bt.4 head/share/man/man4/bwi.4 head/share/man/man4/bwn.4 head/share/man/man4/cd.4 head/share/man/man4/ch.4 head/share/man/man4/cpuctl.4 head/share/man/man4/dc.4 head/share/man/man4/ddb.4 head/share/man/man4/de.4 head/share/man/man4/digi.4 head/share/man/man4/igmp.4 head/share/man/man4/inet.4 head/share/man/man4/ipw.4 head/share/man/man4/iscsi_initiator.4 head/share/man/man4/isp.4 head/share/man/man4/iwi.4 head/share/man/man4/iwn.4 head/share/man/man4/joy.4 head/share/man/man4/keyboard.4 head/share/man/man4/led.4 head/share/man/man4/lpbb.4 head/share/man/man4/mac_biba.4 head/share/man/man4/mac_lomac.4 head/share/man/man4/mac_portacl.4 head/share/man/man4/malo.4 head/share/man/man4/meteor.4 head/share/man/man4/mk48txx.4 head/share/man/man4/mld.4 head/share/man/man4/mtio.4 head/share/man/man4/mwl.4 head/share/man/man4/netintro.4 head/share/man/man4/ng_UI.4 head/share/man/man4/ng_async.4 head/share/man/man4/ng_cisco.4 head/share/man/man4/ng_frame_relay.4 head/share/man/man4/ng_gif.4 head/share/man/man4/ng_iface.4 head/share/man/man4/ng_l2cap.4 head/share/man/man4/ng_lmi.4 head/share/man/man4/ng_pppoe.4 head/share/man/man4/ng_rfc1490.4 head/share/man/man4/ng_tee.4 head/share/man/man4/ng_tty.4 head/share/man/man4/ng_vjc.4 head/share/man/man4/pcn.4 head/share/man/man4/psm.4 head/share/man/man4/pt.4 head/share/man/man4/pts.4 head/share/man/man4/pty.4 head/share/man/man4/ral.4 head/share/man/man4/random.4 head/share/man/man4/rl.4 head/share/man/man4/rum.4 head/share/man/man4/run.4 head/share/man/man4/screen.4 head/share/man/man4/send.4 head/share/man/man4/ses.4 head/share/man/man4/sf.4 head/share/man/man4/sis.4 head/share/man/man4/sk.4 head/share/man/man4/smb.4 head/share/man/man4/snd_hda.4 head/share/man/man4/ste.4 head/share/man/man4/sym.4 head/share/man/man4/syscons.4 head/share/man/man4/ti.4 head/share/man/man4/tl.4 head/share/man/man4/tx.4 head/share/man/man4/uath.4 head/share/man/man4/upgt.4 head/share/man/man4/ural.4 head/share/man/man4/urtw.4 head/share/man/man4/vr.4 head/share/man/man4/wb.4 head/share/man/man4/wi.4 head/share/man/man4/wpi.4 head/share/man/man4/xl.4 head/share/man/man5/elf.5 head/share/man/man5/link.5 head/share/man/man5/make.conf.5 head/share/man/man5/passwd.5 head/share/man/man5/quota.user.5 head/share/man/man5/resolver.5 head/share/man/man7/firewall.7 head/share/man/man7/sdoc.7 head/share/man/man8/picobsd.8 head/share/man/man8/rc.8 head/share/man/man8/rc.sendmail.8 head/share/man/man9/DB_COMMAND.9 head/share/man/man9/MD5.9 head/share/man/man9/VOP_READDIR.9 head/share/man/man9/fail.9 head/share/man/man9/ieee80211_ddb.9 head/share/man/man9/ieee80211_radiotap.9 head/share/man/man9/mbuf.9 head/share/man/man9/style.9 head/
svn commit: r213582 - head/bin/rm
Author: uqs Date: Fri Oct 8 15:20:20 2010 New Revision: 213582 URL: http://svn.freebsd.org/changeset/base/213582 Log: rm(1): clarify that -P works only when blocks are updated in-place Suggested by: pjd, ivoras, arundel Modified: head/bin/rm/rm.1 head/bin/rm/rm.c Modified: head/bin/rm/rm.1 == --- head/bin/rm/rm.1Fri Oct 8 15:10:30 2010(r213581) +++ head/bin/rm/rm.1Fri Oct 8 15:20:20 2010(r213582) @@ -32,7 +32,7 @@ .\"@(#)rm.18.5 (Berkeley) 12/5/94 .\" $FreeBSD$ .\" -.Dd October 3, 2010 +.Dd October 8, 2010 .Dt RM 1 .Os .Sh NAME @@ -229,8 +229,8 @@ command appeared in .Sh BUGS The .Fl P -option assumes that the underlying file system is a fixed-block file -system. -UFS is a fixed-block file system, LFS is not. +option assumes that the underlying file system updates existing blocks +in-place and does not store new data in a new location. +This is true for UFS but not for ZFS, which is using a Copy-On-Write strategy. In addition, only regular files are overwritten, other types of files are not. Modified: head/bin/rm/rm.c == --- head/bin/rm/rm.cFri Oct 8 15:10:30 2010(r213581) +++ head/bin/rm/rm.cFri Oct 8 15:20:20 2010(r213582) @@ -402,8 +402,8 @@ rm_file(char **argv) * This is a cheap way to *really* delete files. Note that only regular * files are deleted, directories (and therefore names) will remain. * Also, this assumes a fixed-block file system (like FFS, or a V7 or a - * System V file system). In a logging file system, you'll have to have - * kernel support. + * System V file system). In a logging or COW file system, you'll have to + * have kernel support. */ int rm_overwrite(char *file, struct stat *sbp) ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r213573 - in head: bin/chflags bin/stty games/caesar lib/libarchive lib/libc/gen lib/libc/locale lib/libc/net lib/libc/posix1e lib/libc/regex lib/libc/stdlib lib/libc/sys lib/libc/uuid
On Fri, 08.10.2010 at 12:40:16 +, Ulrich Spörlein wrote: > Author: uqs > Date: Fri Oct 8 12:40:16 2010 > New Revision: 213573 > URL: http://svn.freebsd.org/changeset/base/213573 > > Log: > mdoc: drop redundant .Pp and .LP calls This is weird, I had two more files in the git commit that was pushed to svn, but they somehow got lost in transit. Which should have aborted the commit and not finished it anyway. Looks like a regression in git-svn, just FYI. Uli ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r213653 - in head: share/man/man4 usr.sbin/config
Author: uqs Date: Sat Oct 9 11:43:00 2010 New Revision: 213653 URL: http://svn.freebsd.org/changeset/base/213653 Log: mdoc: drop redundant .Pp calls, kill EOL whitespace Modified: head/share/man/man4/pci.4 head/usr.sbin/config/config.5 Modified: head/share/man/man4/pci.4 == --- head/share/man/man4/pci.4 Sat Oct 9 09:24:16 2010(r213652) +++ head/share/man/man4/pci.4 Sat Oct 9 11:43:00 2010(r213653) @@ -55,8 +55,8 @@ device. If used improperly, this driver can allow userland applications to crash a machine or cause data loss. .Pp -The -.Nm +The +.Nm driver implements the .Tn PCI bus in the kernel. @@ -74,7 +74,7 @@ children when client drivers are dynamically loaded at runtime. .Sh KERNEL CONFIGURATION -The +The .Nm device is included in the kernel as described in the SYNOPSIS section. The @@ -90,7 +90,6 @@ driver. They are defined in the header file .In sys/pciio.h . .Bl -tag -width 012345678901234 -.Pp .It PCIOCGETCONF This .Xr ioctl 2 Modified: head/usr.sbin/config/config.5 == --- head/usr.sbin/config/config.5 Sat Oct 9 09:24:16 2010 (r213652) +++ head/usr.sbin/config/config.5 Sat Oct 9 11:43:00 2010 (r213653) @@ -86,9 +86,9 @@ Directives are processed in order of app directive lines overriding the effect of prior ones. .Pp The list of keywords and their meanings are as follows: +.Pp .Bl -tag -width indent -compact .\" CPU -.Pp .It Ic cpu Ar cputype Specify the CPU this kernel will run on. There can be more than one @@ -208,9 +208,9 @@ When .Ar cpuarch is not specified, it is assumed to be the same as .Ar arch . -.Ar arch +.Ar arch corresponds to MACHINE. -.Ar cpuarch +.Ar cpuarch corresponds to MACHINE_ARCH. .Pp A kernel configuration file may have only one @@ -351,7 +351,6 @@ option to The following kernel configuration directives are obsolete. .Bl -tag -width indent .\" CONFIG -.Pp .It Ic config This directive was used to specify the device to be used for the root file system. ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r214054 - in head: contrib/bsnmp/lib libexec/bootpd sbin/routed sbin/setkey sbin/sunlabel share/man/man4/man4.arm share/man/man4/man4.i386 share/man/man4/man4.powerpc share/man/man5 sys...
Author: uqs Date: Tue Oct 19 12:35:40 2010 New Revision: 214054 URL: http://svn.freebsd.org/changeset/base/214054 Log: mdoc: drop even more redundant .Pp calls No change in rendered output, less mandoc lint warnings. Tool provided by: Nobuyuki Koganemaru n-kogane at syd.odn.ne.jp Modified: head/contrib/bsnmp/lib/bsnmplib.3 head/libexec/bootpd/bootptab.5 head/sbin/routed/routed.8 head/sbin/setkey/setkey.8 head/sbin/sunlabel/sunlabel.8 head/share/man/man4/man4.arm/mge.4 head/share/man/man4/man4.i386/ep.4 head/share/man/man4/man4.i386/mse.4 head/share/man/man4/man4.powerpc/tsec.4 head/share/man/man5/freebsd-update.conf.5 head/sys/netinet/libalias/libalias.3 head/usr.sbin/apmd/apmd.8 head/usr.sbin/gpioctl/gpioctl.8 Modified: head/contrib/bsnmp/lib/bsnmplib.3 == --- head/contrib/bsnmp/lib/bsnmplib.3 Tue Oct 19 11:55:58 2010 (r214053) +++ head/contrib/bsnmp/lib/bsnmplib.3 Tue Oct 19 12:35:40 2010 (r214054) @@ -134,7 +134,6 @@ is not zero, .Fa v.octetstring.octets points to a string allocated by .Xr malloc 3 . -.Pp .Bd -literal -offset indent #define SNMP_COMMUNITY_MAXLEN 128 #define SNMP_MAX_BINDINGS 100 Modified: head/libexec/bootpd/bootptab.5 == --- head/libexec/bootpd/bootptab.5 Tue Oct 19 11:55:58 2010 (r214053) +++ head/libexec/bootpd/bootptab.5 Tue Oct 19 12:35:40 2010 (r214054) @@ -388,7 +388,6 @@ hardware address. An example .Pa /etc/bootptab file follows: -.Pp .Bd -literal -offset indent # Sample bootptab file (domain=andrew.cmu.edu) Modified: head/sbin/routed/routed.8 == --- head/sbin/routed/routed.8 Tue Oct 19 11:55:58 2010(r214053) +++ head/sbin/routed/routed.8 Tue Oct 19 12:35:40 2010(r214054) @@ -440,7 +440,6 @@ The file is comprised of a series of lines, each in one of the following two formats or consist of parameters described later. Blank lines and lines starting with '#' are comments. -.Pp .Bd -ragged .Cm net .Ar Nname[/mask] Modified: head/sbin/setkey/setkey.8 == --- head/sbin/setkey/setkey.8 Tue Oct 19 11:55:58 2010(r214053) +++ head/sbin/setkey/setkey.8 Tue Oct 19 12:35:40 2010(r214054) @@ -565,7 +565,6 @@ There are small, but important, differen See .Xr ipsec_set_policy 3 for details. -.Pp .El .Pp .\" @@ -583,7 +582,6 @@ in the of the .Ar protocol parameter: -.Pp .Bd -literal -offset indent algorithm keylen (bits) comment hmac-md5 128 ah: rfc2403 @@ -616,7 +614,6 @@ in the of the .Ar protocol parameter: -.Pp .Bd -literal -offset indent algorithm keylen (bits) comment des-cbc64 esp-old: rfc1829, esp: rfc2405 @@ -643,7 +640,6 @@ in the of the .Ar protocol parameter: -.Pp .Bd -literal -offset indent algorithm comment deflaterfc2394 Modified: head/sbin/sunlabel/sunlabel.8 == --- head/sbin/sunlabel/sunlabel.8 Tue Oct 19 11:55:58 2010 (r214053) +++ head/sbin/sunlabel/sunlabel.8 Tue Oct 19 12:35:40 2010 (r214054) @@ -120,7 +120,6 @@ Options are listed in alphabetical order Note that only those option combinations listed under .Sx SYNOPSIS are allowable. -.Pp .Bl -tag -width ".Fl b Ar bootpath" .It Fl b Ar bootpath Specify that Modified: head/share/man/man4/man4.arm/mge.4 == --- head/share/man/man4/man4.arm/mge.4 Tue Oct 19 11:55:58 2010 (r214053) +++ head/share/man/man4/man4.arm/mge.4 Tue Oct 19 12:35:40 2010 (r214054) @@ -47,7 +47,6 @@ system-on-chip devices. The .Nm driver supports the following media types: -.Pp .Bl -tag -width .It autoselect Enable autoselection of the media type and options @@ -62,7 +61,6 @@ Set 1000baseT operation The .Nm driver supports the following media options: -.Pp .Bl -tag -width .It full-duplex Set full duplex operation Modified: head/share/man/man4/man4.i386/ep.4 == --- head/share/man/man4/man4.i386/ep.4 Tue Oct 19 11:55:58 2010 (r214053) +++ head/share/man/man4/man4.i386/ep.4 Tue Oct 19 12:35:40 2010 (r214054) @@ -57,7 +57,6 @@ Parallel Tasking chipset. .Pp Various models of these cards come with a different assortment of connectors: -.Pp .Bl -tag -width .It AUI/DIX Standard 15 pin connector, also known as 10base5 (thick-net) @@ -74,7 +73,6 @@ To override this, use the following medi or in your .Pa /etc/rc.conf file. -.Pp .Bl -
svn commit: r214061 - head/share/man/man9
Author: uqs Date: Tue Oct 19 15:26:08 2010 New Revision: 214061 URL: http://svn.freebsd.org/changeset/base/214061 Log: mdoc: fix markup typo MFC after:1 week (together with r213983) Modified: head/share/man/man9/vrele.9 Modified: head/share/man/man9/vrele.9 == --- head/share/man/man9/vrele.9 Tue Oct 19 15:18:40 2010(r214060) +++ head/share/man/man9/vrele.9 Tue Oct 19 15:26:08 2010(r214061) @@ -59,7 +59,7 @@ The .Fn vrele function takes an unlocked vnode and returns with the vnode unlocked. .Pp -.The +The .Fn vput function should be given a locked vnode as argument, the vnode is unlocked after the function returned. ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r214132 - in head: lib/libc/sys sbin/fsirand sbin/ipfw sbin/restore share/man/man4 share/man/man5 share/man/man9 usr.bin/mesg usr.sbin/mtest
Author: uqs Date: Thu Oct 21 12:27:13 2010 New Revision: 214132 URL: http://svn.freebsd.org/changeset/base/214132 Log: mdoc: make pages render with mandoc It's a bit more pedantic regarding .Bl list elements. This has an added benefit of unbreaking the ipfw(8) manpage, where groff was silently skipping one list element. Modified: head/lib/libc/sys/getpriority.2 head/lib/libc/sys/pathconf.2 head/lib/libc/sys/stat.2 head/sbin/fsirand/fsirand.8 head/sbin/ipfw/ipfw.8 head/sbin/restore/restore.8 head/share/man/man4/iscsi_initiator.4 head/share/man/man5/elf.5 head/share/man/man9/sysctl_add_oid.9 head/usr.bin/mesg/mesg.1 head/usr.sbin/mtest/mtest.8 Modified: head/lib/libc/sys/getpriority.2 == --- head/lib/libc/sys/getpriority.2 Thu Oct 21 10:46:18 2010 (r214131) +++ head/lib/libc/sys/getpriority.2 Thu Oct 21 12:27:13 2010 (r214132) @@ -129,10 +129,10 @@ or .Dv PRIO_USER . .El .Pp -.Bl -tag -width Er In addition to the errors indicated above, .Fn setpriority will fail if: +.Bl -tag -width Er .It Bq Er EPERM A process was located, but neither its effective nor real user ID matched the effective user ID of the caller. Modified: head/lib/libc/sys/pathconf.2 == --- head/lib/libc/sys/pathconf.2Thu Oct 21 10:46:18 2010 (r214131) +++ head/lib/libc/sys/pathconf.2Thu Oct 21 12:27:13 2010 (r214132) @@ -89,7 +89,6 @@ returns information about the file the l The available values are as follows: .Pp .Bl -tag -width 6n -.Pp .It Li _PC_LINK_MAX The maximum file link count. .It Li _PC_MAX_CANON @@ -234,11 +233,11 @@ Too many symbolic links were encountered An I/O error occurred while reading from or writing to the file system. .El .Pp -.Bl -tag -width Er The .Fn fpathconf system call will fail if: +.Bl -tag -width Er .It Bq Er EBADF The .Fa fd Modified: head/lib/libc/sys/stat.2 == --- head/lib/libc/sys/stat.2Thu Oct 21 10:46:18 2010(r214131) +++ head/lib/libc/sys/stat.2Thu Oct 21 12:27:13 2010(r214132) @@ -345,10 +345,10 @@ represented correctly in the structure p .Fa sb . .El .Pp -.Bl -tag -width Er The .Fn fstat system call will fail if: +.Bl -tag -width Er .It Bq Er EBADF The .Fa fd Modified: head/sbin/fsirand/fsirand.8 == --- head/sbin/fsirand/fsirand.8 Thu Oct 21 10:46:18 2010(r214131) +++ head/sbin/fsirand/fsirand.8 Thu Oct 21 12:27:13 2010(r214132) @@ -73,8 +73,8 @@ The utility may be used on the root file system in single-user mode but the system should be rebooted via ``reboot -n'' afterwards. .Sh OPTIONS -.Bl -tag -width indent The available options are as follows: +.Bl -tag -width indent .It Fl b Use the default block size (usually 512 bytes) instead of the value gleaned from the disklabel. Modified: head/sbin/ipfw/ipfw.8 == --- head/sbin/ipfw/ipfw.8 Thu Oct 21 10:46:18 2010(r214131) +++ head/sbin/ipfw/ipfw.8 Thu Oct 21 12:27:13 2010(r214132) @@ -1009,11 +1009,11 @@ The second format with multiple addresses) is provided for convenience only and its use is discouraged. .It Ar addr : Oo Cm not Oc Bro -.Bl -tag -width indent .Cm any | me | me6 | .Cm table Ns Pq Ar number Ns Op , Ns Ar value .Ar | addr-list | addr-set .Brc +.Bl -tag -width indent .It Cm any matches any IP address. .It Cm me @@ -2176,7 +2176,6 @@ Finally, the following parameters can be pipes and queues: .Pp .Bl -tag -width -compact -.Pp .It Cm buckets Ar hash-table-size Specifies the size of the hash table used for storing the various queues. Modified: head/sbin/restore/restore.8 == --- head/sbin/restore/restore.8 Thu Oct 21 10:46:18 2010(r214131) +++ head/sbin/restore/restore.8 Thu Oct 21 12:27:13 2010(r214132) @@ -412,7 +412,6 @@ Most checks are self-explanatory or can Common errors are given below. .Pp .Bl -tag -width Ds -compact -.Pp .It : not found on tape The specified file name was listed in the tape directory, but was not found on the tape. Modified: head/share/man/man4/iscsi_initiator.4 == --- head/share/man/man4/iscsi_initiator.4 Thu Oct 21 10:46:18 2010 (r214131) +++ head/share/man/man4/iscsi_initiator.4 Thu Oct 21 12:27:13 2010 (r214132) @@ -90,8 +90,8 @@ see The .Nm driver creates the following: -.Bl -tag -width ".Pa /dev/iscsi%dxx" -compact .Pp +.Bl -tag -width ".Pa /dev/iscsi%dxx" -compact .It Pa /dev/iscsi used to create new sessions. .I
svn commit: r214237 - head/contrib/bsnmp/snmpd
Author: uqs Date: Sat Oct 23 12:27:39 2010 New Revision: 214237 URL: http://svn.freebsd.org/changeset/base/214237 Log: Remove mention of non-existant -o flag for debugging options. MFC after:3 days Modified: head/contrib/bsnmp/snmpd/bsnmpd.1 Modified: head/contrib/bsnmp/snmpd/bsnmpd.1 == --- head/contrib/bsnmp/snmpd/bsnmpd.1 Sat Oct 23 11:26:22 2010 (r214236) +++ head/contrib/bsnmp/snmpd/bsnmpd.1 Sat Oct 23 12:27:39 2010 (r214237) @@ -31,7 +31,7 @@ .\" .\" $Begemot: bsnmp/snmpd/bsnmpd.1,v 1.12 2006/02/27 09:50:03 brandt_h Exp $ .\" -.Dd August 16, 2010 +.Dd October 23, 2010 .Dt BSNMPD 1 .Os .Sh NAME @@ -68,11 +68,9 @@ Use .Ar file as configuration file instead of the standard one. .It Fl D Ar options -Debugging options are specified with a -.Fl o -flag followed by a comma separated string of options. +Debugging options are specified as a comma separated string. The following options are available. -.Bl -tag -width ".It Cm trace Ns Cm = Ns Cm level" +.Bl -tag -width "trace=level" .It Cm dump Dump all sent and received PDUs to the terminal. .It Cm events ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r214272 - head/usr.bin/lex
Author: uqs Date: Sun Oct 24 15:31:41 2010 New Revision: 214272 URL: http://svn.freebsd.org/changeset/base/214272 Log: flex: add missing ifdef magic to create/hide prototypes This unbreaks build for some software with higher WARNS flags. Reviewed by: rpaulo PR: bin/139319 (parts already committed in previous revision) Modified: head/usr.bin/lex/flex.skl Modified: head/usr.bin/lex/flex.skl == --- head/usr.bin/lex/flex.skl Sun Oct 24 13:48:11 2010(r214271) +++ head/usr.bin/lex/flex.skl Sun Oct 24 15:31:41 2010(r214272) @@ -747,7 +747,11 @@ void yyFlexLexer::LexerOutput( const cha */ %- +#ifdef YY_USE_PROTOS static int yy_get_next_buffer(void) +#else +static int yy_get_next_buffer() +#endif %+ int yyFlexLexer::yy_get_next_buffer() %* @@ -883,7 +887,11 @@ int yyFlexLexer::yy_get_next_buffer() /* yy_get_previous_state - get the state just before the EOB char was reached */ %- +#ifdef YY_USE_PROTOS static yy_state_type yy_get_previous_state(void) +#else +static yy_state_type yy_get_previous_state() +#endif %+ yy_state_type yyFlexLexer::yy_get_previous_state() %* @@ -983,7 +991,11 @@ void yyFlexLexer::yyunput( int c, char* #ifdef __cplusplus static int yyinput() #else +#ifdef YY_USE_PROTOS static int input(void) +#else +static int input() +#endif #endif %+ int yyFlexLexer::yyinput() @@ -1055,7 +1067,9 @@ int yyFlexLexer::yyinput() return c; } -#endif /* ifndef YY_NO_INPUT */ +%- +#endif /* ifndef YY_NO_INPUT */ +%* %- @@ -1404,7 +1418,11 @@ void yyFlexLexer::yy_push_state( int new #ifndef YY_NO_POP_STATE %- +#ifdef YY_USE_PROTOS +static void yy_pop_state(void) +#else static void yy_pop_state() +#endif %+ void yyFlexLexer::yy_pop_state() %* @@ -1419,7 +1437,11 @@ void yyFlexLexer::yy_pop_state() #ifndef YY_NO_TOP_STATE %- +#ifdef YY_USE_PROTOS +static int yy_top_state(void) +#else static int yy_top_state() +#endif %+ int yyFlexLexer::yy_top_state() %* ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r214489 - head/usr.sbin/bsnmpd/modules/snmp_hostres
Author: uqs Date: Thu Oct 28 20:18:26 2010 New Revision: 214489 URL: http://svn.freebsd.org/changeset/base/214489 Log: Fix CPU load reporting independent of scheduler used. - Sample CPU usage data from kern.cp_times, this makes for a far more accurate and scheduler independent algorithm. - Rip out the process list scraping that is no longer required. - Don't update CPU usage sampling on every request, but every 15s instead. This makes it impossible for an attacker to hide the CPU load by triggering 4 samplings in short succession when the system is idle. - After reaching the steady-state, the system will always report the average CPU load of the last 60 sampled seconds. - Untangling of call graph. PR: kern/130222 Tested by:Julian Dunn Gustau Pérez Jürgen Weiß MFC after:2 weeks I'm unsure if some MIB standard states this must be the load average for, eg. 300s, it looks like net-snmp isn't even bothering to implement the CPU load reporting at all. Modified: head/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_processor_tbl.c Modified: head/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_processor_tbl.c == --- head/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_processor_tbl.c Thu Oct 28 19:18:54 2010(r214488) +++ head/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_processor_tbl.c Thu Oct 28 20:18:26 2010(r214489) @@ -56,19 +56,15 @@ struct processor_entry { int32_t index; const struct asn_oid *frwId; - int32_t load; + int32_t load; /* average cpu usage */ + int32_t sample_cnt; /* number of usage samples */ + int32_t cur_sample_idx; /* current valid sample */ TAILQ_ENTRY(processor_entry) link; u_char cpu_no; /* which cpu, counted from 0 */ - pid_t idle_pid; /* PID of idle process for this CPU */ /* the samples from the last minute, as required by MIB */ double samples[MAX_CPU_SAMPLES]; - - /* current sample to fill in next time, must be < MAX_CPU_SAMPLES */ - uint32_tcur_sample_idx; - - /* number of useful samples */ - uint32_tsample_cnt; + longstates[MAX_CPU_SAMPLES][CPUSTATES]; }; TAILQ_HEAD(processor_tbl, processor_entry); @@ -82,65 +78,78 @@ static int32_t detected_processor_count; /* sysctlbyname(hw.ncpu) */ static int hw_ncpu; -/* sysctlbyname(kern.{ccpu,fscale}) */ -static fixpt_t ccpu; -static int fscale; - -/* tick of PDU where we have refreshed the processor table last */ -static uint64_t proctbl_tick; +/* sysctlbyname(kern.cp_times) */ +static int cpmib[2]; +static size_t cplen; /* periodic timer used to get cpu load stats */ static void *cpus_load_timer; -/* - * Average the samples. The entire algorithm seems to be wrong XXX. +/** + * Returns the CPU usage of a given processor entry. + * + * It needs at least two cp_times "tick" samples to calculate a delta and + * thus, the usage over the sampling period. */ static int get_avg_load(struct processor_entry *e) { - u_int i; - double sum = 0.0; + u_int i, oldest; + long delta = 0; + double usage = 0.0; assert(e != NULL); - if (e->sample_cnt == 0) + /* Need two samples to perform delta calculation. */ + if (e->sample_cnt <= 1) return (0); - for (i = 0; i < e->sample_cnt; i++) - sum += e->samples[i]; - - return ((int)floor((double)sum/(double)e->sample_cnt)); -} - -/* - * Stolen from /usr/src/bin/ps/print.c. The idle process should never - * be swapped out :-) - */ -static double -processor_getpcpu(struct kinfo_proc *ki_p) -{ - - if (ccpu == 0 || fscale == 0) - return (0.0); - -#definefxtofl(fixpt) ((double)(fixpt) / fscale) - return (100.0 * fxtofl(ki_p->ki_pctcpu) / - (1.0 - exp(ki_p->ki_swtime * log(fxtofl(ccpu); + /* Oldest usable index, we wrap around. */ + if (e->sample_cnt == MAX_CPU_SAMPLES) + oldest = (e->cur_sample_idx + 1) % MAX_CPU_SAMPLES; + else + oldest = 0; + + /* Sum delta for all states. */ + for (i = 0; i < CPUSTATES; i++) { + delta += e->states[e->cur_sample_idx][i]; + delta -= e->states[oldest][i]; + } + if (delta == 0) + return 0; + + /* Take idle time from the last element and convert to +* percent usage by contrasting with total ticks delta. */ + usage = (double)(e->states[e->cur_sample_idx][CPUSTATES-1] - + e->states[oldest][CPUSTATES-1]) / delta; + usage = 100 - (usage * 100); + HRDBG("CPU no. %d, delta ticks %ld, pct usage %.2f", e->cpu_no, + delta, usage); + + return (
svn commit: r214491 - head/usr.sbin/rtadvd
Author: uqs Date: Thu Oct 28 22:28:45 2010 New Revision: 214491 URL: http://svn.freebsd.org/changeset/base/214491 Log: Fix another "string" typo. MFC after:3 days Modified: head/usr.sbin/rtadvd/rtadvd.conf.5 Modified: head/usr.sbin/rtadvd/rtadvd.conf.5 == --- head/usr.sbin/rtadvd/rtadvd.conf.5 Thu Oct 28 21:51:14 2010 (r214490) +++ head/usr.sbin/rtadvd/rtadvd.conf.5 Thu Oct 28 22:28:45 2010 (r214491) @@ -201,7 +201,7 @@ The default value is 64. (str or num) A 8-bit flags field in prefix information option. This field can be specified either as a case-sensitive string or as an integer. -A sting consists of characters each of which corresponds to a +A string consists of characters each of which corresponds to a particular flag bit(s). An integer should be the logical OR of all enabled bits. Bit 7 ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r214596 - head/bin/rm
Author: uqs Date: Sun Oct 31 09:21:27 2010 New Revision: 214596 URL: http://svn.freebsd.org/changeset/base/214596 Log: Elaborate some more on the non-security implications of using -P Submitted by: delphij Discussion at:svn-src-all Modified: head/bin/rm/rm.1 Modified: head/bin/rm/rm.1 == --- head/bin/rm/rm.1Sun Oct 31 09:05:04 2010(r214595) +++ head/bin/rm/rm.1Sun Oct 31 09:21:27 2010(r214596) @@ -32,7 +32,7 @@ .\"@(#)rm.18.5 (Berkeley) 12/5/94 .\" $FreeBSD$ .\" -.Dd October 8, 2010 +.Dd October 31, 2010 .Dt RM 1 .Os .Sh NAME @@ -100,6 +100,11 @@ Specifying this flag for a read only fil .Nm to generate an error message and exit. The file will not be removed or overwritten. +.Pp +N.B.: The +.Fl P +flag is not considered a security feature +.Pq see Sx BUGS . .It Fl R Attempt to remove the file hierarchy rooted in each .Ar file @@ -229,8 +234,12 @@ command appeared in .Sh BUGS The .Fl P -option assumes that the underlying file system updates existing blocks -in-place and does not store new data in a new location. -This is true for UFS, but not for ZFS or other file systems which use -copy-on-write semantics. -In addition, only regular files are overwritten. +option assumes that the underlying storage overwrites file block +when data is written to an existing offset. +Several factors including the file system and its backing store could defeat +this assumption. +This includes, but is not limited to file systems that use a +Copy-On-Write strategy (e.g. ZFS or UFS when snapshots are being used), Flash +media that is using a wear leveling algorithm, or when the backing datastore +does journaling, etc. +In addition, only regular files are overwritten, other types of files are not. ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r214596 - head/bin/rm
On Sun, 31.10.2010 at 17:06:03 +0100, Pawel Jakub Dawidek wrote: > On Sun, Oct 31, 2010 at 09:21:28AM +0000, Ulrich Spoerlein wrote: > > Author: uqs > > Date: Sun Oct 31 09:21:27 2010 > > New Revision: 214596 > > URL: http://svn.freebsd.org/changeset/base/214596 > > > > Log: > > Elaborate some more on the non-security implications of using -P > [...] > > +.Pp > > +N.B.: The > > +.Fl P > > +flag is not considered a security feature > > +.Pq see Sx BUGS . > > I'm sorry for jumping so late into the subject, but if it is not a > security feature than what other purpose has left? > > Really guys, this option is useless. > > There is no reliable way to verify if the blocks are really overwritten. > Period. > > If it is not used for security, then I see no other use for it (except > for [1]). > > If it is used for security then we better have a way to give the user > the right answer to the question "is my data really gone?" and don't > make false assumptions or giving answers "we hope so". > > Why there is no reliable way to verify this? > 1. Check file system type (UFS, ZFS). > 2. Check file system configuration (UFS with snapshots?). > 3. Be sure sync(2) the file system and send BIO_FLUSH to all the media >involved (some cheap flash disks lie about BIO_FLUSH support). > 4. Check underlying media (GLABEL provider - no modification to the data). > 5. Check underlying media (ZVOL - data won't be overwritten, but...). > 6. Check ZFS vdevs (on which providers ZVOL's pool is based on). > 7. Check vdevs (GELI - cool, we have encryption). > 8. Check GELI configuration (maybe NULL encryption algorithm?). > 9. Check underlying media (HDD, SSD, swap-backed md(4) device? goto 3). > 10. Check if the sectors weren't remapped while we were overwriting. > > In other words this is s complicated that it would simply be too > hard to explain to regular user or implement in rm(1). > > IMHO this option should be removed and rm(1) should fail when a user is > trying to use it. No, this is a POLA violation for no apparent gain. The flag has been in FreeBSD since at least '94. Remember, that we are in the rope-selling business. We empower the users to shoot themselves in the foot. I, for one, am using the -P option in a certain case where I can be sure that ~99% of the data will be obliterated and I'm fine with that. For all other cases I'm using geli or gbde (where I can make sure, that data is lost). So we can either fix -P for all cases (impossible), or at least document its shortcomings. Documenting them clearly is better than what we had a couple of days before. Uli ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r214604 - head/bin/rm
Author: uqs Date: Sun Oct 31 19:16:54 2010 New Revision: 214604 URL: http://svn.freebsd.org/changeset/base/214604 Log: Fix typo and grammar nit Submitted by: arundel MFC after:7 days (or when the bikeshed has abated) Modified: head/bin/rm/rm.1 Modified: head/bin/rm/rm.1 == --- head/bin/rm/rm.1Sun Oct 31 18:27:05 2010(r214603) +++ head/bin/rm/rm.1Sun Oct 31 19:16:54 2010(r214604) @@ -234,12 +234,12 @@ command appeared in .Sh BUGS The .Fl P -option assumes that the underlying storage overwrites file block +option assumes that the underlying storage overwrites file blocks when data is written to an existing offset. Several factors including the file system and its backing store could defeat this assumption. This includes, but is not limited to file systems that use a Copy-On-Write strategy (e.g. ZFS or UFS when snapshots are being used), Flash -media that is using a wear leveling algorithm, or when the backing datastore +media that are using a wear leveling algorithm, or when the backing datastore does journaling, etc. In addition, only regular files are overwritten, other types of files are not. ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r214596 - head/bin/rm
On Sun, 31.10.2010 at 20:50:03 +0100, Pawel Jakub Dawidek wrote: > On Sun, Oct 31, 2010 at 08:11:19PM +0100, Ulrich Spoerlein wrote: > > On Sun, 31.10.2010 at 17:06:03 +0100, Pawel Jakub Dawidek wrote: > > > IMHO this option should be removed and rm(1) should fail when a user is > > > trying to use it. > > > > No, this is a POLA violation for no apparent gain. The flag has been in > > FreeBSD since at least '94. Remember, that we are in the rope-selling > > business. We empower the users to shoot themselves in the foot. > > > > I, for one, am using the -P option in a certain case where I can be sure > > that ~99% of the data will be obliterated and I'm fine with that. For > > all other cases I'm using geli or gbde (where I can make sure, that data > > is lost). > > The question remains unanswered: If it is not a security feature then > what's the purpose? > > IMHO this is a security feature, just a really lame one. Too many > requirements have to be meet to make it work. > > I don't think you would want to read in GELI or GBDE manual page that it > encrypts the data sometimes, or if all the given requirements are meet. > Of course requirements are fine, but they have to be really clear to the > user and the list should be as short as possible, which is not the case > here. True, this was obviously the case when the feature was introduced, a couple of years ago. As things change constantly, it may never be possible to have it work (and not break silently in the future). > > So we can either fix -P for all cases (impossible), or at least document > > its shortcomings. Documenting them clearly is better than what we had a > > couple of days before. > > I don't argue that the previous version of manual page was better I just > pick your commit to discuss it mentioned functionality further. Sorry, if my post came across a bit harsh. I only tried to document the current behaviour a bit more clearly, and perhaps give the user a warning that this feature might not do what it did 16 years ago. > Maybe we could implement few simple checks which when satisfied don't > emit a warning, ie. if this is UFS, on top of partition, on top of a > slice and on top of a regular SCSI or SATA disk don't emit a warning, > but if there is a doubt, do emit a warning. This might not be trivial, > but might be doable. Alternatively we could always emit a warning. Knock yourself out, code speaks louder than words ... Uli ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r214628 - head/share/misc
Author: uqs Date: Mon Nov 1 17:27:09 2010 New Revision: 214628 URL: http://svn.freebsd.org/changeset/base/214628 Log: Add DragonflyBSD 2.8 and OpenBSD 4.8 releases Also expand a stray tab in the family tree MFC after:1 week Modified: head/share/misc/bsd-family-tree Modified: head/share/misc/bsd-family-tree == --- head/share/misc/bsd-family-tree Mon Nov 1 15:43:42 2010 (r214627) +++ head/share/misc/bsd-family-tree Mon Nov 1 17:27:09 2010 (r214628) @@ -151,7 +151,7 @@ FreeBSD 4.0 | | | | | NetBSD 1. | FreeBSD 4.5 || ||| | | | \ | ||| BSD/OS 4.3 | FreeBSD 4.6 \ | ||OpenBSD 3.1 | - | | \ | | NetBSD 1.5.3|| + | | \ | | NetBSD 1.5.3| | | FreeBSD 4.6.2 Mac OS X | | | | |10.2| | | | FreeBSD 4.7 | | | | @@ -239,7 +239,8 @@ FreeBSD 5.2 | | | | | | OpenBSD 4.7 | | FreeBSD | | | | |8.1 | | | | - | | | | | | + | | | | |DragonFly 2.8.0 + | | | | OpenBSD 4.8 | | V | | | | || | | | FreeBSD 9 -current| NetBSD -current OpenBSD -current | @@ -520,6 +521,8 @@ FreeBSD 7.3 2010-03-23 [FBD] DragonFly 2.6.02010-03-28 [DFB] OpenBSD 4.72010-05-19 [OBD] FreeBSD 8.12010-07-24 [FBD] +DragonFly 2.8.02010-10-30 [DFB] +OpenBSD 4.82010-11-01 [OBD] Bibliography ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r227900 - stable/8/usr.bin/catman
Author: uqs Date: Wed Nov 23 18:15:49 2011 New Revision: 227900 URL: http://svn.freebsd.org/changeset/base/227900 Log: MFH r224639, r224657: Disable generation of SGR sequences. This is a no-op when using base groff, as it hasn't been changed in stable. This helps when using the ports groff, though. Modified: stable/8/usr.bin/catman/catman.c Directory Properties: stable/8/usr.bin/catman/ (props changed) Modified: stable/8/usr.bin/catman/catman.c == --- stable/8/usr.bin/catman/catman.cWed Nov 23 18:11:10 2011 (r227899) +++ stable/8/usr.bin/catman/catman.cWed Nov 23 18:15:49 2011 (r227900) @@ -432,7 +432,7 @@ process_page(char *mandir, char *src, ch } snprintf(tmp_file, sizeof tmp_file, "%s.tmp", cat); snprintf(cmd, sizeof cmd, - "%scat %s | tbl | nroff -T%s -man | col | %s > %s.tmp", + "%scat %s | tbl | nroff -c -T%s -man | %s > %s.tmp", zipped == BZIP ? BZ2CAT_CMD : zipped == GZIP ? GZCAT_CMD : "", src, nroff_device, zipped == BZIP ? BZ2_CMD : zipped == GZIP ? GZ_CMD : "cat", ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r228934 - head/games/fortune/datfiles
Author: uqs Date: Wed Dec 28 19:37:03 2011 New Revision: 228934 URL: http://svn.freebsd.org/changeset/base/228934 Log: Prefer ASCII apostrophes over Unicode ones like the rest of the file. Modified: head/games/fortune/datfiles/fortunes Modified: head/games/fortune/datfiles/fortunes == --- head/games/fortune/datfiles/fortunesWed Dec 28 17:45:26 2011 (r228933) +++ head/games/fortune/datfiles/fortunesWed Dec 28 19:37:03 2011 (r228934) @@ -4699,7 +4699,7 @@ the soul. Worry, doubt, self-distrust, long, long years that bow the head and turn the growing spirit back to dust. - Whether seventy or sixteen, there is in every being’s heart a + Whether seventy or sixteen, there is in every being's heart a love of wonder; the sweet amazement at the stars and starlike things and thoughts; the undaunted challenge of events, the unfailing childlike appetite for what comes next, and the joy in the game of life. ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r228953 - in head/tools: regression/pthread/mutex_isowned_np tools/ansify tools/genericize tools/hcomp tools/mtxstat tools/prstats tools/whereintheworld
Author: uqs Date: Thu Dec 29 12:33:27 2011 New Revision: 228953 URL: http://svn.freebsd.org/changeset/base/228953 Log: Reencode files from latin1 to UTF-8. Modified: head/tools/regression/pthread/mutex_isowned_np/mutex_isowned_np.c head/tools/tools/ansify/ansify.pl head/tools/tools/genericize/genericize.pl head/tools/tools/hcomp/hcomp.pl head/tools/tools/mtxstat/mtxstat.pl head/tools/tools/prstats/prstats.pl head/tools/tools/whereintheworld/whereintheworld.pl Modified: head/tools/regression/pthread/mutex_isowned_np/mutex_isowned_np.c == --- head/tools/regression/pthread/mutex_isowned_np/mutex_isowned_np.c Thu Dec 29 12:28:05 2011(r228952) +++ head/tools/regression/pthread/mutex_isowned_np/mutex_isowned_np.c Thu Dec 29 12:33:27 2011(r228953) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2008 Dag-Erling Co�dan Sm�rgrav + * Copyright (c) 2008 Dag-Erling Coïdan Smørgrav * All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/tools/tools/ansify/ansify.pl == --- head/tools/tools/ansify/ansify.pl Thu Dec 29 12:28:05 2011 (r228952) +++ head/tools/tools/ansify/ansify.pl Thu Dec 29 12:33:27 2011 (r228953) @@ -1,6 +1,6 @@ #!/usr/bin/perl -w #- -# Copyright (c) 2005 Dag-Erling Co�dan Sm�rgrav +# Copyright (c) 2005 Dag-Erling Coïdan Smørgrav # All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/tools/tools/genericize/genericize.pl == --- head/tools/tools/genericize/genericize.pl Thu Dec 29 12:28:05 2011 (r228952) +++ head/tools/tools/genericize/genericize.pl Thu Dec 29 12:33:27 2011 (r228953) @@ -1,6 +1,6 @@ #!/usr/bin/perl -w #- -# Copyright (c) 2004 Dag-Erling Co�dan Sm�rgrav +# Copyright (c) 2004 Dag-Erling Coïdan Smørgrav # All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/tools/tools/hcomp/hcomp.pl == --- head/tools/tools/hcomp/hcomp.pl Thu Dec 29 12:28:05 2011 (r228952) +++ head/tools/tools/hcomp/hcomp.pl Thu Dec 29 12:33:27 2011 (r228953) @@ -1,6 +1,6 @@ #!/usr/bin/perl -w #- -# Copyright (c) 2003 Dag-Erling Co�dan Sm�rgrav +# Copyright (c) 2003 Dag-Erling Coïdan Smørgrav # All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/tools/tools/mtxstat/mtxstat.pl == --- head/tools/tools/mtxstat/mtxstat.pl Thu Dec 29 12:28:05 2011 (r228952) +++ head/tools/tools/mtxstat/mtxstat.pl Thu Dec 29 12:33:27 2011 (r228953) @@ -1,6 +1,6 @@ #!/usr/bin/perl -Tw #- -# Copyright (c) 2002 Dag-Erling Co�dan Sm�rgrav +# Copyright (c) 2002 Dag-Erling Coïdan Smørgrav # All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/tools/tools/prstats/prstats.pl == --- head/tools/tools/prstats/prstats.pl Thu Dec 29 12:28:05 2011 (r228952) +++ head/tools/tools/prstats/prstats.pl Thu Dec 29 12:33:27 2011 (r228953) @@ -1,6 +1,6 @@ #!/usr/bin/perl -w #- -# Copyright (c) 2001 Dag-Erling Co�dan Sm�rgrav +# Copyright (c) 2001 Dag-Erling Coïdan Smørgrav # All rights reserved. # # Redistribution and use in source and binary forms, with or without Modified: head/tools/tools/whereintheworld/whereintheworld.pl == --- head/tools/tools/whereintheworld/whereintheworld.pl Thu Dec 29 12:28:05 2011(r228952) +++ head/tools/tools/whereintheworld/whereintheworld.pl Thu Dec 29 12:33:27 2011(r228953) @@ -4,7 +4,7 @@ # Parses "make world" output and summarize where it's been so far. # # Bill Fenner 11 January 2000 -# Dag-Erling Sm�rgrav 09 January 2003 +# Dag-Erling Smørgrav 09 January 2003 # # $Id: whereintheworld,v 1.3 2000/01/28 00:42:32 fenner Exp $ # $FreeBSD$ ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r228974 - head/tools/test/testfloat
Author: uqs Date: Fri Dec 30 00:02:56 2011 New Revision: 228974 URL: http://svn.freebsd.org/changeset/base/228974 Log: Set fbsd:nokeywords for contributed sources. Modified: Directory Properties: head/tools/test/testfloat/systemBugs.txt (props changed) head/tools/test/testfloat/testfloat-history.txt (props changed) head/tools/test/testfloat/testfloat-source.txt (props changed) head/tools/test/testfloat/testfloat.txt (props changed) ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r228975 - in head/tools: KSE/ksetest debugscripts regression regression/bin/sh/builtins regression/fifo/fifo_io regression/file/dup regression/kthread/kld regression/lib/libc/nss regres...
Author: uqs Date: Fri Dec 30 00:04:11 2011 New Revision: 228975 URL: http://svn.freebsd.org/changeset/base/228975 Log: Spelling fixes for tools/ Add some $FreeBSD$ tags so svn will allow the commit. Modified: head/tools/KSE/ksetest/kse_threads_test.c head/tools/debugscripts/gdbinit.i386 head/tools/debugscripts/kld_deb.py head/tools/regression/README head/tools/regression/bin/sh/builtins/cd1.0 head/tools/regression/fifo/fifo_io/fifo_io.c head/tools/regression/file/dup/dup.c head/tools/regression/kthread/kld/kthrdlk.c head/tools/regression/lib/libc/nss/README head/tools/regression/nfsmmap/Makefile head/tools/regression/nfsmmap/README head/tools/regression/pjdfstest/tests/chown/00.t head/tools/regression/priv/priv_cred.c head/tools/regression/security/open_to_operation/open_to_operation.c head/tools/regression/usr.bin/env/regress-sb.rb head/tools/regression/usr.bin/make/README head/tools/regression/usr.bin/make/variables/modifier_M/Makefile head/tools/regression/usr.bin/make/variables/modifier_M/expected.stdout.1 head/tools/regression/usr.bin/sed/math.sed head/tools/regression/usr.sbin/newsyslog/regress.sh head/tools/test/posixshm/shm_test.c head/tools/test/testfloat/systemBugs.txt head/tools/test/testfloat/testfloat-source.txt head/tools/test/testfloat/testfloat.txt head/tools/tools/bus_autoconf/bus_autoconf.c head/tools/tools/cd2dvd/cd2dvd.sh head/tools/tools/net80211/wlaninject/README head/tools/tools/netmap/bridge.c head/tools/tools/netmap/pkt-gen.c head/tools/tools/sysbuild/README head/tools/tools/tinybsd/README Modified: head/tools/KSE/ksetest/kse_threads_test.c == --- head/tools/KSE/ksetest/kse_threads_test.c Fri Dec 30 00:02:56 2011 (r228974) +++ head/tools/KSE/ksetest/kse_threads_test.c Fri Dec 30 00:04:11 2011 (r228975) @@ -418,7 +418,7 @@ uts(struct kse_mailbox *km) simplelock_lock(&data->runq->lock); /* -* Process any signals we've recieved (but only if we have +* Process any signals we've received (but only if we have * somewhere to deliver them to). */ if ((data->runq->head != NULL) && SIGNOTEMPTY(km->km_sigscaught)) { Modified: head/tools/debugscripts/gdbinit.i386 == --- head/tools/debugscripts/gdbinit.i386Fri Dec 30 00:02:56 2011 (r228974) +++ head/tools/debugscripts/gdbinit.i386Fri Dec 30 00:04:11 2011 (r228975) @@ -268,7 +268,7 @@ while (*(int *) $frame > 0xc000) end end document btr -Show a backtrace from the ebp address specified. This can be used to get a backtrace from any stack resident in memory. It's the user's responsiblity to ensure that the address is meaningful. +Show a backtrace from the ebp address specified. This can be used to get a backtrace from any stack resident in memory. It's the user's responsibility to ensure that the address is meaningful. end # btp Modified: head/tools/debugscripts/kld_deb.py == --- head/tools/debugscripts/kld_deb.py Fri Dec 30 00:02:56 2011 (r228974) +++ head/tools/debugscripts/kld_deb.py Fri Dec 30 00:04:11 2011 (r228975) @@ -68,9 +68,9 @@ gdb = popen2.popen4(gdb_cmd) def searchfor(inp, re, j = 0, l = None): """searchfor(inp, re, j, l): Searches for regex re in inp. It will -automaticly add more lines. If j is set, the lines will be joined together. +automatically add more lines. If j is set, the lines will be joined together. l can provide a starting line to help search against. Return value is a -tupple of the last line, and the match if any.""" +tuple of the last line, and the match if any.""" ret = None if not l: l = inp.readline() @@ -87,7 +87,7 @@ tupple of the last line, and the match i def get_addresses(inp, out): """get_addresses(inp, out): It will search for addresses from gdb. inp and out, are the gdb input and output respectively. Return value is -a list of tupples. The tupples contain the filename and the address the +a list of tuples. The tuples contain the filename and the address the filename was loaded.""" addr = [] nxad = 1 Modified: head/tools/regression/README == --- head/tools/regression/READMEFri Dec 30 00:02:56 2011 (r228974) +++ head/tools/regression/READMEFri Dec 30 00:04:11 2011 (r228975) @@ -37,7 +37,7 @@ test name. For example, A test may be flagged as 'todo'. This indicates that you expect the test to fail (perhaps because the necessary functionality hasn't been written yet). 'todo' tests are expected to fail, so when they start working the -test framework can alert you to this happy o
svn commit: r228976 - in head/usr.sbin: acpi/acpiconf bluetooth/hccontrol burncd chkgrp kbdcontrol kldxref pkg_install/updating vidcontrol
Author: uqs Date: Fri Dec 30 00:59:08 2011 New Revision: 228976 URL: http://svn.freebsd.org/changeset/base/228976 Log: Reencode files to UTF-8. Drop CP1252 em-dash. Modified: head/usr.sbin/acpi/acpiconf/acpiconf.8 head/usr.sbin/bluetooth/hccontrol/host_controller_baseband.c head/usr.sbin/burncd/burncd.8 head/usr.sbin/burncd/burncd.c head/usr.sbin/chkgrp/chkgrp.8 head/usr.sbin/chkgrp/chkgrp.c head/usr.sbin/kbdcontrol/kbdcontrol.c head/usr.sbin/kbdcontrol/lex.h head/usr.sbin/kbdcontrol/lex.l head/usr.sbin/kldxref/kldxref.8 head/usr.sbin/pkg_install/updating/main.c head/usr.sbin/pkg_install/updating/pathnames.h head/usr.sbin/pkg_install/updating/pkg_updating.1 head/usr.sbin/vidcontrol/decode.c head/usr.sbin/vidcontrol/vidcontrol.c Modified: head/usr.sbin/acpi/acpiconf/acpiconf.8 == --- head/usr.sbin/acpi/acpiconf/acpiconf.8 Fri Dec 30 00:04:11 2011 (r228975) +++ head/usr.sbin/acpi/acpiconf/acpiconf.8 Fri Dec 30 00:59:08 2011 (r228976) @@ -1,5 +1,5 @@ .\"- -.\" Copyright (c) 2000 Dag-Erling Co�dan Sm�rgrav +.\" Copyright (c) 2000 Dag-Erling Coïdan Smørgrav .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/bluetooth/hccontrol/host_controller_baseband.c == --- head/usr.sbin/bluetooth/hccontrol/host_controller_baseband.cFri Dec 30 00:04:11 2011(r228975) +++ head/usr.sbin/bluetooth/hccontrol/host_controller_baseband.cFri Dec 30 00:59:08 2011(r228976) @@ -1632,8 +1632,8 @@ struct hci_commandhost_controller_baseb "begins the next page scan. The Page_Scan_Window configuration parameter\n" \ "defines the amount of time for the duration of the page scan. \n" \ "The Page_Scan_Window can only be less than or equal to the Page_Scan_Interval.\n\n" \ -"\t - Range: 0x0012 -� 0x100, Time = N * 0.625 msec\n" \ -"\t - Range: 0x0012 -� 0x100, Time = N * 0.625 msen", +"\t - Range: 0x0012 -- 0x100, Time = N * 0.625 msec\n" \ +"\t - Range: 0x0012 -- 0x100, Time = N * 0.625 msen", &hci_write_page_scan_activity }, { @@ -1654,8 +1654,8 @@ struct hci_commandhost_controller_baseb "until it begins the next inquiry scan. The Inquiry_Scan_Window configuration\n" \ "parameter defines the amount of time for the duration of the inquiry scan.\n" \ "The Inquiry_Scan_Window can only be less than or equal to the Inquiry_Scan_Interval.\n\n" \ -"\t - Range: 0x0012 -� 0x100, Time = N * 0.625 msec\n" \ -"\t - Range: 0x0012 -� 0x100, Time = N * 0.625 msen", +"\t - Range: 0x0012 -- 0x100, Time = N * 0.625 msec\n" \ +"\t - Range: 0x0012 -- 0x100, Time = N * 0.625 msen", &hci_write_inquiry_scan_activity }, { Modified: head/usr.sbin/burncd/burncd.8 == --- head/usr.sbin/burncd/burncd.8 Fri Dec 30 00:04:11 2011 (r228975) +++ head/usr.sbin/burncd/burncd.8 Fri Dec 30 00:59:08 2011 (r228976) @@ -1,5 +1,5 @@ .\" -.\" Copyright (c) 2000,2001,2002 S�ren Schmidt +.\" Copyright (c) 2000,2001,2002 Søren Schmidt .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/burncd/burncd.c == --- head/usr.sbin/burncd/burncd.c Fri Dec 30 00:04:11 2011 (r228975) +++ head/usr.sbin/burncd/burncd.c Fri Dec 30 00:59:08 2011 (r228976) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2000,2001,2002 S�ren Schmidt + * Copyright (c) 2000,2001,2002 Søren Schmidt * All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/chkgrp/chkgrp.8 == --- head/usr.sbin/chkgrp/chkgrp.8 Fri Dec 30 00:04:11 2011 (r228975) +++ head/usr.sbin/chkgrp/chkgrp.8 Fri Dec 30 00:59:08 2011 (r228976) @@ -1,4 +1,4 @@ -.\" Copyright (c) 1998 Dag-Erling Co�dan Sm�rgrav +.\" Copyright (c) 1998 Dag-Erling Coïdan Smørgrav .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/chkgrp/chkgrp.c == --- head/usr.sbin/chkgrp/chkgrp.c Fri Dec 30 00:04:11 2011 (r228975) +++ head/usr.sbin/chkgrp/chkgrp.c Fri Dec 30 00:59:08 2011 (r228976) @@ -1,5 +1,5 @@ /*- - * Copyright (c) 1998 Dag-Erling Co�dan Sm�rgrav + * Copyright (c) 1998 Dag-Erling Coïdan Smørgrav * All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/usr.sbin/kbdcontrol/kbdcontrol.c ==
svn commit: r228990 - in head/usr.sbin: IPXrouted adduser bluetooth/btpand bluetooth/sdpd bootparamd/bootparamd bsnmpd/modules/snmp_bridge bsnmpd/modules/snmp_hostres bsnmpd/modules/snmp_wlan bsnmp...
Author: uqs Date: Fri Dec 30 10:58:14 2011 New Revision: 228990 URL: http://svn.freebsd.org/changeset/base/228990 Log: Spelling fixes for usr.sbin/ Modified: head/usr.sbin/IPXrouted/sap_input.c head/usr.sbin/IPXrouted/sap_tables.c head/usr.sbin/adduser/adduser.sh head/usr.sbin/bluetooth/btpand/event.h head/usr.sbin/bluetooth/sdpd/server.c head/usr.sbin/bootparamd/bootparamd/README head/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_addrs.c head/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_if.c head/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_port.c head/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_sys.c head/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_device_tbl.c head/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_scalars.c head/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.h head/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_storage_tbl.c head/usr.sbin/bsnmpd/modules/snmp_wlan/BEGEMOT-WIRELESS-MIB.txt head/usr.sbin/bsnmpd/modules/snmp_wlan/wlan_tree.def head/usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.1 head/usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c head/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c head/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.h head/usr.sbin/cron/cron/do_command.c head/usr.sbin/cron/doc/CHANGES head/usr.sbin/cron/doc/MAIL head/usr.sbin/cron/lib/entry.c head/usr.sbin/edquota/edquota.c head/usr.sbin/fwcontrol/fwcontrol.c head/usr.sbin/fwcontrol/fwmpegts.c head/usr.sbin/ifmcstat/ifmcstat.c head/usr.sbin/inetd/builtins.c head/usr.sbin/kbdmap/kbdmap.c head/usr.sbin/kgmon/kgmon.c head/usr.sbin/lpr/common_source/rmjob.c head/usr.sbin/lpr/lpc/cmds.c head/usr.sbin/lpr/lpd/printjob.c head/usr.sbin/lpr/pac/pac.c head/usr.sbin/makefs/cd9660/cd9660_eltorito.c head/usr.sbin/makefs/cd9660/cd9660_write.c head/usr.sbin/makefs/cd9660/iso9660_rrip.c head/usr.sbin/makefs/ffs.c head/usr.sbin/makefs/ffs/ffs_subr.c head/usr.sbin/makefs/walk.c head/usr.sbin/mount_portalfs/cred.c head/usr.sbin/mount_portalfs/pt_pipe.c head/usr.sbin/mount_portalfs/pt_tcplisten.c head/usr.sbin/mountd/mountd.c head/usr.sbin/moused/moused.c head/usr.sbin/mptutil/mpt_config.c head/usr.sbin/newsyslog/newsyslog.c head/usr.sbin/nscd/protocol.h head/usr.sbin/ntp/doc/ntp.conf.5 head/usr.sbin/pc-sysinstall/backend-partmanager/delete-part.sh head/usr.sbin/pc-sysinstall/backend/functions-disk.sh head/usr.sbin/pc-sysinstall/backend/functions-parse.sh head/usr.sbin/pciconf/pciconf.c head/usr.sbin/pkg_install/README head/usr.sbin/pkg_install/add/add.h head/usr.sbin/pkg_install/add/extract.c head/usr.sbin/pkg_install/add/futil.c head/usr.sbin/pkg_install/add/main.c head/usr.sbin/pkg_install/add/perform.c head/usr.sbin/pkg_install/add/pkg_add.1 head/usr.sbin/pkg_install/create/create.h head/usr.sbin/pkg_install/create/main.c head/usr.sbin/pkg_install/create/perform.c head/usr.sbin/pkg_install/create/pkg_create.1 head/usr.sbin/pkg_install/create/pl.c head/usr.sbin/pkg_install/delete/delete.h head/usr.sbin/pkg_install/delete/main.c head/usr.sbin/pkg_install/delete/perform.c head/usr.sbin/pkg_install/delete/pkg_delete.1 head/usr.sbin/pkg_install/info/info.h head/usr.sbin/pkg_install/info/main.c head/usr.sbin/pkg_install/info/perform.c head/usr.sbin/pkg_install/info/show.c head/usr.sbin/pkg_install/lib/deps.c head/usr.sbin/pkg_install/lib/exec.c head/usr.sbin/pkg_install/lib/file.c head/usr.sbin/pkg_install/lib/global.c head/usr.sbin/pkg_install/lib/lib.h head/usr.sbin/pkg_install/lib/match.c head/usr.sbin/pkg_install/lib/msg.c head/usr.sbin/pkg_install/lib/pen.c head/usr.sbin/pkg_install/lib/plist.c head/usr.sbin/pkg_install/lib/str.c head/usr.sbin/pkg_install/lib/url.c head/usr.sbin/pkg_install/version/main.c head/usr.sbin/pkg_install/version/perform.c head/usr.sbin/pkg_install/version/version.h head/usr.sbin/pmcstat/pmcpl_calltree.c head/usr.sbin/pmcstat/pmcpl_gprof.c head/usr.sbin/pmcstat/pmcstat.c head/usr.sbin/pmcstat/pmcstat_log.c head/usr.sbin/ppp/cbcp.c head/usr.sbin/ppp/chat.h head/usr.sbin/ppp/command.c head/usr.sbin/ppp/mp.c head/usr.sbin/ppp/ppp.8.m4 head/usr.sbin/ppp/vjcomp.c head/usr.sbin/pw/cpdir.c head/usr.sbin/route6d/route6d.c head/usr.sbin/rpc.lockd/kern.c head/usr.sbin/rpc.lockd/lockd_lock.c head/usr.sbin/rpcbind/check_bound.c head/usr.sbin/rpcbind/rpcbind.c head/usr.sbin/rtadvd/config.c head/usr.sbin/rtadvd/rtadvd.c head/usr.sbin/rtsold/rtsold.8 head/usr.sbin/sade/label.c head/usr.sbin/tcpdump/tcpdump/tcpdump.1 head/usr.sbin/timed/timed/CHANGES head/usr.sbin/vidcontrol/vidcontrol.c head/usr.sbin/wpa/hostapd/driver_freebsd.c head/usr.sbin/ypserv/yp_access.c Modified: head/usr.sbin/IPXrouted/sap_input.c == --- head/usr.sbin/IPXrouted/sap_input.c Fri Dec 30 10:45:00 2011 (r228989) +++ head/usr.sbin/IPXrouted/sap_input.
svn commit: r228991 - in head/usr.bin: brandelf calendar/calendars logins sockstat unzip whereis
Author: uqs Date: Fri Dec 30 10:59:15 2011 New Revision: 228991 URL: http://svn.freebsd.org/changeset/base/228991 Log: Reencode files from latin1 to UTF-8. This makes a tiny percentage of entries in calendars ugly for latin1 users, but fixes them for UTF-8 users. This badly needs a solution involving locale-dependent re-encoding. Modified: head/usr.bin/brandelf/brandelf.c head/usr.bin/calendar/calendars/calendar.birthday head/usr.bin/calendar/calendars/calendar.freebsd head/usr.bin/calendar/calendars/calendar.history head/usr.bin/calendar/calendars/calendar.music head/usr.bin/logins/logins.1 head/usr.bin/logins/logins.c head/usr.bin/sockstat/sockstat.1 head/usr.bin/sockstat/sockstat.c head/usr.bin/unzip/unzip.1 head/usr.bin/unzip/unzip.c head/usr.bin/whereis/pathnames.h head/usr.bin/whereis/whereis.c Modified: head/usr.bin/brandelf/brandelf.c == --- head/usr.bin/brandelf/brandelf.cFri Dec 30 10:58:14 2011 (r228990) +++ head/usr.bin/brandelf/brandelf.cFri Dec 30 10:59:15 2011 (r228991) @@ -1,6 +1,6 @@ /*- * Copyright (c) 2000, 2001 David O'Brien - * Copyright (c) 1996 S�ren Schmidt + * Copyright (c) 1996 Søren Schmidt * All rights reserved. * * Redistribution and use in source and binary forms, with or without Modified: head/usr.bin/calendar/calendars/calendar.birthday == --- head/usr.bin/calendar/calendars/calendar.birthday Fri Dec 30 10:58:14 2011(r228990) +++ head/usr.bin/calendar/calendars/calendar.birthday Fri Dec 30 10:59:15 2011(r228991) @@ -291,7 +291,7 @@ 12/12 E.G. Robinson born, 1893 12/14 George Washington dies, 1799 12/17 William Safire (Safir) born, 1929 -12/18 Konrad Zuse died in H�nfeld, 1995 +12/18 Konrad Zuse died in Hünfeld, 1995 12/20 Carl Sagan died, 1996 12/21 Benjamin Disraeli born, 1804 12/22 Giacomo Puccini born, 1858 Modified: head/usr.bin/calendar/calendars/calendar.freebsd == --- head/usr.bin/calendar/calendars/calendar.freebsdFri Dec 30 10:58:14 2011(r228990) +++ head/usr.bin/calendar/calendars/calendar.freebsdFri Dec 30 10:59:15 2011(r228991) @@ -326,7 +326,7 @@ 11/28 Stanislav Sedov born in Chelyabinsk, USSR, 1985 12/01 Hajimu Umemoto born in Nara, Japan, 1961 12/01 Alexey Dokuchaev born in Magadan, USSR, 1980 -12/02 Ermal Lu�i born in Tirane, Albania, 1980 +12/02 Ermal Luçi born in Tirane, Albania, 1980 12/03 Diane Bruce born in Ottawa, Ontario, Canada, 1952 12/05 Ivan Voras born in Slavonski Brod, Croatia, 1981 12/06 Stefan Farfeleder born in Wien, Austria, 1980 Modified: head/usr.bin/calendar/calendars/calendar.history == --- head/usr.bin/calendar/calendars/calendar.historyFri Dec 30 10:58:14 2011(r228990) +++ head/usr.bin/calendar/calendars/calendar.historyFri Dec 30 10:59:15 2011(r228991) @@ -302,7 +302,7 @@ 09/11 Terrorists destroy World Trade Center in New York, 2001 09/12 German paratroopers rescue Mussolini from captivity in Rome, 1943 09/12 Germany annexes Sudetenland, 1938 -09/13 58� C (136.4� F) measured at el Azizia, Libya, 1922 +09/13 58 °C (136.4 °F) measured at el Azizia, Libya, 1922 09/13 British defeat the French at the Plains of Abraham, just outside the walls of Quebec City, 1759 09/13 Building of Hadrian's Wall begun, 122 09/13 Chiang Kai-Shek becomes president of China, 1943 Modified: head/usr.bin/calendar/calendars/calendar.music == --- head/usr.bin/calendar/calendars/calendar.music Fri Dec 30 10:58:14 2011(r228990) +++ head/usr.bin/calendar/calendars/calendar.music Fri Dec 30 10:59:15 2011(r228991) @@ -225,7 +225,7 @@ 12/08 Jim Morrison is born in Melbourne, Florida, 1943 12/08 John Lennon is shot and killed in New York City, 1980 12/09 The Who's "Tommy" premieres in London, 1973 -12/11 (Louis) Hector Berlioz born in La-C�te-Saint-Andr�, 1803 +12/11 (Louis) Hector Berlioz born in La-Côte-Saint-André, 1803 12/13 Ted Nugent, the motor city madman, born in Detroit, 1949 12/15 Thomas Edison receives patent on the phonograph, 1877 12/16 Don McLean's "American Pie" is released, 1971 Modified: head/usr.bin/logins/logins.1 == --- head/usr.bin/logins/logins.1Fri Dec 30 10:58:14 2011 (r228990) +++ head/usr.bin/logins/logins.1Fri Dec 30 10:59:15 2011 (r228991) @@ -1,5 +1,5 @@ .\"- -.\" Copyright (c) 2004 Dag-Erling Co�dan Sm�rgrav +.\" Copyright (c) 2004 Dag-Erling Coïdan Smørgrav .\" All rights reserved. .\" .\" Redistribution and use in
svn commit: r228992 - in head/usr.bin: csup finger fstat indent ipcs lex limits locate/locate login mail make man ncplogin netstat pr rpcgen rpcinfo systat talk tip/tip top vgrind xlint/lint1 xlint...
Author: uqs Date: Fri Dec 30 11:02:40 2011 New Revision: 228992 URL: http://svn.freebsd.org/changeset/base/228992 Log: Spelling fixes for usr.bin/ Modified: head/usr.bin/csup/fixups.c head/usr.bin/csup/mux.c head/usr.bin/csup/rcsfile.c head/usr.bin/finger/finger.c head/usr.bin/fstat/fstat.c head/usr.bin/indent/indent.c head/usr.bin/indent/io.c head/usr.bin/ipcs/ipc.c head/usr.bin/ipcs/ipc.h head/usr.bin/lex/NEWS head/usr.bin/lex/flexdef.h head/usr.bin/lex/tblcmp.c head/usr.bin/limits/limits.c head/usr.bin/locate/locate/locate.c head/usr.bin/locate/locate/util.c head/usr.bin/login/login_fbtab.c head/usr.bin/mail/head.c head/usr.bin/mail/main.c head/usr.bin/mail/util.c head/usr.bin/make/GNode.h head/usr.bin/make/arch.c head/usr.bin/make/buf.c head/usr.bin/make/for.c head/usr.bin/make/job.c head/usr.bin/make/main.c head/usr.bin/make/str.c head/usr.bin/make/var.c head/usr.bin/man/man.sh head/usr.bin/ncplogin/ncplogin.c head/usr.bin/netstat/ipx.c head/usr.bin/pr/pr.c head/usr.bin/rpcgen/rpc_svcout.c head/usr.bin/rpcinfo/rpcinfo.c head/usr.bin/systat/icmp6.c head/usr.bin/talk/ctl_transact.c head/usr.bin/talk/invite.c head/usr.bin/tip/tip/tip.h head/usr.bin/top/machine.c head/usr.bin/vgrind/extern.h head/usr.bin/vgrind/vfontedpr.c head/usr.bin/xlint/lint1/decl.c head/usr.bin/xlint/lint1/emit1.c head/usr.bin/xlint/lint1/func.c head/usr.bin/xlint/lint1/mem1.c head/usr.bin/xlint/lint2/chk.c head/usr.bin/xlint/lint2/read.c head/usr.bin/xlint/xlint/xlint.c head/usr.bin/yacc/NEW_FEATURES head/usr.bin/yacc/reader.c Modified: head/usr.bin/csup/fixups.c == --- head/usr.bin/csup/fixups.c Fri Dec 30 10:59:15 2011(r228991) +++ head/usr.bin/csup/fixups.c Fri Dec 30 11:02:40 2011(r228992) @@ -38,7 +38,7 @@ /* * A synchronized queue to implement fixups. The updater thread adds * fixup requests to the queue with fixups_put() when a checksum - * mismatch error occured. It then calls fixups_close() when he's + * mismatch error occurred. It then calls fixups_close() when he's * done requesting fixups. The detailer thread gets the fixups with * fixups_get() and then send the requests to the server. * Modified: head/usr.bin/csup/mux.c == --- head/usr.bin/csup/mux.c Fri Dec 30 10:59:15 2011(r228991) +++ head/usr.bin/csup/mux.c Fri Dec 30 11:02:40 2011(r228992) @@ -680,7 +680,7 @@ mux_init(struct mux *m) /* * Close all the channels, terminate the sender and receiver thread. - * This is an important function because it is used everytime we need + * This is an important function because it is used every time we need * to wake up all the worker threads to abort the program. * * This function accepts an error message that will be printed if the Modified: head/usr.bin/csup/rcsfile.c == --- head/usr.bin/csup/rcsfile.c Fri Dec 30 10:59:15 2011(r228991) +++ head/usr.bin/csup/rcsfile.c Fri Dec 30 11:02:40 2011(r228992) @@ -1254,8 +1254,8 @@ rcsfile_insertsorteddelta(struct rcsfile /* * Insert a delta into the correct place in branch. A trunk branch will have * different ordering scheme and be sorted by revision number, but a normal - * branch will be sorted by date to maintain compability with branches that is - * "hand-hacked". + * branch will be sorted by date to maintain compatibility with branches that + * is "hand-hacked". */ static void rcsfile_insertdelta(struct branch *b, struct delta *d, int trunk) Modified: head/usr.bin/finger/finger.c == --- head/usr.bin/finger/finger.cFri Dec 30 10:59:15 2011 (r228991) +++ head/usr.bin/finger/finger.cFri Dec 30 11:02:40 2011 (r228992) @@ -299,8 +299,8 @@ userlist(int argc, char **argv) goto net; /* -* Mark any arguments beginning with '/' as invalid so that we -* don't accidently confuse them with expansions from finger.conf +* Mark any arguments beginning with '/' as invalid so that we +* don't accidentally confuse them with expansions from finger.conf */ for (p = argv, ip = used; *p; ++p, ++ip) if (**p == '/') { Modified: head/usr.bin/fstat/fstat.c == --- head/usr.bin/fstat/fstat.c Fri Dec 30 10:59:15 2011(r228991) +++ head/usr.bin/fstat/fstat.c Fri Dec 30 11:02:40 2011(r228992) @@ -150,7 +150,7 @@ do_fstat(int argc, char **argv) if (getfname(*argv)) checkfile = 1; } - if (!checkfile) /* file(s) specified, bu
svn commit: r228993 - in head/share: doc/IPv6 termcap
Author: uqs Date: Fri Dec 30 11:11:54 2011 New Revision: 228993 URL: http://svn.freebsd.org/changeset/base/228993 Log: Spelling fixes for share/ Modified: head/share/doc/IPv6/IMPLEMENTATION head/share/termcap/termcap.src Modified: head/share/doc/IPv6/IMPLEMENTATION == --- head/share/doc/IPv6/IMPLEMENTATION Fri Dec 30 11:02:40 2011 (r228992) +++ head/share/doc/IPv6/IMPLEMENTATION Fri Dec 30 11:11:54 2011 (r228993) @@ -1404,7 +1404,7 @@ both definitions. As an userland progra dealing with it is to: (1) ensure ss_family and/or ss_len are available on the platform, by using GNU autoconf, -(2) have -Dss_family=__ss_family to unify all occurences (including header +(2) have -Dss_family=__ss_family to unify all occurrences (including header file) into __ss_family, or (3) never touch __ss_family. cast to sockaddr * and use sa_family like: struct sockaddr_storage ss; @@ -1414,7 +1414,7 @@ dealing with it is to: Some of IPv6 transition technologies embed IPv4 address into IPv6 address. These specifications themselves are fine, however, there can be certain -set of attacks enabled by these specifications. Recent speicifcation +set of attacks enabled by these specifications. Recent specification documents covers up those issues, however, there are already-published RFCs that does not have protection against those (like using source address of :::127.0.0.1 to bypass "reject packet from remote" filter). @@ -1441,7 +1441,7 @@ compatible is very rare. You should tak If we see IPv6 packets with IPv4 mapped address (:::0.0.0.0/96) in the header in dual-stack environment (not in SIIT environment), they indicate -that someone is trying to inpersonate IPv4 peer. The packet should be dropped. +that someone is trying to impersonate IPv4 peer. The packet should be dropped. IPv6 specifications do not talk very much about IPv6 unspecified address (::) in the IPv6 source address field. Clarification is in progress. @@ -1456,10 +1456,10 @@ Here are couple of comments: - The following examples are seemingly illegal. It seems that there's general consensus among ipngwg for those. (1) Mobile IPv6 home address option, (2) offlink packets (so routers should not forward them). - KAME implmements (2) already. + KAME implements (2) already. KAME code is carefully written to avoid such incidents. More specifically, -KAME kernel will reject packets with certain source/dstination address in IPv6 +KAME kernel will reject packets with certain source/destination address in IPv6 base header, or IPv6 routing header. Also, KAME default configuration file is written carefully, to avoid those attacks. @@ -1552,7 +1552,7 @@ KAME implementation treats them as follo 1.17 DNS resolver KAME ships with modified DNS resolver, in libinet6.a. -libinet6.a has a comple of extensions against libc DNS resolver: +libinet6.a has a couple of extensions against libc DNS resolver: - Can take "options insecure1" and "options insecure2" in /etc/resolv.conf, which toggles RES_INSECURE[12] option flag bit. - EDNS0 receive buffer size notification support. It can be enabled by @@ -1870,7 +1870,7 @@ Tunnel mode works basically fine, but co - Path MTU discovery does not work across IPv6 IPsec tunnel gateway due to insufficient code. -AH specificaton does not talk much about "multiple AH on a packet" case. +AH specification does not talk much about "multiple AH on a packet" case. We incrementally compute AH checksum, from inside to outside. Also, we treat inner AH to be immutable. For example, if we are to create the following packet: @@ -1890,8 +1890,8 @@ to randomly pad packets shorter than N b or equal to N. Note that N does not include ESP authentication data length. Also note that the random padding is not included in TCP segment size computation. Negative value will turn off the functionality. -Recommeded value for N is like 128, or 256. If you use a too big number -as N, you may experience inefficiency due to fragmented packtes. +Recommended value for N is like 128, or 256. If you use a too big number +as N, you may experience inefficiency due to fragmented packets. 4.4 IPComp handling @@ -2097,7 +2097,7 @@ RFC2401 defines IPsec tunnel mode, withi defines tunnel mode packet encapsulation/decapsulation on its own, and does not refer other tunnelling specifications. Since RFC2401 advocates filter-based SPD database matches, it would be natural for us to implement -IPsec IPsec tunnel mode as filters - not as pseudo interfaces. +IPsec tunnel mode as filters - not as pseudo interfaces. There are some people who are trying to separate IPsec "tunnel mode" from the IPsec itself. They would like to implement IPsec transport mode only, @@ -2110,7 +2110,7 @@ interpretation. The KAME stack implements can be configured in two ways. You may need to recompile your kern
Re: svn commit: r228990 - in head/usr.sbin: IPXrouted adduser bluetooth/btpand bluetooth/sdpd bootparamd/bootparamd bsnmpd/modules/snmp_bridge bsnmpd/modules/snmp_hostres bsnmpd/modules/snmp_wlan bsnm
Sorry for the delay. On Fri, 2011-12-30 at 20:50:16 +0100, Harti Brandt wrote: > On Fri, 30 Dec 2011, Ben Kaduk wrote: > >On Fri, Dec 30, 2011 at 5:58 AM, Ulrich Spoerlein wrote: > >> Modified: head/usr.sbin/bsnmpd/modules/snmp_wlan/BEGEMOT-WIRELESS-MIB.txt > >> == > >> --- head/usr.sbin/bsnmpd/modules/snmp_wlan/BEGEMOT-WIRELESS-MIB.txt > >> Fri Dec 30 10:45:00 2011 (r228989) > >> +++ head/usr.sbin/bsnmpd/modules/snmp_wlan/BEGEMOT-WIRELESS-MIB.txt > >> Fri Dec 30 10:58:14 2011 (r228990) > >> @@ -82,8 +82,8 @@ WlanMgmtReasonCode ::= TEXTUAL-CONVENTIO > >> associationLeave(8), > >> associationNotAuthenticated(9), > >> -- XXX: TODO - FIXME > >> - dissasocPwrcapBad(10), > >> - dissasocSuperchanBad(11), > >> + disassocPwrcapBad(10), > >> + disassocSuperchanBad(11), > > > >This file looks like it might be intended to be machine-readable -- I > >would worry about changing it without test/review. > >Perhaps this spelling "error" is even the reason for the XXX comment above. > > Absolutely. If there is a spelling error in an SNMP MIB outside comments > or description strings it must stay there. Otherwise applications reading > that file will break. > > This is also true for the corresponding .def file. > > harti Neither Google, Bing nor Google Code Search can find any occurrence of any of the two words in either spelling, except in our tree, of course. This leads me to believe that at least no known Open Source project will be affected by the change. But that doesn't say much. Is this a non-backwards compatible change that we can do when going from 9.x to 10.0? I'm fine with backing it out, too, if you think this will actually break anything for third parties. Just say the word. Thanks Uli ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r228990 - in head/usr.sbin: IPXrouted adduser bluetooth/btpand bluetooth/sdpd bootparamd/bootparamd bsnmpd/modules/snmp_bridge bsnmpd/modules/snmp_hostres bsnmpd/modules/snmp_wlan bsnm
On Fri, 2011-12-30 at 14:43:22 -0500, Ben Kaduk wrote: > On Fri, Dec 30, 2011 at 5:58 AM, Ulrich Spoerlein wrote: > > Modified: head/usr.sbin/cron/doc/CHANGES > > == > > --- head/usr.sbin/cron/doc/CHANGES Fri Dec 30 10:45:00 2011 > > (r228989) > > +++ head/usr.sbin/cron/doc/CHANGES Fri Dec 30 10:58:14 2011 > > (r228990) > > @@ -1,3 +1,6 @@ > > +$FreeBSD$ > > + > > + > > Vixie Cron Changes from V2 to V3 > > Paul Vixie > > 29-Dec-1993 > > @@ -20,7 +23,7 @@ be reread whenever it changes. > > > > I also added a "-e" option to crontab(1). Nine people also sent me diffs > > to add this option, but I had already implemented it on my own. I actually > > -released an interrim version (V2.2, I think) for limited testing, and got a > > +released an interim version (V2.2, I think) for limited testing, and got a > > Should we really be in the business of modifying Vixie's changelog? I'm replying here, but same goes for your comments on the other revision (thanks for all those, btw). Warning, rant ahead: Our current SVN repo is in an inconsistent state thanks to the dubious introduction of svn keywords. There are files in there, converted over via cvs2svn and never touched since, but our presubmit checks want to either see a $FreeBSD$ tag in modified files, or have fbsd:nokeywords set. The latter is kinda a no-brainer for everything under contrib/ but I'm struggling with what to do exactly for files that are non-contrib and may or may not be non-code. Should the keywords be set on $subdir/* or can I punch holes in the web of keywords as I see fit? (e.g. $subdir/{README,CHANGES,foo.txt}) What's the point then anyway? SVN doesn't track files, but changesets. Gah! Oh wait, this ain't about the $FreeBSD$ keyword, but the typo-fix? I'm sure that Vixie won't mind and do believe that correctness of spelling is a worthy goal as we always tout the quality of our documentation. FWIW, I'm not going to touch stuff under contrib/, etc. > > /* > > - * Delete a rotated logfiles, when using clasic filenames. > > + * Delete a rotated logfiles, when using classic filenames. > > "a logfiles" is inconsistent. Without looking up the implementation, > I'm going to guess that "a rotated logfile" is correct. When proofreading the spell-checked output I focused too narrowly on just the typo that I fixed so that other typos in the same line/sentence mostly went unnoticed. Will do better in the next couple of commits. > > */ > > static void > > delete_clasiclog(const char *archive_dir, const char *namepart, int > > numlog_c) > > > > Modified: head/usr.sbin/ntp/doc/ntp.conf.5 > > == > > --- head/usr.sbin/ntp/doc/ntp.conf.5 Fri Dec 30 10:45:00 2011 > > (r228989) > > +++ head/usr.sbin/ntp/doc/ntp.conf.5 Fri Dec 30 10:58:14 2011 > > (r228990) > > @@ -783,7 +783,7 @@ The remaining files are necessary only f > > Autokey protocol. > > .Pp > > Certificates imported from OpenSSL or public certificate > > -authorities have certian limitations. > > > > *** DIFF OUTPUT TRUNCATED AT 1000 LINES *** > > Hmm, that's unfortunate. > Pulling out a svn client, it looks like: > usr.sbin/pkg_install/lib/plist.c changes a misspelled form to the > still-misspelled "occurrance" (not occurrence) Thanks, will follow up on that! > Thanks for doing this cleanup along with the encoding cleanup! > > -Ben Kaduk > ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r214779 - in stable/8/usr.bin: lex yacc
Author: uqs Date: Thu Nov 4 10:53:50 2010 New Revision: 214779 URL: http://svn.freebsd.org/changeset/base/214779 Log: MFC r200626,201289,213764,214272, syncing yacc and flex to -CURRENT r200626: remove external reference to not (or at least no longer) existing variable 'myname' r201289: Let both yacc and lex generate code that passes -Wold-style-definition. Both these tools emit code where several functions have no `void' keyword placed in the arugment list when the function has no arguments. r213764: Don't define the input() function ifdef YY_NO_INPUT. This was previously done for the input() function. r214272: flex: add missing ifdef magic to create/hide prototypes This unbreaks build for some software with higher WARNS flags. Modified: stable/8/usr.bin/lex/flex.skl stable/8/usr.bin/lex/initscan.c stable/8/usr.bin/yacc/defs.h stable/8/usr.bin/yacc/skeleton.c Directory Properties: stable/8/usr.bin/lex/ (props changed) stable/8/usr.bin/yacc/ (props changed) Modified: stable/8/usr.bin/lex/flex.skl == --- stable/8/usr.bin/lex/flex.skl Thu Nov 4 10:47:19 2010 (r214778) +++ stable/8/usr.bin/lex/flex.skl Thu Nov 4 10:53:50 2010 (r214779) @@ -747,7 +747,11 @@ void yyFlexLexer::LexerOutput( const cha */ %- +#ifdef YY_USE_PROTOS +static int yy_get_next_buffer(void) +#else static int yy_get_next_buffer() +#endif %+ int yyFlexLexer::yy_get_next_buffer() %* @@ -883,7 +887,11 @@ int yyFlexLexer::yy_get_next_buffer() /* yy_get_previous_state - get the state just before the EOB char was reached */ %- +#ifdef YY_USE_PROTOS +static yy_state_type yy_get_previous_state(void) +#else static yy_state_type yy_get_previous_state() +#endif %+ yy_state_type yyFlexLexer::yy_get_previous_state() %* @@ -979,11 +987,16 @@ void yyFlexLexer::yyunput( int c, char* %- +#ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput() #else +#ifdef YY_USE_PROTOS +static int input(void) +#else static int input() #endif +#endif %+ int yyFlexLexer::yyinput() %* @@ -1054,6 +1067,9 @@ int yyFlexLexer::yyinput() return c; } +%- +#endif /* ifndef YY_NO_INPUT */ +%* %- @@ -1402,7 +1418,11 @@ void yyFlexLexer::yy_push_state( int new #ifndef YY_NO_POP_STATE %- +#ifdef YY_USE_PROTOS +static void yy_pop_state(void) +#else static void yy_pop_state() +#endif %+ void yyFlexLexer::yy_pop_state() %* @@ -1417,7 +1437,11 @@ void yyFlexLexer::yy_pop_state() #ifndef YY_NO_TOP_STATE %- +#ifdef YY_USE_PROTOS +static int yy_top_state(void) +#else static int yy_top_state() +#endif %+ int yyFlexLexer::yy_top_state() %* Modified: stable/8/usr.bin/lex/initscan.c == --- stable/8/usr.bin/lex/initscan.c Thu Nov 4 10:47:19 2010 (r214778) +++ stable/8/usr.bin/lex/initscan.c Thu Nov 4 10:53:50 2010 (r214779) @@ -2894,7 +2894,7 @@ case YY_STATE_EOF(LINEDIR): * EOB_ACT_END_OF_FILE - end of file */ -static int yy_get_next_buffer() +static int yy_get_next_buffer(void) { char *dest = yy_current_buffer->yy_ch_buf; char *source = yytext_ptr; @@ -3026,7 +3026,7 @@ static int yy_get_next_buffer() /* yy_get_previous_state - get the state just before the EOB char was reached */ -static yy_state_type yy_get_previous_state() +static yy_state_type yy_get_previous_state(void) { yy_state_type yy_current_state; char *yy_cp; @@ -3138,7 +3138,7 @@ char *yy_bp; #ifdef __cplusplus static int yyinput() #else -static int input() +static int input(void) #endif { int c; Modified: stable/8/usr.bin/yacc/defs.h == --- stable/8/usr.bin/yacc/defs.hThu Nov 4 10:47:19 2010 (r214778) +++ stable/8/usr.bin/yacc/defs.hThu Nov 4 10:53:50 2010 (r214779) @@ -220,7 +220,6 @@ extern char tflag; extern char vflag; extern const char *symbol_prefix; -extern char *myname; extern char *cptr; extern char *line; extern int lineno; Modified: stable/8/usr.bin/yacc/skeleton.c == --- stable/8/usr.bin/yacc/skeleton.cThu Nov 4 10:47:19 2010 (r214778) +++ stable/8/usr.bin/yacc/skeleton.cThu Nov 4 10:53:50 2010 (r214779) @@ -140,7 +140,11 @@ const char *header[] = const char *body[] = { "/* allocate initial stack or double stack size, up to YYMAXDEPTH */", +"#if defined(__cplusplus) || __STDC__", +"static int yygrowstack(void)", +"#else", "static int yygrowstack()", +"#endif", "{", "int newsize, i;", "short *newss;", ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src
svn commit: r214780 - stable/8/usr.sbin/rtadvd
Author: uqs Date: Thu Nov 4 12:33:07 2010 New Revision: 214780 URL: http://svn.freebsd.org/changeset/base/214780 Log: MFC r208028,214491: Sync manpages to -CURRENT r208028: mdoc: move remaining sections into consistent order r214491: Fix another "string" typo. Modified: stable/8/usr.sbin/rtadvd/rtadvd.8 stable/8/usr.sbin/rtadvd/rtadvd.conf.5 Directory Properties: stable/8/usr.sbin/rtadvd/ (props changed) Modified: stable/8/usr.sbin/rtadvd/rtadvd.8 == --- stable/8/usr.sbin/rtadvd/rtadvd.8 Thu Nov 4 10:53:50 2010 (r214779) +++ stable/8/usr.sbin/rtadvd/rtadvd.8 Thu Nov 4 12:33:07 2010 (r214780) @@ -162,8 +162,6 @@ In this case, will transmit router advertisement with router lifetime 0 to all the interfaces .Pq in accordance with RFC2461 6.2.5 . -.Sh EXIT STATUS -.Ex -std .Sh FILES .Bl -tag -width Pa -compact .It Pa /etc/rtadvd.conf @@ -176,6 +174,8 @@ The file in which .Nm dumps its internal state. .El +.Sh EXIT STATUS +.Ex -std .Sh SEE ALSO .Xr rtadvd.conf 5 , .Xr rtsol 8 Modified: stable/8/usr.sbin/rtadvd/rtadvd.conf.5 == --- stable/8/usr.sbin/rtadvd/rtadvd.conf.5 Thu Nov 4 10:53:50 2010 (r214779) +++ stable/8/usr.sbin/rtadvd/rtadvd.conf.5 Thu Nov 4 12:33:07 2010 (r214780) @@ -201,7 +201,7 @@ The default value is 64. (str or num) A 8-bit flags field in prefix information option. This field can be specified either as a case-sensitive string or as an integer. -A sting consists of characters each of which corresponds to a +A string consists of characters each of which corresponds to a particular flag bit(s). An integer should be the logical OR of all enabled bits. Bit 7 ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r214808 - head/share/man/man4/man4.sparc64
Author: uqs Date: Thu Nov 4 21:03:50 2010 New Revision: 214808 URL: http://svn.freebsd.org/changeset/base/214808 Log: In man section 4, ERRORS is spelled DIAGNOSTICS Modified: head/share/man/man4/man4.sparc64/openfirm.4 head/share/man/man4/man4.sparc64/openprom.4 Modified: head/share/man/man4/man4.sparc64/openfirm.4 == --- head/share/man/man4/man4.sparc64/openfirm.4 Thu Nov 4 20:31:12 2010 (r214807) +++ head/share/man/man4/man4.sparc64/openfirm.4 Thu Nov 4 21:03:50 2010 (r214808) @@ -231,7 +231,7 @@ is returned. .It Pa /dev/openfirm Open Firmware interface node .El -.Sh ERRORS +.Sh DIAGNOSTICS The following may result in rejection of an operation: .Bl -tag -width Er .It Bq Er EBADF Modified: head/share/man/man4/man4.sparc64/openprom.4 == --- head/share/man/man4/man4.sparc64/openprom.4 Thu Nov 4 20:31:12 2010 (r214807) +++ head/share/man/man4/man4.sparc64/openprom.4 Thu Nov 4 21:03:50 2010 (r214808) @@ -187,7 +187,7 @@ an empty string is returned. .It Pa /dev/openprom OPENPROM interface node .El -.Sh ERRORS +.Sh DIAGNOSTICS The following may result in rejection of an operation: .Bl -tag -width Er .It Bq Er EBUSY ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r214867 - in head: lib/libarchive lib/libpmc usr.bin/setchannel
Author: uqs Date: Sat Nov 6 10:54:33 2010 New Revision: 214867 URL: http://svn.freebsd.org/changeset/base/214867 Log: Fix manpage markup. Modified: head/lib/libarchive/libarchive_internals.3 head/lib/libpmc/pmc.mips.3 head/lib/libpmc/pmc.xscale.3 head/usr.bin/setchannel/setchannel.1 Modified: head/lib/libarchive/libarchive_internals.3 == --- head/lib/libarchive/libarchive_internals.3 Sat Nov 6 10:31:52 2010 (r214866) +++ head/lib/libarchive/libarchive_internals.3 Sat Nov 6 10:54:33 2010 (r214867) @@ -363,4 +363,3 @@ The .Nm libarchive library was written by .An Tim Kientzle Aq kient...@acm.org . -.Sh BUGS Modified: head/lib/libpmc/pmc.mips.3 == --- head/lib/libpmc/pmc.mips.3 Sat Nov 6 10:31:52 2010(r214866) +++ head/lib/libpmc/pmc.mips.3 Sat Nov 6 10:54:33 2010(r214867) @@ -24,8 +24,8 @@ .\" $FreeBSD$ .\" .Dd February 11, 2010 -.Os .Dt PMC.MIPS 3 +.Os .Sh NAME .Nm pmc.mips .Nd measurement events for @@ -123,7 +123,6 @@ Counts every time the instruction cache wasted fetches etc. are counted. For example, following a branch, even though the prediction is taken, the fall through access is counted. - .It Li IC_MISS .Pq Event 9, Counter 1 Counts all instruction cache misses that result in a bus request. Modified: head/lib/libpmc/pmc.xscale.3 == --- head/lib/libpmc/pmc.xscale.3Sat Nov 6 10:31:52 2010 (r214866) +++ head/lib/libpmc/pmc.xscale.3Sat Nov 6 10:54:33 2010 (r214867) @@ -24,8 +24,8 @@ .\" $FreeBSD$ .\" .Dd December 23, 2009 -.Os .Dt PMC.XSCALE 3 +.Os .Sh NAME .Nm pmc.xscale .Nd measurement events for Modified: head/usr.bin/setchannel/setchannel.1 == --- head/usr.bin/setchannel/setchannel.1Sat Nov 6 10:31:52 2010 (r214866) +++ head/usr.bin/setchannel/setchannel.1Sat Nov 6 10:54:33 2010 (r214867) @@ -1,32 +1,32 @@ +.\"- +.\" Copyright (C) 2004-2006 The FreeBSD Project. All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\"notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\"notice, this list of conditions and the following disclaimer in the +.\"documentation and/or other materials provided with the distribution. +.\" +.\" THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. .\" -.\ Copyright (C) 2004-2006 The FreeBSD Project. All rights reserved. -.\ -.\ Redistribution and use in source and binary forms, with or without -.\ modification, are permitted provided that the following conditions -.\ are met: -.\ 1. Redistributions of source code must retain the above copyright -.\notice, this list of conditions and the following disclaimer. -.\ 2. Redistributions in binary form must reproduce the above copyright -.\notice, this list of conditions and the following disclaimer in the -.\documentation and/or other materials provided with the distribution. -.\ -.\ THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\ ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE -.\ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\ SUCH DAMAGE. -.\ .\" $Id: cxm.4,v 1.1 20
svn commit: r214885 - head/usr.sbin
Author: uqs Date: Sat Nov 6 15:04:48 2010 New Revision: 214885 URL: http://svn.freebsd.org/changeset/base/214885 Log: Put string in quotes, like is done everywhere. Modified: head/usr.sbin/Makefile Modified: head/usr.sbin/Makefile == --- head/usr.sbin/Makefile Sat Nov 6 14:53:22 2010(r214884) +++ head/usr.sbin/Makefile Sat Nov 6 15:04:48 2010(r214885) @@ -155,7 +155,7 @@ SUBDIR+=fdwrite SUBDIR+= freebsd-update .endif -.if ${MK_GSSAPI} != no +.if ${MK_GSSAPI} != "no" SUBDIR+= gssd .endif ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r214886 - head/usr.bin/setchannel
Author: uqs Date: Sat Nov 6 15:04:56 2010 New Revision: 214886 URL: http://svn.freebsd.org/changeset/base/214886 Log: Apply style(9) and unbreak build. This went unnoticed during the WARNS bump, as this tool is not connected to the build. Modified: head/usr.bin/setchannel/setchannel.c Modified: head/usr.bin/setchannel/setchannel.c == --- head/usr.bin/setchannel/setchannel.cSat Nov 6 15:04:48 2010 (r214885) +++ head/usr.bin/setchannel/setchannel.cSat Nov 6 15:04:56 2010 (r214886) @@ -1,4 +1,4 @@ -/* +/*- * Copyright (c) 2003, 2004, 2005 * John Wehle . All rights reserved. * @@ -28,40 +28,34 @@ /* Set the channel of the tuner card. */ -#include -#include +#include +#include + #include #include #include +#include +#include #include -#include -#include -#include #include -#if __FreeBSD_version < 503001 -# include -# include -#else -# include -# include -#endif - +#include +#include static void -usage() +usage(void) { printf ("Usage: setchannel [-a {on|off}] [-c | -r | -s | -t] " "[-g geom] [-m chnl_set] [chnl | freq]\n" " -aEnable / disable AFC.\n" " -cSelect composite input.\n" -" -dSelect tuner unit number.\n" -" -rSelect radio input.\n" + " -dSelect tuner unit number.\n" + " -rSelect radio input.\n" " -sSelect svideo input.\n" -" -tSelect tuner.\n" + " -tSelect tuner.\n" " -gSelect geometry.\n" -" 352x240 or 352x288 = VCD\n" + " 352x240 or 352x288 = VCD\n" " 480x480 or 480x576 = SVCD\n" " 352x480 or 352x576 = DVD (half D1)\n" " 720x480 or 720x576 = DVD (full D1)\n" @@ -74,7 +68,7 @@ usage() " %u = Japan Cable / NTSC\n" " %u = Australia / PAL\n" " %u = France / SECAM\n" -" chnl Channel\n" + " chnl Channel\n" " freq Frequency in MHz (must include decimal point).\n", CHNLSET_NABCST, CHNLSET_CABLEIRC, CHNLSET_WEUROPE, CHNLSET_JPNBCST, CHNLSET_JPNCABLE, CHNLSET_AUSTRALIA, CHNLSET_FRANCE); @@ -94,7 +88,7 @@ main(int argc, char *argv[]) int channel_set; int i; int status; -int unit; + int unit; int tfd; unsigned int channel; unsigned int fraction; @@ -111,7 +105,7 @@ main(int argc, char *argv[]) device = 0; freq = 0; status = 0; -unit = 0; + unit = 0; x_size = 0; y_size = 0; @@ -214,11 +208,11 @@ main(int argc, char *argv[]) exit(1); } -sprintf(dev_name, DEVNAME_BASE "%d", unit); -tfd = open(dev_name, O_RDONLY); + sprintf(dev_name, DEVNAME_BASE "%d", unit); + tfd = open(dev_name, O_RDONLY); if (tfd < 0) { fprintf(stderr, "Can't open %s: %s (%d)\n", dev_name, -strerror(errno), errno); + strerror(errno), errno); exit(1); } ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r214908 - head/usr.bin/objformat
Author: uqs Date: Sun Nov 7 10:49:40 2010 New Revision: 214908 URL: http://svn.freebsd.org/changeset/base/214908 Log: Retire objformat(1), take two. It's been almost four years, and this placeholder has not been needed. Deleted: head/usr.bin/objformat/ ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r215005 - in stable: 7/share/misc 8/share/misc
Author: uqs Date: Mon Nov 8 20:21:24 2010 New Revision: 215005 URL: http://svn.freebsd.org/changeset/base/215005 Log: MFC r173289,174783,175454,191681,191698,191834,195044,197304,198210,199858-199859,201348,205578,208327,208336,210871,214628: Sync bsd-family-tree with head. Modified: stable/8/share/misc/bsd-family-tree Directory Properties: stable/8/share/misc/ (props changed) Changes in other areas also in this revision: Modified: stable/7/share/misc/bsd-family-tree Directory Properties: stable/7/share/misc/ (props changed) Modified: stable/8/share/misc/bsd-family-tree == --- stable/8/share/misc/bsd-family-tree Mon Nov 8 20:16:42 2010 (r215004) +++ stable/8/share/misc/bsd-family-tree Mon Nov 8 20:21:24 2010 (r215005) @@ -151,7 +151,7 @@ FreeBSD 4.0 | | | | | NetBSD 1. | FreeBSD 4.5 || ||| | | | \ | ||| BSD/OS 4.3 | FreeBSD 4.6 \ | ||OpenBSD 3.1 | - | | \ | | NetBSD 1.5.3|| + | | \ | | NetBSD 1.5.3| | | FreeBSD 4.6.2 Mac OS X | | | | |10.2| | | | FreeBSD 4.7 | | | | @@ -228,10 +228,22 @@ FreeBSD 5.2 | | | FreeBSD 7.1 | | | | | | | | |DragonFly 2.2.0 | FreeBSD 7.2 | NetBSD 5.0 OpenBSD 4.5 | - | | | | | | + | \ | | | | + | | | | |DragonFly 2.4.0 + | | | | OpenBSD 4.6 | + | | | | | | + *--FreeBSD | | | | | + |8.0 | | | | | + | |FreeBSD | | | | + | | 7.3| | |DragonFly 2.6.0 + | | | | OpenBSD 4.7 | + | FreeBSD | | | | + |8.1 | | | | + | | | | |DragonFly 2.8.0 + | | | | OpenBSD 4.8 | | V | | | | || | | | -FreeBSD 8 -current| NetBSD -current OpenBSD -current | +FreeBSD 9 -current| NetBSD -current OpenBSD -current | || | | | vv v v v @@ -502,6 +514,15 @@ DragonFly 2.2.02009-02-17 [DFB] NetBSD 5.0 2009-04-29 [NBD] OpenBSD 4.52009-05-01 [OBD] FreeBSD 7.22009-05-04 [FBD] +DragonFly 2.4.02009-09-16 [DFB] +OpenBSD 4.62009-10-18 [OBD] +FreeBSD 8.02009-11-26 [FBD] +FreeBSD 7.32010-03-23 [FBD] +DragonFly 2.6.02010-03-28 [DFB] +OpenBSD 4.72010-05-19 [OBD] +FreeBSD 8.12010-07-24 [FBD] +DragonFly 2.8.02010-10-30 [DFB] +OpenBSD 4.82010-11-01 [OBD] Bibliography @@ -534,7 +555,7 @@ Andreas Klemm, Lars K�ller. If you're go Die freien BSD-Varianten von Unix. c't April 1997, page 368ff. BSD Release Announcements collection. -URL: http://www.de.FreeBSD.org/de/ftp/releases/ +URL: http://www.FreeBSD.org/releases/ BSD Hypertext Man Pages URL: http://www.FreeBSD.org/cgi/man.cgi ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r215005 - in stable: 7/share/misc 8/share/misc
Author: uqs Date: Mon Nov 8 20:21:24 2010 New Revision: 215005 URL: http://svn.freebsd.org/changeset/base/215005 Log: MFC r173289,174783,175454,191681,191698,191834,195044,197304,198210,199858-199859,201348,205578,208327,208336,210871,214628: Sync bsd-family-tree with head. Modified: stable/7/share/misc/bsd-family-tree Directory Properties: stable/7/share/misc/ (props changed) Changes in other areas also in this revision: Modified: stable/8/share/misc/bsd-family-tree Directory Properties: stable/8/share/misc/ (props changed) Modified: stable/7/share/misc/bsd-family-tree == --- stable/7/share/misc/bsd-family-tree Mon Nov 8 20:16:42 2010 (r215004) +++ stable/7/share/misc/bsd-family-tree Mon Nov 8 20:21:24 2010 (r215005) @@ -25,7 +25,7 @@ Seventh Edition (V7)| \/ | 3BSD| | | - 4.0BSD 2.7.9BSD + 4.0BSD2.79BSD | | 4.1BSD --> 2.8BSD | | @@ -151,7 +151,7 @@ FreeBSD 4.0 | | | | | NetBSD 1. | FreeBSD 4.5 || ||| | | | \ | ||| BSD/OS 4.3 | FreeBSD 4.6 \ | ||OpenBSD 3.1 | - | | \ | | NetBSD 1.5.3|| + | | \ | | NetBSD 1.5.3| | | FreeBSD 4.6.2 Mac OS X | | | | |10.2| | | | FreeBSD 4.7 | | | | @@ -228,10 +228,22 @@ FreeBSD 5.2 | | | FreeBSD 7.1 | | | | | | | | |DragonFly 2.2.0 | FreeBSD 7.2 | NetBSD 5.0 OpenBSD 4.5 | - | | | | | | + | \ | | | | + | | | | |DragonFly 2.4.0 + | | | | OpenBSD 4.6 | + | | | | | | + *--FreeBSD | | | | | + |8.0 | | | | | + | |FreeBSD | | | | + | | 7.3| | |DragonFly 2.6.0 + | | | | OpenBSD 4.7 | + | FreeBSD | | | | + |8.1 | | | | + | | | | |DragonFly 2.8.0 + | | | | OpenBSD 4.8 | | V | | | | || | | | -FreeBSD 8 -current| NetBSD -current OpenBSD -current | +FreeBSD 9 -current| NetBSD -current OpenBSD -current | || | | | vv v v v @@ -260,6 +272,7 @@ was the announcement in Usenet or if it [OBD] OpenBSD Project, The. [QCU] Salus, Peter H. A quarter century of UNIX. [SMS] Steven M. Schultz. 2.11BSD, UNIX for the PDP-11. +[TUHS] The Unix Historical Society. http://minnie.tuhs.org/Unix_History/. [USE] Usenet announcement. [WRS] Wind River Systems, Inc. [dmr] Dennis Ritchie, via E-Mail @@ -297,15 +310,15 @@ Tenth Edition 1989-10-xx [QCU] PDP-11, Pascal, ex(1) 30 free copies of 1BSD sent out 35 tapes sold for 50 USD [QCU] -2BSDmid 1978 [QCU] +2BSDmid 1978 [QCU] 1979-05-10 [TUHS] 75 2BSD tapes shipped -2.7.9BSD ?? [SMS] +2.79BSD1980-04-xx [TUHS] 2.8BSD 1981-07-xx [KSJ] 2.8.1BSD 1982-01-xx [QCU] set of performance improvements 2.9BSD 1983-07-xx [KSJ] -2.9.1BSD1983-11-xx +2.9.1BSD1983-11-xx [TUHS] 2.9BSD-Seismo 1985-08-xx [SMS] 2.10BSD1987-04-xx [KKK] 2.10.1BSD 1989-01-xx [SMS] @@ -313,7 +326,7 @@ Tenth Edition 1989-10-xx [QCU] 2.11BSD rev #430 1999-12-13 [SMS] 32V
svn commit: r215040 - head/usr.bin/lex
Author: uqs Date: Tue Nov 9 18:28:11 2010 New Revision: 215040 URL: http://svn.freebsd.org/changeset/base/215040 Log: Unbreak the test target by re-generating the initial scanner using an updated flex(1) binary. Also ignore the changing $FreeBSD$ ID lines when doing the diff. This needs additional obfuscation, to not upset the svn precommit hooks :/ Modified: head/usr.bin/lex/Makefile head/usr.bin/lex/initscan.c Modified: head/usr.bin/lex/Makefile == --- head/usr.bin/lex/Makefile Tue Nov 9 16:18:32 2010(r215039) +++ head/usr.bin/lex/Makefile Tue Nov 9 18:28:11 2010(r215040) @@ -44,7 +44,7 @@ test: check check: $(PROG) ./$(PROG) $(LFLAGS) -t $(COMPRESSION) $(.CURDIR)/scan.l \ | sed s,\"$(.CURDIR)/scan.l",\"scan.l", \ - | diff $(.CURDIR)/initscan.c - + | diff -I '\$$FreeBS[D]:.*\$$' $(.CURDIR)/initscan.c - @echo "Check successful" .include Modified: head/usr.bin/lex/initscan.c == --- head/usr.bin/lex/initscan.c Tue Nov 9 16:18:32 2010(r215039) +++ head/usr.bin/lex/initscan.c Tue Nov 9 18:28:11 2010(r215040) @@ -3,9 +3,15 @@ /* Scanner skeleton version: * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $ + * $FreeBSD$ */ + +#if defined(__FreeBSD__) #include -__FBSDID("$FreeBSD$"); +#else +#define __unused +#define __dead2 +#endif #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 @@ -243,7 +249,7 @@ YY_BUFFER_STATE yy_scan_string YY_PROTO( YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len )); static void *yy_flex_alloc YY_PROTO(( yy_size_t )); -static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )); +static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )) __unused; static void yy_flex_free YY_PROTO(( void * )); #define yy_new_buffer yy_create_buffer @@ -273,7 +279,7 @@ extern char *yytext; static yy_state_type yy_get_previous_state YY_PROTO(( void )); static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state )); static int yy_get_next_buffer YY_PROTO(( void )); -static void yy_fatal_error YY_PROTO(( yyconst char msg[] )); +static void yy_fatal_error YY_PROTO(( yyconst char msg[] )) __dead2; /* Done after the current pattern has been matched and before the * corresponding action - sets up yytext. @@ -1273,11 +1279,7 @@ char *yytext; */ /* $Header: /home/daffy/u0/vern/flex/RCS/scan.l,v 2.56 95/04/24 12:17:19 vern Exp $ */ - -#ifndef lint -static const char rcsid[] = - "$FreeBSD$"; -#endif /* not lint */ +/* $FreeBSD$ */ #include "flexdef.h" #include "parse.h" @@ -1336,7 +1338,7 @@ static const char rcsid[] = #define OPTION 17 #define LINEDIR 18 -#line 1333 "scan.c" +#line 1342 "scan.c" /* Macros after this point can all be overridden by user definitions in * section 1. @@ -1490,7 +1492,7 @@ YY_DECL char *yy_cp, *yy_bp; int yy_act; -#line 94 "scan.l" +#line 95 "scan.l" static int bracelevel, didadef, indented_code; static int doing_rule_action = false; @@ -1501,7 +1503,7 @@ YY_DECL Char nmdef[MAXLINE], myesc(); -#line 1498 "scan.c" +#line 1507 "scan.c" if ( yy_init ) { @@ -1588,32 +1590,32 @@ do_action: /* This label is used only to case 1: YY_RULE_SETUP -#line 105 "scan.l" +#line 106 "scan.l" indented_code = true; BEGIN(CODEBLOCK); YY_BREAK case 2: YY_RULE_SETUP -#line 106 "scan.l" +#line 107 "scan.l" ACTION_ECHO; yy_push_state( COMMENT ); YY_BREAK case 3: YY_RULE_SETUP -#line 107 "scan.l" +#line 108 "scan.l" yy_push_state( LINEDIR ); YY_BREAK case 4: YY_RULE_SETUP -#line 108 "scan.l" +#line 109 "scan.l" return SCDECL; YY_BREAK case 5: YY_RULE_SETUP -#line 109 "scan.l" +#line 110 "scan.l" return XSCDECL; YY_BREAK case 6: YY_RULE_SETUP -#line 110 "scan.l" +#line 111 "scan.l" { ++linenum; line_directive_out( (FILE *) 0, 1 ); @@ -1623,12 +1625,12 @@ YY_RULE_SETUP YY_BREAK case 7: YY_RULE_SETUP -#line 117 "scan.l" +#line 118 "scan.l" /* discard */ YY_BREAK case 8: YY_RULE_SETUP -#line 119 "scan.l" +#line 120 "scan.l" { sectnum = 2; bracelevel = 0; @@ -1640,37 +1642,37 @@ YY_RULE_SETUP YY_BREAK case 9: YY_RULE_SETUP -#line 128 "scan.l" +#line 129 "scan.l" yytext_is_array = false; ++linenum; YY_BREAK case 10: YY_RULE_SETUP -#line 129 "scan.l" +#line 130 "scan.l" yytext_is_array = true; ++linenum; YY_BREAK case 11: YY_RULE_SETUP -#line 131 "scan.l" +#line 132 "scan.l" BEGIN(OPTION); return OPTION_OP; YY_BREAK case 12: YY_RULE_SETUP -#line 133 "scan.l" +#line 134 "scan.l" ++linenum; /* ignore */ YY_BREAK case 13: YY_RULE_SETUP -#l
svn commit: r215237 - head/lib/msun/src
Author: uqs Date: Sat Nov 13 10:54:10 2010 New Revision: 215237 URL: http://svn.freebsd.org/changeset/base/215237 Log: Fix bug in jn(3) and jnf(3) that led to -inf results Explanation by Steve: jn[f](n,x) for certain ranges of x uses downward recursion to compute the value of the function. The recursion sequence that is generated is proportional to the actual desired value, so a normalization step is taken. This normalization is j0[f](x) divided by the zeroth sequence member. As Bruce notes, near the zeros of j0[f](x) the computed value can have giga-ULP inaccuracy. I found for the 1st zero of j0f(x) only the leading decimal digit is correct. The solution to the issue is fairly straight forward. The zeros of j0(x) and j1(x) never coincide, so as j0(x) approaches a zero, the normalization constant switches to j1[f](x) divided by the 2nd sequence member. The expectation is that j1[f](x) is a more accurately computed value. PR: bin/144306 Submitted by: Steven G. Kargl Reviewed by: bde MFC after:7 days Modified: head/lib/msun/src/e_jn.c head/lib/msun/src/e_jnf.c Modified: head/lib/msun/src/e_jn.c == --- head/lib/msun/src/e_jn.cSat Nov 13 10:38:06 2010(r215236) +++ head/lib/msun/src/e_jn.cSat Nov 13 10:54:10 2010(r215237) @@ -200,7 +200,12 @@ __ieee754_jn(int n, double x) } } } - b = (t*__ieee754_j0(x)/b); + z = __ieee754_j0(x); + w = __ieee754_j1(x); + if (fabs(z) >= fabs(w)) + b = (t*z/b); + else + b = (t*w/a); } } if(sgn==1) return -b; else return b; Modified: head/lib/msun/src/e_jnf.c == --- head/lib/msun/src/e_jnf.c Sat Nov 13 10:38:06 2010(r215236) +++ head/lib/msun/src/e_jnf.c Sat Nov 13 10:54:10 2010(r215237) @@ -152,7 +152,12 @@ __ieee754_jnf(int n, float x) } } } - b = (t*__ieee754_j0f(x)/b); + z = __ieee754_j0f(x); + w = __ieee754_j1f(x); + if (fabsf(z) >= fabsf(w)) + b = (t*z/b); + else + b = (t*w/a); } } if(sgn==1) return -b; else return b; ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r215717 - head/usr.sbin/kernbb
Author: uqs Date: Mon Nov 22 21:39:35 2010 New Revision: 215717 URL: http://svn.freebsd.org/changeset/base/215717 Log: Remove kernbb(8) from the source tree. It's been broken for several years and with all the binutils/toolchain changes in flight, it might make more sense to put efforts into dtrace and hwpmc instead. Discussed with: phk PR: bin/83558 Deleted: head/usr.sbin/kernbb/ ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r215757 - in stable: 7/lib/msun/src 8/lib/msun/src
Author: uqs Date: Tue Nov 23 18:48:57 2010 New Revision: 215757 URL: http://svn.freebsd.org/changeset/base/215757 Log: MFC r215237: Fix bug in jn(3) and jnf(3) that led to -inf results Modified: stable/7/lib/msun/src/e_jn.c stable/7/lib/msun/src/e_jnf.c Directory Properties: stable/7/lib/msun/ (props changed) Changes in other areas also in this revision: Modified: stable/8/lib/msun/src/e_jn.c stable/8/lib/msun/src/e_jnf.c Directory Properties: stable/8/lib/msun/ (props changed) Modified: stable/7/lib/msun/src/e_jn.c == --- stable/7/lib/msun/src/e_jn.cTue Nov 23 18:47:43 2010 (r215756) +++ stable/7/lib/msun/src/e_jn.cTue Nov 23 18:48:57 2010 (r215757) @@ -201,7 +201,12 @@ __ieee754_jn(int n, double x) } } } - b = (t*__ieee754_j0(x)/b); + z = __ieee754_j0(x); + w = __ieee754_j1(x); + if (fabs(z) >= fabs(w)) + b = (t*z/b); + else + b = (t*w/a); } } if(sgn==1) return -b; else return b; Modified: stable/7/lib/msun/src/e_jnf.c == --- stable/7/lib/msun/src/e_jnf.c Tue Nov 23 18:47:43 2010 (r215756) +++ stable/7/lib/msun/src/e_jnf.c Tue Nov 23 18:48:57 2010 (r215757) @@ -154,7 +154,12 @@ __ieee754_jnf(int n, float x) } } } - b = (t*__ieee754_j0f(x)/b); + z = __ieee754_j0f(x); + w = __ieee754_j1f(x); + if (fabsf(z) >= fabsf(w)) + b = (t*z/b); + else + b = (t*w/a); } } if(sgn==1) return -b; else return b; ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r215757 - in stable: 7/lib/msun/src 8/lib/msun/src
Author: uqs Date: Tue Nov 23 18:48:57 2010 New Revision: 215757 URL: http://svn.freebsd.org/changeset/base/215757 Log: MFC r215237: Fix bug in jn(3) and jnf(3) that led to -inf results Modified: stable/8/lib/msun/src/e_jn.c stable/8/lib/msun/src/e_jnf.c Directory Properties: stable/8/lib/msun/ (props changed) Changes in other areas also in this revision: Modified: stable/7/lib/msun/src/e_jn.c stable/7/lib/msun/src/e_jnf.c Directory Properties: stable/7/lib/msun/ (props changed) Modified: stable/8/lib/msun/src/e_jn.c == --- stable/8/lib/msun/src/e_jn.cTue Nov 23 18:47:43 2010 (r215756) +++ stable/8/lib/msun/src/e_jn.cTue Nov 23 18:48:57 2010 (r215757) @@ -200,7 +200,12 @@ __ieee754_jn(int n, double x) } } } - b = (t*__ieee754_j0(x)/b); + z = __ieee754_j0(x); + w = __ieee754_j1(x); + if (fabs(z) >= fabs(w)) + b = (t*z/b); + else + b = (t*w/a); } } if(sgn==1) return -b; else return b; Modified: stable/8/lib/msun/src/e_jnf.c == --- stable/8/lib/msun/src/e_jnf.c Tue Nov 23 18:47:43 2010 (r215756) +++ stable/8/lib/msun/src/e_jnf.c Tue Nov 23 18:48:57 2010 (r215757) @@ -152,7 +152,12 @@ __ieee754_jnf(int n, float x) } } } - b = (t*__ieee754_j0f(x)/b); + z = __ieee754_j0f(x); + w = __ieee754_j1f(x); + if (fabsf(z) >= fabsf(w)) + b = (t*z/b); + else + b = (t*w/a); } } if(sgn==1) return -b; else return b; ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r215774 - in stable: 7/contrib/bsnmp/snmpd 7/usr.sbin/bsnmpd/modules/snmp_hostres 8/contrib/bsnmp/snmpd 8/usr.sbin/bsnmpd/modules/snmp_hostres
Author: uqs Date: Tue Nov 23 21:36:53 2010 New Revision: 215774 URL: http://svn.freebsd.org/changeset/base/215774 Log: MFC r214237,214489: Remove mention of non-existant -o flag for debugging options. Fix CPU load reporting independent of scheduler used. - Sample CPU usage data from kern.cp_times, this makes for a far more accurate and scheduler independent algorithm. - Rip out the process list scraping that is no longer required. - Don't update CPU usage sampling on every request, but every 15s instead. This makes it impossible for an attacker to hide the CPU load by triggering 4 samplings in short succession when the system is idle. - After reaching the steady-state, the system will always report the average CPU load of the last 60 sampled seconds. - Untangling of call graph. Modified: stable/8/contrib/bsnmp/snmpd/bsnmpd.1 (contents, props changed) stable/8/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_processor_tbl.c (contents, props changed) Changes in other areas also in this revision: Modified: stable/7/contrib/bsnmp/snmpd/bsnmpd.1 (contents, props changed) stable/7/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_processor_tbl.c (contents, props changed) Modified: stable/8/contrib/bsnmp/snmpd/bsnmpd.1 == --- stable/8/contrib/bsnmp/snmpd/bsnmpd.1 Tue Nov 23 21:35:13 2010 (r215773) +++ stable/8/contrib/bsnmp/snmpd/bsnmpd.1 Tue Nov 23 21:36:53 2010 (r215774) @@ -31,7 +31,7 @@ .\" .\" $Begemot: bsnmp/snmpd/bsnmpd.1,v 1.12 2006/02/27 09:50:03 brandt_h Exp $ .\" -.Dd August 16, 2010 +.Dd October 23, 2010 .Dt BSNMPD 1 .Os .Sh NAME @@ -68,11 +68,9 @@ Use .Ar file as configuration file instead of the standard one. .It Fl D Ar options -Debugging options are specified with a -.Fl o -flag followed by a comma separated string of options. +Debugging options are specified as a comma separated string. The following options are available. -.Bl -tag -width ".It Cm trace Ns Cm = Ns Cm level" +.Bl -tag -width "trace=level" .It Cm dump Dump all sent and received PDUs to the terminal. .It Cm events Modified: stable/8/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_processor_tbl.c == --- stable/8/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_processor_tbl.c Tue Nov 23 21:35:13 2010(r215773) +++ stable/8/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_processor_tbl.c Tue Nov 23 21:36:53 2010(r215774) @@ -56,19 +56,15 @@ struct processor_entry { int32_t index; const struct asn_oid *frwId; - int32_t load; + int32_t load; /* average cpu usage */ + int32_t sample_cnt; /* number of usage samples */ + int32_t cur_sample_idx; /* current valid sample */ TAILQ_ENTRY(processor_entry) link; u_char cpu_no; /* which cpu, counted from 0 */ - pid_t idle_pid; /* PID of idle process for this CPU */ /* the samples from the last minute, as required by MIB */ double samples[MAX_CPU_SAMPLES]; - - /* current sample to fill in next time, must be < MAX_CPU_SAMPLES */ - uint32_tcur_sample_idx; - - /* number of useful samples */ - uint32_tsample_cnt; + longstates[MAX_CPU_SAMPLES][CPUSTATES]; }; TAILQ_HEAD(processor_tbl, processor_entry); @@ -82,65 +78,78 @@ static int32_t detected_processor_count; /* sysctlbyname(hw.ncpu) */ static int hw_ncpu; -/* sysctlbyname(kern.{ccpu,fscale}) */ -static fixpt_t ccpu; -static int fscale; - -/* tick of PDU where we have refreshed the processor table last */ -static uint64_t proctbl_tick; +/* sysctlbyname(kern.cp_times) */ +static int cpmib[2]; +static size_t cplen; /* periodic timer used to get cpu load stats */ static void *cpus_load_timer; -/* - * Average the samples. The entire algorithm seems to be wrong XXX. +/** + * Returns the CPU usage of a given processor entry. + * + * It needs at least two cp_times "tick" samples to calculate a delta and + * thus, the usage over the sampling period. */ static int get_avg_load(struct processor_entry *e) { - u_int i; - double sum = 0.0; + u_int i, oldest; + long delta = 0; + double usage = 0.0; assert(e != NULL); - if (e->sample_cnt == 0) + /* Need two samples to perform delta calculation. */ + if (e->sample_cnt <= 1) return (0); - for (i = 0; i < e->sample_cnt; i++) - sum += e->samples[i]; - - return ((int)floor((double)sum/(double)e->sample_cnt)); -} - -/* - * Stolen from /usr/src/bin/ps/print.c. The idle process should never - * be swapped out :-) - */ -static double -processor_getpcpu(struct kinfo_proc *ki_p) -{ - - if (ccpu == 0 || fscale ==
svn commit: r215774 - in stable: 7/contrib/bsnmp/snmpd 7/usr.sbin/bsnmpd/modules/snmp_hostres 8/contrib/bsnmp/snmpd 8/usr.sbin/bsnmpd/modules/snmp_hostres
Author: uqs Date: Tue Nov 23 21:36:53 2010 New Revision: 215774 URL: http://svn.freebsd.org/changeset/base/215774 Log: MFC r214237,214489: Remove mention of non-existant -o flag for debugging options. Fix CPU load reporting independent of scheduler used. - Sample CPU usage data from kern.cp_times, this makes for a far more accurate and scheduler independent algorithm. - Rip out the process list scraping that is no longer required. - Don't update CPU usage sampling on every request, but every 15s instead. This makes it impossible for an attacker to hide the CPU load by triggering 4 samplings in short succession when the system is idle. - After reaching the steady-state, the system will always report the average CPU load of the last 60 sampled seconds. - Untangling of call graph. Modified: stable/7/contrib/bsnmp/snmpd/bsnmpd.1 (contents, props changed) stable/7/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_processor_tbl.c (contents, props changed) Changes in other areas also in this revision: Modified: stable/8/contrib/bsnmp/snmpd/bsnmpd.1 (contents, props changed) stable/8/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_processor_tbl.c (contents, props changed) Modified: stable/7/contrib/bsnmp/snmpd/bsnmpd.1 == --- stable/7/contrib/bsnmp/snmpd/bsnmpd.1 Tue Nov 23 21:35:13 2010 (r215773) +++ stable/7/contrib/bsnmp/snmpd/bsnmpd.1 Tue Nov 23 21:36:53 2010 (r215774) @@ -31,7 +31,7 @@ .\" .\" $Begemot: bsnmp/snmpd/bsnmpd.1,v 1.12 2006/02/27 09:50:03 brandt_h Exp $ .\" -.Dd August 16, 2010 +.Dd October 23, 2010 .Dt BSNMPD 1 .Os .Sh NAME @@ -68,11 +68,9 @@ Use .Ar file as configuration file instead of the standard one. .It Fl D Ar options -Debugging options are specified with a -.Fl o -flag followed by a comma separated string of options. +Debugging options are specified as a comma separated string. The following options are available. -.Bl -tag -width ".It Cm trace Ns Cm = Ns Cm level" +.Bl -tag -width "trace=level" .It Cm dump Dump all sent and received PDUs to the terminal. .It Cm events Modified: stable/7/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_processor_tbl.c == --- stable/7/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_processor_tbl.c Tue Nov 23 21:35:13 2010(r215773) +++ stable/7/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_processor_tbl.c Tue Nov 23 21:36:53 2010(r215774) @@ -56,19 +56,15 @@ struct processor_entry { int32_t index; const struct asn_oid *frwId; - int32_t load; + int32_t load; /* average cpu usage */ + int32_t sample_cnt; /* number of usage samples */ + int32_t cur_sample_idx; /* current valid sample */ TAILQ_ENTRY(processor_entry) link; u_char cpu_no; /* which cpu, counted from 0 */ - pid_t idle_pid; /* PID of idle process for this CPU */ /* the samples from the last minute, as required by MIB */ double samples[MAX_CPU_SAMPLES]; - - /* current sample to fill in next time, must be < MAX_CPU_SAMPLES */ - uint32_tcur_sample_idx; - - /* number of useful samples */ - uint32_tsample_cnt; + longstates[MAX_CPU_SAMPLES][CPUSTATES]; }; TAILQ_HEAD(processor_tbl, processor_entry); @@ -82,65 +78,78 @@ static int32_t detected_processor_count; /* sysctlbyname(hw.ncpu) */ static int hw_ncpu; -/* sysctlbyname(kern.{ccpu,fscale}) */ -static fixpt_t ccpu; -static int fscale; - -/* tick of PDU where we have refreshed the processor table last */ -static uint64_t proctbl_tick; +/* sysctlbyname(kern.cp_times) */ +static int cpmib[2]; +static size_t cplen; /* periodic timer used to get cpu load stats */ static void *cpus_load_timer; -/* - * Average the samples. The entire algorithm seems to be wrong XXX. +/** + * Returns the CPU usage of a given processor entry. + * + * It needs at least two cp_times "tick" samples to calculate a delta and + * thus, the usage over the sampling period. */ static int get_avg_load(struct processor_entry *e) { - u_int i; - double sum = 0.0; + u_int i, oldest; + long delta = 0; + double usage = 0.0; assert(e != NULL); - if (e->sample_cnt == 0) + /* Need two samples to perform delta calculation. */ + if (e->sample_cnt <= 1) return (0); - for (i = 0; i < e->sample_cnt; i++) - sum += e->samples[i]; - - return ((int)floor((double)sum/(double)e->sample_cnt)); -} - -/* - * Stolen from /usr/src/bin/ps/print.c. The idle process should never - * be swapped out :-) - */ -static double -processor_getpcpu(struct kinfo_proc *ki_p) -{ - - if (ccpu == 0 || fscale ==
svn commit: r215836 - head/usr.bin/calendar
Author: uqs Date: Thu Nov 25 19:22:24 2010 New Revision: 215836 URL: http://svn.freebsd.org/changeset/base/215836 Log: Pet make checkdpadd. Modified: head/usr.bin/calendar/Makefile Modified: head/usr.bin/calendar/Makefile == --- head/usr.bin/calendar/Makefile Thu Nov 25 19:05:17 2010 (r215835) +++ head/usr.bin/calendar/Makefile Thu Nov 25 19:22:24 2010 (r215836) @@ -4,6 +4,7 @@ PROG= calendar SRCS= calendar.c locale.c events.c dates.c parsedata.c io.c day.c \ ostern.c paskha.c pom.c sunpos.c +DPADD= ${LIBM} LDADD= -lm INTER= de_AT.ISO_8859-15 de_DE.ISO8859-1 fr_FR.ISO8859-1 \ hr_HR.ISO8859-2 hu_HU.ISO8859-2 ru_RU.KOI8-R uk_UA.KOI8-U ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r215854 - in head/sys: amd64/amd64 i386/i386
Author: uqs Date: Fri Nov 26 08:11:43 2010 New Revision: 215854 URL: http://svn.freebsd.org/changeset/base/215854 Log: Remove kernel support for BB profiling, now that kernbb(8) is gone, too. PR: bin/83558 Reviewed by: jkim Modified: head/sys/amd64/amd64/support.S head/sys/i386/i386/support.s Modified: head/sys/amd64/amd64/support.S == --- head/sys/amd64/amd64/support.S Fri Nov 26 05:29:19 2010 (r215853) +++ head/sys/amd64/amd64/support.S Fri Nov 26 08:11:43 2010 (r215854) @@ -700,25 +700,6 @@ ENTRY(longjmp) END(longjmp) /* - * Support for BB-profiling (gcc -a). The kernbb program will extract - * the data from the kernel. - */ - - .data - ALIGN_DATA - .globl bbhead -bbhead: - .quad 0 - - .text -NON_GPROF_ENTRY(__bb_init_func) - movq$1,(%rdi) - movqbbhead,%rax - movq%rax,32(%rdi) - movq%rdi,bbhead - NON_GPROF_RET - -/* * Support for reading MSRs in the safe manner. */ ENTRY(rdmsr_safe) Modified: head/sys/i386/i386/support.s == --- head/sys/i386/i386/support.sFri Nov 26 05:29:19 2010 (r215853) +++ head/sys/i386/i386/support.sFri Nov 26 08:11:43 2010 (r215854) @@ -790,26 +790,6 @@ ENTRY(longjmp) END(longjmp) /* - * Support for BB-profiling (gcc -a). The kernbb program will extract - * the data from the kernel. - */ - - .data - ALIGN_DATA - .globl bbhead -bbhead: - .long 0 - - .text -NON_GPROF_ENTRY(__bb_init_func) - movl4(%esp),%eax - movl$1,(%eax) - movlbbhead,%edx - movl%edx,16(%eax) - movl%eax,bbhead - NON_GPROF_RET - -/* * Support for reading MSRs in the safe manner. */ ENTRY(rdmsr_safe) ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r215880 - head/contrib/traceroute
Author: uqs Date: Fri Nov 26 20:34:43 2010 New Revision: 215880 URL: http://svn.freebsd.org/changeset/base/215880 Log: Remove clause 3 and 4 from TNF licenses. Obtained from:NetBSD Approved by: core Modified: head/contrib/traceroute/as.c head/contrib/traceroute/as.h Modified: head/contrib/traceroute/as.c == --- head/contrib/traceroute/as.cFri Nov 26 19:48:27 2010 (r215879) +++ head/contrib/traceroute/as.cFri Nov 26 20:34:43 2010 (r215880) @@ -16,13 +16,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 Modified: head/contrib/traceroute/as.h == --- head/contrib/traceroute/as.hFri Nov 26 19:48:27 2010 (r215879) +++ head/contrib/traceroute/as.hFri Nov 26 20:34:43 2010 (r215880) @@ -16,13 +16,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 ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r215937 - in head: contrib/traceroute contrib/traceroute/lbl usr.sbin/traceroute
Author: uqs Date: Sat Nov 27 09:26:46 2010 New Revision: 215937 URL: http://svn.freebsd.org/changeset/base/215937 Log: Remove unused traceroute(8) contrib code from head It still lives on under vendor/traceroute. Deleted: head/contrib/traceroute/Makefile.in head/contrib/traceroute/aclocal.m4 head/contrib/traceroute/acsite.m4 head/contrib/traceroute/config.guess head/contrib/traceroute/config.sub head/contrib/traceroute/configure head/contrib/traceroute/configure.in head/contrib/traceroute/findsaddr-generic.c head/contrib/traceroute/findsaddr-linux.c head/contrib/traceroute/findsaddr-mib.c head/contrib/traceroute/install-sh head/contrib/traceroute/lbl/gnuc.h head/contrib/traceroute/lbl/os-solaris2.h head/contrib/traceroute/lbl/os-sunos4.h head/contrib/traceroute/mkdep head/contrib/traceroute/strerror.c head/contrib/traceroute/usleep.c Modified: head/contrib/traceroute/ifaddrlist.c head/contrib/traceroute/traceroute.c head/usr.sbin/traceroute/Makefile Modified: head/contrib/traceroute/ifaddrlist.c == --- head/contrib/traceroute/ifaddrlist.cSat Nov 27 07:03:31 2010 (r215936) +++ head/contrib/traceroute/ifaddrlist.cSat Nov 27 09:26:46 2010 (r215937) @@ -61,11 +61,6 @@ struct rtentry; #include #include -#include "gnuc.h" -#ifdef HAVE_OS_PROTO_H -#include "os-proto.h" -#endif - #include "ifaddrlist.h" /* Modified: head/contrib/traceroute/traceroute.c == --- head/contrib/traceroute/traceroute.cSat Nov 27 07:03:31 2010 (r215936) +++ head/contrib/traceroute/traceroute.cSat Nov 27 09:26:46 2010 (r215937) @@ -245,11 +245,6 @@ static const char rcsid[] = #include #include -#include "gnuc.h" -#ifdef HAVE_OS_PROTO_H -#include "os-proto.h" -#endif - /* rfc1716 */ #ifndef ICMP_UNREACH_FILTER_PROHIB #define ICMP_UNREACH_FILTER_PROHIB 13 /* admin prohibited filter */ Modified: head/usr.sbin/traceroute/Makefile == --- head/usr.sbin/traceroute/Makefile Sat Nov 27 07:03:31 2010 (r215936) +++ head/usr.sbin/traceroute/Makefile Sat Nov 27 09:26:46 2010 (r215937) @@ -29,7 +29,7 @@ DPADD=${LIBIPSEC} LDADD= -lipsec .endif -CFLAGS+= -I${TRACEROUTE_DISTDIR}/lbl -I${TRACEROUTE_DISTDIR} +CFLAGS+= -I${TRACEROUTE_DISTDIR} WARNS?=0 ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r216119 - head
Author: uqs Date: Thu Dec 2 10:46:05 2010 New Revision: 216119 URL: http://svn.freebsd.org/changeset/base/216119 Log: Remove more duplicates. Just so that I can lookup the command for the next time: for t in `make -V TARGETS universe`; do __MAKE_CONF=/dev/null make -f Makefile.inc1 -m $PWD/share/mk TARGET=$t \ -V OLD_FILES -V OLD_LIBS -V OLD_DIRS delete-old | \ xargs -n1|sort|uniq -c|egrep -v "^ *1 "; done Modified: head/ObsoleteFiles.inc Modified: head/ObsoleteFiles.inc == --- head/ObsoleteFiles.inc Thu Dec 2 10:39:44 2010(r216118) +++ head/ObsoleteFiles.inc Thu Dec 2 10:46:05 2010(r216119) @@ -1158,12 +1158,6 @@ OLD_FILES+=usr/include/machine/i4b_rbch_ OLD_FILES+=usr/include/machine/i4b_tel_ioctl.h OLD_FILES+=usr/include/machine/i4b_trace.h .endif -# 20070704: I4B 'modules' temporary disconnected (removed 20080525) -.if ${TARGET_ARCH} == "i386" -OLD_FILES+=usr/share/man/man4/i4bing.4.gz -OLD_FILES+=usr/share/man/man4/i4bipr.4.gz -OLD_FILES+=usr/share/man/man4/i4bisppp.4.gz -.endif # 20070703: pf 4.1 import OLD_FILES+=usr/libexec/ftp-proxy # 20070701: KAME IPSec removal @@ -1342,12 +1336,8 @@ OLD_LIBS+=usr/lib/libusbhid.so.2 OLD_LIBS+=usr/lib/libvgl.so.4 OLD_LIBS+=usr/lib/libwrap.so.4 OLD_LIBS+=usr/lib/libypclnt.so.2 -OLD_LIBS+=usr/lib/snmp_atm.so.3 OLD_LIBS+=usr/lib/snmp_bridge.so.3 OLD_LIBS+=usr/lib/snmp_hostres.so.3 -OLD_LIBS+=usr/lib/snmp_mibII.so.3 -OLD_LIBS+=usr/lib/snmp_netgraph.so.3 -OLD_LIBS+=usr/lib/snmp_pf.so.3 .if ${TARGET_ARCH} == "amd64" OLD_LIBS+=usr/lib32/libatm.so.4 OLD_LIBS+=usr/lib32/libbegemot.so.2 @@ -4551,7 +4541,6 @@ OLD_FILES+=usr/games/worm OLD_FILES+=usr/games/worms OLD_FILES+=usr/games/wump OLD_FILES+=sbin/mount_reiserfs -OLD_FILES+=usr/include/c++/3.4/ext/demangle.h OLD_FILES+=usr/include/cam/cam_extend.h OLD_FILES+=usr/include/dev/wi/wi_hostap.h OLD_FILES+=usr/include/disktab.h @@ -4814,7 +4803,6 @@ OLD_FILES+=usr/include/posix4/posix4.h OLD_FILES+=usr/include/posix4/sched.h OLD_FILES+=usr/include/posix4/semaphore.h OLD_DIRS+=usr/include/posix4 -OLD_FILES+=usr/include/rune.h OLD_FILES+=usr/include/security/_pam_compat.h OLD_FILES+=usr/include/security/_pam_macros.h OLD_FILES+=usr/include/security/_pam_types.h @@ -4960,37 +4948,14 @@ OLD_FILES+=usr/share/doc/ntp/release.htm OLD_FILES+=usr/share/doc/ntp/tickadj.htm OLD_FILES+=usr/share/doc/papers/nqnfs.ascii.gz OLD_FILES+=usr/share/doc/papers/px.ascii.gz -OLD_FILES+=usr/share/man/man3/mbrune.3.gz -OLD_FILES+=usr/share/man/man3/rune.3.gz -OLD_FILES+=usr/share/man/man3/mac_is_present_np.3.gz -OLD_FILES+=usr/share/man/man3/fpsetsticky.3.gz -OLD_FILES+=usr/share/man/man3/gss_krb5_copy_ccache.3.gz -OLD_FILES+=usr/share/man/man3/gss_krb5_compat_des3_mic.3.gz -OLD_FILES+=usr/share/man/man3/exp10f.3.gz OLD_FILES+=usr/share/man/man3/exp10.3.gz -OLD_FILES+=usr/share/man/man3/mbrrune.3.gz -OLD_FILES+=usr/share/man/man3/mbmb.3.gz -OLD_FILES+=usr/share/man/man3/sputrune.3.gz -OLD_FILES+=usr/share/man/man3/sgetrune.3.gz -OLD_FILES+=usr/share/man/man3/setrunelocale.3.gz -OLD_FILES+=usr/share/man/man3/setinvalidrune.3.gz -OLD_FILES+=usr/share/man/man3/mbrune.3.gz -OLD_FILES+=usr/share/man/man3/rune.3.gz -OLD_FILES+=usr/share/man/man3/mac_is_present_np.3.gz +OLD_FILES+=usr/share/man/man3/exp10f.3.gz OLD_FILES+=usr/share/man/man3/fpsetsticky.3.gz -OLD_FILES+=usr/share/man/man3/gss_krb5_copy_ccache.3.gz OLD_FILES+=usr/share/man/man3/gss_krb5_compat_des3_mic.3.gz -OLD_FILES+=usr/share/man/man3/exp10f.3.gz -OLD_FILES+=usr/share/man/man3/exp10.3.gz -OLD_FILES+=usr/share/man/man3/mbrrune.3.gz +OLD_FILES+=usr/share/man/man3/gss_krb5_copy_ccache.3.gz +OLD_FILES+=usr/share/man/man3/mac_is_present_np.3.gz OLD_FILES+=usr/share/man/man3/mbmb.3.gz -OLD_FILES+=usr/share/man/man3/sputrune.3.gz -OLD_FILES+=usr/share/man/man3/sgetrune.3.gz OLD_FILES+=usr/share/man/man3/setrunelocale.3.gz -OLD_FILES+=usr/share/man/man3/setinvalidrune.3.gz -OLD_FILES+=usr/share/man/man3/fungetrune.3.gz -OLD_FILES+=usr/share/man/man3/fputrune.3.gz -OLD_FILES+=usr/share/man/man3/fgetrune.3.gz OLD_FILES+=usr/share/man/man5/usbd.conf.5.gz .if ${TARGET_ARCH} != "i386" && ${TARGET_ARCH} != "amd64" OLD_FILES+=usr/share/man/man8/boot_i386.8.gz @@ -5088,11 +5053,7 @@ OLD_LIBS+=lib/libgpib.so.1 # 20060413: libpcap.so.4 moved to /lib/ OLD_LIBS+=usr/lib/libpcap.so.4 # 20060412: libpthread.so.2 moved to /lib/ -.if ${TARGET_ARCH} != "sparc64" OLD_LIBS+=usr/lib/libpthread.so.2 -.else -OLD_LIBS+=usr/lib/libthr.so.2 -.endif # 20060127: revert libdisk to static-only OLD_LIBS+=usr/lib/libdisk.so.3 # 20051027: libc_r discontinued (removed 20101113) @@ -5211,8 +5172,6 @@ OLD_LIBS+=usr/lib/snmp_atm.so.3 OLD_LIBS+=usr/lib/snmp_mibII.so.3 OLD_LIBS+=usr/lib/snmp_netgraph.so.3 OLD_LIBS+=usr/lib/snmp_pf.so.3 -# 20050603: network related ABI change on 64bit systems -OLD_LIBS+=usr/lib/libpcap.so.3 # 200505XX: ? OLD_LIBS+=usr/li
Re: svn commit: r216119 - head
On Thu, 02.12.2010 at 15:45:22 +0100, Alexander Leidinger wrote: > Quoting Ulrich Spoerlein (from Thu, 2 Dec 2010 > 10:46:05 + (UTC)): > > > Author: uqs > > Date: Thu Dec 2 10:46:05 2010 > > New Revision: 216119 > > URL: http://svn.freebsd.org/changeset/base/216119 > > > > Log: > > Remove more duplicates. > > > > Just so that I can lookup the command for the next time: > > Can you please add it to OldFiles.inc instead, with a comment what it does? > > > for t in `make -V TARGETS universe`; do > > __MAKE_CONF=/dev/null make -f Makefile.inc1 -m $PWD/share/mk TARGET=$t \ > > -V OLD_FILES -V OLD_LIBS -V OLD_DIRS delete-old | \ > > xargs -n1|sort|uniq -c|egrep -v "^ *1 "; > > done > > While it does not matter for "-V OLD*", the spirit of the command is > more like the check-old target (which is including shared libs) than > the delete-old target (which does not delete shared libs but only > static libs). Using check-old would also remove the (wrong, but not > far fetched) fear of actually deleting something with this command. Something that bugs me more, is all the TARGET_ARCH conditionals in that file, that serve practically no purpose. If a file only existed on i386, and it has been removed on i386, there's no point in wrapping this under TARGET_ARCH=i386. The wrapping of all lib32 files for amd64 is a great example :/ The wrapping is only ever required, if some file has been removed from a set of arches, but must be retained on others. Anyway, please see attached. Uli commit 2c5b79ffde80760690baee61d30b0f533e511ca3 Author: Ulrich Spörlein Date: Thu Dec 2 21:23:58 2010 +0100 Document two more ways to find duplicates in the obsolete file list. Remove the only duplicate found by the optional files check. Fix typos, while here. Suggested by: netchild diff --git a/ObsoleteFiles.inc b/ObsoleteFiles.inc index 0756547..e406532 100644 --- a/ObsoleteFiles.inc +++ b/ObsoleteFiles.inc @@ -22,16 +22,31 @@ # grep '+=' /usr/src/tools/build/mk/OptionalObsoleteFiles.inc | sort -u) | \ # sort | uniq -d # +# To find regular duplicates not dependant on optional components, you can +# also use something that will not give you false positives, e.g.: +# for t in `make -V TARGETS universe`; do +# __MAKE_CONF=/dev/null make -f Makefile.inc1 TARGET=$t \ +# -V OLD_FILES -V OLD_LIBS -V OLD_DIRS check-old | \ +# xargs -n1 | sort | uniq -d; +# done +# +# For optional components, you can use the following to see if some entries +# in OptionalObsoleteFiles.inc have been obsoleted by ObsoleteFiles.inc +# for o in tools/build/options/WITH*; do +# __MAKE_CONF=/dev/null make -f Makefile.inc1 -D${o##*/} \ +# -V OLD_FILES -V OLD_LIBS -V OLD_DIRS check-old | \ +# xargs -n1 | sort | uniq -d; +# done # 20101112: vgonel(9) has gone to private API a while ago OLD_FILES+=usr/share/man/man9/vgonel.9.gz # 20101112: removed gasp.info OLD_FILES+=usr/share/info/gasp.info.gz -# 20101109: headers moved to machine/ to x86/ +# 20101109: headers moved from machine/ to x86/ .if ${TARGET_ARCH} == "amd64" || ${TARGET_ARCH} == "i386" OLD_FILES+=usr/include/machine/mptable.h .endif -# 20101101: headers moved to machine/ to x86/ +# 20101101: headers moved from machine/ to x86/ .if ${TARGET_ARCH} == "amd64" || ${TARGET_ARCH} == "i386" OLD_FILES+=usr/include/machine/apicreg.h OLD_FILES+=usr/include/machine/mca.h diff --git a/tools/build/mk/OptionalObsoleteFiles.inc b/tools/build/mk/OptionalObsoleteFiles.inc index 02a4ce3..db8251c 100644 --- a/tools/build/mk/OptionalObsoleteFiles.inc +++ b/tools/build/mk/OptionalObsoleteFiles.inc @@ -1869,7 +1869,6 @@ OLD_FILES+=usr/lib/libfl_p.a OLD_FILES+=usr/lib/libform_p.a OLD_FILES+=usr/lib/libformw_p.a OLD_FILES+=usr/lib/libftpio_p.a -OLD_FILES+=usr/lib/libg2c_p.a OLD_FILES+=usr/lib/libgcc_p.a OLD_FILES+=usr/lib/libgeom_p.a OLD_FILES+=usr/lib/libgnuregex_p.a ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r216178 - in head: bin/csh/USD.doc lib/libc/rpc/PSD.doc sbin/fsck_ffs/SMM.doc share/doc/psd/12.make share/doc/psd/18.gprof share/doc/psd/22.rpcgen share/doc/psd/23.rpc share/doc/psd/24....
Author: uqs Date: Sat Dec 4 10:11:20 2010 New Revision: 216178 URL: http://svn.freebsd.org/changeset/base/216178 Log: Move most of the remaining USD/PSD/SMM papers into share/doc Added: head/share/doc/psd/12.make/stubs - copied unchanged from r216131, head/usr.bin/make/PSD.doc/stubs head/share/doc/psd/12.make/tutorial.ms - copied unchanged from r216131, head/usr.bin/make/PSD.doc/tutorial.ms head/share/doc/psd/18.gprof/abstract.me - copied unchanged from r216131, head/usr.bin/gprof/PSD.doc/abstract.me head/share/doc/psd/18.gprof/gathering.me - copied unchanged from r216131, head/usr.bin/gprof/PSD.doc/gathering.me head/share/doc/psd/18.gprof/header.me - copied unchanged from r216131, head/usr.bin/gprof/PSD.doc/header.me head/share/doc/psd/18.gprof/intro.me - copied unchanged from r216131, head/usr.bin/gprof/PSD.doc/intro.me head/share/doc/psd/18.gprof/postp.me - copied unchanged from r216131, head/usr.bin/gprof/PSD.doc/postp.me head/share/doc/psd/18.gprof/postp1.pic - copied unchanged from r216131, head/usr.bin/gprof/PSD.doc/postp1.pic head/share/doc/psd/18.gprof/postp2.pic - copied unchanged from r216131, head/usr.bin/gprof/PSD.doc/postp2.pic head/share/doc/psd/18.gprof/postp3.pic - copied unchanged from r216131, head/usr.bin/gprof/PSD.doc/postp3.pic head/share/doc/psd/18.gprof/pres1.pic - copied unchanged from r216131, head/usr.bin/gprof/PSD.doc/pres1.pic head/share/doc/psd/18.gprof/pres2.pic - copied unchanged from r216131, head/usr.bin/gprof/PSD.doc/pres2.pic head/share/doc/psd/18.gprof/present.me - copied unchanged from r216131, head/usr.bin/gprof/PSD.doc/present.me head/share/doc/psd/18.gprof/profiling.me - copied unchanged from r216131, head/usr.bin/gprof/PSD.doc/profiling.me head/share/doc/psd/18.gprof/refs.me - copied unchanged from r216131, head/usr.bin/gprof/PSD.doc/refs.me head/share/doc/psd/22.rpcgen/rpcgen.ms - copied unchanged from r216131, head/lib/libc/rpc/PSD.doc/rpcgen.ms head/share/doc/psd/22.rpcgen/stubs - copied unchanged from r216131, head/lib/libc/rpc/PSD.doc/stubs head/share/doc/psd/23.rpc/rpc.prog.ms - copied unchanged from r216131, head/lib/libc/rpc/PSD.doc/rpc.prog.ms head/share/doc/psd/23.rpc/stubs - copied unchanged from r216131, head/lib/libc/rpc/PSD.doc/stubs head/share/doc/psd/24.xdr/stubs - copied unchanged from r216131, head/lib/libc/rpc/PSD.doc/stubs head/share/doc/psd/24.xdr/xdr.nts.ms - copied unchanged from r216131, head/lib/libc/rpc/PSD.doc/xdr.nts.ms head/share/doc/psd/25.xdrrfc/stubs - copied unchanged from r216131, head/lib/libc/rpc/PSD.doc/stubs head/share/doc/psd/25.xdrrfc/xdr.rfc.ms - copied unchanged from r216131, head/lib/libc/rpc/PSD.doc/xdr.rfc.ms head/share/doc/psd/26.rpcrfc/rpc.rfc.ms - copied unchanged from r216131, head/lib/libc/rpc/PSD.doc/rpc.rfc.ms head/share/doc/psd/26.rpcrfc/stubs - copied unchanged from r216131, head/lib/libc/rpc/PSD.doc/stubs head/share/doc/psd/27.nfsrpc/nfs.rfc.ms - copied unchanged from r216131, head/lib/libc/rpc/PSD.doc/nfs.rfc.ms head/share/doc/psd/27.nfsrpc/stubs - copied unchanged from r216131, head/lib/libc/rpc/PSD.doc/stubs head/share/doc/smm/02.config/0.t - copied unchanged from r216131, head/usr.sbin/config/SMM.doc/0.t head/share/doc/smm/02.config/1.t - copied unchanged from r216131, head/usr.sbin/config/SMM.doc/1.t head/share/doc/smm/02.config/2.t - copied unchanged from r216131, head/usr.sbin/config/SMM.doc/2.t head/share/doc/smm/02.config/3.t - copied unchanged from r216131, head/usr.sbin/config/SMM.doc/3.t head/share/doc/smm/02.config/4.t - copied unchanged from r216131, head/usr.sbin/config/SMM.doc/4.t head/share/doc/smm/02.config/5.t - copied unchanged from r216131, head/usr.sbin/config/SMM.doc/5.t head/share/doc/smm/02.config/6.t - copied unchanged from r216131, head/usr.sbin/config/SMM.doc/6.t head/share/doc/smm/02.config/a.t - copied unchanged from r216131, head/usr.sbin/config/SMM.doc/a.t head/share/doc/smm/02.config/b.t - copied unchanged from r216131, head/usr.sbin/config/SMM.doc/b.t head/share/doc/smm/02.config/c.t - copied unchanged from r216131, head/usr.sbin/config/SMM.doc/c.t head/share/doc/smm/02.config/d.t - copied unchanged from r216131, head/usr.sbin/config/SMM.doc/d.t head/share/doc/smm/02.config/e.t - copied unchanged from r216131, head/usr.sbin/config/SMM.doc/e.t head/share/doc/smm/02.config/spell.ok - copied unchanged from r216131, head/usr.sbin/config/SMM.doc/spell.ok head/share/doc/smm/03.fsck/0.t - copied unchanged from r216131, head/sbin/fsck_ffs/SMM.doc/0.t head/share/doc/smm/03.fsck/1.t - copied unchanged from r216131, head/sbin/fsck_ffs/SMM.doc/1.t head/share/doc/smm/03.fsck/2.t - copied unchanged from r216131, head/sbin/fsck_ffs/SMM.doc/2.t head/share/doc/smm/03.fsck/3.t - copied un
svn commit: r216179 - in head: . tools/build/mk
Author: uqs Date: Sat Dec 4 11:40:40 2010 New Revision: 216179 URL: http://svn.freebsd.org/changeset/base/216179 Log: Document two more ways to find duplicates in the obsolete file list. Remove the only duplicate found by the optional files check. Fix typos, while here. Suggested by: netchild Modified: head/ObsoleteFiles.inc head/tools/build/mk/OptionalObsoleteFiles.inc Modified: head/ObsoleteFiles.inc == --- head/ObsoleteFiles.inc Sat Dec 4 10:11:20 2010(r216178) +++ head/ObsoleteFiles.inc Sat Dec 4 11:40:40 2010(r216179) @@ -22,16 +22,31 @@ # grep '+=' /usr/src/tools/build/mk/OptionalObsoleteFiles.inc | sort -u) | \ # sort | uniq -d # +# To find regular duplicates not dependant on optional components, you can +# also use something that will not give you false positives, e.g.: +# for t in `make -V TARGETS universe`; do +# __MAKE_CONF=/dev/null make -f Makefile.inc1 TARGET=$t \ +# -V OLD_FILES -V OLD_LIBS -V OLD_DIRS check-old | \ +# xargs -n1 | sort | uniq -d; +# done +# +# For optional components, you can use the following to see if some entries +# in OptionalObsoleteFiles.inc have been obsoleted by ObsoleteFiles.inc +# for o in tools/build/options/WITH*; do +# __MAKE_CONF=/dev/null make -f Makefile.inc1 -D${o##*/} \ +# -V OLD_FILES -V OLD_LIBS -V OLD_DIRS check-old | \ +# xargs -n1 | sort | uniq -d; +# done # 20101112: vgonel(9) has gone to private API a while ago OLD_FILES+=usr/share/man/man9/vgonel.9.gz # 20101112: removed gasp.info OLD_FILES+=usr/share/info/gasp.info.gz -# 20101109: headers moved to machine/ to x86/ +# 20101109: headers moved from machine/ to x86/ .if ${TARGET_ARCH} == "amd64" || ${TARGET_ARCH} == "i386" OLD_FILES+=usr/include/machine/mptable.h .endif -# 20101101: headers moved to machine/ to x86/ +# 20101101: headers moved from machine/ to x86/ .if ${TARGET_ARCH} == "amd64" || ${TARGET_ARCH} == "i386" OLD_FILES+=usr/include/machine/apicreg.h OLD_FILES+=usr/include/machine/mca.h Modified: head/tools/build/mk/OptionalObsoleteFiles.inc == --- head/tools/build/mk/OptionalObsoleteFiles.inc Sat Dec 4 10:11:20 2010(r216178) +++ head/tools/build/mk/OptionalObsoleteFiles.inc Sat Dec 4 11:40:40 2010(r216179) @@ -1869,7 +1869,6 @@ OLD_FILES+=usr/lib/libfl_p.a OLD_FILES+=usr/lib/libform_p.a OLD_FILES+=usr/lib/libformw_p.a OLD_FILES+=usr/lib/libftpio_p.a -OLD_FILES+=usr/lib/libg2c_p.a OLD_FILES+=usr/lib/libgcc_p.a OLD_FILES+=usr/lib/libgeom_p.a OLD_FILES+=usr/lib/libgnuregex_p.a ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r216184 - in head: contrib/traceroute usr.sbin/traceroute
Author: uqs Date: Sat Dec 4 14:19:27 2010 New Revision: 216184 URL: http://svn.freebsd.org/changeset/base/216184 Log: traceroute(8): make WARNS=3 clean Also fixes an operator precedence bug for TCP tracerouting Modified: head/contrib/traceroute/as.c head/contrib/traceroute/as.h head/contrib/traceroute/ifaddrlist.c head/contrib/traceroute/traceroute.c head/usr.sbin/traceroute/Makefile Modified: head/contrib/traceroute/as.c == --- head/contrib/traceroute/as.cSat Dec 4 13:06:41 2010 (r216183) +++ head/contrib/traceroute/as.cSat Dec 4 14:19:27 2010 (r216184) @@ -56,13 +56,14 @@ struct aslookup { }; void * -as_setup(char *server) +as_setup(const char *server) { struct aslookup *asn; struct addrinfo hints, *res0, *res; FILE *f; int s, error; + s = -1; if (server == NULL) server = getenv("RA_SERVER"); if (server == NULL) Modified: head/contrib/traceroute/as.h == --- head/contrib/traceroute/as.hSat Dec 4 13:06:41 2010 (r216183) +++ head/contrib/traceroute/as.hSat Dec 4 14:19:27 2010 (r216184) @@ -30,6 +30,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -void *as_setup(char *); +void *as_setup(const char *); unsigned int as_lookup(void *, char *, sa_family_t); void as_shutdown(void *); Modified: head/contrib/traceroute/ifaddrlist.c == --- head/contrib/traceroute/ifaddrlist.cSat Dec 4 13:06:41 2010 (r216183) +++ head/contrib/traceroute/ifaddrlist.cSat Dec 4 14:19:27 2010 (r216184) @@ -71,14 +71,14 @@ ifaddrlist(register struct ifaddrlist ** { register int fd, nipaddr; #ifdef HAVE_SOCKADDR_SA_LEN - register int n; + size_t n; #endif register struct ifreq *ifrp, *ifend, *ifnext, *mp; register struct sockaddr_in *sin; register struct ifaddrlist *al; struct ifconf ifc; struct ifreq ibuf[(32 * 1024) / sizeof(struct ifreq)], ifr; -#define MAX_IPADDR (sizeof(ibuf) / sizeof(ibuf[0])) +#define MAX_IPADDR ((int)(sizeof(ibuf) / sizeof(ibuf[0]))) static struct ifaddrlist ifaddrlist[MAX_IPADDR]; char device[sizeof(ifr.ifr_name) + 1]; @@ -91,10 +91,10 @@ ifaddrlist(register struct ifaddrlist ** ifc.ifc_buf = (caddr_t)ibuf; if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0 || - ifc.ifc_len < sizeof(struct ifreq)) { + ifc.ifc_len < (int)sizeof(struct ifreq)) { if (errno == EINVAL) (void)sprintf(errbuf, - "SIOCGIFCONF: ifreq struct too small (%d bytes)", + "SIOCGIFCONF: ifreq struct too small (%zu bytes)", sizeof(ibuf)); else (void)sprintf(errbuf, "SIOCGIFCONF: %s", Modified: head/contrib/traceroute/traceroute.c == --- head/contrib/traceroute/traceroute.cSat Dec 4 13:06:41 2010 (r216183) +++ head/contrib/traceroute/traceroute.cSat Dec 4 14:19:27 2010 (r216184) @@ -220,7 +220,6 @@ static const char rcsid[] = #include #include #include -#include #include #include @@ -1424,7 +1423,7 @@ tcp_check(const u_char *data, int seq) return (ntohs(tcp->th_sport) == ident && ntohs(tcp->th_dport) == port + (fixedPort ? 0 : seq)) - && tcp->th_seq == (ident << 16) | (port + seq); + && tcp->th_seq == (((tcp_seq)ident << 16) | (port + seq)); } void @@ -1497,19 +1496,17 @@ u_short p_cksum(struct ip *ip, u_short *data, int len) { static struct ipovly ipo; - u_short sumh, sumd; - u_long sumt; + u_short sum[2]; ipo.ih_pr = ip->ip_p; ipo.ih_len = htons(len); ipo.ih_src = ip->ip_src; ipo.ih_dst = ip->ip_dst; - sumh = in_cksum((u_short*)&ipo, sizeof(ipo)); /* pseudo ip hdr cksum */ - sumd = in_cksum((u_short*)data, len); /* payload data cksum */ - sumt = (sumh << 16) | (sumd); + sum[1] = in_cksum((u_short*)&ipo, sizeof(ipo)); /* pseudo ip hdr cksum */ + sum[0] = in_cksum(data, len); /* payload data cksum */ - return ~in_cksum((u_short*)&sumt, sizeof(sumt)); + return ~in_cksum(sum, sizeof(sum)); } /* Modified: head/usr.sbin/traceroute/Makefile == --- head/usr.sbin/traceroute/Makefile Sat Dec 4 13:06:41 2010 (r216183) +++ head/usr.sbin/traceroute/Makefile Sat Dec 4 14:19:27 2010 (r216184) @@ -31,7 +31,7 @@ LDADD=-lipsec CFLAGS+= -I${TRACEROUTE_DISTDIR} -WARN
svn commit: r216185 - head/usr.sbin/traceroute6
Author: uqs Date: Sat Dec 4 14:19:35 2010 New Revision: 216185 URL: http://svn.freebsd.org/changeset/base/216185 Log: traceroute6(8): make WARNS=3 clean Modified: head/usr.sbin/traceroute6/Makefile head/usr.sbin/traceroute6/traceroute6.c Modified: head/usr.sbin/traceroute6/Makefile == --- head/usr.sbin/traceroute6/Makefile Sat Dec 4 14:19:27 2010 (r216184) +++ head/usr.sbin/traceroute6/Makefile Sat Dec 4 14:19:35 2010 (r216185) @@ -25,7 +25,7 @@ BINMODE= 4555 CFLAGS+= -DIPSEC -DUSE_RFC2292BIS -DHAVE_POLL CFLAGS+= -I${.CURDIR} -I${TRACEROUTE_DISTDIR} -I. -WARNS?=1 +WARNS?=3 DPADD= ${LIBIPSEC} LDADD= -lipsec Modified: head/usr.sbin/traceroute6/traceroute6.c == --- head/usr.sbin/traceroute6/traceroute6.c Sat Dec 4 14:19:27 2010 (r216184) +++ head/usr.sbin/traceroute6/traceroute6.c Sat Dec 4 14:19:35 2010 (r216185) @@ -66,7 +66,7 @@ */ #ifndef lint -static char copyright[] = +static const char copyright[] = "@(#) Copyright (c) 1990, 1993\n\ The Regents of the University of California. All rights reserved.\n"; #endif /* not lint */ @@ -322,7 +322,7 @@ voidsend_probe(int, u_long); void *get_uphdr(struct ip6_hdr *, u_char *); intget_hoplim(struct msghdr *); double deltaT(struct timeval *, struct timeval *); -char *pr_type(int); +const char *pr_type(int); intpacket_ok(struct msghdr *, int, int); void print(struct msghdr *, int); const char *inetname(struct sockaddr *); @@ -372,12 +372,12 @@ main(argc, argv) { int mib[4] = { CTL_NET, PF_INET6, IPPROTO_IPV6, IPV6CTL_DEFHLIM }; char hbuf[NI_MAXHOST], src0[NI_MAXHOST], *ep; - int ch, i, on = 1, seq, rcvcmsglen, error, minlen; + int ch, i, on = 1, seq, rcvcmsglen, error; struct addrinfo hints, *res; static u_char *rcvcmsgbuf; u_long probe, hops, lport; struct hostent *hp; - size_t size; + size_t size, minlen; uid_t uid; /* @@ -671,11 +671,11 @@ main(argc, argv) datalen = minlen; else if (datalen >= MAXPACKET) { fprintf(stderr, - "traceroute6: packet size must be %d <= s < %ld.\n", - minlen, (long)MAXPACKET); + "traceroute6: packet size must be %zu <= s < %d.\n", + minlen, MAXPACKET); exit(1); } - outpacket = (struct opacket *)malloc((unsigned)datalen); + outpacket = malloc(datalen); if (!outpacket) { perror("malloc"); exit(1); @@ -913,7 +913,7 @@ main(argc, argv) for (hops = first_hop; hops <= max_hops; ++hops) { struct in6_addr lastaddr; int got_there = 0; - int unreachable = 0; + unsigned unreachable = 0; printf("%2lu ", hops); bzero(&lastaddr, sizeof(lastaddr)); @@ -1089,7 +1089,7 @@ send_probe(seq, hops) i = sendto(sndsock, (char *)outpacket, datalen, 0, (struct sockaddr *)&Dst, Dst.sin6_len); - if (i < 0 || i != datalen) { + if (i < 0 || (u_long)i != datalen) { if (i < 0) perror("sendto"); printf("traceroute6: wrote %s %lu chars, ret=%d\n", @@ -1129,12 +1129,11 @@ deltaT(t1p, t2p) /* * Convert an ICMP "type" field to a printable string. */ -char * -pr_type(t0) - int t0; +const char * +pr_type(int t0) { u_char t = t0 & 0xff; - char *cp; + const char *cp; switch (t) { case ICMP6_DST_UNREACH: @@ -1221,7 +1220,7 @@ packet_ok(mhdr, cc, seq) cc -= hlen; icp = (struct icmp6_hdr *)(buf + hlen); #else - if (cc < sizeof(struct icmp6_hdr)) { + if (cc < (int)sizeof(struct icmp6_hdr)) { if (verbose) { if (getnameinfo((struct sockaddr *)from, from->sin6_len, hbuf, sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0) ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r216189 - head/usr.sbin/usbdevs
Author: uqs Date: Sat Dec 4 21:54:23 2010 New Revision: 216189 URL: http://svn.freebsd.org/changeset/base/216189 Log: De-orbit usbdevs(8) which hasn't worked with the new USB stack for a long time now. usbconfig(8) should be an adequate replacement. Deleted: head/usr.sbin/usbdevs/ ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r216239 - in head/games: bcd caesar factor morse number pom random
Author: uqs Date: Mon Dec 6 19:12:51 2010 New Revision: 216239 URL: http://svn.freebsd.org/changeset/base/216239 Log: Drop advertising clause in manpages. It was done a long time ago for the source code. Discussed with: core Modified: head/games/bcd/bcd.6 head/games/caesar/caesar.6 head/games/caesar/rot13.sh head/games/factor/factor.6 head/games/morse/morse.6 head/games/number/number.6 head/games/pom/pom.6 head/games/random/random.6 Modified: head/games/bcd/bcd.6 == --- head/games/bcd/bcd.6Mon Dec 6 19:05:44 2010(r216238) +++ head/games/bcd/bcd.6Mon Dec 6 19:12:51 2010(r216239) @@ -9,11 +9,7 @@ .\" 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 University of -.\"California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors +.\" 3. Neither the name of the University nor the names of its contributors .\"may be used to endorse or promote products derived from this software .\"without specific prior written permission. .\" Modified: head/games/caesar/caesar.6 == --- head/games/caesar/caesar.6 Mon Dec 6 19:05:44 2010(r216238) +++ head/games/caesar/caesar.6 Mon Dec 6 19:12:51 2010(r216239) @@ -9,11 +9,7 @@ .\" 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 University of -.\"California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors +.\" 3. Neither the name of the University nor the names of its contributors .\"may be used to endorse or promote products derived from this software .\"without specific prior written permission. .\" Modified: head/games/caesar/rot13.sh == --- head/games/caesar/rot13.sh Mon Dec 6 19:05:44 2010(r216238) +++ head/games/caesar/rot13.sh Mon Dec 6 19:12:51 2010(r216239) @@ -11,11 +11,7 @@ # 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 University of -# California, Berkeley and its contributors. -# 4. Neither the name of the University nor the names of its contributors +# 3. Neither the name of the University nor the names of its contributors #may be used to endorse or promote products derived from this software #without specific prior written permission. # @@ -32,6 +28,6 @@ # SUCH DAMAGE. # # @(#)rot13.sh8.1 (Berkeley) 5/31/93 -# +# $FreeBSD$ exec /usr/games/caesar 13 "$@" Modified: head/games/factor/factor.6 == --- head/games/factor/factor.6 Mon Dec 6 19:05:44 2010(r216238) +++ head/games/factor/factor.6 Mon Dec 6 19:12:51 2010(r216239) @@ -12,11 +12,7 @@ .\" 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 University of -.\"California, Berkeley and its contributors. -.\" 4. Neither the name of the University nor the names of its contributors +.\" 3. Neither the name of the University nor the names of its contributors .\"may be used to endorse or promote products derived from this software .\"without specific prior written permission. .\" Modified: head/games/morse/morse.6 == --- head/games/morse/morse.6Mon Dec 6 19:05:44 2010(r216238) +++ head/games/morse/morse.6Mon
svn commit: r216404 - head/bin/sh
Author: uqs Date: Mon Dec 13 10:48:49 2010 New Revision: 216404 URL: http://svn.freebsd.org/changeset/base/216404 Log: Remove duplicate check, turning dead code into live code. Coverity CID: 5114 Reviewed by: jilles Modified: head/bin/sh/parser.c Modified: head/bin/sh/parser.c == --- head/bin/sh/parser.cMon Dec 13 10:40:16 2010(r216403) +++ head/bin/sh/parser.cMon Dec 13 10:48:49 2010(r216404) @@ -887,8 +887,6 @@ xxreadtoken(void) startlinno = plinno; for (;;) { /* until token or start of word found */ c = pgetc_macro(); - if (c == ' ' || c == '\t') - continue; /* quick check for white space first */ switch (c) { case ' ': case '\t': continue; ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r216544 - head/bin/sh
Author: uqs Date: Sat Dec 18 22:16:15 2010 New Revision: 216544 URL: http://svn.freebsd.org/changeset/base/216544 Log: Remove dead code. c is assigned 0 and *loc is pointing to NULL, so c!=0 cannot be true, and dereferencing loc would be a bad idea anyway. Coverity Prevent: CID 5113 Reviewed by: jilles Modified: head/bin/sh/expand.c Modified: head/bin/sh/expand.c == --- head/bin/sh/expand.cSat Dec 18 20:56:49 2010(r216543) +++ head/bin/sh/expand.cSat Dec 18 22:16:15 2010(r216544) @@ -557,8 +557,6 @@ subevalvar(char *p, char *str, int strlo amount = startp - expdest; STADJUST(amount, expdest); varflags &= ~VSNUL; - if (c != 0) - *loc = c; return 1; case VSQUESTION: ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r216597 - head/usr.sbin/lmcconfig
Author: uqs Date: Mon Dec 20 19:07:48 2010 New Revision: 216597 URL: http://svn.freebsd.org/changeset/base/216597 Log: Remove useless conditional. `vga' cannot be less than 0x3f when reaching the check. Coverity Prevent: CID 5196 Modified: head/usr.sbin/lmcconfig/lmcconfig.c Modified: head/usr.sbin/lmcconfig/lmcconfig.c == --- head/usr.sbin/lmcconfig/lmcconfig.c Mon Dec 20 17:39:39 2010 (r216596) +++ head/usr.sbin/lmcconfig/lmcconfig.c Mon Dec 20 19:07:48 2010 (r216597) @@ -889,9 +889,8 @@ double vga_dbs(u_int8_t vga) if ((vga >= 0x0F) && (vga <= 0x1B)) return 0.0 + 0.77 * (vga - 0x0F); if ((vga >= 0x1C) && (vga <= 0x33)) return 10.0 + 1.25 * (vga - 0x1C); if ((vga >= 0x34) && (vga <= 0x39)) return 40.0 + 1.67 * (vga - 0x34); - if ((vga >= 0x3A) && (vga <= 0x3F)) return 50.0 + 2.80 * (vga - 0x3A); - if (vga > 0x3F) return 64.0; - return 0.0; /* suppress compiler warning */ + if ((vga >= 0x3A) && (vga < 0x3F)) return 50.0 + 2.80 * (vga - 0x3A); + return 64.0; } void print_rx_gain() ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r216598 - head/games/factor
Author: uqs Date: Mon Dec 20 19:07:56 2010 New Revision: 216598 URL: http://svn.freebsd.org/changeset/base/216598 Log: factor(6): Check return values of BN_* functions. Coverity Prevent: CID 4862, 8771, 8772, 8773 Modified: head/games/factor/factor.c Modified: head/games/factor/factor.c == --- head/games/factor/factor.c Mon Dec 20 19:07:48 2010(r216597) +++ head/games/factor/factor.c Mon Dec 20 19:07:56 2010(r216598) @@ -211,7 +211,8 @@ pr_fact(BIGNUM *val) bnfact = BN_new(); BN_set_word(bnfact, *(fact - 1)); - BN_sqr(bnfact, bnfact, ctx); + if (!BN_sqr(bnfact, bnfact, ctx)) + errx(1, "error in BN_sqr()"); if (BN_cmp(bnfact, val) > 0 || BN_is_prime(val, PRIME_CHECKS, NULL, NULL, NULL) == 1) @@ -271,7 +272,8 @@ pollard_pminus1(BIGNUM *val) BN_set_word(rbase, 1); newbase: - BN_add_word(rbase, 1); + if (!BN_add_word(rbase, 1)) + errx(1, "error in BN_add_word()"); BN_set_word(i, 2); BN_copy(base, rbase); @@ -282,7 +284,8 @@ newbase: BN_copy(x, base); BN_sub_word(x, 1); - BN_gcd(x, x, val, ctx); + if (!BN_gcd(x, x, val, ctx)) + errx(1, "error in BN_gcd()"); if (!BN_is_one(x)) { if (BN_is_prime(x, PRIME_CHECKS, NULL, NULL, @@ -303,7 +306,8 @@ newbase: } BN_copy(val, num); } - BN_add_word(i, 1); + if (!BN_add_word(i, 1)) + errx(1, "error in BN_add_word()"); } } ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r216599 - head/usr.sbin/lmcconfig
Author: uqs Date: Mon Dec 20 19:08:07 2010 New Revision: 216599 URL: http://svn.freebsd.org/changeset/base/216599 Log: Fix type used to hold fgetc(3) output, this should help arm and powerpc which have char == unsigned char Modified: head/usr.sbin/lmcconfig/lmcconfig.c Modified: head/usr.sbin/lmcconfig/lmcconfig.c == --- head/usr.sbin/lmcconfig/lmcconfig.c Mon Dec 20 19:07:56 2010 (r216598) +++ head/usr.sbin/lmcconfig/lmcconfig.c Mon Dec 20 19:08:07 2010 (r216599) @@ -1940,7 +1940,7 @@ static void load_xilinx(char *name) FILE *f; char *ucode; int i, length; - char c; + int c; if (verbose) printf("Load firmware from file %s...\n", name); if ((f = fopen(name, "r")) == 0) ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r216600 - head/usr.sbin/lmcconfig
Author: uqs Date: Mon Dec 20 19:08:15 2010 New Revision: 216600 URL: http://svn.freebsd.org/changeset/base/216600 Log: lmcconfig(8): bump to WARNS=3, fix typo in usage while here Slight style(9) improvments - function definitions - sort #include Modified: head/usr.sbin/lmcconfig/Makefile head/usr.sbin/lmcconfig/lmcconfig.c Modified: head/usr.sbin/lmcconfig/Makefile == --- head/usr.sbin/lmcconfig/MakefileMon Dec 20 19:08:07 2010 (r216599) +++ head/usr.sbin/lmcconfig/MakefileMon Dec 20 19:08:15 2010 (r216600) @@ -6,6 +6,6 @@ MAN=lmcconfig.8 DPADD= ${LIBNETGRAPH} LDADD= -lnetgraph -WARNS?=0 +WARNS?=3 .include Modified: head/usr.sbin/lmcconfig/lmcconfig.c == --- head/usr.sbin/lmcconfig/lmcconfig.c Mon Dec 20 19:08:07 2010 (r216599) +++ head/usr.sbin/lmcconfig/lmcconfig.c Mon Dec 20 19:08:15 2010 (r216600) @@ -65,20 +65,21 @@ * $FreeBSD$ */ -#include +#include +#include +#include + #include +#include +#include #include #include #include +#include #include #if defined(NETGRAPH) # include #endif -#include -#include -#include -#include -#include #include #include @@ -95,8 +96,13 @@ int update = 0; /* update driver conf int verbose = 0; /* verbose output */ u_int8_t checksum; /* gate array ucode file checksum */ -void usage() - { +/* Functions currently unused. Keep compiler happy and provide prototypes. */ +void ioctl_snmp_loop(u_int32_t); +void init_srom(int); + +static void +usage(void) +{ fprintf(stderr, "Usage: %s interface [-abBcCdDeEfhiLmMpPsStTuUvVwWxXyYzZ?]\n", progname); fprintf(stderr, "or\n"); fprintf(stderr, "Usage: %s interface -1 [-aABcdeEfFgiIlLpPstTuUvxX]\n", progname); @@ -147,7 +153,7 @@ void usage() fprintf(stderr, "The -1 switch precedes T1/E1 commands.\n"); fprintf(stderr, "\t-a Stop sending Yellow|Blue|AIS signal\n"); - fprintf(stderr, "\t-A Start sending Yellow|Blue}AIS signal\n"); + fprintf(stderr, "\t-A Start sending Yellow|Blue|AIS signal\n"); fprintf(stderr, "\t-B Send BOP msg 25 times\n"); fprintf(stderr, "\t-c Set cable length in meters\n"); fprintf(stderr, "\t-d Print status of T1 DSU/CSU\n"); @@ -209,10 +215,11 @@ void usage() fprintf(stderr, "\t 1:OFF 2:DigitalLink|Kentrox 3:Larse\n"); fprintf(stderr, "\t-v Set verbose printout mode\n"); fprintf(stderr, "\t-V Write to T3 VCXO freq control DAC\n"); - } +} -void call_driver(unsigned long cmd, struct iohdr *iohdr) - { +static void +call_driver(unsigned long cmd, struct iohdr *iohdr) +{ int error = 0; strncpy(iohdr->ifname, ifname, sizeof(iohdr->ifname)); @@ -259,10 +266,11 @@ void call_driver(unsigned long cmd, stru fprintf(stderr, "%s: This version of %s is incompatible with the device driver\n", progname, progname); exit(1); } - } +} -u_int32_t read_pci_config(u_int8_t addr) - { +static u_int32_t +read_pci_config(u_int8_t addr) +{ struct ioctl ioctl; ioctl.iohdr.direction = DIR_IOWR; @@ -273,10 +281,11 @@ u_int32_t read_pci_config(u_int8_t addr) call_driver(LMCIOCREAD, &ioctl.iohdr); return ioctl.data; - } +} -void write_pci_config(u_int8_t addr, u_int32_t data) - { +static void +write_pci_config(u_int8_t addr, u_int32_t data) +{ struct ioctl ioctl; ioctl.iohdr.direction = DIR_IOW; @@ -286,10 +295,11 @@ void write_pci_config(u_int8_t addr, u_i ioctl.data = data; call_driver(LMCIOCWRITE, &ioctl.iohdr); - } +} -u_int32_t read_csr(u_int8_t addr) - { +static u_int32_t +read_csr(u_int8_t addr) +{ struct ioctl ioctl; ioctl.iohdr.direction = DIR_IOWR; @@ -300,10 +310,11 @@ u_int32_t read_csr(u_int8_t addr) call_driver(LMCIOCREAD, &ioctl.iohdr); return ioctl.data; - } +} -void write_csr(u_int8_t addr, u_int32_t data) - { +static void +write_csr(u_int8_t addr, u_int32_t data) +{ struct ioctl ioctl; ioctl.iohdr.direction = DIR_IOW; @@ -313,10 +324,11 @@ void write_csr(u_int8_t addr, u_int32_t ioctl.data = data; call_driver(LMCIOCWRITE, &ioctl.iohdr); - } +} -u_int16_t read_srom(u_int8_t addr) - { +static u_int16_t +read_srom(u_int8_t addr) +{ struct ioctl ioctl; ioctl.iohdr.direction = DIR_IOWR; @@ -327,10 +339,11 @@ u_int16_t read_srom(u_int8_t addr) call_driver(LMCIOCREAD, &ioctl.iohdr); return ioctl.data; - } +} -void write_srom(u_int8_t addr, u_int16_t data) - { +static void +write_srom(u_int8_t addr, u_int16_t data) +{ struct ioctl ioctl; ioctl.iohdr.direction = DIR_IOW; @@ -340,10 +353,11 @@ void write_srom(u_int8_t addr, u_int16_t ioctl.data = data; call_driver(LMCIOCWRITE, &ioctl.iohdr); - } +} -u_int8_t read_bios_rom(u_int32_t addr) - { +static u_int8_t +read_bios_rom(u_int32_t addr) +{ struct ioctl ioctl; ioctl
svn commit: r216603 - in head: include usr.sbin/rpc.lockd
Author: uqs Date: Mon Dec 20 21:12:18 2010 New Revision: 216603 URL: http://svn.freebsd.org/changeset/base/216603 Log: rpc.lockd(8) WARNS cleanup - Provide function prototype for nlm_syscall - Don't assign a variable from the stack to a global var[1] - Remove unused vars Found by: clang static analyser [1] Reviewed by: dfr Modified: head/include/unistd.h head/usr.sbin/rpc.lockd/Makefile head/usr.sbin/rpc.lockd/lockd.c head/usr.sbin/rpc.lockd/lockd_lock.c Modified: head/include/unistd.h == --- head/include/unistd.h Mon Dec 20 20:39:49 2010(r216602) +++ head/include/unistd.h Mon Dec 20 21:12:18 2010(r216603) @@ -529,6 +529,7 @@ char*mktemp(char *); #define_MKTEMP_DECLARED #endif int nfssvc(int, void *); +int nlm_syscall(int, int, int, char **); int profil(char *, size_t, vm_offset_t, int); int rcmd(char **, int, const char *, const char *, const char *, int *); int rcmd_af(char **, int, const char *, Modified: head/usr.sbin/rpc.lockd/Makefile == --- head/usr.sbin/rpc.lockd/MakefileMon Dec 20 20:39:49 2010 (r216602) +++ head/usr.sbin/rpc.lockd/MakefileMon Dec 20 21:12:18 2010 (r216603) @@ -7,7 +7,7 @@ MLINKS= rpc.lockd.8 lockd.8 SRCS= kern.c nlm_prot_svc.c lockd.c lock_proc.c lockd_lock.c CFLAGS+= -I. -I${DESTDIR}/usr/include/rpcsvc -WARNS?= 0 +WARNS?= 3 DPADD= ${LIBRPCSVC} ${LIBUTIL} LDADD= -lrpcsvc -lutil Modified: head/usr.sbin/rpc.lockd/lockd.c == --- head/usr.sbin/rpc.lockd/lockd.c Mon Dec 20 20:39:49 2010 (r216602) +++ head/usr.sbin/rpc.lockd/lockd.c Mon Dec 20 21:12:18 2010 (r216603) @@ -88,6 +88,7 @@ int nhosts = 0; int xcreated = 0; char **addrs; /* actually (netid, uaddr) pairs */ int naddrs;/* count of how many (netid, uaddr) pairs */ +char localhost[] = "localhost"; void create_service(struct netconfig *nconf); void lookup_addresses(struct netconfig *nconf); @@ -626,11 +627,8 @@ lookup_addresses(struct netconfig *nconf struct sockaddr_in6 *sin6; struct __rpc_sockinfo si; struct netbuf servaddr; - SVCXPRT *transp = NULL; int aicode; int nhostsbak; - int r; - int registered = 0; u_int32_t host_addr[4]; /* IPv4 or IPv6 */ char *uaddr; @@ -789,7 +787,6 @@ init_nsm(void) my_id id; sm_stat stat; char name[] = "NFS NLM"; - char localhost[] = "localhost"; /* * !!! Modified: head/usr.sbin/rpc.lockd/lockd_lock.c == --- head/usr.sbin/rpc.lockd/lockd_lock.cMon Dec 20 20:39:49 2010 (r216602) +++ head/usr.sbin/rpc.lockd/lockd_lock.cMon Dec 20 21:12:18 2010 (r216603) @@ -197,6 +197,7 @@ enum hwlock_status lock_hwlock(struct fi enum split_status split_nfslock(const struct file_lock *exist_lock, const struct file_lock *unlock_lock, struct file_lock **left_lock, struct file_lock **right_lock); +intduplicate_block(struct file_lock *fl); void add_blockingfilelock(struct file_lock *fl); enum hwlock_status unlock_hwlock(const struct file_lock *fl); enum hwlock_status test_hwlock(const struct file_lock *fl, @@ -1198,7 +1199,7 @@ test_hwlock(fl, conflicting_fl) int duplicate_block(struct file_lock *fl) { - struct file_lock *ifl,*nfl; + struct file_lock *ifl; int retval = 0; debuglog("Entering duplicate_block"); ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r216756 - in head: lib/libc/locale lib/libc/rpc lib/libkvm usr.bin/c89 usr.bin/c99 usr.bin/tar usr.sbin/ancontrol
Author: uqs Date: Tue Dec 28 10:08:50 2010 New Revision: 216756 URL: http://svn.freebsd.org/changeset/base/216756 Log: Revert most of r210764, now that mdocml does the right thing with empty quotation macros. Requested by: Alex Kozlov Modified: head/lib/libc/locale/mbrtowc.3 head/lib/libc/rpc/publickey.3 head/lib/libkvm/kvm_getloadavg.3 head/usr.bin/c89/c89.1 head/usr.bin/c99/c99.1 head/usr.bin/tar/bsdtar.1 head/usr.sbin/ancontrol/ancontrol.8 Modified: head/lib/libc/locale/mbrtowc.3 == --- head/lib/libc/locale/mbrtowc.3 Tue Dec 28 08:42:12 2010 (r216755) +++ head/lib/libc/locale/mbrtowc.3 Tue Dec 28 10:08:50 2010 (r216756) @@ -69,7 +69,7 @@ was .Dv NULL , .Fa s was an empty string -.Pq Qq \& +.Pq Qq and .Fa n was 1. Modified: head/lib/libc/rpc/publickey.3 == --- head/lib/libc/rpc/publickey.3 Tue Dec 28 08:42:12 2010 (r216755) +++ head/lib/libc/rpc/publickey.3 Tue Dec 28 10:08:50 2010 (r216756) @@ -44,7 +44,7 @@ fails to decrypt the secret key, the rou argument will be a .Dv NULL string -.Pq Dq \& . +.Pq Dq . .Sh SEE ALSO .Xr publickey 5 .Pp Modified: head/lib/libkvm/kvm_getloadavg.3 == --- head/lib/libkvm/kvm_getloadavg.3Tue Dec 28 08:42:12 2010 (r216755) +++ head/lib/libkvm/kvm_getloadavg.3Tue Dec 28 10:08:50 2010 (r216756) @@ -50,7 +50,7 @@ averaged over various periods of time. Up to .Fa nelem samples are retrieved and assigned to successive elements of -.Fa loadavg Ns Bq \& . +.Fa loadavg Ns Bq . The system imposes a maximum of 3 samples, representing averages over the last 1, 5, and 15 minutes, respectively. .Sh DIAGNOSTICS Modified: head/usr.bin/c89/c89.1 == --- head/usr.bin/c89/c89.1 Tue Dec 28 08:42:12 2010(r216755) +++ head/usr.bin/c89/c89.1 Tue Dec 28 10:08:50 2010(r216756) @@ -94,7 +94,7 @@ absolute pathnames to look in the direct pathname before looking in the usual places. Thus, headers whose names are enclosed in double-quotes -.Pq Qq \& +.Pq Qq will be searched for first in the directory of the file with the .Ic #include @@ -103,7 +103,7 @@ directories named in .Fl I options, and last in the usual places. For headers whose names are enclosed in angle brackets -.Pq Aq \& , +.Pq Aq , the header will be searched for only in directories named in .Fl I Modified: head/usr.bin/c99/c99.1 == --- head/usr.bin/c99/c99.1 Tue Dec 28 08:42:12 2010(r216755) +++ head/usr.bin/c99/c99.1 Tue Dec 28 10:08:50 2010(r216756) @@ -96,7 +96,7 @@ absolute pathnames to look in the direct pathname before looking in the usual places. Thus, headers whose names are enclosed in double-quotes -.Pq Qq \& +.Pq Qq will be searched for first in the directory of the file with the .Ic #include @@ -105,7 +105,7 @@ directories named in .Fl I options, and last in the usual places. For headers whose names are enclosed in angle brackets -.Pq Aq \& , +.Pq Aq , the header will be searched for only in directories named in .Fl I Modified: head/usr.bin/tar/bsdtar.1 == --- head/usr.bin/tar/bsdtar.1 Tue Dec 28 08:42:12 2010(r216755) +++ head/usr.bin/tar/bsdtar.1 Tue Dec 28 10:08:50 2010(r216756) @@ -354,9 +354,9 @@ is run as non-root. .It Fl Fl numeric-owner This is equivalent to .Fl Fl uname -.Qq \& +.Qq .Fl Fl gname -.Qq \& . +.Qq . On extract, it causes user and group names in the archive to be ignored in favor of the numeric user and group ids. On create, it causes user and group names to not be stored Modified: head/usr.sbin/ancontrol/ancontrol.8 == --- head/usr.sbin/ancontrol/ancontrol.8 Tue Dec 28 08:42:12 2010 (r216755) +++ head/usr.sbin/ancontrol/ancontrol.8 Tue Dec 28 10:08:50 2010 (r216756) @@ -308,7 +308,7 @@ Set a WEP key. For 40 bit prefix 10 hex character with 0x. For 128 bit prefix 26 hex character with 0x. Use -.Qq \& +.Qq as the key to erase the key. Supports 4 keys; even numbers are for permanent keys and odd number are for temporary keys. ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r217595 - in head: contrib/groff/tmac gnu/usr.bin/groff/tmac
Author: uqs Date: Wed Jan 19 20:16:38 2011 New Revision: 217595 URL: http://svn.freebsd.org/changeset/base/217595 Log: Update groff manpage and symbols with what has been submitted upstream. Also remove local overrides that are now in the contrib tree. This is a direct commit to contrib/ as we will no longer import any newer groff snapshots, due to licensing issues. MFC after:3 weeks Modified: head/contrib/groff/tmac/doc-common head/contrib/groff/tmac/doc-syms head/contrib/groff/tmac/groff_mdoc.man head/gnu/usr.bin/groff/tmac/mdoc.local Modified: head/contrib/groff/tmac/doc-common == --- head/contrib/groff/tmac/doc-common Wed Jan 19 19:49:48 2011 (r217594) +++ head/contrib/groff/tmac/doc-common Wed Jan 19 20:16:38 2011 (r217595) @@ -454,6 +454,39 @@ .ds doc-operating-system-NetBSD-3.1 3.1 .ds doc-operating-system-NetBSD-4.0 4.0 .ds doc-operating-system-NetBSD-4.0.1 4.0.1 +.ds doc-operating-system-NetBSD-5.0 5.0 +.ds doc-operating-system-NetBSD-5.0.1 5.0.1 +.ds doc-operating-system-NetBSD-5.0.2 5.0.2 +. +.ds doc-operating-system-OpenBSD-2.0 2.0 +.ds doc-operating-system-OpenBSD-2.1 2.1 +.ds doc-operating-system-OpenBSD-2.2 2.2 +.ds doc-operating-system-OpenBSD-2.3 2.3 +.ds doc-operating-system-OpenBSD-2.4 2.4 +.ds doc-operating-system-OpenBSD-2.5 2.5 +.ds doc-operating-system-OpenBSD-2.6 2.6 +.ds doc-operating-system-OpenBSD-2.7 2.7 +.ds doc-operating-system-OpenBSD-2.8 2.8 +.ds doc-operating-system-OpenBSD-2.9 2.9 +.ds doc-operating-system-OpenBSD-3.0 3.0 +.ds doc-operating-system-OpenBSD-3.1 3.1 +.ds doc-operating-system-OpenBSD-3.2 3.2 +.ds doc-operating-system-OpenBSD-3.3 3.3 +.ds doc-operating-system-OpenBSD-3.4 3.4 +.ds doc-operating-system-OpenBSD-3.5 3.5 +.ds doc-operating-system-OpenBSD-3.6 3.6 +.ds doc-operating-system-OpenBSD-3.7 3.7 +.ds doc-operating-system-OpenBSD-3.8 3.8 +.ds doc-operating-system-OpenBSD-3.9 3.9 +.ds doc-operating-system-OpenBSD-4.0 4.0 +.ds doc-operating-system-OpenBSD-4.1 4.1 +.ds doc-operating-system-OpenBSD-4.2 4.2 +.ds doc-operating-system-OpenBSD-4.3 4.3 +.ds doc-operating-system-OpenBSD-4.4 4.4 +.ds doc-operating-system-OpenBSD-4.5 4.5 +.ds doc-operating-system-OpenBSD-4.6 4.6 +.ds doc-operating-system-OpenBSD-4.7 4.7 +.ds doc-operating-system-OpenBSD-4.8 4.8 . .ds doc-operating-system-FreeBSD-1.0 1.0 .ds doc-operating-system-FreeBSD-1.1 1.1 @@ -506,6 +539,10 @@ .ds doc-operating-system-FreeBSD-6.4 6.4 .ds doc-operating-system-FreeBSD-7.0 7.0 .ds doc-operating-system-FreeBSD-7.1 7.1 +.ds doc-operating-system-FreeBSD-7.2 7.2 +.ds doc-operating-system-FreeBSD-7.3 7.3 +.ds doc-operating-system-FreeBSD-8.0 8.0 +.ds doc-operating-system-FreeBSD-8.1 8.1 . .ds doc-operating-system-Darwin-8.0.0 8.0.0 .ds doc-operating-system-Darwin-8.1.0 8.1.0 @@ -540,6 +577,10 @@ .ds doc-operating-system-DragonFly-1.12 1.12 .ds doc-operating-system-DragonFly-1.12.2 1.12.2 .ds doc-operating-system-DragonFly-2.02.0 +.ds doc-operating-system-DragonFly-2.22.2 +.ds doc-operating-system-DragonFly-2.42.4 +.ds doc-operating-system-DragonFly-2.62.6 +.ds doc-operating-system-DragonFly-2.82.8 . .de Os . ds doc-command-name @@ -569,6 +610,14 @@ . el \ .tm mdoc warning: .Os: Unknown FreeBSD version `\$2' (#\n[.c]) . \}\} +. el \{ .ie "\$1"DragonFly" \{\ +.ds doc-operating-system DragonFly +.if \A\$2 \{\ +. ie d doc-operating-system-DragonFly-\$2 \ +.as doc-operating-system \~\*[doc-operating-system-DragonFly-\$2] +. el \ +.tm mdoc warning: .Os: Unknown DragonFly version `\$2' (#\n[.c]) +. \}\} . el \{ .ie "\$1"NetBSD" \{\ .ds doc-operating-system NetBSD .if \A\$2 \{\ @@ -577,6 +626,14 @@ . el \ .tm mdoc warning: .Os: Unknown NetBSD version `\$2' (#\n[.c]) . \}\} +. el \{ .ie "\$1"OpenBSD" \{\ +.ds doc-operating-system OpenBSD +.if \A\$2 \{\ +. ie d doc-operating-system-OpenBSD-\$2 \ +.as doc-operating-system \~\*[doc-operating-system-OpenBSD-\$2] +. el \ +.tm mdoc warning: .Os: Unknown OpenBSD version `\$2' (#\n[.c]) +. \}\} . el \{ .ie "\$1"Darwin" \{\ .ds doc-operating-system Darwin .if \A\$2 \{\ @@ -589,7 +646,7 @@ .ds doc-operating-system \$1 .if !"\$2"" \ . as doc-operating-system " \$2 -. \}\}\}\}\}\} +. \}\}\}\}\}\}\}\} .. . . Modified: head/contrib/groff/tmac/doc-syms == --- head/contrib/groff/tmac/doc-symsWed Jan 19 19:49:48 2011 (r217594) +++ head/contrib/groff/tmac/doc-symsWed Jan 19 20:16:38 2011 (r217595) @@ -637,6 +637,8 @@ .as doc-str-St--p1003.1-2001 " (\*[Lq]\)\*[Px]\*[doc-str-St].1\*[Rq]) .ds doc-str-St--p1003.1-2004 \*[doc-Tn-font-size]\%IEEE\*[doc-str-St] Std 1003.1-2004 .as doc-str-St--p
svn commit: r217596 - head/etc/mtree
Author: uqs Date: Wed Jan 19 20:16:47 2011 New Revision: 217596 URL: http://svn.freebsd.org/changeset/base/217596 Log: Fix a small typo nit Modified: head/etc/mtree/README Modified: head/etc/mtree/README == --- head/etc/mtree/README Wed Jan 19 20:16:38 2011(r217595) +++ head/etc/mtree/README Wed Jan 19 20:16:47 2011(r217596) @@ -36,10 +36,10 @@ and keep them in good working order. mechanism for making better selections for these as it traverses the hierarchy. -The BSD.X.new file should NOT be commited, will be missing the -correct header, and important keywords like ``nochange''. Simply -use the diff for a sanity check to make sure things are in the -correct order and correctly indented. +The BSD.X.new file should NOT be committed, as it will be missing +the correct header, and important keywords like ``nochange''. +Simply use the diff for a sanity check to make sure things are in +the correct order and correctly indented. e) Further sanity checking of the system builds with DESTDIR=/someplace are more complicated, but can often catch missing entries in these ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r217744 - head/lib/libkvm
Author: uqs Date: Sun Jan 23 11:08:28 2011 New Revision: 217744 URL: http://svn.freebsd.org/changeset/base/217744 Log: libkvm code janitoring - make WARNS=6 clean for archs w/o strict alignment requirments - add const, ANSIfy, remove unused vars, cast types for comparison - thanks to differing definitions of VM_MIN_ADDRESS across our archs, we need to trick the compiler to not complain about signedness. We could either fix VM_MIN_ADDRESS to always be a simple integer or make the check conditional on $ARCH. Closes PRs: kern/42386, kern/83364 Reviewed by: bde Modified: head/lib/libkvm/kvm.c head/lib/libkvm/kvm.h head/lib/libkvm/kvm_amd64.c head/lib/libkvm/kvm_arm.c head/lib/libkvm/kvm_cptime.c head/lib/libkvm/kvm_file.c head/lib/libkvm/kvm_getloadavg.c head/lib/libkvm/kvm_getswapinfo.c head/lib/libkvm/kvm_i386.c head/lib/libkvm/kvm_ia64.c head/lib/libkvm/kvm_minidump_amd64.c head/lib/libkvm/kvm_minidump_arm.c head/lib/libkvm/kvm_minidump_i386.c head/lib/libkvm/kvm_minidump_mips.c head/lib/libkvm/kvm_mips.c head/lib/libkvm/kvm_pcpu.c head/lib/libkvm/kvm_powerpc.c head/lib/libkvm/kvm_proc.c head/lib/libkvm/kvm_sparc64.c head/lib/libkvm/kvm_vnet.c Modified: head/lib/libkvm/kvm.c == --- head/lib/libkvm/kvm.c Sun Jan 23 09:50:39 2011(r217743) +++ head/lib/libkvm/kvm.c Sun Jan 23 11:08:28 2011(r217744) @@ -77,8 +77,7 @@ static char sccsid[] = "@(#)kvm.c 8.2 (B int __fdnlist(int, struct nlist *); char * -kvm_geterr(kd) - kvm_t *kd; +kvm_geterr(kvm_t *kd) { return (kd->errbuf); } @@ -103,7 +102,7 @@ _kvm_err(kvm_t *kd, const char *program, (void)fputc('\n', stderr); } else (void)vsnprintf(kd->errbuf, - sizeof(kd->errbuf), (char *)fmt, ap); + sizeof(kd->errbuf), fmt, ap); va_end(ap); } @@ -122,7 +121,7 @@ _kvm_syserr(kvm_t *kd, const char *progr } else { char *cp = kd->errbuf; - (void)vsnprintf(cp, sizeof(kd->errbuf), (char *)fmt, ap); + (void)vsnprintf(cp, sizeof(kd->errbuf), fmt, ap); n = strlen(cp); (void)snprintf(&cp[n], sizeof(kd->errbuf) - n, ": %s", strerror(errno)); @@ -131,25 +130,18 @@ _kvm_syserr(kvm_t *kd, const char *progr } void * -_kvm_malloc(kd, n) - kvm_t *kd; - size_t n; +_kvm_malloc(kvm_t *kd, size_t n) { void *p; if ((p = calloc(n, sizeof(char))) == NULL) - _kvm_err(kd, kd->program, "can't allocate %u bytes: %s", + _kvm_err(kd, kd->program, "can't allocate %zu bytes: %s", n, strerror(errno)); return (p); } static kvm_t * -_kvm_open(kd, uf, mf, flag, errout) - kvm_t *kd; - const char *uf; - const char *mf; - int flag; - char *errout; +_kvm_open(kvm_t *kd, const char *uf, const char *mf, int flag, char *errout) { struct stat st; @@ -242,12 +234,8 @@ failed: } kvm_t * -kvm_openfiles(uf, mf, sf, flag, errout) - const char *uf; - const char *mf; - const char *sf __unused; - int flag; - char *errout; +kvm_openfiles(const char *uf, const char *mf, const char *sf __unused, int flag, +char *errout) { kvm_t *kd; @@ -260,12 +248,8 @@ kvm_openfiles(uf, mf, sf, flag, errout) } kvm_t * -kvm_open(uf, mf, sf, flag, errstr) - const char *uf; - const char *mf; - const char *sf __unused; - int flag; - const char *errstr; +kvm_open(const char *uf, const char *mf, const char *sf __unused, int flag, +const char *errstr) { kvm_t *kd; @@ -280,8 +264,7 @@ kvm_open(uf, mf, sf, flag, errstr) } int -kvm_close(kd) - kvm_t *kd; +kvm_close(kvm_t *kd) { int error = 0; @@ -316,8 +299,9 @@ kvm_fdnlist_prefix(kvm_t *kd, struct nli { struct nlist *n, *np, *p; char *cp, *ce; + const char *ccp; size_t len; - int unresolved; + int slen, unresolved; /* * Calculate the space we need to malloc for nlist and names. @@ -355,13 +339,13 @@ kvm_fdnlist_prefix(kvm_t *kd, struct nli continue; bcopy(p, np, sizeof(struct nlist)); /* Save the new\0orig. name so we can later match it again. */ - len = snprintf(cp, ce - cp, "%s%s%c%s", prefix, + slen = snprintf(cp, ce - cp, "%s%s%c%s", prefix, (prefix[0] != '\0' && p->n_name[0] == '_') ? (p->n_name + 1) : p->n_name, '\0', p->n_name); - if (len >= ce - cp) + if (slen < 0 || slen >= ce - cp) continue; np->n_name = cp; - cp += len + 1; + cp += slen + 1; np++;
svn commit: r217745 - head/lib/libkvm
Author: uqs Date: Sun Jan 23 11:08:36 2011 New Revision: 217745 URL: http://svn.freebsd.org/changeset/base/217745 Log: libkvm: fix process runtime calculation on crashdumps Fix a long standing bug, where the procs ticks where assumed to be in us. Instead, read cpu_tick_frequency from the kernel and use the same logic to convert runtime. This is still too optimistic in that it assumes cpu_tick_frequency is available and fixed. Since this function is only called on crashdumps, I think we can live with that. Testing has shown the values to be correct for different kern.hz inside Virtualbox. Bump WARNS. Alignment issues on some archs mean this is still at 3. Reviewed by: bde Modified: head/lib/libkvm/Makefile head/lib/libkvm/kvm_proc.c Modified: head/lib/libkvm/Makefile == --- head/lib/libkvm/MakefileSun Jan 23 11:08:28 2011(r217744) +++ head/lib/libkvm/MakefileSun Jan 23 11:08:36 2011(r217745) @@ -15,7 +15,7 @@ KVM_ARCH=${MACHINE_ARCH} KVM_ARCH=${MACHINE_CPUARCH} .endif -WARNS?=0 +WARNS?=3 SRCS= kvm.c kvm_${KVM_ARCH}.c kvm_cptime.c kvm_file.c kvm_getloadavg.c \ kvm_getswapinfo.c kvm_pcpu.c kvm_proc.c kvm_vnet.c Modified: head/lib/libkvm/kvm_proc.c == --- head/lib/libkvm/kvm_proc.c Sun Jan 23 11:08:28 2011(r217744) +++ head/lib/libkvm/kvm_proc.c Sun Jan 23 11:08:36 2011(r217745) @@ -88,6 +88,25 @@ __FBSDID("$FreeBSD$"); static int ticks; static int hz; +static uint64_t cpu_tick_frequency; + +/* + * From sys/kern/kern_tc.c. Depends on cpu_tick_frequency, which is + * read/initialized before this function is ever called. + */ +static uint64_t +cputick2usec(uint64_t tick) +{ + + if (cpu_tick_frequency == 0) + return (0); + if (tick > 18446744073709551) /* floor(2^64 / 1000) */ + return (tick / (cpu_tick_frequency / 100)); + else if (tick > 18446744073709) /* floor(2^64 / 100) */ + return ((tick * 1000) / (cpu_tick_frequency / 1000)); + else + return ((tick * 100) / cpu_tick_frequency); +} /* * Read proc's from memory file into buffer bp, which has space to hold @@ -113,7 +132,6 @@ kvm_proclist(kvm_t *kd, int what, int ar struct thread mtd; struct proc proc; struct proc pproc; - struct timeval tv; struct sysentvec sysent; char svname[KI_EMULNAMELEN]; @@ -367,15 +385,7 @@ nopgrp: kp->ki_lockname, LOCKNAMELEN); kp->ki_lockname[LOCKNAMELEN] = 0; } - /* -* XXX: This is plain wrong, rux_runtime has nothing -* to do with struct bintime, rux_runtime is just a 64-bit -* integer counter of cputicks. What we need here is a way -* to convert cputicks to usecs. The kernel does it in -* kern/kern_tc.c, but the function can't be just copied. -*/ - bintime2timeval(&proc.p_rux.rux_runtime, &tv); - kp->ki_runtime = (u_int64_t)tv.tv_sec * 100 + tv.tv_usec; + kp->ki_runtime = cputick2usec(proc.p_rux.rux_runtime); kp->ki_pid = proc.p_pid; kp->ki_siglist = proc.p_siglist; SIGSETOR(kp->ki_siglist, mtd.td_siglist); @@ -542,14 +552,15 @@ kvm_getprocs(kvm_t *kd, int op, int arg, liveout: nprocs = size == 0 ? 0 : size / kd->procbase->ki_structsize; } else { - struct nlist nl[6], *p; + struct nlist nl[7], *p; nl[0].n_name = "_nprocs"; nl[1].n_name = "_allproc"; nl[2].n_name = "_zombproc"; nl[3].n_name = "_ticks"; nl[4].n_name = "_hz"; - nl[5].n_name = 0; + nl[5].n_name = "_cpu_tick_frequency"; + nl[6].n_name = 0; if (kvm_nlist(kd, nl) != 0) { for (p = nl; p->n_type != 0; ++p) @@ -570,6 +581,11 @@ liveout: _kvm_err(kd, kd->program, "can't read hz"); return (0); } + if (KREAD(kd, nl[5].n_value, &cpu_tick_frequency)) { + _kvm_err(kd, kd->program, + "can't read cpu_tick_frequency"); + return (0); + } size = nprocs * sizeof(struct kinfo_proc); kd->procbase = (struct kinfo_proc *)_kvm_malloc(kd, size); if (kd->procbase == 0) ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r217777 - head/lib/libkvm
Author: uqs Date: Mon Jan 24 11:06:40 2011 New Revision: 21 URL: http://svn.freebsd.org/changeset/base/21 Log: libkvm: Unbreak build for powerpc64/powerpc This slipped through my testing due to the recent roto-tiling of the ARCH/TARGET parts that I need to catch up with. Mea culpa. Modified: head/lib/libkvm/kvm_powerpc64.c Modified: head/lib/libkvm/kvm_powerpc64.c == --- head/lib/libkvm/kvm_powerpc64.c Mon Jan 24 10:58:36 2011 (r217776) +++ head/lib/libkvm/kvm_powerpc64.c Mon Jan 24 11:06:40 2011 (r21) @@ -41,6 +41,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include "kvm_private.h" ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r217831 - head/usr.bin/man
Author: uqs Date: Tue Jan 25 18:32:21 2011 New Revision: 217831 URL: http://svn.freebsd.org/changeset/base/217831 Log: Use test(1) operators and test for the catpage not being older than the manpage. Identical mtimes (as generated by buildworld for these files) precluded catpages from working. Approved by: gordon Modified: head/usr.bin/man/man.sh Modified: head/usr.bin/man/man.sh == --- head/usr.bin/man/man.sh Tue Jan 25 17:39:52 2011(r217830) +++ head/usr.bin/man/man.sh Tue Jan 25 18:32:21 2011(r217831) @@ -200,8 +200,8 @@ find_file() { # Usage: is_newer file1 file2 # Returns true if file1 is newer than file2 as calculated by mtime. is_newer() { - if [ $(stat -f %m $1) -gt $(stat -f %m $2) ]; then - decho "mtime: $1 newer than $2" 3 + if ! [ "$1" -ot "$2" ]; then + decho "mtime: $1 not older than $2" 3 return 0 else decho "mtime: $1 older than $2" 3 ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r217890 - head/usr.bin/getopt
Author: uqs Date: Wed Jan 26 18:43:15 2011 New Revision: 217890 URL: http://svn.freebsd.org/changeset/base/217890 Log: Fix typo in example getopt(1) script: $i vs $1 [1] While here apply style hammer. PR: docs/154289 [1] Submitted by: Jamie Landeg Jones MFC after:1 week Modified: head/usr.bin/getopt/getopt.1 Modified: head/usr.bin/getopt/getopt.1 == --- head/usr.bin/getopt/getopt.1Wed Jan 26 18:03:03 2011 (r217889) +++ head/usr.bin/getopt/getopt.1Wed Jan 26 18:43:15 2011 (r217890) @@ -1,6 +1,6 @@ .\" $FreeBSD$ .\" -.Dd July 7, 2010 +.Dd January 26, 2011 .Dt GETOPT 1 .Os .Sh NAME @@ -54,8 +54,7 @@ which requires an argument. args=\`getopt abo: $*\` # you should not use \`getopt abo: "$@"\` since that would parse # the arguments differently from what the set command below does. -if [ $? -ne 0 ] -then +if [ $? -ne 0 ]; then echo 'Usage: ...' exit 2 fi @@ -63,22 +62,23 @@ set \-\- $args # You cannot use the set command with a backquoted getopt directly, # since the exit code from getopt would be shadowed by those of set, # which is zero by definition. -while true; -do - case "$1" - in - \-a|\-b) - echo flag $i set; sflags="${i#-}$sflags"; - shift;; - \-o) - echo oarg is "'"$2"'"; oarg="$2"; shift; - shift;; - \-\-) - shift; break;; +while true; do + case "$1" in + \-a|\-b) + echo "flag $1 set"; sflags="${1#-}$sflags" + shift + ;; + \-o) + echo "oarg is '$2'"; oarg="$2" + shift; shift + ;; + \-\-) + shift; break + ;; esac done -echo single-char flags: "'"$sflags"'" -echo oarg is "'"$oarg"'" +echo "single-char flags: '$sflags'" +echo "oarg is '$oarg'" .Ed .Pp This code will accept any of the following as equivalent: ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r217893 - in head/share/doc/papers: kernmalloc sysperf
Author: uqs Date: Wed Jan 26 19:39:31 2011 New Revision: 217893 URL: http://svn.freebsd.org/changeset/base/217893 Log: Unroll vgrind filter to no longer depend on vgrind(1) during buildworld. The source files haven't been touched in ages and this is unlikely to change in the future. Added: head/share/doc/papers/kernmalloc/appendix.ms (contents, props changed) head/share/doc/papers/sysperf/appendix.ms (contents, props changed) Modified: head/share/doc/papers/kernmalloc/Makefile head/share/doc/papers/sysperf/Makefile Modified: head/share/doc/papers/kernmalloc/Makefile == --- head/share/doc/papers/kernmalloc/Makefile Wed Jan 26 19:24:41 2011 (r217892) +++ head/share/doc/papers/kernmalloc/Makefile Wed Jan 26 19:39:31 2011 (r217893) @@ -10,9 +10,5 @@ USE_EQN= USE_PIC= USE_SOELIM= USE_TBL= -CLEANFILES=appendix.ms - -appendix.ms: appendix.t - ${GRIND} < ${.ALLSRC} > ${.TARGET} .include Added: head/share/doc/papers/kernmalloc/appendix.ms == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/share/doc/papers/kernmalloc/appendix.msWed Jan 26 19:39:31 2011(r217893) @@ -0,0 +1,275 @@ +.\" $FreeBSD$ +.am vS +.. +.am vE +.. +'ss 23 +'ds _ \d\(mi\u +'ps 9z +'vs 10p +'ds - \(mi +'ds / \\h'\\w' 'u-\\w'/'u'/ +'ds /* \\h'\\w' 'u-\\w'/'u'/* +'bd B 3 +'bd S B 3 +'nr cm 0 +'nf +'de vH +'ev 2 +'ft 1 +'sp .35i +'tl '\s14\f3\\*(=F\fP\s0'\\*(=H'\f3\s14\\*(=F\fP\s0' +'sp .25i +'ft 1 +\f2\s12\h'\\n(.lu-\w'\\*(=f'u'\\*(=f\fP\s0\h'|0u' +.sp .05i +'ev +'ds =G \\*(=F +.. +'de vF +'ev 2 +'sp .35i +'ie o 'tl '\f2\\*(=M''Page % of \\*(=G\fP' +'el 'tl '\f2Page % of \\*(=G''\\*(=M\fP' +'bp +'ev +'ft 1 +'if \\n(cm=1 'ft 2 +.. +'de () +'pn 1 +.. +'de +C +'nr cm 1 +'ft 2 +'ds +K +'ds -K +.. +'de -C +'nr cm 0 +'ft 1 +'ds +K \f3 +'ds -K \fP +.. +'+C +'-C +'am +C +'ne 3 +.. +'de FN +\f2\s14\h'\\n(.lu-\w'\\$1'u'\\$1\fP\s0\h'|0u'\c +.if r x .if \\nx .if d =F .tm \\$1 \\*(=F \\n% +'ds =f \&...\\$1 +.. +'de FC +.if r x .if \\nx .if d =F .tm \\$1 \\*(=F \\n% +'ds =f \&...\\$1 +.. +'de -F +'rm =f +.. +'ft 1 +'lg 0 +'-F +.\" Copyright (c) 1988 The Regents of the University of California. +.\" All rights reserved. +.\" +.\" Redistribution and use in source and binary forms, with or without +.\" modification, are permitted provided that the following conditions +.\" are met: +.\" 1. Redistributions of source code must retain the above copyright +.\"notice, this list of conditions and the following disclaimer. +.\" 2. Redistributions in binary form must reproduce the above copyright +.\"notice, this list of conditions and the following disclaimer in the +.\"documentation and/or other materials provided with the distribution. +.\" 3. All advertising materials mentioning features or use of this software +.\"must display the following acknowledgement: +.\"This product includes software developed by the University of +.\"California, Berkeley and its contributors. +.\" 4. Neither the name of the University 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 REGENTS AND CONTRIBUTORS ``AS IS'' AND +.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +.\" SUCH DAMAGE. +.\" +.\"@(#)appendix.t 5.1 (Berkeley) 4/16/91 +.\" +.bp +.H 1 "Appendix A - Implementation Details" +.LP +.nf +.vS +\fI\h'\w' 'u-\w'/'u'/\fP\fI*\fP\c\c +'+C + + \fI*\fP Constants for setting the parameters of the kernel memory allocator\&. + \fI*\fP + \fI*\fP 2 \fI*\fP\fI*\fP MINBUCKET is the smallest unit of memory that will be + \fI*\fP allocated\&. It must be at least large enough to hold a pointer\&. + \fI*\fP + \fI*\fP Units of memory less or equal to MAXALLOCSAVE will permanently + \fI*\fP allocate physical memory; requests for these size pieces of memory + \fI*\fP are quite fast\&. Allocations greater than MAXALLOCSAVE must + \fI*\fP always allocate and free physical memory; requests for these size + \fI*\fP allocations should be done infrequently as they will be slow\&. + \fI*\fP Constraints: CLBYTES <= MAXALLOCSAVE <= 2 \fI*\
svn commit: r218089 - head/share/syscons/keymaps
Author: uqs Date: Sun Jan 30 12:57:10 2011 New Revision: 218089 URL: http://svn.freebsd.org/changeset/base/218089 Log: syscons: install all available kbdmaps eee_nordic.kbd, us.dvorakl.kbd, and us.dvorakr.kbd were not installed. Found by: Neil Short MFC after:3 weeks Modified: head/share/syscons/keymaps/Makefile Modified: head/share/syscons/keymaps/Makefile == --- head/share/syscons/keymaps/Makefile Sun Jan 30 12:14:06 2011 (r218088) +++ head/share/syscons/keymaps/Makefile Sun Jan 30 12:57:10 2011 (r218089) @@ -11,7 +11,7 @@ FILES=INDEX.keymaps \ cz.iso2.kbd \ danish.iso.kbd danish.iso.acc.kbd danish.cp865.kbd \ dutch.iso.acc.kbd \ - el.iso07.kbd \ + eee_nordic.kbd el.iso07.kbd \ estonian.iso.kbd estonian.iso15.kbd estonian.cp850.kbd \ finnish.iso.kbd finnish.cp850.kbd \ fr.iso.kbd fr.iso.acc.kbd fr.dvorak.kbd fr.dvorak.acc.kbd \ @@ -45,8 +45,8 @@ FILES=INDEX.keymaps \ ua.koi8-u.kbd ua.koi8-u.shift.alt.kbd ua.iso5.kbd \ uk.iso.kbd uk.iso-ctrl.kbd uk.cp850.kbd uk.cp850-ctrl.kbd \ uk.dvorak.kbd \ - us.iso.kbd us.dvorak.kbd us.dvorakx.kbd us.emacs.kbd us.pc-ctrl.kbd \ - us.unix.kbd us.iso.acc.kbd + us.iso.kbd us.dvorak.kbd us.dvorakl.kbd us.dvorakr.kbd us.dvorakx.kbd \ + us.emacs.kbd us.pc-ctrl.kbd us.unix.kbd us.iso.acc.kbd FILESDIR= ${SHAREDIR}/syscons/keymaps ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r218196 - head/lib/libkvm
Author: uqs Date: Wed Feb 2 17:01:26 2011 New Revision: 218196 URL: http://svn.freebsd.org/changeset/base/218196 Log: libkvm: fix logic inversion introduced with last commit Reported by: Brandon Gooch Pointy hat to:uqs Modified: head/lib/libkvm/kvm.c Modified: head/lib/libkvm/kvm.c == --- head/lib/libkvm/kvm.c Wed Feb 2 16:35:10 2011(r218195) +++ head/lib/libkvm/kvm.c Wed Feb 2 17:01:26 2011(r218196) @@ -454,11 +454,11 @@ again: p->n_other = 0; p->n_desc = 0; if (_kvm_vnet_initialized(kd, initialize) && - !strcmp(prefix, VNET_SYMPREFIX) == 0) + strcmp(prefix, VNET_SYMPREFIX) == 0) p->n_value = _kvm_vnet_validaddr(kd, lookup.symvalue); else if (_kvm_dpcpu_initialized(kd, initialize) && - !strcmp(prefix, DPCPU_SYMPREFIX) == 0) + strcmp(prefix, DPCPU_SYMPREFIX) == 0) p->n_value = _kvm_dpcpu_validaddr(kd, lookup.symvalue); else ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r218202 - head
Author: uqs Date: Wed Feb 2 21:09:30 2011 New Revision: 218202 URL: http://svn.freebsd.org/changeset/base/218202 Log: Add some obsolete manpages. Modified: head/ObsoleteFiles.inc Modified: head/ObsoleteFiles.inc == --- head/ObsoleteFiles.inc Wed Feb 2 20:00:35 2011(r218201) +++ head/ObsoleteFiles.inc Wed Feb 2 21:09:30 2011(r218202) @@ -38,6 +38,10 @@ # xargs -n1 | sort | uniq -d; # done +# 20110119: Remove SYSCTL_*X* sysctl additions. +OLD_FILES+=usr/share/man/man9/SYSCTL_XINT.9.gz \ +usr/share/man/man9/SYSCTL_XLONG.9.gz + # 20110112: Update dialog to new version, rename old libdialog to libodialog, # removing associated man pages and header files. OLD_FILES+=usr/share/man/man3/draw_shadow.3.gz \ @@ -100,6 +104,8 @@ OLD_FILES+=usr/include/machine/mca.h .endif # 20101020: catch up with vm_page_sleep_if_busy rename OLD_FILES+=usr/share/man/man9/vm_page_sleep_busy.9.gz +# 20101018: taskqueue(9) updates +OLD_FILES+=usr/share/man/man9/taskqueue_find.9.gz # 20101011: removed subblock.h from liblzma OLD_FILES+=usr/include/lzma/subblock.h # 20101002: removed manpath.config ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r218477 - head/etc
Author: uqs Date: Wed Feb 9 10:06:31 2011 New Revision: 218477 URL: http://svn.freebsd.org/changeset/base/218477 Log: Fix termcap entry typo. MFC after:2 weeks Modified: head/etc/termcap.small Modified: head/etc/termcap.small == --- head/etc/termcap.small Wed Feb 9 09:20:27 2011(r218476) +++ head/etc/termcap.small Wed Feb 9 10:06:31 2011(r218477) @@ -171,7 +171,7 @@ cons60l1|cons60-iso8859-1:\ cons60l1-m|cons60-iso8859-1-mono:\ :li#60:tc=cons25l1-m: # 132x25 ISO 8859-1 FreeBSD console -cons25l1-w|:cons25w-iso8859-1:\ +cons25l1-w|cons25w-iso8859-1:\ :co#132:tc=cons25l1: cons30l1-w|cons30w-iso8859-1:\ :co#132:tc=cons30l1: ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r218656 - stable/8/usr.bin/getopt
Author: uqs Date: Sun Feb 13 19:02:26 2011 New Revision: 218656 URL: http://svn.freebsd.org/changeset/base/218656 Log: MFH r217890 Fix typo in example getopt(1) script: $i vs $1 [1] While here apply style hammer. PR: docs/154289 [1] Submitted by: Jamie Landeg Jones Modified: stable/8/usr.bin/getopt/getopt.1 Directory Properties: stable/8/usr.bin/getopt/ (props changed) Modified: stable/8/usr.bin/getopt/getopt.1 == --- stable/8/usr.bin/getopt/getopt.1Sun Feb 13 18:46:34 2011 (r218655) +++ stable/8/usr.bin/getopt/getopt.1Sun Feb 13 19:02:26 2011 (r218656) @@ -1,6 +1,6 @@ .\" $FreeBSD$ .\" -.Dd July 7, 2010 +.Dd January 26, 2011 .Dt GETOPT 1 .Os .Sh NAME @@ -55,8 +55,7 @@ which requires an argument. args=\`getopt abo: $*\` # you should not use \`getopt abo: "$@"\` since that would parse # the arguments differently from what the set command below does. -if [ $? -ne 0 ] -then +if [ $? -ne 0 ]; then echo 'Usage: ...' exit 2 fi @@ -64,22 +63,23 @@ set \-\- $args # You cannot use the set command with a backquoted getopt directly, # since the exit code from getopt would be shadowed by those of set, # which is zero by definition. -while true; -do - case "$1" - in - \-a|\-b) - echo flag $i set; sflags="${i#-}$sflags"; - shift;; - \-o) - echo oarg is "'"$2"'"; oarg="$2"; shift; - shift;; - \-\-) - shift; break;; +while true; do + case "$1" in + \-a|\-b) + echo "flag $1 set"; sflags="${1#-}$sflags" + shift + ;; + \-o) + echo "oarg is '$2'"; oarg="$2" + shift; shift + ;; + \-\-) + shift; break + ;; esac done -echo single-char flags: "'"$sflags"'" -echo oarg is "'"$oarg"'" +echo "single-char flags: '$sflags'" +echo "oarg is '$oarg'" .Ed .Pp This code will accept any of the following as equivalent: ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r218657 - stable/7/usr.bin/getopt
Author: uqs Date: Sun Feb 13 19:07:17 2011 New Revision: 218657 URL: http://svn.freebsd.org/changeset/base/218657 Log: MFH r209772,217890 Fix an error in the EXAMPLES section of getopt(1), which is based on the same fix present in NetBSD. Fix typo in example getopt(1) script: $i vs $1 [1] While here apply style hammer. PR: docs/133118, docs/154289 [1] Submitted by: Oleg A. Mamontov, Jamie Landeg Jones Modified: stable/7/usr.bin/getopt/getopt.1 Directory Properties: stable/7/usr.bin/getopt/ (props changed) Modified: stable/7/usr.bin/getopt/getopt.1 == --- stable/7/usr.bin/getopt/getopt.1Sun Feb 13 19:02:26 2011 (r218656) +++ stable/7/usr.bin/getopt/getopt.1Sun Feb 13 19:07:17 2011 (r218657) @@ -1,6 +1,6 @@ .\" $FreeBSD$ .\" -.Dd April 3, 1999 +.Dd January 26, 2011 .Dt GETOPT 1 .Os .Sh NAME @@ -55,8 +55,7 @@ which requires an argument. args=\`getopt abo: $*\` # you should not use \`getopt abo: "$@"\` since that would parse # the arguments differently from what the set command below does. -if [ $? -ne 0 ] -then +if [ $? -ne 0 ]; then echo 'Usage: ...' exit 2 fi @@ -64,22 +63,23 @@ set \-\- $args # You cannot use the set command with a backquoted getopt directly, # since the exit code from getopt would be shadowed by those of set, # which is zero by definition. -for i -do - case "$i" - in - \-a|\-b) - echo flag $i set; sflags="${i#-}$sflags"; - shift;; - \-o) - echo oarg is "'"$2"'"; oarg="$2"; shift; - shift;; - \-\-) - shift; break;; +while true; do + case "$1" in + \-a|\-b) + echo "flag $1 set"; sflags="${1#-}$sflags" + shift + ;; + \-o) + echo "oarg is '$2'"; oarg="$2" + shift; shift + ;; + \-\-) + shift; break + ;; esac done -echo single-char flags: "'"$sflags"'" -echo oarg is "'"$oarg"'" +echo "single-char flags: '$sflags'" +echo "oarg is '$oarg'" .Ed .Pp This code will accept any of the following as equivalent: ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r218659 - in stable/8: contrib/groff/tmac gnu/usr.bin/groff/tmac
Author: uqs Date: Sun Feb 13 19:15:42 2011 New Revision: 218659 URL: http://svn.freebsd.org/changeset/base/218659 Log: MFH r217595 Update groff manpage and symbols with what has been submitted upstream. Also remove local overrides that are now in the contrib tree. Modified: stable/8/contrib/groff/tmac/doc-common stable/8/contrib/groff/tmac/doc-syms stable/8/contrib/groff/tmac/groff_mdoc.man stable/8/gnu/usr.bin/groff/tmac/mdoc.local Directory Properties: stable/8/contrib/groff/ (props changed) stable/8/gnu/usr.bin/groff/ (props changed) Modified: stable/8/contrib/groff/tmac/doc-common == --- stable/8/contrib/groff/tmac/doc-common Sun Feb 13 19:07:48 2011 (r218658) +++ stable/8/contrib/groff/tmac/doc-common Sun Feb 13 19:15:42 2011 (r218659) @@ -454,6 +454,39 @@ .ds doc-operating-system-NetBSD-3.1 3.1 .ds doc-operating-system-NetBSD-4.0 4.0 .ds doc-operating-system-NetBSD-4.0.1 4.0.1 +.ds doc-operating-system-NetBSD-5.0 5.0 +.ds doc-operating-system-NetBSD-5.0.1 5.0.1 +.ds doc-operating-system-NetBSD-5.0.2 5.0.2 +. +.ds doc-operating-system-OpenBSD-2.0 2.0 +.ds doc-operating-system-OpenBSD-2.1 2.1 +.ds doc-operating-system-OpenBSD-2.2 2.2 +.ds doc-operating-system-OpenBSD-2.3 2.3 +.ds doc-operating-system-OpenBSD-2.4 2.4 +.ds doc-operating-system-OpenBSD-2.5 2.5 +.ds doc-operating-system-OpenBSD-2.6 2.6 +.ds doc-operating-system-OpenBSD-2.7 2.7 +.ds doc-operating-system-OpenBSD-2.8 2.8 +.ds doc-operating-system-OpenBSD-2.9 2.9 +.ds doc-operating-system-OpenBSD-3.0 3.0 +.ds doc-operating-system-OpenBSD-3.1 3.1 +.ds doc-operating-system-OpenBSD-3.2 3.2 +.ds doc-operating-system-OpenBSD-3.3 3.3 +.ds doc-operating-system-OpenBSD-3.4 3.4 +.ds doc-operating-system-OpenBSD-3.5 3.5 +.ds doc-operating-system-OpenBSD-3.6 3.6 +.ds doc-operating-system-OpenBSD-3.7 3.7 +.ds doc-operating-system-OpenBSD-3.8 3.8 +.ds doc-operating-system-OpenBSD-3.9 3.9 +.ds doc-operating-system-OpenBSD-4.0 4.0 +.ds doc-operating-system-OpenBSD-4.1 4.1 +.ds doc-operating-system-OpenBSD-4.2 4.2 +.ds doc-operating-system-OpenBSD-4.3 4.3 +.ds doc-operating-system-OpenBSD-4.4 4.4 +.ds doc-operating-system-OpenBSD-4.5 4.5 +.ds doc-operating-system-OpenBSD-4.6 4.6 +.ds doc-operating-system-OpenBSD-4.7 4.7 +.ds doc-operating-system-OpenBSD-4.8 4.8 . .ds doc-operating-system-FreeBSD-1.0 1.0 .ds doc-operating-system-FreeBSD-1.1 1.1 @@ -506,6 +539,10 @@ .ds doc-operating-system-FreeBSD-6.4 6.4 .ds doc-operating-system-FreeBSD-7.0 7.0 .ds doc-operating-system-FreeBSD-7.1 7.1 +.ds doc-operating-system-FreeBSD-7.2 7.2 +.ds doc-operating-system-FreeBSD-7.3 7.3 +.ds doc-operating-system-FreeBSD-8.0 8.0 +.ds doc-operating-system-FreeBSD-8.1 8.1 . .ds doc-operating-system-Darwin-8.0.0 8.0.0 .ds doc-operating-system-Darwin-8.1.0 8.1.0 @@ -540,6 +577,10 @@ .ds doc-operating-system-DragonFly-1.12 1.12 .ds doc-operating-system-DragonFly-1.12.2 1.12.2 .ds doc-operating-system-DragonFly-2.02.0 +.ds doc-operating-system-DragonFly-2.22.2 +.ds doc-operating-system-DragonFly-2.42.4 +.ds doc-operating-system-DragonFly-2.62.6 +.ds doc-operating-system-DragonFly-2.82.8 . .de Os . ds doc-command-name @@ -569,6 +610,14 @@ . el \ .tm mdoc warning: .Os: Unknown FreeBSD version `\$2' (#\n[.c]) . \}\} +. el \{ .ie "\$1"DragonFly" \{\ +.ds doc-operating-system DragonFly +.if \A\$2 \{\ +. ie d doc-operating-system-DragonFly-\$2 \ +.as doc-operating-system \~\*[doc-operating-system-DragonFly-\$2] +. el \ +.tm mdoc warning: .Os: Unknown DragonFly version `\$2' (#\n[.c]) +. \}\} . el \{ .ie "\$1"NetBSD" \{\ .ds doc-operating-system NetBSD .if \A\$2 \{\ @@ -577,6 +626,14 @@ . el \ .tm mdoc warning: .Os: Unknown NetBSD version `\$2' (#\n[.c]) . \}\} +. el \{ .ie "\$1"OpenBSD" \{\ +.ds doc-operating-system OpenBSD +.if \A\$2 \{\ +. ie d doc-operating-system-OpenBSD-\$2 \ +.as doc-operating-system \~\*[doc-operating-system-OpenBSD-\$2] +. el \ +.tm mdoc warning: .Os: Unknown OpenBSD version `\$2' (#\n[.c]) +. \}\} . el \{ .ie "\$1"Darwin" \{\ .ds doc-operating-system Darwin .if \A\$2 \{\ @@ -589,7 +646,7 @@ .ds doc-operating-system \$1 .if !"\$2"" \ . as doc-operating-system " \$2 -. \}\}\}\}\}\} +. \}\}\}\}\}\}\}\} .. . . Modified: stable/8/contrib/groff/tmac/doc-syms == --- stable/8/contrib/groff/tmac/doc-symsSun Feb 13 19:07:48 2011 (r218658) +++ stable/8/contrib/groff/tmac/doc-symsSun Feb 13 19:15:42 2011 (r218659) @@ -637,6 +637,8 @@ .as doc-str-St--p1003.1-2001 " (\*[Lq]\)\*[Px]\*[doc-str-St].1\*[Rq]) .ds doc-str-St--p1003.1-2004 \*[doc-Tn-font-size]\%IEEE\*[doc-str-St
svn commit: r218671 - in stable/7: contrib/groff/font/devutf8 contrib/groff/tmac gnu/usr.bin/groff/tmac
Author: uqs Date: Sun Feb 13 22:09:33 2011 New Revision: 218671 URL: http://svn.freebsd.org/changeset/base/218671 Log: MFH r202358,217595: Pull up vendor changes. The following local changes made obsolete: - Addition of several FreeBSD versions. - r192561 that attempted to fix UTF-8 issues. Update groff manpage and symbols with what has been submitted upstream. Also remove local overrides that are now in the contrib tree. Modified: stable/7/contrib/groff/font/devutf8/R.proto stable/7/contrib/groff/tmac/an-old.tmac stable/7/contrib/groff/tmac/doc-common stable/7/contrib/groff/tmac/doc-old.tmac stable/7/contrib/groff/tmac/doc-syms stable/7/contrib/groff/tmac/doc.tmac stable/7/contrib/groff/tmac/groff_mdoc.man stable/7/gnu/usr.bin/groff/tmac/mdoc.local (contents, props changed) Directory Properties: stable/7/contrib/groff/ (props changed) stable/7/gnu/usr.bin/groff/ (props changed) Modified: stable/7/contrib/groff/font/devutf8/R.proto == --- stable/7/contrib/groff/font/devutf8/R.proto Sun Feb 13 21:52:26 2011 (r218670) +++ stable/7/contrib/groff/font/devutf8/R.proto Sun Feb 13 22:09:33 2011 (r218671) @@ -726,7 +726,7 @@ st 24 0 0x220B product24 0 0x220F coproduct 24 0 0x2210 sum24 0 0x2211 -\- 24 0 0x002D +\- 24 0 0x2212 mi " -+ 24 0 0x2213 ** 24 0 0x2217 Modified: stable/7/contrib/groff/tmac/an-old.tmac == --- stable/7/contrib/groff/tmac/an-old.tmac Sun Feb 13 21:52:26 2011 (r218670) +++ stable/7/contrib/groff/tmac/an-old.tmac Sun Feb 13 22:09:33 2011 (r218671) @@ -630,6 +630,18 @@ . hy \n[HY] .\} . +.\" For UTF-8, map some characters conservatively for the sake +.\" of easy cut and paste. +. +.if '\*[.T]'utf8' \{\ +. rchar \- - ' ` +. +. char \- \N'45' +. char - \N'45' +. char ' \N'39' +. char ` \N'96' +.\} +. .\" Load local modifications. .mso man.local . Modified: stable/7/contrib/groff/tmac/doc-common == --- stable/7/contrib/groff/tmac/doc-common Sun Feb 13 21:52:26 2011 (r218670) +++ stable/7/contrib/groff/tmac/doc-common Sun Feb 13 22:09:33 2011 (r218671) @@ -46,6 +46,7 @@ .nr %Q 1 .nr %R 1 .nr %T 1 +.nr %U 1 .nr %V 1 .nr Ac 3 .nr Ad 12n @@ -77,6 +78,7 @@ .nr Dq 12n .nr Ds 6n\" many manpages still use this as a -width value .nr Dv 12n +.nr Dx 1 .nr Ec 3 .nr Ef 8n\" ? .nr Ek 8n\" ? @@ -219,6 +221,7 @@ .\" NS doc-document-title .\" NS doc-section .\" NS doc-volume +.\" NS doc-command-name .\" NS .\" NS local variables: .\" NS doc-volume-as-XXX @@ -319,6 +322,7 @@ . ds doc-document-title UNTITLED . ds doc-volume LOCAL . ds doc-section Null +. ds doc-command-name . . if !"\$1"" \ .ds doc-document-title "\$1 @@ -357,6 +361,12 @@ . if !"\$3"" \ .if "\*[doc-volume]"LOCAL" \ . ds doc-volume \$3 +. +. if !\n[cR] \ +.if \n[nl] \{\ + .doc-setup-header +. bp +.\} .. . . @@ -379,6 +389,7 @@ .\" NS .\" NS modifies: .\" NS doc-operating-system +.\" NS doc-command-name .\" NS .\" NS local variables: .\" NS doc-operating-system-XXX-XXX @@ -435,9 +446,47 @@ .ds doc-operating-system-NetBSD-2.0 2.0 .ds doc-operating-system-NetBSD-2.0.1 2.0.1 .ds doc-operating-system-NetBSD-2.0.2 2.0.2 +.ds doc-operating-system-NetBSD-2.0.3 2.0.3 .ds doc-operating-system-NetBSD-2.1 2.1 .ds doc-operating-system-NetBSD-3.0 3.0 +.ds doc-operating-system-NetBSD-3.0.1 3.0.1 +.ds doc-operating-system-NetBSD-3.0.2 3.0.2 +.ds doc-operating-system-NetBSD-3.1 3.1 .ds doc-operating-system-NetBSD-4.0 4.0 +.ds doc-operating-system-NetBSD-4.0.1 4.0.1 +.ds doc-operating-system-NetBSD-5.0 5.0 +.ds doc-operating-system-NetBSD-5.0.1 5.0.1 +.ds doc-operating-system-NetBSD-5.0.2 5.0.2 +. +.ds doc-operating-system-OpenBSD-2.0 2.0 +.ds doc-operating-system-OpenBSD-2.1 2.1 +.ds doc-operating-system-OpenBSD-2.2 2.2 +.ds doc-operating-system-OpenBSD-2.3 2.3 +.ds doc-operating-system-OpenBSD-2.4 2.4 +.ds doc-operating-system-OpenBSD-2.5 2.5 +.ds doc-operating-system-OpenBSD-2.6 2.6 +.ds doc-operating-system-OpenBSD-2.7 2.7 +.ds doc-operating-system-OpenBSD-2.8 2.8 +.ds doc-operating-system-OpenBSD-2.9 2.9 +.ds doc-operating-system-OpenBSD-3.0 3.0 +.ds doc-operating-system-OpenBSD-3.1 3.1 +.ds doc-operating-system-OpenBSD-3.2 3.2 +.ds doc-operating-system-OpenBSD-3.3 3.3 +.ds doc-operating-system-OpenBSD-3.4 3.4 +.ds doc-operating-system-OpenBSD-3.5 3.5 +.ds doc-operating-system-OpenBSD-3.6 3.6 +.ds doc-operating-system-OpenBSD-3.7 3.7 +.ds doc-operating-system-OpenBSD-3.8 3.8 +.ds doc-operating-system-OpenBSD-3.9 3.9 +.ds doc-operating-system-OpenBSD-4.0
svn commit: r218672 - head/gnu/usr.bin/groff/tmac stable/7/gnu/usr.bin/groff/tmac stable/8/gnu/usr.bin/groff/tmac
Author: uqs Date: Sun Feb 13 22:17:49 2011 New Revision: 218672 URL: http://svn.freebsd.org/changeset/base/218672 Log: Add back soon-to-be-release FreeBSD 7.4 which got clobbered in the previous merges. Modified: stable/8/gnu/usr.bin/groff/tmac/mdoc.local Changes in other areas also in this revision: Modified: head/gnu/usr.bin/groff/tmac/mdoc.local stable/7/gnu/usr.bin/groff/tmac/mdoc.local Modified: stable/8/gnu/usr.bin/groff/tmac/mdoc.local == --- stable/8/gnu/usr.bin/groff/tmac/mdoc.local Sun Feb 13 22:09:33 2011 (r218671) +++ stable/8/gnu/usr.bin/groff/tmac/mdoc.local Sun Feb 13 22:17:49 2011 (r218672) @@ -70,6 +70,7 @@ .ds doc-default-operating-system FreeBSD\~8.2 . .\" FreeBSD releases not found in doc-common +.ds doc-operating-system-FreeBSD-7.47.4 .ds doc-operating-system-FreeBSD-8.28.2 .ds doc-operating-system-FreeBSD-8.38.3 .ds doc-operating-system-FreeBSD-9.09.0 ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r218672 - head/gnu/usr.bin/groff/tmac stable/7/gnu/usr.bin/groff/tmac stable/8/gnu/usr.bin/groff/tmac
Author: uqs Date: Sun Feb 13 22:17:49 2011 New Revision: 218672 URL: http://svn.freebsd.org/changeset/base/218672 Log: Add back soon-to-be-release FreeBSD 7.4 which got clobbered in the previous merges. Modified: head/gnu/usr.bin/groff/tmac/mdoc.local Changes in other areas also in this revision: Modified: stable/7/gnu/usr.bin/groff/tmac/mdoc.local stable/8/gnu/usr.bin/groff/tmac/mdoc.local Modified: head/gnu/usr.bin/groff/tmac/mdoc.local == --- head/gnu/usr.bin/groff/tmac/mdoc.local Sun Feb 13 22:09:33 2011 (r218671) +++ head/gnu/usr.bin/groff/tmac/mdoc.local Sun Feb 13 22:17:49 2011 (r218672) @@ -74,6 +74,7 @@ .ds doc-default-operating-system FreeBSD\~9.0 . .\" FreeBSD releases not found in doc-common +.ds doc-operating-system-FreeBSD-7.47.4 .ds doc-operating-system-FreeBSD-8.28.2 .ds doc-operating-system-FreeBSD-9.09.0 . ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r218672 - head/gnu/usr.bin/groff/tmac stable/7/gnu/usr.bin/groff/tmac stable/8/gnu/usr.bin/groff/tmac
Author: uqs Date: Sun Feb 13 22:17:49 2011 New Revision: 218672 URL: http://svn.freebsd.org/changeset/base/218672 Log: Add back soon-to-be-release FreeBSD 7.4 which got clobbered in the previous merges. Modified: stable/7/gnu/usr.bin/groff/tmac/mdoc.local Changes in other areas also in this revision: Modified: head/gnu/usr.bin/groff/tmac/mdoc.local stable/8/gnu/usr.bin/groff/tmac/mdoc.local Modified: stable/7/gnu/usr.bin/groff/tmac/mdoc.local == --- stable/7/gnu/usr.bin/groff/tmac/mdoc.local Sun Feb 13 22:09:33 2011 (r218671) +++ stable/7/gnu/usr.bin/groff/tmac/mdoc.local Sun Feb 13 22:17:49 2011 (r218672) @@ -67,6 +67,7 @@ .ds doc-default-operating-system FreeBSD\~7.4 . .\" FreeBSD releases not found in doc-common +.ds doc-operating-system-FreeBSD-7.47.4 .ds doc-operating-system-FreeBSD-8.28.2 .ds doc-operating-system-FreeBSD-9.09.0 . ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r218882 - stable/8/share/syscons/keymaps
Author: uqs Date: Sun Feb 20 11:29:40 2011 New Revision: 218882 URL: http://svn.freebsd.org/changeset/base/218882 Log: MFH r218089: syscons: install all available kbdmaps eee_nordic.kbd, us.dvorakl.kbd, and us.dvorakr.kbd were not installed. Found by: Neil Short Modified: stable/8/share/syscons/keymaps/Makefile Directory Properties: stable/8/share/syscons/ (props changed) Modified: stable/8/share/syscons/keymaps/Makefile == --- stable/8/share/syscons/keymaps/Makefile Sun Feb 20 09:52:29 2011 (r218881) +++ stable/8/share/syscons/keymaps/Makefile Sun Feb 20 11:29:40 2011 (r218882) @@ -11,7 +11,7 @@ FILES=INDEX.keymaps \ cz.iso2.kbd \ danish.iso.kbd danish.iso.acc.kbd danish.cp865.kbd \ dutch.iso.acc.kbd \ - el.iso07.kbd \ + eee_nordic.kbd el.iso07.kbd \ estonian.iso.kbd estonian.iso15.kbd estonian.cp850.kbd \ finnish.iso.kbd finnish.cp850.kbd \ fr.iso.kbd fr.iso.acc.kbd fr.dvorak.kbd fr.dvorak.acc.kbd \ @@ -45,8 +45,8 @@ FILES=INDEX.keymaps \ ua.koi8-u.kbd ua.koi8-u.shift.alt.kbd ua.iso5.kbd \ uk.iso.kbd uk.iso-ctrl.kbd uk.cp850.kbd uk.cp850-ctrl.kbd \ uk.dvorak.kbd \ - us.iso.kbd us.dvorak.kbd us.dvorakx.kbd us.emacs.kbd us.pc-ctrl.kbd \ - us.unix.kbd us.iso.acc.kbd + us.iso.kbd us.dvorak.kbd us.dvorakl.kbd us.dvorakr.kbd us.dvorakx.kbd \ + us.emacs.kbd us.pc-ctrl.kbd us.unix.kbd us.iso.acc.kbd FILESDIR= ${SHAREDIR}/syscons/keymaps ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r218883 - stable/7/share/syscons/keymaps
Author: uqs Date: Sun Feb 20 11:30:12 2011 New Revision: 218883 URL: http://svn.freebsd.org/changeset/base/218883 Log: MFH r218089: syscons: install all available kbdmaps us.dvorakl.kbd, and us.dvorakr.kbd were not installed. Found by: Neil Short Modified: stable/7/share/syscons/keymaps/Makefile Directory Properties: stable/7/share/syscons/ (props changed) stable/7/share/syscons/keymaps/ (props changed) Modified: stable/7/share/syscons/keymaps/Makefile == --- stable/7/share/syscons/keymaps/Makefile Sun Feb 20 11:29:40 2011 (r218882) +++ stable/7/share/syscons/keymaps/Makefile Sun Feb 20 11:30:12 2011 (r218883) @@ -45,8 +45,8 @@ FILES=INDEX.keymaps \ ua.koi8-u.kbd ua.koi8-u.shift.alt.kbd ua.iso5.kbd \ uk.iso.kbd uk.iso-ctrl.kbd uk.cp850.kbd uk.cp850-ctrl.kbd \ uk.dvorak.kbd \ - us.iso.kbd us.dvorak.kbd us.dvorakx.kbd us.emacs.kbd us.pc-ctrl.kbd \ - us.unix.kbd us.iso.acc.kbd + us.iso.kbd us.dvorak.kbd us.dvorakl.kbd us.dvorakr.kbd us.dvorakx.kbd \ + us.emacs.kbd us.pc-ctrl.kbd us.unix.kbd us.iso.acc.kbd FILESDIR= ${SHAREDIR}/syscons/keymaps ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r218940 - in head: tools usr.bin/xinstall
Author: uqs Date: Tue Feb 22 08:07:17 2011 New Revision: 218940 URL: http://svn.freebsd.org/changeset/base/218940 Log: Teach tools/install.sh the -d directory mode. Sync up with flags understood by install(1) [1], and make install(1)'s usage output not hide the clearly documented -M flag. PR: misc/154739 [1] Submitted by: arundel Modified: head/tools/install.sh head/usr.bin/xinstall/xinstall.c Modified: head/tools/install.sh == --- head/tools/install.sh Tue Feb 22 07:49:51 2011(r218939) +++ head/tools/install.sh Tue Feb 22 08:07:17 2011(r218940) @@ -29,14 +29,30 @@ # $FreeBSD$ # parse install's options and ignore them completely. +dirmode="" while [ $# -gt 0 ]; do case $1 in --[bCcMpSs]) shift;; +-d) dirmode="YES"; shift;; +-[bCcMpSsv]) shift;; -[Bfgmo]) shift; shift;; -[Bfgmo]*) shift;; *) break; esac done +if [ "$#" -eq 0 ]; then + echo "$0: no files/dirs specified" >&2 + exit 1 +fi + +if [ -z "$dirmode" ] && [ "$#" -lt 2 ]; then + echo "$0: no target specified" >&2 + exit 1 +fi + # the remaining arguments are assumed to be files/dirs only. -exec install -p $* +if [ -z "$dirmode" ]; then + exec install -p "$@" +else + exec install -d "$@" +fi Modified: head/usr.bin/xinstall/xinstall.c == --- head/usr.bin/xinstall/xinstall.cTue Feb 22 07:49:51 2011 (r218939) +++ head/usr.bin/xinstall/xinstall.cTue Feb 22 08:07:17 2011 (r218940) @@ -769,9 +769,9 @@ static void usage(void) { (void)fprintf(stderr, -"usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]\n" +"usage: install [-bCcMpSsv] [-B suffix] [-f flags] [-g group] [-m mode]\n" " [-o owner] file1 file2\n" -" install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]\n" +" install [-bCcMpSsv] [-B suffix] [-f flags] [-g group] [-m mode]\n" " [-o owner] file1 ... fileN directory\n" " install -d [-v] [-g group] [-m mode] [-o owner] directory ...\n"); exit(EX_USAGE); ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r218941 - in head: . etc etc/mtree share/doc tools/build/mk tools/build/options usr.bin
Author: uqs Date: Tue Feb 22 08:13:49 2011 New Revision: 218941 URL: http://svn.freebsd.org/changeset/base/218941 Log: Flesh out WITHOUT_GROFF support to DTRT. A full featured groff is required during buildworld, so build it always and don't rely on it being present on the host system. vgrind(1) is tightly coupled to a roff processor and will not be built/installed when groff is disabled. Also much of the roff'ed documentation under share/doc will not be built/installed when WITHOUT_GROFF is defined. Reviewed by: ru (partial) Added: head/etc/mtree/BSD.groff.dist (contents, props changed) Modified: head/Makefile.inc1 head/etc/Makefile head/etc/mtree/BSD.usr.dist head/etc/mtree/Makefile head/share/doc/Makefile head/tools/build/mk/OptionalObsoleteFiles.inc head/tools/build/options/WITHOUT_GROFF head/usr.bin/Makefile Modified: head/Makefile.inc1 == --- head/Makefile.inc1 Tue Feb 22 08:07:17 2011(r218940) +++ head/Makefile.inc1 Tue Feb 22 08:13:49 2011(r218941) @@ -213,13 +213,15 @@ BOOTSTRAPPING?= 0 CROSSENV= MAKEOBJDIRPREFIX=${OBJTREE} \ MACHINE_ARCH=${TARGET_ARCH} \ MACHINE=${TARGET} \ - CPUTYPE=${TARGET_CPUTYPE} \ - GROFF_BIN_PATH=${WORLDTMP}/legacy/usr/bin \ - GROFF_FONT_PATH=${WORLDTMP}/legacy/usr/share/groff_font \ - GROFF_TMAC_PATH=${WORLDTMP}/legacy/usr/share/tmac + CPUTYPE=${TARGET_CPUTYPE} .if ${OSRELDATE} < 700044 CROSSENV+= AR=gnu-ar RANLIB=gnu-ranlib .endif +.if ${MK_GROFF} != "no" +CROSSENV+= GROFF_BIN_PATH=${WORLDTMP}/legacy/usr/bin \ + GROFF_FONT_PATH=${WORLDTMP}/legacy/usr/share/groff_font \ + GROFF_TMAC_PATH=${WORLDTMP}/legacy/usr/share/tmac +.endif # bootstrap-tools stage BMAKEENV= INSTALL="sh ${.CURDIR}/tools/install.sh" \ @@ -364,6 +366,10 @@ _worldtmp: .endfor mtree -deU -f ${.CURDIR}/etc/mtree/BSD.usr.dist \ -p ${WORLDTMP}/legacy/usr >/dev/null +.if ${MK_GROFF} != "no" + mtree -deU -f ${.CURDIR}/etc/mtree/BSD.groff.dist \ + -p ${WORLDTMP}/legacy/usr >/dev/null +.endif mtree -deU -f ${.CURDIR}/etc/mtree/BSD.usr.dist \ -p ${WORLDTMP}/usr >/dev/null mtree -deU -f ${.CURDIR}/etc/mtree/BSD.include.dist \ @@ -937,11 +943,10 @@ _strfile= games/fortune/strfile .if ${MK_CXX} != "no" _gperf=gnu/usr.bin/gperf -.if ${BOOTSTRAPPING} < 74 -_groff=gnu/usr.bin/groff -.else -_groff=gnu/usr.bin/groff/tmac .endif + +.if ${MK_GROFF} != "no" +_groff=gnu/usr.bin/groff .endif .if ${BOOTSTRAPPING} >= 700044 && ${BOOTSTRAPPING} < 800022 Modified: head/etc/Makefile == --- head/etc/Makefile Tue Feb 22 08:07:17 2011(r218940) +++ head/etc/Makefile Tue Feb 22 08:13:49 2011(r218941) @@ -271,6 +271,9 @@ distrib-dirs: mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BIND.chroot.dist \ -p ${DESTDIR}/var/named .endif +.if ${MK_GROFF} != "no" + mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.groff.dist -p ${DESTDIR}/usr +.endif .if ${MK_SENDMAIL} != "no" mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.sendmail.dist -p ${DESTDIR}/ .endif Added: head/etc/mtree/BSD.groff.dist == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/etc/mtree/BSD.groff.dist Tue Feb 22 08:13:49 2011 (r218941) @@ -0,0 +1,48 @@ +# $FreeBSD$ +# +# Please see the file src/etc/mtree/README before making changes to this file. +# + +/set type=dir uname=root gname=wheel mode=0755 +. +share +groff_font +devX100 +.. +devX100-12 +.. +devX75 +.. +devX75-12 +.. +devascii +.. +devcp1047 +.. +devdvi +.. +devhtml +.. +devkoi8-r +.. +devlatin1 +.. +devlbp +.. +devlj4 +.. +devps +.. +devutf8 +.. +.. +me +.. +tmac +mdoc +.. +mm +.. +.. +.. +.. Modified: head/etc/mtree/BSD.usr.dist == --- head/etc/mtree/BSD.usr.dist Tue Feb 22 08:07:17 2011(r218940) +++ head/etc/mtree/BSD.usr.dist Tue Feb 22 08:13:49 2011(r218941) @@ -310,36 +310,6 @@ fortune .. .. -groff_font -devX100 -
svn commit: r218942 - head/tools/build/options
Author: uqs Date: Tue Feb 22 08:20:12 2011 New Revision: 218942 URL: http://svn.freebsd.org/changeset/base/218942 Log: The default for FDT has changed, rename the flag/options file. Added: head/tools/build/options/WITHOUT_FDT - copied, changed from r218940, head/tools/build/options/WITH_FDT Deleted: head/tools/build/options/WITH_FDT Copied and modified: head/tools/build/options/WITHOUT_FDT (from r218940, head/tools/build/options/WITH_FDT) == --- head/tools/build/options/WITH_FDT Tue Feb 22 08:07:17 2011 (r218940, copy source) +++ head/tools/build/options/WITHOUT_FDTTue Feb 22 08:20:12 2011 (r218942) @@ -1,3 +1,3 @@ .\" $FreeBSD$ -Set to build Flattened Device Tree support as part of the base system. This +Set to not build Flattened Device Tree support as part of the base system. This includes the device tree compiler (dtc) and libfdt support library. ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r218943 - head/share/man/man5
Author: uqs Date: Tue Feb 22 08:21:22 2011 New Revision: 218943 URL: http://svn.freebsd.org/changeset/base/218943 Log: Regen src.conf(5) after r218941 and r218942. Modified: head/share/man/man5/src.conf.5 Modified: head/share/man/man5/src.conf.5 == --- head/share/man/man5/src.conf.5 Tue Feb 22 08:20:12 2011 (r218942) +++ head/share/man/man5/src.conf.5 Tue Feb 22 08:21:22 2011 (r218943) @@ -1,7 +1,7 @@ .\" DO NOT EDIT-- this file is automatically generated. .\" from FreeBSD: head/tools/build/options/makeman 188848 2009-02-20 11:09:55Z mtm .\" $FreeBSD$ -.Dd November 14, 2010 +.Dd February 22, 2011 .Dt SRC.CONF 5 .Os .Sh NAME @@ -303,9 +303,9 @@ dynamically. .\" from FreeBSD: head/tools/build/options/WITHOUT_EXAMPLES 156938 2006-03-21 09:06:24Z ru Set to avoid installing examples to .Pa /usr/share/examples/ . -.It Va WITH_FDT -.\" from FreeBSD: head/tools/build/options/WITH_FDT 208537 2010-05-25 15:12:21Z raj -Set to build Flattened Device Tree support as part of the base system. This +.It Va WITHOUT_FDT +.\" from FreeBSD: head/tools/build/options/WITHOUT_FDT 218942 2011-02-22 08:20:12Z uqs +Set to not build Flattened Device Tree support as part of the base system. This includes the device tree compiler (dtc) and libfdt support library. .It Va WITHOUT_FLOPPY .\" from FreeBSD: head/tools/build/options/WITHOUT_FLOPPY 183306 2008-09-23 16:15:42Z sam @@ -359,9 +359,13 @@ Set to not build GPIB bus support. .\" from FreeBSD: head/tools/build/options/WITH_GPIO 213463 2010-10-05 22:26:01Z gonzo Set to build gpioctl(8) as part of the base system. .It Va WITHOUT_GROFF -.\" from FreeBSD: head/tools/build/options/WITHOUT_GROFF 156932 2006-03-21 07:50:50Z ru +.\" from FreeBSD: head/tools/build/options/WITHOUT_GROFF 218941 2011-02-22 08:13:49Z uqs Set to not build -.Xr groff 1 . +.Xr groff 1 +and +.Xr vgrind 1 . +You should consider installing the textproc/groff port to not break +.Xr man 1 . .It Va WITHOUT_GSSAPI .\" from FreeBSD: head/tools/build/options/WITHOUT_GSSAPI 174548 2007-12-12 16:39:32Z ru Set to not build libgssapi. ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r218980 - stable/8/etc
Author: uqs Date: Wed Feb 23 20:24:10 2011 New Revision: 218980 URL: http://svn.freebsd.org/changeset/base/218980 Log: MFH r218477: Fix termcap entry typo. Modified: stable/8/etc/termcap.small Directory Properties: stable/8/etc/ (props changed) Modified: stable/8/etc/termcap.small == --- stable/8/etc/termcap.small Wed Feb 23 20:13:07 2011(r218979) +++ stable/8/etc/termcap.small Wed Feb 23 20:24:10 2011(r218980) @@ -171,7 +171,7 @@ cons60l1|cons60-iso8859-1:\ cons60l1-m|cons60-iso8859-1-mono:\ :li#60:tc=cons25l1-m: # 132x25 ISO 8859-1 FreeBSD console -cons25l1-w|:cons25w-iso8859-1:\ +cons25l1-w|cons25w-iso8859-1:\ :co#132:tc=cons25l1: cons30l1-w|cons30w-iso8859-1:\ :co#132:tc=cons30l1: ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r218981 - stable/7/etc
Author: uqs Date: Wed Feb 23 20:24:20 2011 New Revision: 218981 URL: http://svn.freebsd.org/changeset/base/218981 Log: MFH r218477: Fix termcap entry typo. Modified: stable/7/etc/termcap.small Directory Properties: stable/7/etc/ (props changed) Modified: stable/7/etc/termcap.small == --- stable/7/etc/termcap.small Wed Feb 23 20:24:10 2011(r218980) +++ stable/7/etc/termcap.small Wed Feb 23 20:24:20 2011(r218981) @@ -171,7 +171,7 @@ cons60l1|cons60-iso8859-1:\ cons60l1-m|cons60-iso8859-1-mono:\ :li#60:tc=cons25l1-m: # 132x25 ISO 8859-1 FreeBSD console -cons25l1-w|:cons25w-iso8859-1:\ +cons25l1-w|cons25w-iso8859-1:\ :co#132:tc=cons25l1: cons30l1-w|cons30w-iso8859-1:\ :co#132:tc=cons30l1: ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r223483 - in head/sys/modules: cxgbe/if_cxgbe nfscl nfscommon
Author: uqs Date: Thu Jun 23 20:31:52 2011 New Revision: 223483 URL: http://svn.freebsd.org/changeset/base/223483 Log: Fix make buildworld -DMODULES_WITH_WORLD Sort opt_ srcs Modified: head/sys/modules/cxgbe/if_cxgbe/Makefile head/sys/modules/nfscl/Makefile head/sys/modules/nfscommon/Makefile Modified: head/sys/modules/cxgbe/if_cxgbe/Makefile == --- head/sys/modules/cxgbe/if_cxgbe/MakefileThu Jun 23 17:42:27 2011 (r223482) +++ head/sys/modules/cxgbe/if_cxgbe/MakefileThu Jun 23 20:31:52 2011 (r223483) @@ -10,6 +10,7 @@ SRCS = t4_main.c t4_sge.c t4_l2t.c SRCS+= t4_hw.c SRCS+= device_if.h bus_if.h pci_if.h SRCS+= opt_inet.h +SRCS+= opt_ofed.h CFLAGS+= -I${CXGBE} Modified: head/sys/modules/nfscl/Makefile == --- head/sys/modules/nfscl/Makefile Thu Jun 23 17:42:27 2011 (r223482) +++ head/sys/modules/nfscl/Makefile Thu Jun 23 20:31:52 2011 (r223483) @@ -14,13 +14,14 @@ SRCS= vnode_if.h \ nfs_clsubs.c \ nfs_clvfsops.c \ nfs_clvnops.c \ + opt_bootp.h \ opt_inet.h \ opt_inet6.h \ - opt_bootp.h \ - opt_nfsroot.h \ + opt_kdtrace.h \ + opt_kgssapi.h \ opt_nfs.h \ - opt_ufs.h \ - opt_kgssapi.h + opt_nfsroot.h \ + opt_ufs.h .if !defined(KERNBUILDDIR) NFS_INET?= 1 # 0/1 - requires INET to be configured in kernel Modified: head/sys/modules/nfscommon/Makefile == --- head/sys/modules/nfscommon/Makefile Thu Jun 23 17:42:27 2011 (r223482) +++ head/sys/modules/nfscommon/Makefile Thu Jun 23 20:31:52 2011 (r223483) @@ -7,9 +7,10 @@ SRCS= vnode_if.h \ nfs_commonkrpc.c \ nfs_commonport.c \ nfs_commonsubs.c \ - opt_kgssapi.h \ - opt_ufs.h \ opt_inet6.h \ - opt_nfs.h + opt_kdtrace.h \ + opt_kgssapi.h \ + opt_nfs.h \ + opt_ufs.h .include ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r223715 - head/contrib/gcc
Author: uqs Date: Fri Jul 1 20:45:55 2011 New Revision: 223715 URL: http://svn.freebsd.org/changeset/base/223715 Log: - Fix typo in check_for_nested_with_variably_modified present - Implement -Wvariable-decl. - Port -Wtrampolines support from gcc3. (all three also via OpenBSD) PR: gnu/127136, gnu/157019 Submitted by: Henning Petersen, Pedro Giffuni MFC after:6 weeks Modified: head/contrib/gcc/c-decl.c head/contrib/gcc/c.opt head/contrib/gcc/common.opt head/contrib/gcc/tree-nested.c Modified: head/contrib/gcc/c-decl.c == --- head/contrib/gcc/c-decl.c Fri Jul 1 19:23:25 2011(r223714) +++ head/contrib/gcc/c-decl.c Fri Jul 1 20:45:55 2011(r223715) @@ -4340,6 +4340,8 @@ grokdeclarator (const struct c_declarato pedwarn ("ISO C90 forbids variable-size array %qs", name); } + if (warn_variable_decl) + warning (0, "variable-sized array %qs", name); } if (integer_zerop (size)) Modified: head/contrib/gcc/c.opt == --- head/contrib/gcc/c.opt Fri Jul 1 19:23:25 2011(r223714) +++ head/contrib/gcc/c.opt Fri Jul 1 20:45:55 2011(r223715) @@ -404,6 +404,10 @@ Wtraditional C ObjC Var(warn_traditional) Warn about features not present in traditional C +Wtrampolines +Common Var(warn_trampolines) +Warn when trampolines are emitted + Wtrigraphs C ObjC C++ ObjC++ Warn if trigraphs are encountered that might affect the meaning of the program Modified: head/contrib/gcc/common.opt == --- head/contrib/gcc/common.opt Fri Jul 1 19:23:25 2011(r223714) +++ head/contrib/gcc/common.opt Fri Jul 1 20:45:55 2011(r223715) @@ -189,6 +189,10 @@ Wunused-variable Common Var(warn_unused_variable) Warn when a variable is unused +Wvariable-decl +Common Var(warn_variable_decl) +Warn about variable-sized declarations. + Wvolatile-register-var Common Var(warn_register_var) Warn when a register variable is declared volatile Modified: head/contrib/gcc/tree-nested.c == --- head/contrib/gcc/tree-nested.c Fri Jul 1 19:23:25 2011 (r223714) +++ head/contrib/gcc/tree-nested.c Fri Jul 1 20:45:55 2011 (r223715) @@ -750,7 +750,7 @@ check_for_nested_with_variably_modified for (cgn = cgn->nested; cgn ; cgn = cgn->next_nested) { for (arg = DECL_ARGUMENTS (cgn->decl); arg; arg = TREE_CHAIN (arg)) - if (variably_modified_type_p (TREE_TYPE (arg), 0), orig_fndecl) + if (variably_modified_type_p (TREE_TYPE (arg), orig_fndecl)) return true; if (check_for_nested_with_variably_modified (cgn->decl, orig_fndecl)) @@ -1621,6 +1621,10 @@ convert_tramp_reference (tree *tp, int * it doesn't need a trampoline. */ if (DECL_NO_STATIC_CHAIN (decl)) break; + if (warn_trampolines) + { + warning(0, "local function address taken needing trampoline generation"); + } /* Lookup the immediate parent of the callee, as that's where we need to insert the trampoline. */ ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r223724 - in stable/8: tools usr.bin/xinstall
Author: uqs Date: Sat Jul 2 16:20:58 2011 New Revision: 223724 URL: http://svn.freebsd.org/changeset/base/223724 Log: MFH r218940: Teach tools/install.sh the -d directory mode. Sync up with flags understood by install(1) [1], and make install(1)'s usage output not hide the clearly documented -M flag. Modified: stable/8/tools/install.sh stable/8/usr.bin/xinstall/xinstall.c Directory Properties: stable/8/tools/ (props changed) stable/8/usr.bin/xinstall/ (props changed) Modified: stable/8/tools/install.sh == --- stable/8/tools/install.sh Sat Jul 2 15:41:22 2011(r223723) +++ stable/8/tools/install.sh Sat Jul 2 16:20:58 2011(r223724) @@ -29,14 +29,30 @@ # $FreeBSD$ # parse install's options and ignore them completely. +dirmode="" while [ $# -gt 0 ]; do case $1 in --[bCcMpSs]) shift;; +-d) dirmode="YES"; shift;; +-[bCcMpSsv]) shift;; -[Bfgmo]) shift; shift;; -[Bfgmo]*) shift;; *) break; esac done +if [ "$#" -eq 0 ]; then + echo "$0: no files/dirs specified" >&2 + exit 1 +fi + +if [ -z "$dirmode" ] && [ "$#" -lt 2 ]; then + echo "$0: no target specified" >&2 + exit 1 +fi + # the remaining arguments are assumed to be files/dirs only. -exec install -p $* +if [ -z "$dirmode" ]; then + exec install -p "$@" +else + exec install -d "$@" +fi Modified: stable/8/usr.bin/xinstall/xinstall.c == --- stable/8/usr.bin/xinstall/xinstall.cSat Jul 2 15:41:22 2011 (r223723) +++ stable/8/usr.bin/xinstall/xinstall.cSat Jul 2 16:20:58 2011 (r223724) @@ -774,9 +774,9 @@ void usage() { (void)fprintf(stderr, -"usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]\n" +"usage: install [-bCcMpSsv] [-B suffix] [-f flags] [-g group] [-m mode]\n" " [-o owner] file1 file2\n" -" install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]\n" +" install [-bCcMpSsv] [-B suffix] [-f flags] [-g group] [-m mode]\n" " [-o owner] file1 ... fileN directory\n" " install -d [-v] [-g group] [-m mode] [-o owner] directory ...\n"); exit(EX_USAGE); ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
Re: svn commit: r223715 - head/contrib/gcc
On Mon, 04.07.2011 at 13:24:37 +0200, Ed Schouten wrote: > Hi Uli, > > * Ulrich Spoerlein , 20110701 22:45: > > - Port -Wtrampolines support from gcc3. > > Some testing here seems to suggest it's quite hard to write code that > triggers this warning, while still passing WARNS >= 3. But still, I > think it would be good to add this flag to bsd.sys.mk. > > I've run a `make universe' and it can be added to WARNS >= 2 without > breaking the build. Maybe we should add it after we have MFCd this > commit back to 8? There are a couple of ports that are using our make and some of them might even set WARNS, so I fear this would also need an exp-run to see if there's any fallout there. Otherwise, I think it's a good idea. Which WARNS<2 parts of our tree would trigger that warning, btw? Uli % find . -name Makefile\* -exec grep WARNS {} + ./benchmarks/raidtest/files/Makefile:WARNS?=6 ./databases/sybtcl/files/Makefile.bsd:WARNS?= 2 ./graphics/gdtclft/files/Makefile.bsd:WARNS = 2 ./graphics/libfpx/files/Makefile.bsd:WARNS= 3 ./graphics/libfpx/Makefile:# (based on WARNS= in particular) instead of being influenced by ./shells/v7sh/files/Makefile:WARNS?=6 ./sysutils/ffs2recov/Makefile: WARNS=0 ./sysutils/k8temp/Makefile: @${REINPLACE_CMD} -e 's|WARNS=.*[6-9]|WARNS=5|g' ${WRKSRC}/Makefile ./sysutils/k8temp/Makefile:WARNS= 6 ./sysutils/lookupd/Makefile:MAKE_ENV= WARNS=0 ./textproc/tclExpat/files/Makefile:WARNS= 3 ./www/mod_dtcl/files/Makefile.bsd:WARNS=2 PS: That does not include ports, using our make and setting WARNS in the Makefile that they ship with ... pgpDqhqgJC6KI.pgp Description: PGP signature
svn commit: r224584 - in head: contrib/bsnmp/snmp_usm usr.bin/unzip usr.sbin/bsnmpd/tools/bsnmptools
Author: uqs Date: Mon Aug 1 22:21:18 2011 New Revision: 224584 URL: http://svn.freebsd.org/changeset/base/224584 Log: Fix broken mdoc. Found by: manlint Approved by: re (kib) Modified: head/contrib/bsnmp/snmp_usm/snmp_usm.3 head/usr.bin/unzip/unzip.1 head/usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.1 Modified: head/contrib/bsnmp/snmp_usm/snmp_usm.3 == --- head/contrib/bsnmp/snmp_usm/snmp_usm.3 Mon Aug 1 21:12:41 2011 (r224583) +++ head/contrib/bsnmp/snmp_usm/snmp_usm.3 Mon Aug 1 22:21:18 2011 (r224584) @@ -115,7 +115,7 @@ allowed. This column is used to create new USM user entries or delete existing ones from the table. .El -.EL +.El .Sh FILES .Bl -tag -width "X" .It Pa /usr/share/snmp/defs/usm_tree.def Modified: head/usr.bin/unzip/unzip.1 == --- head/usr.bin/unzip/unzip.1 Mon Aug 1 21:12:41 2011(r224583) +++ head/usr.bin/unzip/unzip.1 Mon Aug 1 22:21:18 2011(r224584) @@ -112,7 +112,7 @@ and .Fl u may be specified. If specified filename is -.Va Qq - , +.Qq - , then data is read from .Va stdin . .Sh ENVIRONMENT Modified: head/usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.1 == --- head/usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.1Mon Aug 1 21:12:41 2011(r224583) +++ head/usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.1Mon Aug 1 22:21:18 2011(r224584) @@ -126,7 +126,7 @@ The options are as follows (not all appl .Bl -tag -width ".It Fl D Ar options" .It Fl A Ar options Authentication options to use with SNMPv3 PDUs -.Bl -tag -width +.Bl -tag -width \& .It Cm proto=[md5|sha] The protocol to use when calculating the PDU message digest. .It Cm key=authkey @@ -147,7 +147,7 @@ The maximum allowed length is 65535 acco Information (SMIv2). .It Fl C Ar options The context to query with SNMPv3 PDUs. -.Bl -tag -width +.Bl -tag -width \& .It Cm context=name The context name. Default is "" (empty). .It Cm context-engine=engine-id @@ -172,19 +172,21 @@ Print a short help text with default val Load each MIB description file from the given list to translate symbolic object names to their numerical representation and vice versa. Use the other options to obtain a non-default behaviour: -.Bl -tag -width +.Bl -tag -width \& .It Cm cut=OID Specifies the initial OID that was cut by .Xr gensnmpdef 1 when producing the MIB description file. The default value is .iso(1).org(3).dod(6) which is what should have been -used for all the files installed under /usr/share/snmp/defs/ . -Use this only if you generated your own files, providing a '-c' option to +used for all the files installed under /usr/share/snmp/defs. +Use this only if you generated your own files, providing a +.Fl c +option to .Xr gensnmpdef 1 . .It Cm path=filedir The directory where files in the list will be searched. The default is -.Pa /usr/share/snmp/defs/ . +.Pa /usr/share/snmp/defs Ns . .It Cm file=filelist A comma separated list of files to which the two options above will apply. .El @@ -206,7 +208,7 @@ will search to translate numerical OIDs Multiple files can be provided either giving this option multiple times or a comma separated list of file names. If a filename begins with a letter the default directory, -/usr/share/snmp/defs/ , +/usr/share/snmp/defs, will be searched. .It Fl K Calculate and display the localized authentication and privacy keys @@ -239,7 +241,7 @@ representation and the value. In addition to the short output verbose prints the type before the value. .It Fl P Ar options Privacy options to use with SNMPv3 PDUs -.Bl -tag -width +.Bl -tag -width \& .It Cm proto=[aes|des] The protocol to use when encypting/decrypting SNMPv3 PDU data. .It Cm key=privkey @@ -257,9 +259,11 @@ not respond after the first try. Default is 3. .It Fl s Ar [trans::] Ns Ar [community@] Ns Ar [server] Ns Ar [:port] Each of the server specification components is optional but at least one -has to be provided if '-s' option is used. +has to be provided if +.Ar s +option is used. The server specification is constructed in the following manner: -.Bl -tag -width +.Bl -tag -width \& .It Cm trans:: Transport type may be one of udp, stream or dgram. If this option is not provided an udp inet/inet6 socket will be used, which @@ -277,11 +281,16 @@ and the default "private" community stri .It Cm server This might be either the IP address or the hostname where the agent is listening. -The default is 'localhost'. +The default is +.Qq localhost . .It Cm port The destination port to send the requests to. This is useful if the SNMP agent listens on a non-default port. -Default is given by the 'snmp' entry in /etc/services, port 161. +Default is given by the +.Qq snmp +entry in +.Pa /etc/services , +port 161.
svn commit: r224600 - stable/8/contrib/gcc
Author: uqs Date: Tue Aug 2 09:06:04 2011 New Revision: 224600 URL: http://svn.freebsd.org/changeset/base/224600 Log: MFH r223715 - Fix typo in check_for_nested_with_variably_modified - Implement -Wvariable-decl. - Port -Wtrampolines support from gcc3. (all three also via OpenBSD) PR: gnu/127136, gnu/157019 Submitted by: Henning Petersen, Pedro Giffuni Modified: stable/8/contrib/gcc/c-decl.c stable/8/contrib/gcc/c.opt stable/8/contrib/gcc/common.opt stable/8/contrib/gcc/tree-nested.c Directory Properties: stable/8/contrib/gcc/ (props changed) Modified: stable/8/contrib/gcc/c-decl.c == --- stable/8/contrib/gcc/c-decl.c Tue Aug 2 08:31:23 2011 (r224599) +++ stable/8/contrib/gcc/c-decl.c Tue Aug 2 09:06:04 2011 (r224600) @@ -4340,6 +4340,8 @@ grokdeclarator (const struct c_declarato pedwarn ("ISO C90 forbids variable-size array %qs", name); } + if (warn_variable_decl) + warning (0, "variable-sized array %qs", name); } if (integer_zerop (size)) Modified: stable/8/contrib/gcc/c.opt == --- stable/8/contrib/gcc/c.opt Tue Aug 2 08:31:23 2011(r224599) +++ stable/8/contrib/gcc/c.opt Tue Aug 2 09:06:04 2011(r224600) @@ -404,6 +404,10 @@ Wtraditional C ObjC Var(warn_traditional) Warn about features not present in traditional C +Wtrampolines +Common Var(warn_trampolines) +Warn when trampolines are emitted + Wtrigraphs C ObjC C++ ObjC++ Warn if trigraphs are encountered that might affect the meaning of the program Modified: stable/8/contrib/gcc/common.opt == --- stable/8/contrib/gcc/common.opt Tue Aug 2 08:31:23 2011 (r224599) +++ stable/8/contrib/gcc/common.opt Tue Aug 2 09:06:04 2011 (r224600) @@ -189,6 +189,10 @@ Wunused-variable Common Var(warn_unused_variable) Warn when a variable is unused +Wvariable-decl +Common Var(warn_variable_decl) +Warn about variable-sized declarations. + Wvolatile-register-var Common Var(warn_register_var) Warn when a register variable is declared volatile Modified: stable/8/contrib/gcc/tree-nested.c == --- stable/8/contrib/gcc/tree-nested.c Tue Aug 2 08:31:23 2011 (r224599) +++ stable/8/contrib/gcc/tree-nested.c Tue Aug 2 09:06:04 2011 (r224600) @@ -750,7 +750,7 @@ check_for_nested_with_variably_modified for (cgn = cgn->nested; cgn ; cgn = cgn->next_nested) { for (arg = DECL_ARGUMENTS (cgn->decl); arg; arg = TREE_CHAIN (arg)) - if (variably_modified_type_p (TREE_TYPE (arg), 0), orig_fndecl) + if (variably_modified_type_p (TREE_TYPE (arg), orig_fndecl)) return true; if (check_for_nested_with_variably_modified (cgn->decl, orig_fndecl)) @@ -1621,6 +1621,10 @@ convert_tramp_reference (tree *tp, int * it doesn't need a trampoline. */ if (DECL_NO_STATIC_CHAIN (decl)) break; + if (warn_trampolines) + { + warning(0, "local function address taken needing trampoline generation"); + } /* Lookup the immediate parent of the callee, as that's where we need to insert the trampoline. */ ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r224639 - head/usr.bin/catman
Author: uqs Date: Wed Aug 3 19:26:57 2011 New Revision: 224639 URL: http://svn.freebsd.org/changeset/base/224639 Log: Unbreak catman(1) by removing calls to col(1). col(1) was mangling the SGR escapes and is not strictly required. See r222647, r222648, r222650, and r222653 for more details. Reported by: delphij Reviewed by: ru Approved by: re (kib) MFC after:3 weeks Modified: head/usr.bin/catman/catman.c Modified: head/usr.bin/catman/catman.c == --- head/usr.bin/catman/catman.cWed Aug 3 19:14:22 2011 (r224638) +++ head/usr.bin/catman/catman.cWed Aug 3 19:26:57 2011 (r224639) @@ -432,7 +432,7 @@ process_page(char *mandir, char *src, ch } snprintf(tmp_file, sizeof tmp_file, "%s.tmp", cat); snprintf(cmd, sizeof cmd, - "%scat %s | tbl | nroff -T%s -man | col | %s > %s.tmp", + "%scat %s | tbl | nroff -T%s -man | %s > %s.tmp", zipped == BZIP ? BZ2CAT_CMD : zipped == GZIP ? GZCAT_CMD : "", src, nroff_device, zipped == BZIP ? BZ2_CMD : zipped == GZIP ? GZ_CMD : "cat", ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
svn commit: r224657 - head/usr.bin/catman
Author: uqs Date: Fri Aug 5 15:07:28 2011 New Revision: 224657 URL: http://svn.freebsd.org/changeset/base/224657 Log: For POLA reasons, disable SGR sequences in catpages. See r222647 for a similar change to bsd.doc.mk after SGR was generally turned on in groff. Suggested by: ru Approved by: re (kib) Modified: head/usr.bin/catman/catman.c Modified: head/usr.bin/catman/catman.c == --- head/usr.bin/catman/catman.cFri Aug 5 15:02:17 2011 (r224656) +++ head/usr.bin/catman/catman.cFri Aug 5 15:07:28 2011 (r224657) @@ -432,7 +432,7 @@ process_page(char *mandir, char *src, ch } snprintf(tmp_file, sizeof tmp_file, "%s.tmp", cat); snprintf(cmd, sizeof cmd, - "%scat %s | tbl | nroff -T%s -man | %s > %s.tmp", + "%scat %s | tbl | nroff -c -T%s -man | %s > %s.tmp", zipped == BZIP ? BZ2CAT_CMD : zipped == GZIP ? GZCAT_CMD : "", src, nroff_device, zipped == BZIP ? BZ2_CMD : zipped == GZIP ? GZ_CMD : "cat", ___ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"