Re: svn commit: r313560 - head/sys/net

2017-02-11 Thread Antoine Brodin
On Fri, Feb 10, 2017 at 6:37 PM, Gleb Smirnoff  wrote:
> Author: glebius
> Date: Fri Feb 10 17:37:04 2017
> New Revision: 313560
> URL: https://svnweb.freebsd.org/changeset/base/313560
>
> Log:
>   Last consumer of _WANT_RTENTRY gone.
>
> Modified:
>   head/sys/net/route.h

Hi,

This change seems to break devel/llvm37 :
http://beefy11.nyi.freebsd.org/data/head-i386-default/p433828_s313572/logs/errors/llvm37-3.7.1_4.log
http://beefy12.nyi.freebsd.org/data/head-amd64-default/p433828_s313572/logs/errors/llvm37-3.7.1_4.log

More than 6000 are skipped due to this failure.

Cheers,

Antoine (with hat: portmgr)
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r312988 - in head/sys: compat/cloudabi compat/linux kern sys

2017-02-11 Thread Edward Tomasz Napierala
On 0201T1236, John Baldwin wrote:
> On Wednesday, February 01, 2017 10:23:37 AM Gleb Smirnoff wrote:
> > On Tue, Jan 31, 2017 at 02:13:36PM -0800, John Baldwin wrote:
> > J> On Monday, January 30, 2017 12:57:23 PM Edward Tomasz Napierala wrote:
> > J> > Author: trasz
> > J> > Date: Mon Jan 30 12:57:22 2017
> > J> > New Revision: 312988
> > J> > URL: https://svnweb.freebsd.org/changeset/base/312988
> > J> > 
> > J> > Log:
> > J> >   Add kern_listen(), kern_shutdown(), and kern_socket(), and use them
> > J> >   instead of their sys_*() counterparts in various compats. The svr4
> > J> >   is left untouched, because there's no point.
> > J> 
> > J> Note that you can compile test svr4 since it is still in the tree.
> > J> If we want to remove svr4, then we should remove it.  However, we
> > J> should maintain code that is in the tree if it is still there.
> > 
> > All we can do right now is maintain it as compilable. My example with
> > COMPAT_OLDSOCK shows that SVR4 simply doesn't work as kld, and nobody
> > complains.
> > 
> > Okay, what if I say on freebsd-arch/freebsd-current that I am going
> > to remove it and wait for any objections for a month, and then do it?
> 
> I would rather remove it than start skipping it in tree sweeps.  We should
> strive to maintain code that is in our tree.  If you can't get things tested,
> then we are better off removing the code instead of having it rot in the
> tree (cf the discussion on old ISA drivers).

On one hand you're right.  On the other - in this particular case including
svr4 (which I have no way of testing) in this sweep could break it, while
not touching it couldn't, as the old method continues to work.

Removing it is not a bad idea, though.  Gleb, would you?

___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r313560 - head/sys/net

2017-02-11 Thread Dimitry Andric
On 11 Feb 2017, at 10:57, Antoine Brodin  wrote:
> 
> On Fri, Feb 10, 2017 at 6:37 PM, Gleb Smirnoff  wrote:
>> Author: glebius
>> Date: Fri Feb 10 17:37:04 2017
>> New Revision: 313560
>> URL: https://svnweb.freebsd.org/changeset/base/313560
>> 
>> Log:
>>  Last consumer of _WANT_RTENTRY gone.
>> 
>> Modified:
>>  head/sys/net/route.h
> 
> Hi,
> 
> This change seems to break devel/llvm37 :
> http://beefy11.nyi.freebsd.org/data/head-i386-default/p433828_s313572/logs/errors/llvm37-3.7.1_4.log
> http://beefy12.nyi.freebsd.org/data/head-amd64-default/p433828_s313572/logs/errors/llvm37-3.7.1_4.log
> 
> More than 6000 are skipped due to this failure.

Oof, I didn't think about that, sorry.  Can we just apply this upstream
fix: https://reviews.llvm.org/rL294806 to all llvm ports, please?

-DImitry



signature.asc
Description: Message signed with OpenPGP


Re: svn commit: r313401 - head/sys/netinet

2017-02-11 Thread Eric van Gyzen

On 02/10/2017 15:04, Ed Maste wrote:

On 10 February 2017 at 15:10, Gleb Smirnoff  wrote:


Thanks. I think inet_ntoa() and anything that uses static buffer
should just be removed from libkern.


Agreed. A quick grep found inet_ntoa used in:


Also agreed.  I had already started on it.  ;-)

Eric
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r312988 - in head/sys: compat/cloudabi compat/linux kern sys

2017-02-11 Thread Pedro Giffuni



On 2/11/2017 7:55 AM, Edward Tomasz Napierala wrote:

On 0201T1236, John Baldwin wrote:

On Wednesday, February 01, 2017 10:23:37 AM Gleb Smirnoff wrote:

On Tue, Jan 31, 2017 at 02:13:36PM -0800, John Baldwin wrote:
J> On Monday, January 30, 2017 12:57:23 PM Edward Tomasz Napierala wrote:
J> > Author: trasz
J> > Date: Mon Jan 30 12:57:22 2017
J> > New Revision: 312988
J> > URL: https://svnweb.freebsd.org/changeset/base/312988
J> >
J> > Log:
J> >   Add kern_listen(), kern_shutdown(), and kern_socket(), and use them
J> >   instead of their sys_*() counterparts in various compats. The svr4
J> >   is left untouched, because there's no point.
J>
J> Note that you can compile test svr4 since it is still in the tree.
J> If we want to remove svr4, then we should remove it.  However, we
J> should maintain code that is in the tree if it is still there.

All we can do right now is maintain it as compilable. My example with
COMPAT_OLDSOCK shows that SVR4 simply doesn't work as kld, and nobody
complains.

Okay, what if I say on freebsd-arch/freebsd-current that I am going
to remove it and wait for any objections for a month, and then do it?

I would rather remove it than start skipping it in tree sweeps.  We should
strive to maintain code that is in our tree.  If you can't get things tested,
then we are better off removing the code instead of having it rot in the
tree (cf the discussion on old ISA drivers).

On one hand you're right.  On the other - in this particular case including
svr4 (which I have no way of testing) in this sweep could break it, while
not touching it couldn't, as the old method continues to work.

Removing it is not a bad idea, though.  Gleb, would you?




FWIW, the SVR4 emulator was never completely ported from NetBSD and no 
one seems to have any interest in bringing it to amd64. I'd say kill it, 
if someone ever needs it back we have subversion.


Pedro.
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r313645 - head/sys/boot/efi/libefi

2017-02-11 Thread Toomas Soome
Author: tsoome
Date: Sat Feb 11 15:25:49 2017
New Revision: 313645
URL: https://svnweb.freebsd.org/changeset/base/313645

Log:
  loader: implement MEDIA_FILEPATH_DP support in efipart
  
  The efipart rework did break the ARM systems as the new code is
  using more exact filters to sort the devices and we need to
  add support for MEDIA_FILEPATH_DP device paths.
  
  PR:   216940
  Reported by:  k...@denninger.net
  Reviewed by:  allanjude, manu
  Approved by:  allanjude (mentor)
  Differential Revision:https://reviews.freebsd.org/D9520

Modified:
  head/sys/boot/efi/libefi/efipart.c

Modified: head/sys/boot/efi/libefi/efipart.c
==
--- head/sys/boot/efi/libefi/efipart.c  Sat Feb 11 14:04:18 2017
(r313644)
+++ head/sys/boot/efi/libefi/efipart.c  Sat Feb 11 15:25:49 2017
(r313645)
@@ -417,6 +417,89 @@ efipart_hdinfo_add(EFI_HANDLE disk_handl
return (0);
 }
 
