Re: svn commit: r213534 - in head: contrib/llvm contrib/llvm/autoconf contrib/llvm/include/llvm/ADT contrib/llvm/lib/CodeGen contrib/llvm/lib/Target/ARM contrib/llvm/lib/Target/X86 contrib/llvm/tools/
On Thu, Oct 07, 2010 at 08:31:07PM +, Dimitry Andric wrote: Author: dim Date: Thu Oct 7 20:31:07 2010 New Revision: 213534 URL: http://svn.freebsd.org/changeset/base/213534 Log: Upgrade Clang and LLVM to the 2.8 release. See here for release notes: http://llvm.org/releases/2.8/docs/ReleaseNotes.html now for the next update in 1-2 months which will bring us the llvm integrated assembler! ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r213543 - head/sys/fs/msdosfs
Author: kib Date: Fri Oct 8 07:17:22 2010 New Revision: 213543 URL: http://svn.freebsd.org/changeset/base/213543 Log: Add a comment describing the reason for calling cache_purge(fvp). Requested by: danfe MFC after:6 days Modified: head/sys/fs/msdosfs/msdosfs_vnops.c Modified: head/sys/fs/msdosfs/msdosfs_vnops.c == --- head/sys/fs/msdosfs/msdosfs_vnops.c Fri Oct 8 01:54:27 2010 (r213542) +++ head/sys/fs/msdosfs/msdosfs_vnops.c Fri Oct 8 07:17:22 2010 (r213543) @@ -1258,6 +1258,13 @@ abortit: } } + /* +* The msdosfs lookup is case insensitive. Several aliases may +* be inserted for a single directory entry. As a consequnce, +* name cache purge done by lookup for fvp when DELETE op for +* namei is specified, might be not enough to expunge all +* namecache entries that were installed for this direntry. +*/ cache_purge(fvp); VOP_UNLOCK(fvp, 0); bad: ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r213544 - head/sys/amd64/linux32
Author: kib Date: Fri Oct 8 07:18:44 2010 New Revision: 213544 URL: http://svn.freebsd.org/changeset/base/213544 Log: Fix typo. Submitted by: arundel MFC after:3 days Modified: head/sys/amd64/linux32/syscalls.master Modified: head/sys/amd64/linux32/syscalls.master == --- head/sys/amd64/linux32/syscalls.master Fri Oct 8 07:17:22 2010 (r213543) +++ head/sys/amd64/linux32/syscalls.master Fri Oct 8 07:18:44 2010 (r213544) @@ -416,7 +416,7 @@ 245AUE_NULLUNIMPL linux_io_setup 246AUE_NULLUNIMPL linux_io_destroy 247AUE_NULLUNIMPL linux_io_getevents -248AUE_NULLUNIMPL inux_io_submit +248AUE_NULLUNIMPL linux_io_submit 249AUE_NULLUNIMPL linux_io_cancel 250AUE_NULLSTD { int linux_fadvise64(void); } 251AUE_NULLUNIMPL ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r213545 - head/sys/amd64/linux32
Author: kib Date: Fri Oct 8 07:19:05 2010 New Revision: 213545 URL: http://svn.freebsd.org/changeset/base/213545 Log: Regen. Modified: head/sys/amd64/linux32/linux32_proto.h head/sys/amd64/linux32/linux32_syscall.h head/sys/amd64/linux32/linux32_sysent.c Modified: head/sys/amd64/linux32/linux32_proto.h == --- head/sys/amd64/linux32/linux32_proto.h Fri Oct 8 07:18:44 2010 (r213544) +++ head/sys/amd64/linux32/linux32_proto.h Fri Oct 8 07:19:05 2010 (r213545) @@ -3,7 +3,7 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: head/sys/amd64/linux32/syscalls.master 210431 2010-07-23 21:30:33Z kib + * created from FreeBSD: head/sys/amd64/linux32/syscalls.master 213544 2010-10-08 07:18:44Z kib */ #ifndef _LINUX_SYSPROTO_H_ Modified: head/sys/amd64/linux32/linux32_syscall.h == --- head/sys/amd64/linux32/linux32_syscall.hFri Oct 8 07:18:44 2010 (r213544) +++ head/sys/amd64/linux32/linux32_syscall.hFri Oct 8 07:19:05 2010 (r213545) @@ -3,7 +3,7 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: head/sys/amd64/linux32/syscalls.master 210431 2010-07-23 21:30:33Z kib + * created from FreeBSD: head/sys/amd64/linux32/syscalls.master 213544 2010-10-08 07:18:44Z kib */ #defineLINUX_SYS_exit 1 Modified: head/sys/amd64/linux32/linux32_sysent.c == --- head/sys/amd64/linux32/linux32_sysent.c Fri Oct 8 07:18:44 2010 (r213544) +++ head/sys/amd64/linux32/linux32_sysent.c Fri Oct 8 07:19:05 2010 (r213545) @@ -3,7 +3,7 @@ * * DO NOT EDIT-- this file is automatically generated. * $FreeBSD$ - * created from FreeBSD: head/sys/amd64/linux32/syscalls.master 210431 2010-07-23 21:30:33Z kib + * created from FreeBSD: head/sys/amd64/linux32/syscalls.master 213544 2010-10-08 07:18:44Z kib */ #include opt_compat.h @@ -267,7 +267,7 @@ struct sysent linux_sysent[] = { { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 245 = linux_io_setup */ { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 246 = linux_io_destroy */ { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 247 = linux_io_getevents */ - { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 248 = inux_io_submit */ + { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 248 = linux_io_submit */ { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 249 = linux_io_cancel */ { 0, (sy_call_t *)linux_fadvise64, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC },/* 250 = linux_fadvise64 */ { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 251 = */ ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
Re: svn commit: r213543 - head/sys/fs/msdosfs
On Fri, Oct 08, 2010 at 07:17:22AM +, Konstantin Belousov wrote: Author: kib Date: Fri Oct 8 07:17:22 2010 New Revision: 213543 URL: http://svn.freebsd.org/changeset/base/213543 Log: Add a comment describing the reason for calling cache_purge(fvp). Requested by: danfe Thanks, but that was just a kind suggestion. :-) ./danfe ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r213567 - head/contrib/ee
Author: ed Date: Fri Oct 8 09:43:06 2010 New Revision: 213567 URL: http://svn.freebsd.org/changeset/base/213567 Log: Import ee 1.5.2 into HEAD. PR: bin/145921 MFC after:2 weeks Modified: head/contrib/ee/ee.c head/contrib/ee/ee_version.h Directory Properties: head/contrib/ee/ (props changed) Modified: head/contrib/ee/ee.c == --- head/contrib/ee/ee.cFri Oct 8 09:35:23 2010(r213566) +++ head/contrib/ee/ee.cFri Oct 8 09:43:06 2010(r213567) @@ -50,7 +50,7 @@ | proprietary information which is protected by | copyright. All rights are reserved. | - | $Header: /home/hugh/sources/old_ae/RCS/ee.c,v 1.102 2009/02/17 03:22:50 hugh Exp hugh $ + | $Header: /home/hugh/sources/old_ae/RCS/ee.c,v 1.104 2010/06/04 01:55:31 hugh Exp hugh $ | */ @@ -62,7 +62,7 @@ char *ee_copyright_message = #include ee_version.h -char *version = @(#) ee, version EE_VERSION $Revision: 1.102 $; +char *version = @(#) ee, version EE_VERSION $Revision: 1.104 $; #ifdef NCURSE #include new_curse.h @@ -307,7 +307,7 @@ void undel_word P_((void)); void del_line P_((void)); void undel_line P_((void)); void adv_word P_((void)); -void move_rel P_((char *direction, int lines)); +void move_rel P_((char direction, int lines)); void eol P_((void)); void bol P_((void)); void adv_line P_((void)); @@ -816,7 +816,7 @@ int disp; tp++; temp2++; } - if (scr_horz horiz_offset) + if ((scr_horz horiz_offset) (horiz_offset 0)) { horiz_offset -= 8; midscreen(scr_vert, point); @@ -824,7 +824,6 @@ int disp; } else if (curr_line-prev_line != NULL) { - absolute_lin--; text_changes = TRUE; left(disp); /* go to previous line */ temp_buff = curr_line-next_line; @@ -1220,11 +1219,11 @@ control() /* use control for commands else if (in == 13) /* control m*/ insert_line(TRUE); else if (in == 14) /* control n*/ - move_rel(d, max(5, (last_line - 5))); + move_rel('d', max(5, (last_line - 5))); else if (in == 15) /* control o*/ eol(); else if (in == 16) /* control p*/ - move_rel(u, max(5, (last_line - 5))); + move_rel('u', max(5, (last_line - 5))); else if (in == 17) /* control q*/ ; else if (in == 18) /* control r*/ @@ -1275,7 +1274,7 @@ emacs_control() else if (in == 6) /* control f*/ right(TRUE); else if (in == 7) /* control g*/ - move_rel(u, max(5, (last_line - 5))); + move_rel('u', max(5, (last_line - 5))); else if (in == 8) /* control h*/ delete(TRUE); else if (in == 9) /* control i*/ @@ -1314,7 +1313,7 @@ emacs_control() else if (in == 21) /* control u*/ bottom(); else if (in == 22) /* control v*/ - move_rel(d, max(5, (last_line - 5))); + move_rel('d', max(5, (last_line - 5))); else if (in == 23) /* control w*/ del_word(); else if (in == 24) /* control x*/ @@ -1549,9 +1548,9 @@ function_key()/* process function ke else if (in == KEY_DOWN) down(); else if (in == KEY_NPAGE) - move_rel(d, max( 5, (last_line - 5))); + move_rel('d', max( 5, (last_line - 5))); else if (in == KEY_PPAGE) - move_rel(u, max(5, (last_line - 5))); + move_rel('u', max(5, (last_line - 5))); else if (in == KEY_DL) del_line(); else if (in == KEY_DC) @@ -1989,7 +1988,7 @@ char *cmd_str; int number; int i; char *ptr; - char *direction = d; + char direction = '\0'; struct text *t_line; ptr = cmd_str; @@ -2006,12 +2005,12 @@ char *cmd_str; { i++; t_line = t_line-prev_line; - direction = u; + direction = 'u'; } while ((t_line-line_number number) (t_line-next_line != NULL)) { i++; - direction = d; + direction = 'd'; t_line = t_line-next_line; } if ((i 30) (i 0)) @@ -2020,7 +2019,7 @@ char *cmd_str; } else { - if (!strcmp(direction, d)) + if (direction != 'd') { absolute_lin += i; } @@
svn commit: r213568 - head/sys/boot/i386/gptboot
Author: pho Date: Fri Oct 8 10:27:52 2010 New Revision: 213568 URL: http://svn.freebsd.org/changeset/base/213568 Log: Ensure that a make from sys/boot does not pick up include files from /usr/include. Discussed with:kib Modified: head/sys/boot/i386/gptboot/Makefile Modified: head/sys/boot/i386/gptboot/Makefile == --- head/sys/boot/i386/gptboot/Makefile Fri Oct 8 09:43:06 2010 (r213567) +++ head/sys/boot/i386/gptboot/Makefile Fri Oct 8 10:27:52 2010 (r213568) @@ -36,6 +36,7 @@ CFLAGS= -DBOOTPROG=\gptboot\ \ -I${.CURDIR}/../common \ -I${.CURDIR}/../btx/lib -I. \ -I${.CURDIR}/../boot2 \ + -I${.CURDIR}/../../.. \ -Wall -Waggregate-return -Wbad-function-cast -Wcast-align \ -Wmissing-declarations -Wmissing-prototypes -Wnested-externs \ -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings \ ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
Re: svn commit: r213544 - head/sys/amd64/linux32
On Fri Oct 8 10, Konstantin Belousov wrote: Author: kib Date: Fri Oct 8 07:18:44 2010 New Revision: 213544 URL: http://svn.freebsd.org/changeset/base/213544 Log: Fix typo. Submitted by: arundel MFC after: 3 days Modified: head/sys/amd64/linux32/syscalls.master Modified: head/sys/amd64/linux32/syscalls.master == --- head/sys/amd64/linux32/syscalls.masterFri Oct 8 07:17:22 2010 (r213543) +++ head/sys/amd64/linux32/syscalls.masterFri Oct 8 07:18:44 2010 (r213544) @@ -416,7 +416,7 @@ 245 AUE_NULLUNIMPL linux_io_setup 246 AUE_NULLUNIMPL linux_io_destroy 247 AUE_NULLUNIMPL linux_io_getevents -248 AUE_NULLUNIMPL inux_io_submit +248 AUE_NULLUNIMPL linux_io_submit 249 AUE_NULLUNIMPL linux_io_cancel 250 AUE_NULLSTD { int linux_fadvise64(void); } 251 AUE_NULLUNIMPL thanks a lot. :) -- a13x ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
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(params[1], host.hostnam jailparam_get(params, 2, 0); hostname = jailparam_export(params[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-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-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
Re: svn commit: r213539 - head/lib/libthr
On Fri, 8 Oct 2010 01:47:14 + (UTC) David Xu davi...@freebsd.org wrote: Author: davidxu Date: Fri Oct 8 01:47:14 2010 New Revision: 213539 URL: http://svn.freebsd.org/changeset/base/213539 Log: unwind.h was imported, gcc directory is no longer needed. Modified: head/lib/libthr/Makefile Modified: head/lib/libthr/Makefile == --- head/lib/libthr/Makefile Fri Oct 8 01:17:22 2010 (r213538) +++ head/lib/libthr/MakefileFri Oct 8 01:47:14 2010 (r213539) @@ -27,7 +27,6 @@ CFLAGS+=-I${.CURDIR}/../libthread_db CFLAGS+=-Winline .ifndef NO_THREAD_UNWIND_STACK -CFLAGS+=-I${.CURDIR}/../../contrib/gcc -fexceptions CFLAGS+=-D_PTHREAD_FORCED_UNWIND .endif Thank you for pushing this to completion. -- Alexander Kabaev signature.asc Description: PGP signature
svn commit: r213574 - in head/tools/tools/netrate: juggle tcpconnect
Author: pluknet Date: Fri Oct 8 14:31:49 2010 New Revision: 213574 URL: http://svn.freebsd.org/changeset/base/213574 Log: Clean up tools in tools/tools/netrate. - tcpconnect incorrectly uses err() in usage() with errx() semantics [1] That produces dirty error message: tcpconnect: usage: tcpconnect [ip]: Unknown error: 0 - 64-bit aware fixes in printf() usage [2] o netrate/juggle: time_t has arch-dependent size o netrate/tcpconnect: don't assume %ll has always 64bit. PR: 146088 [1], 146086 [2] (modified) Approved by: kib (mentor) MFC after:1 week Modified: head/tools/tools/netrate/juggle/juggle.c head/tools/tools/netrate/tcpconnect/tcpconnect.c Modified: head/tools/tools/netrate/juggle/juggle.c == --- head/tools/tools/netrate/juggle/juggle.cFri Oct 8 12:40:16 2010 (r213573) +++ head/tools/tools/netrate/juggle/juggle.cFri Oct 8 14:31:49 2010 (r213574) @@ -28,6 +28,7 @@ #include sys/types.h #include sys/socket.h +#include sys/stdint.h #include sys/time.h #include sys/utsname.h #include sys/wait.h @@ -557,7 +558,8 @@ main(int argc, char *argv[]) if (j != 0) printf(, ); scale_timespec(juggle_results[j], p); - printf(%u.%09lu, juggle_results[j].tv_sec, + printf(%jd.%09lu, + (intmax_t)juggle_results[j].tv_sec, juggle_results[j].tv_nsec); } printf(\n); @@ -567,7 +569,8 @@ main(int argc, char *argv[]) if (j != 0) printf(, ); scale_timespec(process_results[j], p); - printf(%u.%09lu, process_results[j].tv_sec, + printf(%jd.%09lu, +(intmax_t)process_results[j].tv_sec, process_results[j].tv_nsec); } printf(\n); @@ -577,7 +580,8 @@ main(int argc, char *argv[]) if (j != 0) printf(, ); scale_timespec(thread_results[j], p); - printf(%u.%09lu, thread_results[j].tv_sec, + printf(%jd.%09lu, + (intmax_t)thread_results[j].tv_sec, thread_results[j].tv_nsec); } printf(\n); Modified: head/tools/tools/netrate/tcpconnect/tcpconnect.c == --- head/tools/tools/netrate/tcpconnect/tcpconnect.cFri Oct 8 12:40:16 2010(r213573) +++ head/tools/tools/netrate/tcpconnect/tcpconnect.cFri Oct 8 14:31:49 2010(r213574) @@ -31,6 +31,7 @@ #include sys/ioctl.h #include sys/select.h #include sys/socket.h +#include sys/stdint.h #include netinet/in.h @@ -110,7 +111,7 @@ main(int argc, char *argv[]) u_int64_t counter; if (argc != 2) - err(-1, usage: tcpconnect [ip]); + errx(-1, usage: tcpconnect [ip]); bzero(sin, sizeof(sin)); sin.sin_family = AF_INET; @@ -128,8 +129,8 @@ main(int argc, char *argv[]) if (try_connect(sin) == 0) counter++; } - printf(%llu count\n, counter); - printf(%llu connections/second\n, counter / SECONDS); + printf(%ju count\n, (uintmax_t)counter); + printf(%ju connections/second\n, (uintmax_t)(counter / SECONDS)); return (0); } ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r213575 - head/sys/sun4v/include
Author: marius Date: Fri Oct 8 14:50:58 2010 New Revision: 213575 URL: http://svn.freebsd.org/changeset/base/213575 Log: Just use the sparc64 version of this header rather than duplicating it. Modified: head/sys/sun4v/include/endian.h Modified: head/sys/sun4v/include/endian.h == --- head/sys/sun4v/include/endian.h Fri Oct 8 14:31:49 2010 (r213574) +++ head/sys/sun4v/include/endian.h Fri Oct 8 14:50:58 2010 (r213575) @@ -1,122 +1,7 @@ /*- - * Copyright (c) 1987, 1991, 1993 - * The Regents of the University of California. All rights reserved. + * This file is in the public domain. * - * 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. - * 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. - * - * @(#)endian.h8.1 (Berkeley) 6/10/93 * $FreeBSD$ */ -#ifndef _MACHINE_ENDIAN_H_ -#define_MACHINE_ENDIAN_H_ - -#include sys/cdefs.h -#include sys/_types.h - -/* - * Define the order of 32-bit words in 64-bit words. - */ -#define_QUAD_HIGHWORD 0 -#define_QUAD_LOWWORD 1 - -/* - * Definitions for byte order, according to byte significance from low - * address to high. - */ -#define_LITTLE_ENDIAN 1234/* LSB first: i386, vax */ -#define_BIG_ENDIAN 4321/* MSB first: 68000, ibm, net */ -#define_PDP_ENDIAN 3412/* LSB first in word, MSW first in long */ - -#define_BYTE_ORDER _BIG_ENDIAN - -/* - * Deprecated variants that don't have enough underscores to be useful in more - * strict namespaces. - */ -#if __BSD_VISIBLE -#defineLITTLE_ENDIAN _LITTLE_ENDIAN -#defineBIG_ENDIAN _BIG_ENDIAN -#definePDP_ENDIAN _PDP_ENDIAN -#defineBYTE_ORDER _BYTE_ORDER -#endif - -#if defined(__GNUCLIKE_BUILTIN_CONSTANT_P) defined(__OPTIMIZE__) -#define__is_constant(x)__builtin_constant_p(x) -#else -#define__is_constant(x)0 -#endif - -#define__bswap16_const(x) x) 8) 0xff) | \ - (((x) 8) 0xff00)) -#define__bswap32_const(x) x) 24) 0xff) | \ - (((x) 8) 0xff00) | (((x) 8) 0xff) | \ - (((x) 24) 0xff00)) -#define__bswap64_const(x) x) 56) 0xff) | \ - (((x) 40) 0xff00) | (((x) 24) 0xff) | \ - (((x) 8) 0xff00) | \ - (((x) 8) ((__uint64_t)0xff 32)) | \ - (((x) 24) ((__uint64_t)0xff 40)) | \ - (((x) 40) ((__uint64_t)0xff 48)) | \ - (((x) 56) ((__uint64_t)0xff 56))) - -static __inline __uint16_t -__bswap16_var(__uint16_t _x) -{ - - return ((_x 8) | ((_x 8) 0xff00)); -} - -static __inline __uint32_t -__bswap32_var(__uint32_t _x) -{ - - return ((_x 24) | ((_x 8) 0xff00) | ((_x 8) 0xff) | - ((_x 24) 0xff00)); -} - -static __inline __uint64_t -__bswap64_var(__uint64_t _x) -{ - - return ((_x 56) | ((_x 40) 0xff00) | ((_x 24) 0xff) | - ((_x 8) 0xff00) | ((_x 8) ((__uint64_t)0xff 32)) | - ((_x 24) ((__uint64_t)0xff 40)) | - ((_x 40) ((__uint64_t)0xff 48)) | ((_x 56))); -} - -#define__bswap16(x)(__is_constant(x) ? __bswap16_const(x) : \ - __bswap16_var(x)) -#define__bswap32(x)(__is_constant(x) ? __bswap32_const(x) : \ - __bswap32_var(x)) -#define
svn commit: r213578 - head/sys/sparc64/include
Author: marius Date: Fri Oct 8 14:59:45 2010 New Revision: 213578 URL: http://svn.freebsd.org/changeset/base/213578 Log: In the replacement text of the __bswapN_const() macros cast the argument to the expected type so they work like the corresponding __bswapN_var() functions and the compiler doesn't complain when arguments of different width are passed. Modified: head/sys/sparc64/include/endian.h Modified: head/sys/sparc64/include/endian.h == --- head/sys/sparc64/include/endian.h Fri Oct 8 14:59:14 2010 (r213577) +++ head/sys/sparc64/include/endian.h Fri Oct 8 14:59:45 2010 (r213578) @@ -69,18 +69,20 @@ #define__is_constant(x)0 #endif -#define__bswap16_const(x) x) 8) 0xff) | \ - (((x) 8) 0xff00)) -#define__bswap32_const(x) x) 24) 0xff) | \ - (((x) 8) 0xff00) | (((x) 8) 0xff) | \ - (((x) 24) 0xff00)) -#define__bswap64_const(x) x) 56) 0xff) | \ - (((x) 40) 0xff00) | (((x) 24) 0xff) | \ - (((x) 8) 0xff00) | \ - (((x) 8) ((__uint64_t)0xff 32)) | \ - (((x) 24) ((__uint64_t)0xff 40)) | \ - (((x) 40) ((__uint64_t)0xff 48)) | \ - (((x) 56) ((__uint64_t)0xff 56))) +#define__bswap16_const(x) __uint16_t)(x) 8) 0xff) | \ + (((__uint16_t)(x) 8) 0xff00)) +#define__bswap32_const(x) __uint32_t)(x) 24) 0xff) | \ + (((__uint32_t)(x) 8) 0xff00) | \ + (((__uint32_t)(x) 8) 0xff) |\ + (((__uint32_t)(x) 24) 0xff00)) +#define__bswap64_const(x) __uint64_t)(x) 56) 0xff) | \ + (((__uint64_t)(x) 40) 0xff00) |\ + (((__uint64_t)(x) 24) 0xff) | \ + (((__uint64_t)(x) 8) 0xff00) | \ + (((__uint64_t)(x) 8) ((__uint64_t)0xff 32)) | \ + (((__uint64_t)(x) 24) ((__uint64_t)0xff 40)) | \ + (((__uint64_t)(x) 40) ((__uint64_t)0xff 48)) | \ + (((__uint64_t)(x) 56) ((__uint64_t)0xff 56))) static __inline __uint16_t __bswap16_var(__uint16_t _x) ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r213579 - head/sbin/hastd
Author: pjd Date: Fri Oct 8 15:02:15 2010 New Revision: 213579 URL: http://svn.freebsd.org/changeset/base/213579 Log: We close the event socketpair early in the mainloop to prevent spaming with error messages, so when we clean up after child process, we have to check if the event socketpair is still there. Submitted by: Mikolaj Golub to.my.troc...@gmail.com MFC after:3 days Modified: head/sbin/hastd/control.c Modified: head/sbin/hastd/control.c == --- head/sbin/hastd/control.c Fri Oct 8 14:59:45 2010(r213578) +++ head/sbin/hastd/control.c Fri Oct 8 15:02:15 2010(r213579) @@ -58,8 +58,10 @@ child_cleanup(struct hast_resource *res) proto_close(res-hr_ctrl); res-hr_ctrl = NULL; - proto_close(res-hr_event); - res-hr_event = NULL; + if (res-hr_event != NULL) { + proto_close(res-hr_event); + res-hr_event = NULL; + } res-hr_workerpid = 0; } ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r213580 - head/sbin/hastd
Author: pjd Date: Fri Oct 8 15:05:39 2010 New Revision: 213580 URL: http://svn.freebsd.org/changeset/base/213580 Log: We can't zero out ggio request, as we have some fields in there we initialize once during start-up. Reported by: Mikolaj Golub to.my.troc...@gmail.com MFC after:3 days Modified: head/sbin/hastd/primary.c Modified: head/sbin/hastd/primary.c == --- head/sbin/hastd/primary.c Fri Oct 8 15:02:15 2010(r213579) +++ head/sbin/hastd/primary.c Fri Oct 8 15:05:39 2010(r213580) @@ -930,7 +930,6 @@ ggate_recv_thread(void *arg) QUEUE_TAKE2(hio, free); pjdlog_debug(2, ggate_recv: (%p) Got free request., hio); ggio = hio-hio_ggio; - bzero(ggio, sizeof(*ggio)); ggio-gctl_unit = res-hr_ggateunit; ggio-gctl_length = MAXPHYS; ggio-gctl_error = 0; ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
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-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-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-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r213585 - head/tools/build/mk
Author: markm Date: Fri Oct 8 17:42:09 2010 New Revision: 213585 URL: http://svn.freebsd.org/changeset/base/213585 Log: Don't blow away /bin/rmail symlink if we are keeping mailwrapper. Mailwrapper can provide a perfectly good rmail with other mailers. Modified: head/tools/build/mk/OptionalObsoleteFiles.inc Modified: head/tools/build/mk/OptionalObsoleteFiles.inc == --- head/tools/build/mk/OptionalObsoleteFiles.inc Fri Oct 8 16:33:25 2010(r213584) +++ head/tools/build/mk/OptionalObsoleteFiles.inc Fri Oct 8 17:42:09 2010(r213585) @@ -2003,7 +2003,9 @@ OLD_FILES+=etc/periodic/daily/210.backup OLD_FILES+=etc/periodic/daily/440.status-mailq OLD_FILES+=etc/periodic/daily/460.status-mail-rejects OLD_FILES+=etc/periodic/daily/500.queuerun +.if ${MK_MAILWRAPPER} == no OLD_FILES+=bin/rmail +.endif OLD_FILES+=usr/bin/vacation OLD_FILES+=usr/include/libmilter/mfapi.h OLD_FILES+=usr/include/libmilter/mfdef.h ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r213587 - head/sys/dev/bge
Author: yongari Date: Fri Oct 8 17:58:07 2010 New Revision: 213587 URL: http://svn.freebsd.org/changeset/base/213587 Log: Do not blindly UP the interface when interface's MTU is changed. If driver is not running there is no need to up the interface. While I'm here hold driver lock before modifying MTU as it is referenced in RX handler. Modified: head/sys/dev/bge/if_bge.c Modified: head/sys/dev/bge/if_bge.c == --- head/sys/dev/bge/if_bge.c Fri Oct 8 17:46:51 2010(r213586) +++ head/sys/dev/bge/if_bge.c Fri Oct 8 17:58:07 2010(r213587) @@ -4631,6 +4631,7 @@ bge_ioctl(struct ifnet *ifp, u_long comm switch (command) { case SIOCSIFMTU: + BGE_LOCK(sc); if (ifr-ifr_mtu ETHERMIN || ((BGE_IS_JUMBO_CAPABLE(sc)) ifr-ifr_mtu BGE_JUMBO_MTU) || @@ -4639,9 +4640,12 @@ bge_ioctl(struct ifnet *ifp, u_long comm error = EINVAL; else if (ifp-if_mtu != ifr-ifr_mtu) { ifp-if_mtu = ifr-ifr_mtu; - ifp-if_drv_flags = ~IFF_DRV_RUNNING; - bge_init(sc); + if (ifp-if_drv_flags IFF_DRV_RUNNING) { + ifp-if_drv_flags = ~IFF_DRV_RUNNING; + bge_init_locked(sc); + } } + BGE_UNLOCK(sc); break; case SIOCSIFFLAGS: BGE_LOCK(sc); ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
Re: svn commit: r213386 - head/usr.sbin/sysinstall
On Sunday, October 03, 2010 1:50:43 pm Nathan Whitehorn wrote: Author: nwhitehorn Date: Sun Oct 3 17:50:43 2010 New Revision: 213386 URL: http://svn.freebsd.org/changeset/base/213386 Log: Extend sysinstall to handle powerpc64 by teaching it that powerpc64 has a lib32 distribution, and that the GENERIC kernel is named GENERIC64. More modifications will be required later for installations from ftp due to the shared platform name with 32-bit powerpc, but this is enough for snapshot CDs to work. Perhaps add a 'WITH_LIB32' flag similar to the existing 'WITH_SYSCONS', etc. flags in sysinstall.h so that there is only one place to update in the future to add support for lib32 on other platforms? -- John Baldwin ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
Re: svn commit: r213437 - in head/sys: conf modules/usb modules/usb/xhci
On Tuesday, October 05, 2010 3:14:30 am Hans Petter Selasky wrote: On Tuesday 05 October 2010 09:10:56 Niclas Zeising wrote: On 2010-10-05 01:22, Hans Petter Selasky wrote: Author: hselasky Date: Mon Oct 4 23:22:03 2010 New Revision: 213437 URL: http://svn.freebsd.org/changeset/base/213437 Log: Link the XHCI (USB 3.0 hardware driver) into the default kernel build. Approved by:thompsa (mentor) Added: head/sys/modules/usb/xhci/ head/sys/modules/usb/xhci/Makefile (contents, props changed) Modified: head/sys/conf/files head/sys/modules/usb/Makefile Shouldn't this be added to the corresponding kernel config files as well as NOTES? Keep up the good work! Regards! //Niclas Yes, but I'm not sure who will do that. You should certainly go ahead and add it to NOTES. If it replaces the other *hci drivers then you might want to wait a bit before adding it to GENERIC. -- John Baldwin ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r213609 - head/share/man/man5
Author: markm Date: Fri Oct 8 20:13:12 2010 New Revision: 213609 URL: http://svn.freebsd.org/changeset/base/213609 Log: Extend the example section a bit, for other mailers. Modified: head/share/man/man5/mailer.conf.5 Modified: head/share/man/man5/mailer.conf.5 == --- head/share/man/man5/mailer.conf.5 Fri Oct 8 20:12:00 2010 (r213608) +++ head/share/man/man5/mailer.conf.5 Fri Oct 8 20:13:12 2010 (r213609) @@ -31,7 +31,7 @@ .\ .\ $FreeBSD$ .\ -.Dd May 31, 2006 +.Dd October 8, 2010 .Dt MAILER.CONF 5 .Os .Sh NAME @@ -99,8 +99,9 @@ mailq /usr/libexec/sendmail/sendmail newaliases /usr/libexec/sendmail/sendmail .Ed .Pp -This example shows how to invoke a sendmail-workalike like Postfix in -place of +This example shows how to invoke a sendmail-workalike like +.Nm Postfix +in place of .Xr sendmail 8 : .Bd -literal -offset indent # Emulate sendmail using postfix @@ -110,6 +111,22 @@ mailq /usr/local/sbin/sendmail newaliases /usr/local/sbin/sendmail .Ed .Pp +This example shows +how to invoke +a sendmail-workalike with +.Nm Exim +(from ports) +in place of +.Xr sendmail 8 : +.Bd -literal -offset indent +# Emulate sendmail using exim +sendmail /usr/local/sbin/exim +send-mail /usr/local/sbin/exim +mailq /usr/local/sbin/exim -bp +newaliases /usr/bin/true +rmail /usr/local/sbin/exim -i -oee +.Ed +.Pp This example shows the use of the .Nm mini_sendmail package from ports in place of ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r213611 - head/usr.sbin/ypbind
Author: markm Date: Fri Oct 8 20:17:17 2010 New Revision: 213611 URL: http://svn.freebsd.org/changeset/base/213611 Log: Don't let the available/not available logs flap quite so badly. In the case of a multi-interfaced host, sub-second flapping can fill up the logs too quickly. This fixes that. Modified: head/usr.sbin/ypbind/ypbind.c Modified: head/usr.sbin/ypbind/ypbind.c == --- head/usr.sbin/ypbind/ypbind.c Fri Oct 8 20:13:42 2010 (r213610) +++ head/usr.sbin/ypbind/ypbind.c Fri Oct 8 20:17:17 2010 (r213611) @@ -116,6 +116,9 @@ int ypsetmode = YPSET_NO; int ypsecuremode = 0; int ppid; +#define NOT_RESPONDING_HYSTERESIS 10 +static int not_responding_count = 0; + /* * Special restricted mode variables: when in restricted mode, only the * specified restricted_domain will be bound, and only the servers listed @@ -654,9 +657,13 @@ broadcast(struct _dom_binding *ypdb) return; } - if (ypdb-dom_vers == -1 (long)ypdb-dom_server_addr.sin_addr.s_addr) - syslog(LOG_WARNING, NIS server [%s] for domain \%s\ not responding, - inet_ntoa(ypdb-dom_server_addr.sin_addr), ypdb-dom_domain); + if (ypdb-dom_vers == -1 (long)ypdb-dom_server_addr.sin_addr.s_addr) { + if (not_responding_count++ = NOT_RESPONDING_HYSTERESIS) { + not_responding_count = NOT_RESPONDING_HYSTERESIS; + syslog(LOG_WARNING, NIS server [%s] for domain \%s\ not responding, + inet_ntoa(ypdb-dom_server_addr.sin_addr), ypdb-dom_domain); + } + } broad_domain = ypdb; flock(ypdb-dom_lockfd, LOCK_UN); @@ -886,9 +893,13 @@ rpc_received(char *dom, struct sockaddr_ } /* We've recovered from a crash: inform the world. */ - if (ypdb-dom_vers == -1 ypdb-dom_server_addr.sin_addr.s_addr) - syslog(LOG_WARNING, NIS server [%s] for domain \%s\ OK, - inet_ntoa(raddrp-sin_addr), ypdb-dom_domain); + if (ypdb-dom_vers == -1 ypdb-dom_server_addr.sin_addr.s_addr) { + if (not_responding_count = NOT_RESPONDING_HYSTERESIS) { + not_responding_count = 0; + syslog(LOG_WARNING, NIS server [%s] for domain \%s\ OK, + inet_ntoa(raddrp-sin_addr), ypdb-dom_domain); + } + } bcopy(raddrp, ypdb-dom_server_addr, sizeof ypdb-dom_server_addr); ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r213620 - head/usr.bin/netstat
Author: dim Date: Fri Oct 8 20:40:05 2010 New Revision: 213620 URL: http://svn.freebsd.org/changeset/base/213620 Log: Remove superfluous cast in usr.bin/netstat/sctp.c. Found by: clang Submitted by: Norberto Lopes, nlopes dot ml at gmail dot com Approved by: rpaulo (mentor) Modified: head/usr.bin/netstat/sctp.c Modified: head/usr.bin/netstat/sctp.c == --- head/usr.bin/netstat/sctp.c Fri Oct 8 20:39:45 2010(r213619) +++ head/usr.bin/netstat/sctp.c Fri Oct 8 20:40:05 2010(r213620) @@ -355,7 +355,7 @@ sctp_process_inpcb(struct xsctp_inpcb *x first = 0; } if (Lflag xinpcb-maxqlen == 0) { - (int)sctp_skip_xinpcb_ifneed(buf, buflen, offset); + sctp_skip_xinpcb_ifneed(buf, buflen, offset); return; } if (Aflag) ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r213632 - head/share/man/man4
Author: delphij Date: Fri Oct 8 21:29:48 2010 New Revision: 213632 URL: http://svn.freebsd.org/changeset/base/213632 Log: Document net.link.lagg.failover_rx_all. MFC after:1 week Modified: head/share/man/man4/lagg.4 Modified: head/share/man/man4/lagg.4 == --- head/share/man/man4/lagg.4 Fri Oct 8 20:58:48 2010(r213631) +++ head/share/man/man4/lagg.4 Fri Oct 8 21:29:48 2010(r213632) @@ -16,7 +16,7 @@ .\ .\ $FreeBSD$ .\ -.Dd March 29, 2009 +.Dd October 8, 2010 .Dt LAGG 4 .Os .Sh NAME @@ -73,11 +73,19 @@ The interface link state is used to vali not. .Bl -tag -width loadbalance .It Ic failover -Sends and receives traffic only through the master port. +Sends traffic only through the master port. If the master port becomes unavailable, the next active port is used. The first interface added is the master port; any interfaces added after that are used as failover devices. +.Pp +By default, received traffic is only accepted when they are received +through the master port. +This constraint can be relaxed by setting the +.Va net.link.lagg.failover_rx_all +.Xr sysctl 8 +variable to a nonzero value, +which is useful for certain bridged network setups. .It Ic fec Supports Cisco EtherChannel. This is a static setup and does not negotiate aggregation with the peer or @@ -153,6 +161,7 @@ device as a workaround.) .Sh SEE ALSO .Xr ng_fec 4 , .Xr ng_one2many 4 , +.Xr sysctl 8 , .Xr ifconfig 8 .Sh HISTORY The ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
Re: svn commit: r213568 - head/sys/boot/i386/gptboot
On Fri, 8 Oct 2010, Peter Holm wrote: Log: Ensure that a make from sys/boot does not pick up include files from /usr/include. Discussed with: kib Modified: head/sys/boot/i386/gptboot/Makefile Modified: head/sys/boot/i386/gptboot/Makefile == --- head/sys/boot/i386/gptboot/Makefile Fri Oct 8 09:43:06 2010 (r213567) +++ head/sys/boot/i386/gptboot/Makefile Fri Oct 8 10:27:52 2010 (r213568) @@ -36,6 +36,7 @@ CFLAGS= -DBOOTPROG=\gptboot\ \ -I${.CURDIR}/../common \ -I${.CURDIR}/../btx/lib -I. \ -I${.CURDIR}/../boot2 \ + -I${.CURDIR}/../../.. \ -Wall -Waggregate-return -Wbad-function-cast -Wcast-align \ -Wmissing-declarations -Wmissing-prototypes -Wnested-externs \ -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings \ This should be handled by setting -nostdinc in the top-level Makefile.inc, as was done in 1998 or earlier by sys/i386/boot/Makefile.inc (the sys/boot hierarchy is still of amazingly lower quality than the sys/i386/boot hierarchy), or in a central foo.mk Makefile as is done for kernels and modules. Bruce ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r213634 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs
Author: mm Date: Fri Oct 8 23:01:38 2010 New Revision: 213634 URL: http://svn.freebsd.org/changeset/base/213634 Log: Change FAPPEND to IO_APPEND as this is a ioflag and not a fflag. This corrects writing to append-only files on ZFS. PR: kern/149495 [1], kern/151082 [2] Submitted by: Daniel Zhelev dan...@zhelev.biz [1], Michael Naef c...@linu.gs [2] Approved by: delphij (mentor) MFC after:1 week Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c == --- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c Fri Oct 8 21:54:33 2010(r213633) +++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c Fri Oct 8 23:01:38 2010(r213634) @@ -755,7 +755,7 @@ zfs_write(vnode_t *vp, uio_t *uio, int i */ pflags = zp-z_phys-zp_flags; if ((pflags (ZFS_IMMUTABLE | ZFS_READONLY)) || - ((pflags ZFS_APPENDONLY) !(ioflag FAPPEND) + ((pflags ZFS_APPENDONLY) !(ioflag IO_APPEND) (uio-uio_loffset zp-z_phys-zp_size))) { ZFS_EXIT(zfsvfs); return (EPERM); ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r213642 - in head/sys: kern sys
Author: davidxu Date: Sat Oct 9 02:50:23 2010 New Revision: 213642 URL: http://svn.freebsd.org/changeset/base/213642 Log: Create a global thread hash table to speed up thread lookup, use rwlock to protect the table. In old code, thread lookup is done with process lock held, to find a thread, kernel has to iterate through process and thread list, this is quite inefficient. With this change, test shows in extreme case performance is dramatically improved. Earlier patch was reviewed by: jhb, julian Modified: head/sys/kern/init_main.c head/sys/kern/kern_exit.c head/sys/kern/kern_fork.c head/sys/kern/kern_kthread.c head/sys/kern/kern_resource.c head/sys/kern/kern_sig.c head/sys/kern/kern_thr.c head/sys/kern/kern_thread.c head/sys/kern/kern_time.c head/sys/kern/kern_umtx.c head/sys/kern/sys_process.c head/sys/kern/uipc_mqueue.c head/sys/kern/vfs_aio.c head/sys/sys/proc.h head/sys/sys/signalvar.h Modified: head/sys/kern/init_main.c == --- head/sys/kern/init_main.c Sat Oct 9 00:36:32 2010(r213641) +++ head/sys/kern/init_main.c Sat Oct 9 02:50:23 2010(r213642) @@ -443,6 +443,7 @@ proc0_init(void *dummy __unused) */ LIST_INSERT_HEAD(allproc, p, p_list); LIST_INSERT_HEAD(PIDHASH(0), p, p_hash); + LIST_INSERT_HEAD(TIDHASH(0), td, td_hash); mtx_init(pgrp0.pg_mtx, process group, NULL, MTX_DEF | MTX_DUPOK); p-p_pgrp = pgrp0; LIST_INSERT_HEAD(PGRPHASH(0), pgrp0, pg_hash); Modified: head/sys/kern/kern_exit.c == --- head/sys/kern/kern_exit.c Sat Oct 9 00:36:32 2010(r213641) +++ head/sys/kern/kern_exit.c Sat Oct 9 02:50:23 2010(r213642) @@ -403,6 +403,8 @@ exit1(struct thread *td, int rv) PROC_UNLOCK(p); lim_free(plim); + tidhash_remove(td); + /* * Remove proc from allproc queue and pidhash chain. * Place onto zombproc. Unlink from parent's child list. Modified: head/sys/kern/kern_fork.c == --- head/sys/kern/kern_fork.c Sat Oct 9 00:36:32 2010(r213641) +++ head/sys/kern/kern_fork.c Sat Oct 9 02:50:23 2010(r213642) @@ -456,7 +456,7 @@ again: AUDIT_ARG_PID(p2-p_pid); LIST_INSERT_HEAD(allproc, p2, p_list); LIST_INSERT_HEAD(PIDHASH(p2-p_pid), p2, p_hash); - + tidhash_add(td2); PROC_LOCK(p2); PROC_LOCK(p1); Modified: head/sys/kern/kern_kthread.c == --- head/sys/kern/kern_kthread.cSat Oct 9 00:36:32 2010 (r213641) +++ head/sys/kern/kern_kthread.cSat Oct 9 02:50:23 2010 (r213642) @@ -295,6 +295,7 @@ kthread_add(void (*func)(void *), void * thread_unlock(oldtd); PROC_UNLOCK(p); + tidhash_add(newtd); /* Delay putting it on the run queue until now. */ if (!(flags RFSTOPPED)) { @@ -314,6 +315,8 @@ kthread_exit(void) p = curthread-td_proc; + tidhash_remove(curthread); + /* A module may be waiting for us to exit. */ wakeup(curthread); PROC_LOCK(p); Modified: head/sys/kern/kern_resource.c == --- head/sys/kern/kern_resource.c Sat Oct 9 00:36:32 2010 (r213641) +++ head/sys/kern/kern_resource.c Sat Oct 9 02:50:23 2010 (r213642) @@ -295,25 +295,23 @@ rtprio_thread(struct thread *td, struct else cierror = 0; - /* -* Though lwpid is unique, only current process is supported -* since there is no efficient way to look up a LWP yet. -*/ - p = td-td_proc; - PROC_LOCK(p); + if (uap-lwpid == 0 || uap-lwpid == td-td_tid) { + p = td-td_proc; + td1 = td; + PROC_LOCK(p); + } else { + /* Only look up thread in current process */ + td1 = tdfind(uap-lwpid, curproc-p_pid); + if (td1 == NULL) + return (ESRCH); + p = td1-td_proc; + } switch (uap-function) { case RTP_LOOKUP: if ((error = p_cansee(td, p))) break; - if (uap-lwpid == 0 || uap-lwpid == td-td_tid) - td1 = td; - else - td1 = thread_find(p, uap-lwpid); - if (td1 != NULL) - pri_to_rtp(td1, rtp); - else - error = ESRCH; + pri_to_rtp(td1, rtp); PROC_UNLOCK(p); return (copyout(rtp, uap-rtp, sizeof(struct rtprio))); case RTP_SET: @@ -337,15 +335,7 @@
svn commit: r213643 - head/usr.bin/ar
Author: kientzle Date: Sat Oct 9 05:31:08 2010 New Revision: 213643 URL: http://svn.freebsd.org/changeset/base/213643 Log: Add -D (deterministic) option to ar. When set, it forces all timestamps and owners to zero and modes to 0644. Useful for producing libraries that are bitwise identical across multiple build runs. Submitted by: Erik Cederstrand Reviewed by: Kai Wang Modified: head/usr.bin/ar/ar.1 head/usr.bin/ar/ar.c head/usr.bin/ar/ar.h head/usr.bin/ar/write.c Modified: head/usr.bin/ar/ar.1 == --- head/usr.bin/ar/ar.1Sat Oct 9 02:50:23 2010(r213642) +++ head/usr.bin/ar/ar.1Sat Oct 9 05:31:08 2010(r213643) @@ -62,6 +62,7 @@ .Op Fl a Ar position-after .Op Fl b Ar position-before .Op Fl c +.Op Fl D .Op Fl i Ar position-before .Op Fl j .Op Fl s @@ -179,6 +180,16 @@ from the archive specified by argument .Ar archive . The archive's symbol table, if present, is updated to reflect the new contents of the archive. +.It Fl D +When used in combination with the +.Fl r +or +.Fl q +option, insert 0's instead of the real mtime, uid and gid values +and 0644 instead of file mode from the members named by arguments +.Ar files ... . +This ensures that checksums on the resulting archives are reproducible +when member contents are identical. .It Fl f Synonymous with option .Fl T . Modified: head/usr.bin/ar/ar.c == --- head/usr.bin/ar/ar.cSat Oct 9 02:50:23 2010(r213642) +++ head/usr.bin/ar/ar.cSat Oct 9 05:31:08 2010(r213643) @@ -154,7 +154,7 @@ main(int argc, char **argv) } } - while ((opt = getopt_long(argc, argv, abCcdfijlMmopqrSsTtuVvxz, + while ((opt = getopt_long(argc, argv, abCcdDfijlMmopqrSsTtuVvxz, longopts, NULL)) != -1) { switch(opt) { case 'a': @@ -173,6 +173,9 @@ main(int argc, char **argv) case 'd': set_mode(bsdar, opt); break; + case 'D': + bsdar-options |= AR_D; + break; case 'f': case 'T': bsdar-options |= AR_TR; @@ -269,6 +272,8 @@ main(int argc, char **argv) only_mode(bsdar, -c, qr); if (bsdar-options AR_CC) only_mode(bsdar, -C, x); + if (bsdar-options AR_D) + only_mode(bsdar, -D, qr); if (bsdar-options AR_O) only_mode(bsdar, -o, x); if (bsdar-options AR_SS) @@ -356,9 +361,9 @@ bsdar_usage(void) (void)fprintf(stderr, \tar -m [-Tjsvz] archive file ...\n); (void)fprintf(stderr, \tar -m [-Tabijsvz] position archive file ...\n); (void)fprintf(stderr, \tar -p [-Tv] archive [file ...]\n); - (void)fprintf(stderr, \tar -q [-Tcjsvz] archive file ...\n); - (void)fprintf(stderr, \tar -r [-Tcjsuvz] archive file ...\n); - (void)fprintf(stderr, \tar -r [-Tabcijsuvz] position archive file ...\n); + (void)fprintf(stderr, \tar -q [-TcDjsvz] archive file ...\n); + (void)fprintf(stderr, \tar -r [-TcDjsuvz] archive file ...\n); + (void)fprintf(stderr, \tar -r [-TabcDijsuvz] position archive file ...\n); (void)fprintf(stderr, \tar -s [-jz] archive\n); (void)fprintf(stderr, \tar -t [-Tv] archive [file ...]\n); (void)fprintf(stderr, \tar -x [-CTouv] archive [file ...]\n); Modified: head/usr.bin/ar/ar.h == --- head/usr.bin/ar/ar.hSat Oct 9 02:50:23 2010(r213642) +++ head/usr.bin/ar/ar.hSat Oct 9 05:31:08 2010(r213643) @@ -43,6 +43,7 @@ #define AR_U 0x0200 /* only extract or update newer members.*/ #define AR_V 0x0400 /* verbose mode */ #define AR_Z 0x0800 /* gzip compression */ +#define AR_D 0x1000 /* insert dummy mode, mtime, uid and gid */ #define DEF_BLKSZ 10240/* default block size */ Modified: head/usr.bin/ar/write.c == --- head/usr.bin/ar/write.c Sat Oct 9 02:50:23 2010(r213642) +++ head/usr.bin/ar/write.c Sat Oct 9 05:31:08 2010(r213643) @@ -163,11 +163,24 @@ create_obj_from_file(struct bsdar *bsdar if (mtime != 0 bsdar-options AR_U sb.st_mtime = mtime) goto giveup; - obj-uid = sb.st_uid; - obj-gid = sb.st_gid; - obj-md = sb.st_mode; + /* +* When option '-D' is specified, mtime and UID / GID from the file +* will be replaced with 0, and file mode with 644. This ensures that +* checksums will match for two archives containing the exact same +* files. +*/ +
Re: svn commit: r213643 - head/usr.bin/ar
On Sat, Oct 9, 2010 at 1:31 AM, Tim Kientzle kient...@freebsd.org wrote: Author: kientzle Date: Sat Oct 9 05:31:08 2010 New Revision: 213643 URL: http://svn.freebsd.org/changeset/base/213643 Log: Add -D (deterministic) option to ar. When set, it forces all timestamps and owners to zero and modes to 0644. Useful for producing libraries that are bitwise identical across multiple build runs. Thanks! Has anyone looked at the feasibility of setting AR?=ar -D in sys.mk? I will probably try this when I get my scratch box up again. -Ben Kaduk ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r213644 - head
Author: gordon Date: Sat Oct 9 05:50:04 2010 New Revision: 213644 URL: http://svn.freebsd.org/changeset/base/213644 Log: Add entries to remove manpath.config from etc and the examples directory. Approved by: wes (mentor implicit) Modified: head/ObsoleteFiles.inc Modified: head/ObsoleteFiles.inc == --- head/ObsoleteFiles.inc Sat Oct 9 05:31:08 2010(r213643) +++ head/ObsoleteFiles.inc Sat Oct 9 05:50:04 2010(r213644) @@ -14,6 +14,9 @@ # The file is partitioned: OLD_FILES first, then OLD_LIBS and OLD_DIRS last. # +# 20101002: removed manpath.config +OLD_FILES+=etc/manpath.config +OLD_FILES+=usr/share/examples/etc/manpath.config # 20100910: renamed sbuf_overflowed to sbuf_error OLD_FILES+=usr/share/man/man9/sbuf_overflowed.9.gz # 20100815: retired last traces of chooseproc(9) ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org
svn commit: r213645 - head/share/examples/etc
Author: gordon Date: Sat Oct 9 05:57:23 2010 New Revision: 213645 URL: http://svn.freebsd.org/changeset/base/213645 Log: Remove the manpath.config entry now that it's no longer installed. Submitted by: b. f. Approved by: wes (mentor implicit) Modified: head/share/examples/etc/README.examples Modified: head/share/examples/etc/README.examples == --- head/share/examples/etc/README.examples Sat Oct 9 05:50:04 2010 (r213644) +++ head/share/examples/etc/README.examples Sat Oct 9 05:57:23 2010 (r213645) @@ -35,7 +35,6 @@ login.conf- login class capabilities da mac.conf - TrustedBSD MAC userland policy configuration file mail.rc- systemwide initialization files for mail(1) make.conf - example configuration variables for system builds -manpath.config - configuration file for man(1) motd - sample Message of the Day netconfig - network configuration data base netstart - network startup script run from /etc/rc ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to svn-src-head-unsubscr...@freebsd.org