+/*
+ * The MEDIA_FILEPATH_DP has device name.
+ * From U-Boot sources it looks like names are in the form
+ * of typeN:M, where type is interface type, N is disk id
+ * and M is partition id.
+ */
+static int
+efipart_hdinfo_add_filepath(EFI_HANDLE disk_handle)
+{
+   EFI_DEVICE_PATH *devpath;
+   FILEPATH_DEVICE_PATH *node;
+   char *pathname, *p;
+   int unit, len;
+   pdinfo_t *pd, *last;
+
+   /* First collect and verify all the data */
+   if ((devpath = efi_lookup_devpath(disk_handle)) == NULL)
+   return (ENOENT);
+   node = (FILEPATH_DEVICE_PATH *)efi_devpath_last_node(devpath);
+   if (node == NULL)
+   return (ENOENT);/* This should not happen. */
+
+   pd = malloc(sizeof(pdinfo_t));
+   if (pd == NULL) {
+   printf("Failed to add disk, out of memory\n");
+   return (ENOMEM);
+   }
+   memset(pd, 0, sizeof(pdinfo_t));
+   STAILQ_INIT(&pd->pd_part);
+   last = STAILQ_LAST(&hdinfo, pdinfo, pd_link);
+   if (last != NULL)
+   unit = last->pd_unit + 1;
+   else
+   unit = 0;
+
+   /* FILEPATH_DEVICE_PATH has 0 terminated string */
+   for (len = 0; node->PathName[len] != 0; len++)
+   ;
+   if ((pathname = malloc(len + 1)) == NULL) {
+   printf("Failed to add disk, out of memory\n");
+   free(pd);
+   return (ENOMEM);
+   }
+   cpy16to8(node->PathName, pathname, len + 1);
+   p = strchr(pathname, ':');
+
+   /*
+* Assume we are receiving handles in order, first disk handle,
+* then partitions for this disk. If this assumption proves
+* false, this code would need update.
+*/
+   if (p == NULL) {/* no colon, add the disk */
+   pd->pd_handle = disk_handle;
+   pd->pd_unit = unit;
+   pd->pd_devpath = devpath;
+   STAILQ_INSERT_TAIL(&hdinfo, pd, pd_link);
+   free(pathname);
+   return (0);
+   }
+   p++;/* skip the colon */
+   unit = (int)strtol(p, NULL, 0);
+
+   /*
+* We should have disk registered, if not, we are receiving
+* handles out of order, and this code should be reworked
+* to create "blank" disk for partition, and to find the
+* disk based on PathName compares.
+*/
+   if (last == NULL) {
+   printf("BUG: No disk for partition \"%s\"\n", pathname);
+   free(pathname);
+   free(pd);
+   return (EINVAL);
+   }
+   /* Add the partition. */
+   pd->pd_handle = disk_handle;
+   pd->pd_unit = unit;
+   pd->pd_devpath = devpath;
+   STAILQ_INSERT_TAIL(&last->pd_part, pd, pd_link);
+   free(pathname);
+   return (0);
+}
+
 static void
 efipart_updatehd(void)
 {
@@ -467,6 +550,12 @@ efipart_updatehd(void)
efipart_hdinfo_add(handle, efipart_handles[i]);
continue;
}
+
+   if (DevicePathType(node) == MEDIA_DEVICE_PATH &&
+   DevicePathSubType(node) == MEDIA_FILEPATH_DP) {
+   efipart_hdinfo_add_filepath(efipart_handles[i]);
+   continue;
+   }
}
 }
 
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r313401 - head/sys/netinet

2017-02-11 Thread Adrian Chadd
Can we do the same with ether_ntoa too?



-adrian
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r313646 - head/sys/netinet

2017-02-11 Thread Ryan Stone
Author: rstone
Date: Sat Feb 11 17:05:08 2017
New Revision: 313646
URL: https://svnweb.freebsd.org/changeset/base/313646

Log:
  Don't zero out srtt after excess retransmits
  
  If the TCP stack has retransmitted more than 1/4 of the total
  number of retransmits before a connection drop, it decides that
  its current RTT estimate is hopelessly out of date and decides
  to recalculate it from scratch starting with the next ACK.
  
  Unfortunately, it implements this by zeroing out the current RTT
  estimate.  Drop this hack entirely, as it makes it significantly more
  difficult to debug connection issues.  Instead check for excessive
  retransmits at the point where srtt is updated from an ACK being
  received.  If we've exceeded 1/4 of the maximum retransmits,
  discard the previous srtt estimate and replace it with the latest
  rtt measurement.
  
  Differential Revision:https://reviews.freebsd.org/D9519
  Reviewed by:  gnn
  Sponsored by: Dell EMC Isilon

Modified:
  head/sys/netinet/tcp_input.c
  head/sys/netinet/tcp_timer.c
  head/sys/netinet/tcp_timer.h

Modified: head/sys/netinet/tcp_input.c
==
--- head/sys/netinet/tcp_input.cSat Feb 11 15:25:49 2017
(r313645)
+++ head/sys/netinet/tcp_input.cSat Feb 11 17:05:08 2017
(r313646)
@@ -3494,7 +3494,7 @@ tcp_xmit_timer(struct tcpcb *tp, int rtt
 
TCPSTAT_INC(tcps_rttupdated);
tp->t_rttupdated++;
-   if (tp->t_srtt != 0) {
+   if ((tp->t_srtt != 0) && (tp->t_rxtshift <= TCP_RTT_INVALIDATE)) {
/*
 * srtt is stored as fixed point with 5 bits after the
 * binary point (i.e., scaled by 8).  The following magic

Modified: head/sys/netinet/tcp_timer.c
==
--- head/sys/netinet/tcp_timer.cSat Feb 11 15:25:49 2017
(r313645)
+++ head/sys/netinet/tcp_timer.cSat Feb 11 17:05:08 2017
(r313646)
@@ -845,20 +845,16 @@ tcp_timer_rexmt(void * xtp)
(tp->t_rxtshift == 3))
tp->t_flags &= ~(TF_REQ_SCALE|TF_REQ_TSTMP|TF_SACK_PERMIT);
/*
-* If we backed off this far, our srtt estimate is probably bogus.
-* Clobber it so we'll take the next rtt measurement as our srtt;
-* move the current srtt into rttvar to keep the current
-* retransmit times until then.
+* If we backed off this far, notify the L3 protocol that we're having
+* connection problems.
 */
-   if (tp->t_rxtshift > TCP_MAXRXTSHIFT / 4) {
+   if (tp->t_rxtshift > TCP_RTT_INVALIDATE) {
 #ifdef INET6
if ((tp->t_inpcb->inp_vflag & INP_IPV6) != 0)
in6_losing(tp->t_inpcb);
else
 #endif
in_losing(tp->t_inpcb);
-   tp->t_rttvar += (tp->t_srtt >> TCP_RTT_SHIFT);
-   tp->t_srtt = 0;
}
tp->snd_nxt = tp->snd_una;
tp->snd_recover = tp->snd_max;

Modified: head/sys/netinet/tcp_timer.h
==
--- head/sys/netinet/tcp_timer.hSat Feb 11 15:25:49 2017
(r313645)
+++ head/sys/netinet/tcp_timer.hSat Feb 11 17:05:08 2017
(r313646)
@@ -119,6 +119,13 @@
 
 #defineTCPTV_DELACK( hz/10 )   /* 100ms timeout */
 
+/*
+ * If we exceed this number of retransmits for a single segment, we'll consider
+ * the current srtt measurement no longer valid and will recalculate from
+ * scratch starting with the next ACK.
+ */
+#define TCP_RTT_INVALIDATE (TCP_MAXRXTSHIFT / 4)
+
 #ifdef TCPTIMERS
 static const char *tcptimers[] =
 { "REXMT", "PERSIST", "KEEP", "2MSL", "DELACK" };
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r313647 - head/usr.sbin/pciconf

2017-02-11 Thread Conrad Meyer
Author: cem
Date: Sat Feb 11 18:04:43 2017
New Revision: 313647
URL: https://svnweb.freebsd.org/changeset/base/313647

Log:
  pciconf(8): Replace an assert with errx
  
  The condition can be hit with simple user input, so it isn't an invariant.
  Just error out.
  
  PR:   217003
  Reported by:  Vladislav V. Prodan 
  Sponsored by: Dell EMC Isilon

Modified:
  head/usr.sbin/pciconf/pciconf.c

Modified: head/usr.sbin/pciconf/pciconf.c
==
--- head/usr.sbin/pciconf/pciconf.c Sat Feb 11 17:05:08 2017
(r313646)
+++ head/usr.sbin/pciconf/pciconf.c Sat Feb 11 18:04:43 2017
(r313647)
@@ -879,7 +879,8 @@ getdevice(const char *name)
errx(1, "Device name is too long");
memcpy(patterns[0].pd_name, name, cp - name);
patterns[0].pd_unit = strtol(cp, &cp, 10);
-   assert(*cp == '\0');
+   if (*cp != '\0')
+   errx(1, "Invalid device name");
patterns[0].flags = PCI_GETCONF_MATCH_NAME | PCI_GETCONF_MATCH_UNIT;
pc.num_patterns = 1;
pc.pat_buf_len = sizeof(patterns);
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r313560 - head/sys/net

2017-02-11 Thread Brooks Davis
On Sat, Feb 11, 2017 at 02:56:52PM +0100, Dimitry Andric wrote:
> On 11 Feb 2017, at 10:57, Antoine Brodin  wrote:
> > 
> > On Fri, Feb 10, 2017 at 6:37 PM, Gleb Smirnoff  wrote:
> >> Author: glebius
> >> Date: Fri Feb 10 17:37:04 2017
> >> New Revision: 313560
> >> URL: https://svnweb.freebsd.org/changeset/base/313560
> >> 
> >> Log:
> >>  Last consumer of _WANT_RTENTRY gone.
> >> 
> >> Modified:
> >>  head/sys/net/route.h
> > 
> > Hi,
> > 
> > This change seems to break devel/llvm37 :
> > http://beefy11.nyi.freebsd.org/data/head-i386-default/p433828_s313572/logs/errors/llvm37-3.7.1_4.log
> > http://beefy12.nyi.freebsd.org/data/head-amd64-default/p433828_s313572/logs/errors/llvm37-3.7.1_4.log
> > 
> > More than 6000 are skipped due to this failure.
> 
> Oof, I didn't think about that, sorry.  Can we just apply this upstream
> fix: https://reviews.llvm.org/rL294806 to all llvm ports, please?

I'll apply this and commit it soon.

-- Brooks


signature.asc
Description: PGP signature


svn commit: r313650 - head/gnu/usr.bin/gdb

2017-02-11 Thread Ngie Cooper
Author: ngie
Date: Sat Feb 11 20:12:54 2017
New Revision: 313650
URL: https://svnweb.freebsd.org/changeset/base/313650

Log:
  Use SRCTOP/OBJTOP and simplify output using :H instead of "../" for directory
  entries
  
  This simplifies pathing in make/displayed output
  
  MFC after:1 week
  Sponsored by: Dell EMC Isilon

Modified:
  head/gnu/usr.bin/gdb/Makefile.inc

Modified: head/gnu/usr.bin/gdb/Makefile.inc
==
--- head/gnu/usr.bin/gdb/Makefile.inc   Sat Feb 11 20:02:39 2017
(r313649)
+++ head/gnu/usr.bin/gdb/Makefile.inc   Sat Feb 11 20:12:54 2017
(r313650)
@@ -5,19 +5,17 @@ VENDOR= marcel
 
 PACKAGE=   gdb
 
-BMAKE_GDB= ${.CURDIR}/..
-BMAKE_ROOT= ${BMAKE_GDB}/..
+BMAKE_GDB= ${.CURDIR:H}
+BMAKE_ROOT= ${BMAKE_GDB:H}
 BMAKE_BU= ${BMAKE_ROOT}/binutils
 
-CNTRB_ROOT= ${BMAKE_ROOT}/../../contrib
-CNTRB_BU= ${CNTRB_ROOT}/binutils
-CNTRB_GDB= ${CNTRB_ROOT}/gdb
-CNTRB_RL= ${CNTRB_ROOT}/libreadline
-
-OBJ_ROOT= ${.OBJDIR}/../..
-OBJ_BU= ${OBJ_ROOT}/binutils
-OBJ_GDB= ${OBJ_ROOT}/gdb
-OBJ_RL= ${OBJ_ROOT}/../lib/libreadline/readline
+CNTRB_BU= ${SRCTOP}/contrib/binutils
+CNTRB_GDB= ${SRCTOP}/contrib/gdb
+CNTRB_RL= ${SRCTOP}/contrib/libreadline
+
+OBJ_BU= ${OBJTOP}/gnu/usr.bin/binutils
+OBJ_GDB= ${OBJTOP}/gnu/usr.bin/gdb
+OBJ_RL= ${OBJTOP}/gnu/lib/libreadline/readline
 
 # These assignments duplicate much of the functionality of
 # MACHINE_CPUARCH, but there's no easy way to export make functions...
@@ -47,12 +45,12 @@ CFLAGS+= -I${CNTRB_GDB}/gdb/config
 CFLAGS+= -I${CNTRB_BU}/include
 CFLAGS+= -I${CNTRB_GDB}/include
 CFLAGS+= -I${CNTRB_BU}/bfd
-CFLAGS+= -I${OBJ_RL}/..
+CFLAGS+= -I${OBJ_RL:H}
 
 GENSRCS+= nm.h tm.h
 
 .if defined(GDB_CROSS_DEBUGGER)
-CFLAGS+= -DCROSS_DEBUGGER -I${BMAKE_ROOT}/../..
+CFLAGS+= -DCROSS_DEBUGGER -I${BMAKE_ROOT:H:H}
 GDB_SUFFIX= -${TARGET_ARCH}
 MAN=
 .endif
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r313651 - head/lib/libc/tests/tls

2017-02-11 Thread Ngie Cooper
Author: ngie
Date: Sat Feb 11 20:14:50 2017
New Revision: 313651
URL: https://svnweb.freebsd.org/changeset/base/313651

Log:
  Manipulate OBJDIR with :H when referencing dso directory
  
  This reduces path lengths, etc in memory with make by a minimal value
  
  Sponsored by: Dell EMC Isilon

Modified:
  head/lib/libc/tests/tls/Makefile

Modified: head/lib/libc/tests/tls/Makefile
==
--- head/lib/libc/tests/tls/MakefileSat Feb 11 20:12:54 2017
(r313650)
+++ head/lib/libc/tests/tls/MakefileSat Feb 11 20:14:50 2017
(r313651)
@@ -16,7 +16,7 @@ NETBSD_ATF_TESTS_C+=  tls_dynamic_test
 
 .include "../Makefile.netbsd-tests"
 
-DSODIR=${.OBJDIR}/../tls_dso
+DSODIR=${.OBJDIR:H}/tls_dso
 
 LIBADD.tls_static_test+=   pthread
 LDFLAGS.tls_static_test+=  -static
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r313652 - head/usr.bin/bsdcat

2017-02-11 Thread Ngie Cooper
Author: ngie
Date: Sat Feb 11 20:18:24 2017
New Revision: 313652
URL: https://svnweb.freebsd.org/changeset/base/313652

Log:
  Use SRCTOP instead of .CURDIR relative paths with ".."
  
  This simplifies pathing in make/displayed output
  
  MFC after:1 week
  Sponsored by: Dell EMC Isilon

Modified:
  head/usr.bin/bsdcat/Makefile

Modified: head/usr.bin/bsdcat/Makefile
==
--- head/usr.bin/bsdcat/MakefileSat Feb 11 20:14:50 2017
(r313651)
+++ head/usr.bin/bsdcat/MakefileSat Feb 11 20:18:24 2017
(r313652)
@@ -2,10 +2,10 @@
 
 .include 
 
-_LIBARCHIVEDIR=${.CURDIR}/../../contrib/libarchive
-_LIBARCHIVECONFDIR=${.CURDIR}/../../lib/libarchive
+_LIBARCHIVEDIR=${SRCTOP}/contrib/libarchive
+_LIBARCHIVECONFDIR=${SRCTOP}/lib/libarchive
 
-PROG=  bsdcat  
+PROG=  bsdcat
 BSDCAT_VERSION_STRING= 3.2.2
 
 .PATH: ${_LIBARCHIVEDIR}/cat
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r313653 - head/usr.bin/atm/sscop

2017-02-11 Thread Ngie Cooper
Author: ngie
Date: Sat Feb 11 20:19:04 2017
New Revision: 313653
URL: https://svnweb.freebsd.org/changeset/base/313653

Log:
  Use SRCTOP instead of .CURDIR relative paths with ".."
  
  This simplifies pathing in make/displayed output
  
  MFC after:1 week
  Sponsored by: Dell EMC Isilon

Modified:
  head/usr.bin/atm/sscop/Makefile

Modified: head/usr.bin/atm/sscop/Makefile
==
--- head/usr.bin/atm/sscop/Makefile Sat Feb 11 20:18:24 2017
(r313652)
+++ head/usr.bin/atm/sscop/Makefile Sat Feb 11 20:19:04 2017
(r313653)
@@ -1,6 +1,6 @@
 # $FreeBSD$
 
-CONTRIB= ${.CURDIR}/../../../contrib/ngatm/sscop
+CONTRIB= ${SRCTOP}/contrib/ngatm/sscop
 
 .PATH: ${CONTRIB}
 
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r313654 - head/usr.bin/awk

2017-02-11 Thread Ngie Cooper
Author: ngie
Date: Sat Feb 11 20:27:06 2017
New Revision: 313654
URL: https://svnweb.freebsd.org/changeset/base/313654

Log:
  Use SRCTOP to refer to awk source in contrib/awk and remove unnecessary 
AWKSRC prefix
  for maketab.c
  
  The former simplifies pathing in make/displayed output, whereas the latter 
was just
  unnecessarily superfluous since .PATH referenced the path to maketab.c 
earlier on in
  the Makefile.
  
  MFC after:1 week
  Sponsored by: Dell EMC Isilon

Modified:
  head/usr.bin/awk/Makefile

Modified: head/usr.bin/awk/Makefile
==
--- head/usr.bin/awk/Makefile   Sat Feb 11 20:19:04 2017(r313653)
+++ head/usr.bin/awk/Makefile   Sat Feb 11 20:27:06 2017(r313654)
@@ -1,6 +1,6 @@
 # $FreeBSD$
 
-AWKSRC=${.CURDIR}/../../contrib/one-true-awk
+AWKSRC=${SRCTOP}/contrib/one-true-awk
 .PATH: ${AWKSRC}
 
 PROG=  awk
@@ -26,6 +26,6 @@ proctab.c: maketab
${BTOOLSPATH:U.}/maketab > proctab.c
 
 build-tools: maketab
-maketab: ytab.h ${AWKSRC}/maketab.c ${BUILD_TOOLS_META}
+maketab: ytab.h maketab.c ${BUILD_TOOLS_META}
 
 .include 
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r313656 - head/usr.bin/bluetooth

2017-02-11 Thread Ngie Cooper
Author: ngie
Date: Sat Feb 11 20:27:53 2017
New Revision: 313656
URL: https://svnweb.freebsd.org/changeset/base/313656

Log:
  Use SRCTOP to define .include with usr.bin/Makefile.inc
  
  MFC after:1 week
  Sponsored by: Dell EMC Isilon

Modified:
  head/usr.bin/bluetooth/Makefile.inc

Modified: head/usr.bin/bluetooth/Makefile.inc
==
--- head/usr.bin/bluetooth/Makefile.inc Sat Feb 11 20:27:39 2017
(r313655)
+++ head/usr.bin/bluetooth/Makefile.inc Sat Feb 11 20:27:53 2017
(r313656)
@@ -1,4 +1,4 @@
 # $FreeBSD$
 
-.include "${.CURDIR}/../../Makefile.inc"
+.include "${SRCTOP}/usr.bin/Makefile.inc"
 
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r313655 - head/sys/vm

2017-02-11 Thread Konstantin Belousov
Author: kib
Date: Sat Feb 11 20:27:39 2017
New Revision: 313655
URL: https://svnweb.freebsd.org/changeset/base/313655

Log:
  Change type of the prot parameter for kern_vm_mmap() from vm_prot_t to int.
  
  This makes the code to pass whole word of the mmap(2) syscall argument
  prot to the syscall helper kern_vm_mmap(), which can validate all
  bits.  The change provides temporal fix for sys/vm/mmap_test
  mmap__bad_arguments, which was broken after r313352.
  
  PR:   216976
  Reported and tested by:   ngie
  Sponsored by: The FreeBSD Foundation

Modified:
  head/sys/vm/vm_extern.h
  head/sys/vm/vm_mmap.c

Modified: head/sys/vm/vm_extern.h
==
--- head/sys/vm/vm_extern.h Sat Feb 11 20:27:06 2017(r313654)
+++ head/sys/vm/vm_extern.h Sat Feb 11 20:27:39 2017(r313655)
@@ -72,7 +72,7 @@ void kmem_init_zero_region(void);
 void kmeminit(void);
 
 int kern_vm_mmap(struct thread *td, vm_offset_t addr, vm_size_t size,
-vm_prot_t prot, int flags, int fd, off_t pos);
+int prot, int flags, int fd, off_t pos);
 int kern_vm_mprotect(struct thread *td, vm_offset_t addr, vm_size_t size,
 vm_prot_t prot);
 int kern_vm_msync(struct thread *td, vm_offset_t addr, vm_size_t size,

Modified: head/sys/vm/vm_mmap.c
==
--- head/sys/vm/vm_mmap.c   Sat Feb 11 20:27:06 2017(r313654)
+++ head/sys/vm/vm_mmap.c   Sat Feb 11 20:27:39 2017(r313655)
@@ -196,7 +196,7 @@ sys_mmap(struct thread *td, struct mmap_
 
 int
 kern_vm_mmap(struct thread *td, vm_offset_t addr, vm_size_t size,
-vm_prot_t prot, int flags, int fd, off_t pos)
+int prot, int flags, int fd, off_t pos)
 {
struct file *fp;
vm_size_t pageoff;
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r313657 - head/tests/sys/vm

2017-02-11 Thread Ngie Cooper
Author: ngie
Date: Sat Feb 11 20:31:57 2017
New Revision: 313657
URL: https://svnweb.freebsd.org/changeset/base/313657

Log:
  Revert r313565 -- :mmap__bad_arguments passes again after r313655
  
  PR:   216976
  Sponsored by: Dell EMC Isilon

Modified:
  head/tests/sys/vm/mmap_test.c

Modified: head/tests/sys/vm/mmap_test.c
==
--- head/tests/sys/vm/mmap_test.c   Sat Feb 11 20:27:53 2017
(r313656)
+++ head/tests/sys/vm/mmap_test.c   Sat Feb 11 20:31:57 2017
(r313657)
@@ -134,8 +134,6 @@ ATF_TC_BODY(mmap__bad_arguments, tc)
checked_mmap(PROT_READ, MAP_SHARED, devstatfd, 0,
"simple /dev/devstat shared");
 
-   atf_tc_expect_fail("extra PROT flags check fails due to recent mmap(2) 
changes; bug # 216976");
-
/* Extra PROT flags. */
checked_mmap(PROT_READ | PROT_WRITE | 0x10, MAP_ANON, -1, EINVAL,
"MAP_ANON with extra PROT flags");
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r313655 - head/sys/vm

2017-02-11 Thread Edward Tomasz Napierała
On 0211T2027, Konstantin Belousov wrote:
> Author: kib
> Date: Sat Feb 11 20:27:39 2017
> New Revision: 313655
> URL: https://svnweb.freebsd.org/changeset/base/313655
> 
> Log:
>   Change type of the prot parameter for kern_vm_mmap() from vm_prot_t to int.
>   
>   This makes the code to pass whole word of the mmap(2) syscall argument
>   prot to the syscall helper kern_vm_mmap(), which can validate all
>   bits.  The change provides temporal fix for sys/vm/mmap_test
>   mmap__bad_arguments, which was broken after r313352.

Thanks, and sorry for the breakage.

___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r313659 - head/bin/pwd

2017-02-11 Thread Baptiste Daroussin
Author: bapt
Date: Sat Feb 11 23:06:53 2017
New Revision: 313659
URL: https://svnweb.freebsd.org/changeset/base/313659

Log:
  Remove space at and of line
  
  Reported by:  make manlint
  MFC after:2 days

Modified:
  head/bin/pwd/pwd.1

Modified: head/bin/pwd/pwd.1
==
--- head/bin/pwd/pwd.1  Sat Feb 11 20:46:49 2017(r313658)
+++ head/bin/pwd/pwd.1  Sat Feb 11 23:06:53 2017(r313659)
@@ -87,7 +87,7 @@ utility conforms to
 .St -p1003.1-2001 .
 .Sh HISTORY
 The
-.Nm 
+.Nm
 command appeared in
 .At v5 .
 .Sh BUGS
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r313660 - head/bin/sh

2017-02-11 Thread Baptiste Daroussin
Author: bapt
Date: Sat Feb 11 23:09:50 2017
New Revision: 313660
URL: https://svnweb.freebsd.org/changeset/base/313660

Log:
  Remove empty Li
  
  Reported by:  make manlint
  MFC after:2 days

Modified:
  head/bin/sh/sh.1

Modified: head/bin/sh/sh.1
==
--- head/bin/sh/sh.1Sat Feb 11 23:06:53 2017(r313659)
+++ head/bin/sh/sh.1Sat Feb 11 23:09:50 2017(r313660)
@@ -1033,7 +1033,7 @@ The syntax of the
 command is:
 .Bd -unfilled -offset indent -compact
 .Ic case Ar word Ic in
-.Ar pattern Ns Li ) Ar list Li ;;
+.Ar pattern Ns ) Ar list Li ;;
 .Ar ...
 .Ic esac
 .Ed
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r313661 - head/usr.bin/env

2017-02-11 Thread Baptiste Daroussin
Author: bapt
Date: Sat Feb 11 23:14:28 2017
New Revision: 313661
URL: https://svnweb.freebsd.org/changeset/base/313661

Log:
  Escape Ss to avoid confusion by mdoc parser with the Ss macro
  
  Reported by:  make manlint
  MFC after:2 days

Modified:
  head/usr.bin/env/env.1

Modified: head/usr.bin/env/env.1
==
--- head/usr.bin/env/env.1  Sat Feb 11 23:09:50 2017(r313660)
+++ head/usr.bin/env/env.1  Sat Feb 11 23:14:28 2017(r313661)
@@ -133,7 +133,7 @@ is specified,
 prints out the names and values
 of the variables in the environment, with one name/value pair per line.
 .\"
-.Ss Details of Fl S Ss (split-string) processing
+.Ss Details of Fl S \&Ss (split-string) processing
 The processing of the
 .Fl S
 option will split the given
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r313662 - head/usr.bin/whois

2017-02-11 Thread Baptiste Daroussin
Author: bapt
Date: Sat Feb 11 23:36:52 2017
New Revision: 313662
URL: https://svnweb.freebsd.org/changeset/base/313662

Log:
  Add missing -width after -Bl -tag
  
  Reported by:  make manlint
  MFC after:2 days

Modified:
  head/usr.bin/whois/whois.1

Modified: head/usr.bin/whois/whois.1
==
--- head/usr.bin/whois/whois.1  Sat Feb 11 23:14:28 2017(r313661)
+++ head/usr.bin/whois/whois.1  Sat Feb 11 23:36:52 2017(r313662)
@@ -206,7 +206,7 @@ The operands specified to
 are treated independently and may be used
 as queries on different whois servers.
 .Sh ENVIRONMENT
-.Bl -tag
+.Bl -tag -width WHOIS_SERVER
 .It Ev WHOIS_SERVER
 The primary default whois server.
 If this is unset,
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r313663 - head/usr.bin/unzip

2017-02-11 Thread Baptiste Daroussin
Author: bapt
Date: Sat Feb 11 23:37:48 2017
New Revision: 313663
URL: https://svnweb.freebsd.org/changeset/base/313663

Log:
  Add missing section after .Xr reference
  
  Reported by:  make manlint
  MFC after:2 days

Modified:
  head/usr.bin/unzip/unzip.1

Modified: head/usr.bin/unzip/unzip.1
==
--- head/usr.bin/unzip/unzip.1  Sat Feb 11 23:36:52 2017(r313662)
+++ head/usr.bin/unzip/unzip.1  Sat Feb 11 23:37:48 2017(r313663)
@@ -171,7 +171,7 @@ The
 utility is only able to process ZIP archives handled by
 .Xr libarchive 3 .
 Depending on the installed version of
-.Xr libarchive ,
+.Xr libarchive 3 ,
 this may or may not include self-extracting archives.
 .Sh SEE ALSO
 .Xr libarchive 3
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r313664 - head/usr.bin/units

2017-02-11 Thread Baptiste Daroussin
Author: bapt
Date: Sat Feb 11 23:38:28 2017
New Revision: 313664
URL: https://svnweb.freebsd.org/changeset/base/313664

Log:
  Escape No to avoid confusion with the No macro
  
  Reported by:  make manlint
  MFC after:2 days

Modified:
  head/usr.bin/units/units.1

Modified: head/usr.bin/units/units.1
==
--- head/usr.bin/units/units.1  Sat Feb 11 23:37:48 2017(r313663)
+++ head/usr.bin/units/units.1  Sat Feb 11 23:38:28 2017(r313664)
@@ -14,33 +14,33 @@
 .Sh OPTIONS
 The following options are available:
 .Bl -tag -width indent
-.It Fl h No , Fl -help
+.It Fl h \&No , Fl -help
 Show an overview of options
-.It Fl f Ar filename No , Fl -file Ar filename
+.It Fl f Ar filename \&No , Fl -file Ar filename
 Specify the name of the units data file to load.
-.It Fl H Ar filename No , Fl -historyfile Ar filename
+.It Fl H Ar filename \&No , Fl -historyfile Ar filename
 Ignored, for compatibility with GNU units.
 .It Fl e , Fl -exponential
 Behave as if -o '%6e' was typed.
-.It Fl q No , Fl -quiet
+.It Fl q \&No , Fl -quiet
 Suppress prompting of the user for units and the display of statistics
 about the number of units loaded.
-.It Fl U No , Fl -unitsfile
+.It Fl U \&No , Fl -unitsfile
 If the default unit file exists prints its location.
 If not, print
 .Qo
 Units data file not found
 .Qc
-.It Fl t No , Fl -terse
+.It Fl t \&No , Fl -terse
 Only print the result.  This is used when calling
 .Nm
 from other programs for easy to parse results.
-.It Fl v No , Fl -verbose
+.It Fl v \&No , Fl -verbose
 Print the units in the conversion output.
 Be more verbose in general.
-.It Fl o Ar format No , Fl -output-format Ar format
+.It Fl o Ar format \&No , Fl -output-format Ar format
 Select the output format string by which numbers are printed.
-.It Fl V No , Fl -version
+.It Fl V \&No , Fl -version
 Print the version number, usage, and then exit.
 .It Ar from-unit to-unit
 Allow a single unit conversion to be done directly from the command
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r313665 - head/usr.bin/sdiff

2017-02-11 Thread Baptiste Daroussin
Author: bapt
Date: Sat Feb 11 23:39:14 2017
New Revision: 313665
URL: https://svnweb.freebsd.org/changeset/base/313665

Log:
  Remove useless .Pp after the .Sh macro and remove empty line
  
  Reported by:  make manlint
  MFC after:2 days

Modified:
  head/usr.bin/sdiff/sdiff.1

Modified: head/usr.bin/sdiff/sdiff.1
==
--- head/usr.bin/sdiff/sdiff.1  Sat Feb 11 23:38:28 2017(r313664)
+++ head/usr.bin/sdiff/sdiff.1  Sat Feb 11 23:39:14 2017(r313665)
@@ -167,8 +167,6 @@ The default is
 was written from scratch for the public domain by
 .An Ray Lai Aq r...@cyth.net .
 .Sh CAVEATS
-.Pp
 Tabs are treated as anywhere from one to eight characters wide,
 depending on the current column.
 Terminals that treat tabs as eight characters wide will look best.
-
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r313666 - head/usr.bin/revoke

2017-02-11 Thread Baptiste Daroussin
Author: bapt
Date: Sat Feb 11 23:39:56 2017
New Revision: 313666
URL: https://svnweb.freebsd.org/changeset/base/313666

Log:
  Remove empty space at EOL and escept Ed
  
  Reported by:  make manlint
  MFC after:2 days

Modified:
  head/usr.bin/revoke/revoke.1

Modified: head/usr.bin/revoke/revoke.1
==
--- head/usr.bin/revoke/revoke.1Sat Feb 11 23:39:14 2017
(r313665)
+++ head/usr.bin/revoke/revoke.1Sat Feb 11 23:39:56 2017
(r313666)
@@ -1,6 +1,6 @@
 .\" Copyright (c) 2009 Ed Schouten 
 .\" All rights reserved.
-.\" 
+.\"
 .\" Redistribution and use in source and binary forms, with or without
 .\" modification, are permitted provided that the following conditions
 .\" are met:
@@ -9,7 +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.
-.\" 
+.\"
 .\" THIS SOFTWARE IS PROVIDED BY THE 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
@@ -21,7 +21,7 @@
 .\" 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.
-.\" 
+.\"
 .\" $FreeBSD$
 .\"
 .Dd June 15, 2009
@@ -53,4 +53,4 @@ The
 program first appeared in
 .Fx 8.0 .
 .Sh AUTHORS
-.An Ed Schouten Aq Mt e...@freebsd.org
+.An \&Ed Schouten Aq Mt e...@freebsd.org
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r313667 - head/usr.bin/mkuzip

2017-02-11 Thread Baptiste Daroussin
Author: bapt
Date: Sat Feb 11 23:40:57 2017
New Revision: 313667
URL: https://svnweb.freebsd.org/changeset/base/313667

Log:
  Remove spaces at EOL and sort correctly the SEE ALSO section
  
  Reported by:  make manlint
  MFC after:2 days

Modified:
  head/usr.bin/mkuzip/mkuzip.8

Modified: head/usr.bin/mkuzip/mkuzip.8
==
--- head/usr.bin/mkuzip/mkuzip.8Sat Feb 11 23:39:56 2017
(r313666)
+++ head/usr.bin/mkuzip/mkuzip.8Sat Feb 11 23:40:57 2017
(r313667)
@@ -58,7 +58,7 @@ works in two phases:
 An
 .Ar infile
 image is split into clusters; each cluster is compressed using
-.Xr zlib 3 
+.Xr zlib 3
 or
 .Xr lzma 3 .
 .It
@@ -72,7 +72,7 @@ The options are:
 Name of the output file
 .Ar outfile .
 The default is to use the input name with the suffix
-.Pa .uzip 
+.Pa .uzip
 for the
 .Xr zlib 3
 compression or
@@ -174,8 +174,8 @@ to handle resulting images correctly.
 .Sh SEE ALSO
 .Xr gzip 1 ,
 .Xr xz 1 ,
-.Xr zlib 3 ,
 .Xr lzma 3 ,
+.Xr zlib 3 ,
 .Xr geom 4 ,
 .Xr geom_uzip 4 ,
 .Xr md 4 ,
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r313668 - head/usr.bin/mkimg

2017-02-11 Thread Baptiste Daroussin
Author: bapt
Date: Sat Feb 11 23:41:38 2017
New Revision: 313668
URL: https://svnweb.freebsd.org/changeset/base/313668

Log:
  Add missing section in manpage reference
  
  Reported by:  make manlint
  MFC after:2 days

Modified:
  head/usr.bin/mkimg/mkimg.1

Modified: head/usr.bin/mkimg/mkimg.1
==
--- head/usr.bin/mkimg/mkimg.1  Sat Feb 11 23:40:57 2017(r313667)
+++ head/usr.bin/mkimg/mkimg.1  Sat Feb 11 23:41:38 2017(r313668)
@@ -274,7 +274,7 @@ Directory to put temporary files in; def
 .Sh EXAMPLES
 To create a bootable disk image that is partitioned using the GPT scheme and
 containing a root file system that was previously created using
-.Xr makefs
+.Xr makefs 8
 and also containing a swap partition, run the
 .Nm
 utility as follows:
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r313669 - head/usr.bin/ipcrm

2017-02-11 Thread Baptiste Daroussin
Author: bapt
Date: Sat Feb 11 23:42:33 2017
New Revision: 313669
URL: https://svnweb.freebsd.org/changeset/base/313669

Log:
  Properly use .An macro before Authors name
  
  Reported by:  make manlint
  MFC after:2 days

Modified:
  head/usr.bin/ipcrm/ipcrm.1

Modified: head/usr.bin/ipcrm/ipcrm.1
==
--- head/usr.bin/ipcrm/ipcrm.1  Sat Feb 11 23:41:38 2017(r313668)
+++ head/usr.bin/ipcrm/ipcrm.1  Sat Feb 11 23:42:33 2017(r313669)
@@ -114,6 +114,9 @@ If the identifier or the key is -1, it w
 The wiping of all System V IPC objects was first implemented in
 .Fx 6.4 No and 7.1.
 .Sh AUTHORS
-The original author was Adam Glass.
-The wiping of all System V IPC objects was thought up by Callum
-Gibson and extended and implemented by Edwin Groothuis.
+The original author was
+.An Adam Glass .
+The wiping of all System V IPC objects was thought up by
+.An Callum Gibson
+and extended and implemented by
+.An Edwin Groothuis .
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r313670 - head/usr.bin/expand

2017-02-11 Thread Baptiste Daroussin
Author: bapt
Date: Sat Feb 11 23:43:12 2017
New Revision: 313670
URL: https://svnweb.freebsd.org/changeset/base/313670

Log:
  Escape Sm to avoid confusion with Sm macro
  
  Reported by:  make manlint
  MFC after:2 days

Modified:
  head/usr.bin/expand/expand.1

Modified: head/usr.bin/expand/expand.1
==
--- head/usr.bin/expand/expand.1Sat Feb 11 23:42:33 2017
(r313669)
+++ head/usr.bin/expand/expand.1Sat Feb 11 23:43:12 2017
(r313670)
@@ -81,7 +81,7 @@ If the
 .Fl a
 option is given, then tabs are inserted whenever they would compress the
 resultant file by replacing two or more characters.
-.It Fl t Sm Ar tab1 , tab2 , ... , tabn Sm
+.It Fl t \&Sm Ar tab1 , tab2 , ... , tabn \&Sm
 Set tab stops at column positions
 .Ar tab1 , tab2 , ... , tabn .
 If only a single number is given, tab stops are set that number of
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r313671 - head/usr.bin/bc

2017-02-11 Thread Baptiste Daroussin
Author: bapt
Date: Sat Feb 11 23:44:37 2017
New Revision: 313671
URL: https://svnweb.freebsd.org/changeset/base/313671

Log:
  Use correct date format
  
  Reported by:  make manlint
  MFC after:2 days

Modified:
  head/usr.bin/bc/bc.1

Modified: head/usr.bin/bc/bc.1
==
--- head/usr.bin/bc/bc.1Sat Feb 11 23:43:12 2017(r313670)
+++ head/usr.bin/bc/bc.1Sat Feb 11 23:44:37 2017(r313671)
@@ -35,7 +35,7 @@
 .\"
 .\"@(#)bc.16.8 (Berkeley) 8/8/91
 .\"
-.Dd November 21 2015 
+.Dd November 21, 2015
 .Dt BC 1
 .Os
 .Sh NAME
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r313672 - head/usr.bin/mail

2017-02-11 Thread Baptiste Daroussin
Author: bapt
Date: Sat Feb 11 23:45:10 2017
New Revision: 313672
URL: https://svnweb.freebsd.org/changeset/base/313672

Log:
  Remove useless Li macro
  
  Reported by:  make manlint
  MFC after:2 days

Modified:
  head/usr.bin/mail/mail.1

Modified: head/usr.bin/mail/mail.1
==
--- head/usr.bin/mail/mail.1Sat Feb 11 23:44:37 2017(r313671)
+++ head/usr.bin/mail/mail.1Sat Feb 11 23:45:10 2017(r313672)
@@ -1094,7 +1094,7 @@ Default is
 .Va save .
 .It Va searchheaders
 If this option is set, then a message-list specifier in the form
-.Dq Li / Ns Ar x Ns Li : Ns Ar y
+.Dq Li / Ns Ar x Ns : Ns Ar y
 will expand to all messages containing the substring
 .Ar y
 in the header field
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r313673 - in head/usr.bin: ctlstat mt perror uuencode

2017-02-11 Thread Baptiste Daroussin
Author: bapt
Date: Sat Feb 11 23:45:50 2017
New Revision: 313673
URL: https://svnweb.freebsd.org/changeset/base/313673

Log:
  Remove spaces at end of line
  
  Reported by:  make manlint
  MFC after:2 days

Modified:
  head/usr.bin/ctlstat/ctlstat.8
  head/usr.bin/mt/mt.1
  head/usr.bin/perror/perror.1
  head/usr.bin/uuencode/uuencode.1

Modified: head/usr.bin/ctlstat/ctlstat.8
==
--- head/usr.bin/ctlstat/ctlstat.8  Sat Feb 11 23:45:10 2017
(r313672)
+++ head/usr.bin/ctlstat/ctlstat.8  Sat Feb 11 23:45:50 2017
(r313673)
@@ -1,7 +1,7 @@
-.\" 
+.\"
 .\" Copyright (c) 2010 Silicon Graphics International Corp.
 .\" All rights reserved.
-.\" 
+.\"
 .\" Redistribution and use in source and binary forms, with or without
 .\" modification, are permitted provided that the following conditions
 .\" are met:
@@ -13,7 +13,7 @@
 .\"("Disclaimer") and any redistribution must be conditioned upon
 .\"including a substantially similar Disclaimer requirement for further
 .\"binary redistribution.
-.\" 
+.\"
 .\" NO WARRANTY
 .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 .\" "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
@@ -26,7 +26,7 @@
 .\" 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 DAMAGES.
-.\" 
+.\"
 .\" ctlstat utility man page.
 .\"
 .\" Author: Ken Merry 

Modified: head/usr.bin/mt/mt.1
==
--- head/usr.bin/mt/mt.1Sat Feb 11 23:45:10 2017(r313672)
+++ head/usr.bin/mt/mt.1Sat Feb 11 23:45:50 2017(r313673)
@@ -273,12 +273,12 @@ status command, this will be the same XM
 .Do
 .Nm
 status
-.Fl x 
+.Fl x
 .Dc
 .El
 .It Cm param
 Display or set parameters.
-One of 
+One of
 .Fl l ,
 .Fl s ,
 or
@@ -293,7 +293,7 @@ To display a specific parameter, specify
 .It Fl p Ar name
 Specify the parameter name to list (with
 .Fl l )
-or set (with 
+or set (with
 .Fl s ) .
 .It Fl q
 Enable quiet mode for parameter listing.
@@ -361,11 +361,11 @@ The drive will verify the checksum befor
 .El
 .It Cm locate
 Set the tape drive's logical position.
-One of 
+One of
 .Fl b ,
 .Fl e ,
 .Fl f ,
-or 
+or
 .Fl s
 must be specified to indicate the type of position.
 If the partition number is specified, the drive will first relocate to the

Modified: head/usr.bin/perror/perror.1
==
--- head/usr.bin/perror/perror.1Sat Feb 11 23:45:10 2017
(r313672)
+++ head/usr.bin/perror/perror.1Sat Feb 11 23:45:50 2017
(r313673)
@@ -1,8 +1,8 @@
-.\" 
+.\"
 .\" Copyright (c) 2009 Hudson River Trading LLC
 .\" Written by: George V. Neville-Neil 
 .\" All rights reserved.
-.\" 
+.\"
 .\" Redistribution and use in source and binary forms, with or without
 .\" modification, are permitted provided that the following conditions
 .\" are met:
@@ -11,7 +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.
-.\" 
+.\"
 .\" THIS SOFTWARE IS PROVIDED BY THE 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
@@ -23,7 +23,7 @@
 .\" 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.
-.\" 
+.\"
 .\" $FreeBSD$
 .\"
 .Dd May 12, 2009

Modified: head/usr.bin/uuencode/uuencode.1
==
--- head/usr.bin/uuencode/uuencode.1Sat Feb 11 23:45:10 2017
(r313672)
+++ head/usr.bin/uuencode/uuencode.1Sat Feb 11 23:45:50 2017
(r313673)
@@ -40,7 +40,7 @@
 .Sh SYNOPSIS
 .Nm
 .Op Fl m
-.Op Fl r 
+.Op Fl r
 .Op Fl o Ar output_file
 .Op Ar file
 .Ar name
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r313674 - in head/sys: arm/freescale/imx dev/usb/controller

2017-02-11 Thread Ian Lepore
Author: ian
Date: Sun Feb 12 00:52:22 2017
New Revision: 313674
URL: https://svnweb.freebsd.org/changeset/base/313674

Log:
  Enable usb low and full speed devices connected to the imx6 root hubs.
  
  This enables the PHY circuitry for UTMI+ level 2 and 3, and sets the
  flag to tell the ehci code that the root hub has a transaction translator
  in it.  For imx6 we can use the standard ehci_get_port_speed_portsc()
  function to find out what speed device is connected to the port.

Modified:
  head/sys/arm/freescale/imx/imx6_usbphy.c
  head/sys/dev/usb/controller/ehci_imx.c

Modified: head/sys/arm/freescale/imx/imx6_usbphy.c
==
--- head/sys/arm/freescale/imx/imx6_usbphy.cSat Feb 11 23:45:50 2017
(r313673)
+++ head/sys/arm/freescale/imx/imx6_usbphy.cSun Feb 12 00:52:22 2017
(r313674)
@@ -143,6 +143,10 @@ usbphy_attach(device_t dev)
bus_write_4(sc->mem_res, CTRL_SET_REG, CTRL_SFTRST);
bus_write_4(sc->mem_res, CTRL_CLR_REG, CTRL_SFTRST | CTRL_CLKGATE);
 
+   /* Set UTMI+ level 2+3 bits to enable low and full speed devices. */
+   bus_write_4(sc->mem_res, CTRL_SET_REG,
+   CTRL_ENUTMILEVEL2 | CTRL_ENUTMILEVEL3);
+
/* Power up: clear all bits in the powerdown register. */
bus_write_4(sc->mem_res, PWD_REG, 0);
 

Modified: head/sys/dev/usb/controller/ehci_imx.c
==
--- head/sys/dev/usb/controller/ehci_imx.c  Sat Feb 11 23:45:50 2017
(r313673)
+++ head/sys/dev/usb/controller/ehci_imx.c  Sun Feb 12 00:52:22 2017
(r313674)
@@ -298,8 +298,9 @@ imx_ehci_attach(device_t dev)
 * Set flags that affect ehci_init() behavior, and hook our post-reset
 * code into the standard controller code.
 */
-   esc->sc_flags |= EHCI_SCFLG_NORESTERM;
+   esc->sc_flags |= EHCI_SCFLG_NORESTERM | EHCI_SCFLG_TT;
esc->sc_vendor_post_reset = imx_ehci_post_reset;
+   esc->sc_vendor_get_port_speed = ehci_get_port_speed_portsc;
 
err = ehci_init(esc);
if (err != 0) {
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r313675 - in head/sys: netinet netinet6

2017-02-11 Thread Ermal Luçi
Author: eri
Date: Sun Feb 12 06:56:33 2017
New Revision: 313675
URL: https://svnweb.freebsd.org/changeset/base/313675

Log:
  Committed without approval from mentor.
  
  Reported by:  gnn

Modified:
  head/sys/netinet/in.h
  head/sys/netinet/in_pcb.c
  head/sys/netinet/in_pcb.h
  head/sys/netinet/ip_output.c
  head/sys/netinet/udp_usrreq.c
  head/sys/netinet6/in6.h
  head/sys/netinet6/in6_pcb.c
  head/sys/netinet6/in6_pcb.h
  head/sys/netinet6/ip6_output.c
  head/sys/netinet6/raw_ip6.c
  head/sys/netinet6/udp6_usrreq.c

Modified: head/sys/netinet/in.h
==
--- head/sys/netinet/in.h   Sun Feb 12 00:52:22 2017(r313674)
+++ head/sys/netinet/in.h   Sun Feb 12 06:56:33 2017(r313675)
@@ -433,8 +433,6 @@ __END_DECLS
 #defineIP_BINDANY  24   /* bool: allow bind to any address 
*/
 #defineIP_BINDMULTI25   /* bool: allow multiple listeners 
on a tuple */
 #defineIP_RSS_LISTEN_BUCKET26   /* int; set RSS listen bucket */
-#defineIP_ORIGDSTADDR  27   /* bool: receive IP dst addr/port 
w/dgram */
-#defineIP_RECVORIGDSTADDR  IP_ORIGDSTADDR
 
 /*
  * Options for controlling the firewall and dummynet.

Modified: head/sys/netinet/in_pcb.c
==
--- head/sys/netinet/in_pcb.c   Sun Feb 12 00:52:22 2017(r313674)
+++ head/sys/netinet/in_pcb.c   Sun Feb 12 06:56:33 2017(r313675)
@@ -2492,10 +2492,6 @@ db_print_inpflags(int inp_flags)
db_printf("%sINP_RECVDSTADDR", comma ? ", " : "");
comma = 1;
}
-   if (inp_flags & INP_ORIGDSTADDR) {
-   db_printf("%sINP_ORIGDSTADDR", comma ? ", " : "");
-   comma = 1;
-   }
if (inp_flags & INP_HDRINCL) {
db_printf("%sINP_HDRINCL", comma ? ", " : "");
comma = 1;

Modified: head/sys/netinet/in_pcb.h
==
--- head/sys/netinet/in_pcb.h   Sun Feb 12 00:52:22 2017(r313674)
+++ head/sys/netinet/in_pcb.h   Sun Feb 12 06:56:33 2017(r313675)
@@ -618,7 +618,6 @@ short   inp_so_options(const struct inpcb 
 #defineINP_RECVFLOWID  0x0100 /* populate recv datagram 
with flow info */
 #defineINP_RECVRSSBUCKETID 0x0200 /* populate recv datagram 
with bucket id */
 #defineINP_RATE_LIMIT_CHANGED  0x0400 /* rate limit needs 
attention */
-#defineINP_ORIGDSTADDR 0x0800 /* receive IP dst 
address/port */
 
 /*
  * Flags passed to in_pcblookup*() functions.

Modified: head/sys/netinet/ip_output.c
==
--- head/sys/netinet/ip_output.cSun Feb 12 00:52:22 2017
(r313674)
+++ head/sys/netinet/ip_output.cSun Feb 12 06:56:33 2017
(r313675)
@@ -1065,7 +1065,6 @@ ip_ctloutput(struct socket *so, struct s
case IP_MINTTL:
case IP_RECVOPTS:
case IP_RECVRETOPTS:
-   case IP_ORIGDSTADDR:
case IP_RECVDSTADDR:
case IP_RECVTTL:
case IP_RECVIF:
@@ -1127,10 +1126,6 @@ ip_ctloutput(struct socket *so, struct s
OPTSET(INP_RECVDSTADDR);
break;
 
-   case IP_ORIGDSTADDR:
-   OPTSET2(INP_ORIGDSTADDR, optval);
-   break;
-
case IP_RECVTTL:
OPTSET(INP_RECVTTL);
break;
@@ -1263,7 +1258,6 @@ ip_ctloutput(struct socket *so, struct s
case IP_MINTTL:
case IP_RECVOPTS:
case IP_RECVRETOPTS:
-   case IP_ORIGDSTADDR:
case IP_RECVDSTADDR:
case IP_RECVTTL:
case IP_RECVIF:
@@ -1309,10 +1303,6 @@ ip_ctloutput(struct socket *so, struct s
optval = OPTBIT(INP_RECVDSTADDR);
break;
 
-   case IP_ORIGDSTADDR:
-   optval = OPTBIT2(INP_ORIGDSTADDR);
-   break;
-
case IP_RECVTTL:
optval = OPTBIT(INP_RECVTTL);
break;

Modified: head/sys/netinet/udp_usrreq.c
==
--- head/sys/netinet/udp_usrreq.c   Sun Feb 12 00:52:22 2017
(r313674)
+++ head/sys/netinet/udp_usrreq.c   Sun Feb 12 06:56:33 2017
(r313675)
@@ -304,7 +304,7 @@ udp_append(struct inpcb *inp, struct ip 
 {
struct sockaddr *append_sa;
struct socket *so;
-   struct mbuf *tmpopts, *opts = NULL;
+ 

svn commit: r313678 - head/contrib/libpcap

2017-02-11 Thread Xin LI
Author: delphij
Date: Sun Feb 12 07:09:14 2017
New Revision: 313678
URL: https://svnweb.freebsd.org/changeset/base/313678

Log:
  Fixup mergeinfo.

Modified:
Directory Properties:
  head/contrib/libpcap/   (props changed)
___
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"