svn commit: r319683 - head/tools/regression/sockets/accf_data_attach

2017-06-07 Thread Gleb Smirnoff
Author: glebius
Date: Thu Jun  8 05:12:11 2017
New Revision: 319683
URL: https://svnweb.freebsd.org/changeset/base/319683

Log:
  Improve this unit test: make sure that the accept filter actually works.
  
  Before this test just checked scenario of setting and removing the accept
  filter at different states of the socket.  Now it also checks that accept
  filter works: we connect to the server, and then check that we can't accept,
  then we send 1 byte of data and check again.

Modified:
  head/tools/regression/sockets/accf_data_attach/accf_data_attach.c

Modified: head/tools/regression/sockets/accf_data_attach/accf_data_attach.c
==
--- head/tools/regression/sockets/accf_data_attach/accf_data_attach.c   Thu Jun 
 8 04:54:15 2017(r319682)
+++ head/tools/regression/sockets/accf_data_attach/accf_data_attach.c   Thu Jun 
 8 05:12:11 2017(r319683)
@@ -34,6 +34,7 @@
 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -64,7 +65,7 @@ main(void)
struct accept_filter_arg afa;
struct sockaddr_in sin;
socklen_t len;
-   int lso, ret;
+   int lso, so, i, ret;
 
/* XXX: PLAIN_TEST_REQUIRE_MODULE "backport" for stable/9 */
const char *_mod_name = "accf_data";
@@ -76,7 +77,7 @@ main(void)
}
/* XXX: PLAIN_TEST_REQUIRE_MODULE for stable/9 */
 
-   printf("1..11\n");
+   printf("1..12\n");
 
/*
 * Step 0. Open socket().
@@ -103,6 +104,7 @@ main(void)
/*
 * Step 2. Bind().  Ideally this will succeed.
 */
+   setsockopt(lso, SOL_SOCKET, SO_REUSEADDR, , sizeof(lso));
bzero(, sizeof(sin));
sin.sin_len = sizeof(sin);
sin.sin_family = AF_INET;
@@ -203,24 +205,53 @@ main(void)
printf("ok 10 - getsockopt\n");
 
/*
-* Step 10: Remove accept filter.  After removing the accept filter
+* Step 10: Set listening socket to non blocking mode.  Open
+* connection to our listening socket and try to accept.  Should
+* no succeed.  Write a byte of data and try again.  Should accept.
+*/
+   i = fcntl(lso, F_GETFL);
+   if (i < 0)
+   errx(-1, "not ok 11 - ioctl(F_GETFL): %s", strerror(errno));
+   i |= O_NONBLOCK;
+   if (fcntl(lso, F_SETFL, i) != 0)
+   errx(-1, "not ok 11 - ioctl(F_SETFL): %s", strerror(errno));
+   so = socket(PF_INET, SOCK_STREAM, 0);
+   if (so == -1)
+   errx(-1, "not ok 11 - socket: %s", strerror(errno));
+   if (connect(so, (struct sockaddr *), sizeof(sin)) < 0)
+   errx(-1, "not ok 11 - connect %s", strerror(errno));
+   if (accept(lso, NULL, 0) != -1 && errno != EWOULDBLOCK)
+   errx(-1, "not ok 11 - accept #1 %s", strerror(errno));
+   if (write(so, "0", 1) != 1)
+   errx(-1, "not ok 11 - write %s", strerror(errno));
+   /*
+* XXXGL: ugly, but we need to make sure that our write reaches
+* remote side of the socket.
+*/
+   usleep(1);
+   if (accept(lso, NULL, 0) < 1)
+   errx(-1, "not ok 11 - accept #2 %s", strerror(errno));
+   printf("ok 11 - accept\n");
+
+   /*
+* Step 11: Remove accept filter.  After removing the accept filter
 * getsockopt() should fail with EINVAL.
 */
ret = setsockopt(lso, SOL_SOCKET, SO_ACCEPTFILTER, NULL, 0);
if (ret != 0)
-   errx(-1, "not ok 11 - setsockopt() after listen() "
+   errx(-1, "not ok 12 - setsockopt() after listen() "
"failed with %d (%s)", errno, strerror(errno));
bzero(, sizeof(afa));
len = sizeof(afa);
ret = getsockopt(lso, SOL_SOCKET, SO_ACCEPTFILTER, , );
if (ret == 0)
-   errx(-1, "not ok 11 - getsockopt() after removing "
+   errx(-1, "not ok 12 - getsockopt() after removing "
"the accept filter returns valid accept filter %s",
afa.af_name);
if (errno != EINVAL)
-   errx(-1, "not ok 11 - getsockopt() after removing the accept"
+   errx(-1, "not ok 12 - getsockopt() after removing the accept"
"filter failed with %d (%s)", errno, strerror(errno));
-   printf("ok 11 - setsockopt\n");
+   printf("ok 12 - setsockopt\n");
 
close(lso);
return (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: r319682 - head/usr.sbin/bhyve

2017-06-07 Thread Marcelo Araujo
Author: araujo
Date: Thu Jun  8 04:54:15 2017
New Revision: 319682
URL: https://svnweb.freebsd.org/changeset/base/319682

Log:
  Make the VNC authentication build with LibreSSL on HardenedBSD and TrueOS.
  
  PR:   219790
  Submitted by: Shirkdog 
  Reviewed by:  grehan and rgrimes
  MFC after:4 weeks.
  Sponsored by: iXsystems, Inc.
  Differential Revision:https://reviews.freebsd.org/D11071

Modified:
  head/usr.sbin/bhyve/rfb.c

Modified: head/usr.sbin/bhyve/rfb.c
==
--- head/usr.sbin/bhyve/rfb.c   Thu Jun  8 04:50:50 2017(r319681)
+++ head/usr.sbin/bhyve/rfb.c   Thu Jun  8 04:54:15 2017(r319682)
@@ -832,12 +832,14 @@ rfb_handle(struct rfb_softc *rc, int cfd)
memcpy(crypt_expected, challenge, AUTH_LENGTH);
 
/* Encrypt the Challenge with DES */
-   DES_set_key((C_Block *)keystr, );
-   DES_ecb_encrypt((C_Block *)challenge,
-   (C_Block *)crypt_expected, , DES_ENCRYPT);
-   DES_ecb_encrypt((C_Block *)(challenge + PASSWD_LENGTH),
-   (C_Block *)(crypt_expected + PASSWD_LENGTH),
+   DES_set_key((const_DES_cblock *)keystr, );
+   DES_ecb_encrypt((const_DES_cblock *)challenge,
+   (const_DES_cblock *)crypt_expected,
, DES_ENCRYPT);
+   DES_ecb_encrypt((const_DES_cblock *)(challenge + PASSWD_LENGTH),
+   (const_DES_cblock *)(crypt_expected +
+   PASSWD_LENGTH),
+   , DES_ENCRYPT);
 
if (memcmp(crypt_expected, buf, AUTH_LENGTH) != 0) {
message = "Auth Failed: Invalid Password.";
@@ -858,7 +860,7 @@ rfb_handle(struct rfb_softc *rc, int cfd)
if (sres) {
*((uint32_t *) buf) = htonl(strlen(message));
stream_write(cfd, buf, 4);
-stream_write(cfd, message, strlen(message));
+   stream_write(cfd, message, strlen(message));
goto done;
}
 
___
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: r319681 - head/usr.bin/truss

2017-06-07 Thread John Baldwin
Author: jhb
Date: Thu Jun  8 04:50:50 2017
New Revision: 319681
URL: https://svnweb.freebsd.org/changeset/base/319681

Log:
  Decode arguments to mlock(), mlockall(), and munlock().

Modified:
  head/usr.bin/truss/syscall.h
  head/usr.bin/truss/syscalls.c

Modified: head/usr.bin/truss/syscall.h
==
--- head/usr.bin/truss/syscall.hThu Jun  8 04:45:13 2017
(r319680)
+++ head/usr.bin/truss/syscall.hThu Jun  8 04:50:50 2017
(r319681)
@@ -49,7 +49,7 @@ enum Argtype { None = 1, Hex, Octal, Int, UInt, LongHe
CapFcntlRights, Fadvice, FileFlags, Flockop, Getfsstatmode, Kldsymcmd,
Kldunloadflags, Sizet, Madvice, Socklent, Sockprotocol, Sockoptlevel,
Sockoptname, Msgflags, CapRights, PUInt, PQuadHex, Acltype,
-   Extattrnamespace, Minherit,
+   Extattrnamespace, Minherit, Mlockall,
 
CloudABIAdvice, CloudABIClockID, ClouduABIFDSFlags,
CloudABIFDStat, CloudABIFileStat, CloudABIFileType,

Modified: head/usr.bin/truss/syscalls.c
==
--- head/usr.bin/truss/syscalls.c   Thu Jun  8 04:45:13 2017
(r319680)
+++ head/usr.bin/truss/syscalls.c   Thu Jun  8 04:50:50 2017
(r319681)
@@ -313,6 +313,10 @@ static struct syscall decoded_syscalls[] = {
  .args = { { Name, 0 }, { Octal, 1 }, { Int, 2 } } },
{ .name = "mknodat", .ret_type = 1, .nargs = 4,
  .args = { { Atfd, 0 }, { Name, 1 }, { Octal, 2 }, { Int, 3 } } },
+   { .name = "mlock", .ret_type = 1, .nargs = 2,
+ .args = { { Ptr, 0 }, { Sizet, 1 } } },
+   { .name = "mlockall", .ret_type = 1, .nargs = 1,
+ .args = { { Mlockall, 0 } } },
{ .name = "mmap", .ret_type = 1, .nargs = 6,
  .args = { { Ptr, 0 }, { Sizet, 1 }, { Mprot, 2 }, { Mmapflags, 3 },
{ Int, 4 }, { QuadHex, 5 } } },
@@ -322,6 +326,8 @@ static struct syscall decoded_syscalls[] = {
  .args = { { Name, 0 }, { Name, 1 }, { Int, 2 }, { Ptr, 3 } } },
{ .name = "mprotect", .ret_type = 1, .nargs = 3,
  .args = { { Ptr, 0 }, { Sizet, 1 }, { Mprot, 2 } } },
+   { .name = "munlock", .ret_type = 1, .nargs = 2,
+ .args = { { Ptr, 0 }, { Sizet, 1 } } },
{ .name = "munmap", .ret_type = 1, .nargs = 2,
  .args = { { Ptr, 0 }, { Sizet, 1 } } },
{ .name = "nanosleep", .ret_type = 1, .nargs = 1,
@@ -2103,6 +2109,9 @@ print_arg(struct syscall_args *sc, unsigned long *args
case Minherit:
print_integer_arg(sysdecode_minherit_inherit, fp,
args[sc->offset]);
+   break;
+   case Mlockall:
+   print_mask_arg(sysdecode_mlockall_flags, fp, args[sc->offset]);
break;
 
case CloudABIAdvice:
___
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: r319680 - head/usr.bin/truss

2017-06-07 Thread John Baldwin
Author: jhb
Date: Thu Jun  8 04:45:13 2017
New Revision: 319680
URL: https://svnweb.freebsd.org/changeset/base/319680

Log:
  Decode arguments to minherit().

Modified:
  head/usr.bin/truss/syscall.h
  head/usr.bin/truss/syscalls.c

Modified: head/usr.bin/truss/syscall.h
==
--- head/usr.bin/truss/syscall.hThu Jun  8 04:31:15 2017
(r319679)
+++ head/usr.bin/truss/syscall.hThu Jun  8 04:45:13 2017
(r319680)
@@ -49,7 +49,7 @@ enum Argtype { None = 1, Hex, Octal, Int, UInt, LongHe
CapFcntlRights, Fadvice, FileFlags, Flockop, Getfsstatmode, Kldsymcmd,
Kldunloadflags, Sizet, Madvice, Socklent, Sockprotocol, Sockoptlevel,
Sockoptname, Msgflags, CapRights, PUInt, PQuadHex, Acltype,
-   Extattrnamespace,
+   Extattrnamespace, Minherit,
 
CloudABIAdvice, CloudABIClockID, ClouduABIFDSFlags,
CloudABIFDStat, CloudABIFileStat, CloudABIFileType,

Modified: head/usr.bin/truss/syscalls.c
==
--- head/usr.bin/truss/syscalls.c   Thu Jun  8 04:31:15 2017
(r319679)
+++ head/usr.bin/truss/syscalls.c   Thu Jun  8 04:45:13 2017
(r319680)
@@ -299,6 +299,8 @@ static struct syscall decoded_syscalls[] = {
  .args = { { Name | IN, 0 }, { Timeval2 | IN, 1 } } },
{ .name = "madvise", .ret_type = 1, .nargs = 3,
  .args = { { Ptr, 0 }, { Sizet, 1 }, { Madvice, 2 } } },
+   { .name = "minherit", .ret_type = 1, .nargs = 3,
+ .args = { { Ptr, 0 }, { Sizet, 1 }, { Minherit, 2 } } },
{ .name = "mkdir", .ret_type = 1, .nargs = 2,
  .args = { { Name, 0 }, { Octal, 1 } } },
{ .name = "mkdirat", .ret_type = 1, .nargs = 3,
@@ -2096,6 +2098,10 @@ print_arg(struct syscall_args *sc, unsigned long *args
break;
case Extattrnamespace:
print_integer_arg(sysdecode_extattrnamespace, fp,
+   args[sc->offset]);
+   break;
+   case Minherit:
+   print_integer_arg(sysdecode_minherit_inherit, fp,
args[sc->offset]);
break;
 
___
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: r319679 - head/usr.bin/truss

2017-06-07 Thread John Baldwin
Author: jhb
Date: Thu Jun  8 04:31:15 2017
New Revision: 319679
URL: https://svnweb.freebsd.org/changeset/base/319679

Log:
  Decode arguments passed to extended attribute related system calls.
  
  The cmd argument passed to extattrctl() is not decoded as a string constant
  but is just printed in hex.  The value is filesystem-specific but in
  practice is only used with UFS1 filesystems.

Modified:
  head/usr.bin/truss/syscall.h
  head/usr.bin/truss/syscalls.c

Modified: head/usr.bin/truss/syscall.h
==
--- head/usr.bin/truss/syscall.hThu Jun  8 04:02:14 2017
(r319678)
+++ head/usr.bin/truss/syscall.hThu Jun  8 04:31:15 2017
(r319679)
@@ -49,6 +49,7 @@ enum Argtype { None = 1, Hex, Octal, Int, UInt, LongHe
CapFcntlRights, Fadvice, FileFlags, Flockop, Getfsstatmode, Kldsymcmd,
Kldunloadflags, Sizet, Madvice, Socklent, Sockprotocol, Sockoptlevel,
Sockoptname, Msgflags, CapRights, PUInt, PQuadHex, Acltype,
+   Extattrnamespace,
 
CloudABIAdvice, CloudABIClockID, ClouduABIFDSFlags,
CloudABIFDStat, CloudABIFileStat, CloudABIFileType,

Modified: head/usr.bin/truss/syscalls.c
==
--- head/usr.bin/truss/syscalls.c   Thu Jun  8 04:02:14 2017
(r319678)
+++ head/usr.bin/truss/syscalls.c   Thu Jun  8 04:31:15 2017
(r319679)
@@ -160,6 +160,42 @@ static struct syscall decoded_syscalls[] = {
{ ExecEnv | IN, 2 } } },
{ .name = "exit", .ret_type = 0, .nargs = 1,
  .args = { { Hex, 0 } } },
+   { .name = "extattr_delete_fd", .ret_type = 1, .nargs = 3,
+ .args = { { Int, 0 }, { Extattrnamespace, 1 }, { Name, 2 } } },
+   { .name = "extattr_delete_file", .ret_type = 1, .nargs = 3,
+ .args = { { Name, 0 }, { Extattrnamespace, 1 }, { Name, 2 } } },
+   { .name = "extattr_delete_link", .ret_type = 1, .nargs = 3,
+ .args = { { Name, 0 }, { Extattrnamespace, 1 }, { Name, 2 } } },
+   { .name = "extattr_get_fd", .ret_type = 1, .nargs = 5,
+ .args = { { Int, 0 }, { Extattrnamespace, 1 }, { Name, 2 },
+   { BinString | OUT, 3 }, { Sizet, 4 } } },
+   { .name = "extattr_get_file", .ret_type = 1, .nargs = 5,
+ .args = { { Name, 0 }, { Extattrnamespace, 1 }, { Name, 2 },
+   { BinString | OUT, 3 }, { Sizet, 4 } } },
+   { .name = "extattr_get_link", .ret_type = 1, .nargs = 5,
+ .args = { { Name, 0 }, { Extattrnamespace, 1 }, { Name, 2 },
+   { BinString | OUT, 3 }, { Sizet, 4 } } },
+   { .name = "extattr_list_fd", .ret_type = 1, .nargs = 4,
+ .args = { { Int, 0 }, { Extattrnamespace, 1 }, { BinString | OUT, 2 },
+   { Sizet, 3 } } },
+   { .name = "extattr_list_file", .ret_type = 1, .nargs = 4,
+ .args = { { Name, 0 }, { Extattrnamespace, 1 }, { BinString | OUT, 2 
},
+   { Sizet, 3 } } },
+   { .name = "extattr_list_link", .ret_type = 1, .nargs = 4,
+ .args = { { Name, 0 }, { Extattrnamespace, 1 }, { BinString | OUT, 2 
},
+   { Sizet, 3 } } },
+   { .name = "extattr_set_fd", .ret_type = 1, .nargs = 5,
+ .args = { { Int, 0 }, { Extattrnamespace, 1 }, { Name, 2 },
+   { BinString | IN, 3 }, { Sizet, 4 } } },
+   { .name = "extattr_set_file", .ret_type = 1, .nargs = 5,
+ .args = { { Name, 0 }, { Extattrnamespace, 1 }, { Name, 2 },
+   { BinString | IN, 3 }, { Sizet, 4 } } },
+   { .name = "extattr_set_link", .ret_type = 1, .nargs = 5,
+ .args = { { Name, 0 }, { Extattrnamespace, 1 }, { Name, 2 },
+   { BinString | IN, 3 }, { Sizet, 4 } } },
+   { .name = "extattrctl", .ret_type = 1, .nargs = 5,
+ .args = { { Name, 0 }, { Hex, 1 }, { Name, 2 },
+   { Extattrnamespace, 3 }, { Name, 4 } } },
{ .name = "faccessat", .ret_type = 1, .nargs = 4,
  .args = { { Atfd, 0 }, { Name | IN, 1 }, { Accessmode, 2 },
{ Atflags, 3 } } },
@@ -2057,6 +2093,10 @@ print_arg(struct syscall_args *sc, unsigned long *args
}
case Acltype:
print_integer_arg(sysdecode_acltype, fp, args[sc->offset]);
+   break;
+   case Extattrnamespace:
+   print_integer_arg(sysdecode_extattrnamespace, fp,
+   args[sc->offset]);
break;
 
case CloudABIAdvice:
___
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: r319678 - in head/sys: kern sys x86/x86

2017-06-07 Thread Marcelo Araujo
Author: araujo
Date: Thu Jun  8 04:02:14 2017
New Revision: 319678
URL: https://svnweb.freebsd.org/changeset/base/319678

Log:
  Allow sysctl kern.vm_guest to return bhyve when running under bhyve.
  
  Submitted by: Sean Fagan 
  Reviewed by:  grehan
  MFH:  4 weeks.
  Sponsored by: iXsystems, Inc.
  Differential Revision:https://reviews.freebsd.org/D11090

Modified:
  head/sys/kern/subr_param.c
  head/sys/sys/systm.h
  head/sys/x86/x86/identcpu.c

Modified: head/sys/kern/subr_param.c
==
--- head/sys/kern/subr_param.c  Thu Jun  8 03:51:17 2017(r319677)
+++ head/sys/kern/subr_param.c  Thu Jun  8 04:02:14 2017(r319678)
@@ -149,6 +149,7 @@ static const char *const vm_guest_sysctl_names[] = {
"hv",
"vmware",
"kvm",
+   "bhyve",
NULL
 };
 CTASSERT(nitems(vm_guest_sysctl_names) - 1 == VM_LAST);

Modified: head/sys/sys/systm.h
==
--- head/sys/sys/systm.hThu Jun  8 03:51:17 2017(r319677)
+++ head/sys/sys/systm.hThu Jun  8 04:02:14 2017(r319678)
@@ -76,7 +76,7 @@ extern int vm_guest;  /* Running as virtual machine gu
  * Keep in sync with vm_guest_sysctl_names[].
  */
 enum VM_GUEST { VM_GUEST_NO = 0, VM_GUEST_VM, VM_GUEST_XEN, VM_GUEST_HV,
-   VM_GUEST_VMWARE, VM_GUEST_KVM, VM_LAST };
+   VM_GUEST_VMWARE, VM_GUEST_KVM, VM_GUEST_BHYVE, VM_LAST };
 
 #if defined(WITNESS) || defined(INVARIANT_SUPPORT)
 void   kassert_panic(const char *fmt, ...)  __printflike(1, 2);

Modified: head/sys/x86/x86/identcpu.c
==
--- head/sys/x86/x86/identcpu.c Thu Jun  8 03:51:17 2017(r319677)
+++ head/sys/x86/x86/identcpu.c Thu Jun  8 04:02:14 2017(r319678)
@@ -1282,6 +1282,8 @@ identify_hypervisor(void)
vm_guest = VM_GUEST_HV;
else if (strcmp(hv_vendor, "KVMKVMKVM") == 0)
vm_guest = VM_GUEST_KVM;
+   else if (strcmp(hv_vendor, "bhyve bhyve") == 0)
+   vm_guest = VM_GUEST_BHYVE;
}
return;
}
___
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: r317512 - in head: sys/conf sys/libkern sys/libkern/arm64 sys/sys tests/sys/kern

2017-06-07 Thread Ed Maste
On 7 June 2017 at 18:18, Ed Maste  wrote:
> On 27 April 2017 at 13:53, Michael Tuexen  wrote:
>> Author: tuexen
>> Date: Thu Apr 27 17:53:05 2017
>> New Revision: 317512
>> URL: https://svnweb.freebsd.org/changeset/base/317512
>
> FYI when compiling this with the clang500-import branch I see:
>
> /scratch/tmp/emaste/freebsd/sys/libkern/arm64/crc32c_armv8.S:41:2:
> error: instruction requires: crc
>  crc32cb w0, w0, w10
>  ^

Andrew pointed out this is because there's no .arch armv8-a+crc
directive -- which was not supported by Clang 3.8, is supported by
Clang 4.0, and is required by Clang 5.0. I will commit it soon.
___
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: r319677 - head/usr.bin/truss

2017-06-07 Thread John Baldwin
Author: jhb
Date: Thu Jun  8 03:51:17 2017
New Revision: 319677
URL: https://svnweb.freebsd.org/changeset/base/319677

Log:
  Decode arguments to ACL related system calls.
  
  This only decodes the raw arguments but not the contents of the struct acl
  objects.

Modified:
  head/usr.bin/truss/syscall.h
  head/usr.bin/truss/syscalls.c

Modified: head/usr.bin/truss/syscall.h
==
--- head/usr.bin/truss/syscall.hThu Jun  8 03:15:08 2017
(r319676)
+++ head/usr.bin/truss/syscall.hThu Jun  8 03:51:17 2017
(r319677)
@@ -48,7 +48,7 @@ enum Argtype { None = 1, Hex, Octal, Int, UInt, LongHe
Sysarch, ExecArgs, ExecEnv, PipeFds, QuadHex, Utrace, IntArray, Pipe2,
CapFcntlRights, Fadvice, FileFlags, Flockop, Getfsstatmode, Kldsymcmd,
Kldunloadflags, Sizet, Madvice, Socklent, Sockprotocol, Sockoptlevel,
-   Sockoptname, Msgflags, CapRights, PUInt, PQuadHex,
+   Sockoptname, Msgflags, CapRights, PUInt, PQuadHex, Acltype,
 
CloudABIAdvice, CloudABIClockID, ClouduABIFDSFlags,
CloudABIFDStat, CloudABIFileStat, CloudABIFileType,

Modified: head/usr.bin/truss/syscalls.c
==
--- head/usr.bin/truss/syscalls.c   Thu Jun  8 03:15:08 2017
(r319676)
+++ head/usr.bin/truss/syscalls.c   Thu Jun  8 03:51:17 2017
(r319677)
@@ -77,6 +77,30 @@ __FBSDID("$FreeBSD$");
  */
 static struct syscall decoded_syscalls[] = {
/* Native ABI */
+   { .name = "__acl_aclcheck_fd", .ret_type = 1, .nargs = 3,
+ .args = { { Int, 0 }, { Acltype, 1 }, { Ptr, 2 } } },
+   { .name = "__acl_aclcheck_file", .ret_type = 1, .nargs = 3,
+ .args = { { Name, 0 }, { Acltype, 1 }, { Ptr, 2 } } },
+   { .name = "__acl_aclcheck_link", .ret_type = 1, .nargs = 3,
+ .args = { { Name, 0 }, { Acltype, 1 }, { Ptr, 2 } } },
+   { .name = "__acl_delete_fd", .ret_type = 1, .nargs = 2,
+ .args = { { Int, 0 }, { Acltype, 1 } } },
+   { .name = "__acl_delete_file", .ret_type = 1, .nargs = 2,
+ .args = { { Name, 0 }, { Acltype, 1 } } },
+   { .name = "__acl_delete_link", .ret_type = 1, .nargs = 2,
+ .args = { { Name, 0 }, { Acltype, 1 } } },
+   { .name = "__acl_get_fd", .ret_type = 1, .nargs = 3,
+ .args = { { Int, 0 }, { Acltype, 1 }, { Ptr, 2 } } },
+   { .name = "__acl_get_file", .ret_type = 1, .nargs = 3,
+ .args = { { Name, 0 }, { Acltype, 1 }, { Ptr, 2 } } },
+   { .name = "__acl_get_link", .ret_type = 1, .nargs = 3,
+ .args = { { Name, 0 }, { Acltype, 1 }, { Ptr, 2 } } },
+   { .name = "__acl_set_fd", .ret_type = 1, .nargs = 3,
+ .args = { { Int, 0 }, { Acltype, 1 }, { Ptr, 2 } } },
+   { .name = "__acl_set_file", .ret_type = 1, .nargs = 3,
+ .args = { { Name, 0 }, { Acltype, 1 }, { Ptr, 2 } } },
+   { .name = "__acl_set_link", .ret_type = 1, .nargs = 3,
+ .args = { { Name, 0 }, { Acltype, 1 }, { Ptr, 2 } } },
{ .name = "__cap_rights_get", .ret_type = 1, .nargs = 3,
  .args = { { Int, 0 }, { Int, 1 }, { CapRights | OUT, 2 } } },
{ .name = "__getcwd", .ret_type = 1, .nargs = 2,
@@ -2031,6 +2055,9 @@ print_arg(struct syscall_args *sc, unsigned long *args
fprintf(fp, "0x%lx", args[sc->offset]);
break;
}
+   case Acltype:
+   print_integer_arg(sysdecode_acltype, fp, args[sc->offset]);
+   break;
 
case CloudABIAdvice:
fputs(xlookup(cloudabi_advice, args[sc->offset]), fp);
___
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: r319676 - head/usr.bin/patch

2017-06-07 Thread Pedro F. Giffuni
Author: pfg
Date: Thu Jun  8 03:15:08 2017
New Revision: 319676
URL: https://svnweb.freebsd.org/changeset/base/319676

Log:
  patch: if reading fails, do not go into infinite loop asking for a filename.
  
  This can happen if no tty is available.
  
  Obtained from:OpenBSD (CVS rev 1.54)
  MFC after:5 days

Modified:
  head/usr.bin/patch/pch.c

Modified: head/usr.bin/patch/pch.c
==
--- head/usr.bin/patch/pch.cThu Jun  8 02:44:34 2017(r319675)
+++ head/usr.bin/patch/pch.cThu Jun  8 03:15:08 2017(r319676)
@@ -216,8 +216,10 @@ there_is_another_patch(void)
filearg[0] = fetchname(buf, , 0);
}
if (!exists) {
-   ask("No file found--skip this patch? [n] ");
-   if (*buf != 'y')
+   int def_skip = *bestguess == '\0';
+   ask("No file found--skip this patch? [%c] ",
+   def_skip  ? 'y' : 'n');
+   if (*buf == 'n' || (!def_skip && *buf != 'y'))
continue;
if (verbose)
say("Skipping patch...\n");
___
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: r319675 - in head/sys/compat/linuxkpi/common: include/linux src

2017-06-07 Thread Justin Hibbits
On Wednesday, June 7, 2017, Justin Hibbits  wrote:

> Author: jhibbits
> Date: Thu Jun  8 02:44:34 2017
> New Revision: 319675
> URL: https://svnweb.freebsd.org/changeset/base/319675
>
> Log:
>   Remove ARM and MIPS from linuxkpi ioremap_attr definition
>
>   ARM and MIPS fail universe builds.
>
>   ARM and MIPS are missing the following:
>   * VM_MEMATTR_WRITE_THROUGH
>   * VM_MEMATTR_WRITE_COMBINING
>
>
In actuality, only ARMv4 and MIPS are missing these.  ARMv6 has them.

- Justin
___
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: r319675 - in head/sys/compat/linuxkpi/common: include/linux src

2017-06-07 Thread Justin Hibbits
Author: jhibbits
Date: Thu Jun  8 02:44:34 2017
New Revision: 319675
URL: https://svnweb.freebsd.org/changeset/base/319675

Log:
  Remove ARM and MIPS from linuxkpi ioremap_attr definition
  
  ARM and MIPS fail universe builds.
  
  ARM and MIPS are missing the following:
  * VM_MEMATTR_WRITE_THROUGH
  * VM_MEMATTR_WRITE_COMBINING
  
  Pointy-hat to:jhibbits

Modified:
  head/sys/compat/linuxkpi/common/include/linux/io.h
  head/sys/compat/linuxkpi/common/src/linux_compat.c

Modified: head/sys/compat/linuxkpi/common/include/linux/io.h
==
--- head/sys/compat/linuxkpi/common/include/linux/io.h  Thu Jun  8 01:42:32 
2017(r319674)
+++ head/sys/compat/linuxkpi/common/include/linux/io.h  Thu Jun  8 02:44:34 
2017(r319675)
@@ -180,8 +180,7 @@ _outb(u_char data, u_int port)
 }
 #endif
 
-#if defined(__i386__) || defined(__amd64__) || \
-defined(__arm__) || defined(__mips__) || defined(__powerpc__)
+#if defined(__i386__) || defined(__amd64__) || defined(__powerpc__)
 void *_ioremap_attr(vm_paddr_t phys_addr, unsigned long size, int attr);
 #else
 #define_ioremap_attr(...) NULL

Modified: head/sys/compat/linuxkpi/common/src/linux_compat.c
==
--- head/sys/compat/linuxkpi/common/src/linux_compat.c  Thu Jun  8 01:42:32 
2017(r319674)
+++ head/sys/compat/linuxkpi/common/src/linux_compat.c  Thu Jun  8 02:44:34 
2017(r319675)
@@ -1415,8 +1415,7 @@ vmmap_remove(void *addr)
return (vmmap);
 }
 
-#if defined(__i386__) || defined(__amd64__) || \
-defined(__arm__) || defined(__mips__) || defined(__powerpc__)
+#if defined(__i386__) || defined(__amd64__) || defined(__powerpc__)
 void *
 _ioremap_attr(vm_paddr_t phys_addr, unsigned long size, int attr)
 {
@@ -1439,8 +1438,7 @@ iounmap(void *addr)
vmmap = vmmap_remove(addr);
if (vmmap == NULL)
return;
-#if defined(__i386__) || defined(__amd64__) || \
-defined(__arm__) || defined(__mips__) || defined(__powerpc__)
+#if defined(__i386__) || defined(__amd64__) || defined(__powerpc__)
pmap_unmapdev((vm_offset_t)addr, vmmap->vm_size);
 #endif
kfree(vmmap);
___
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: r319674 - in head: share/misc usr.bin/calendar/calendars

2017-06-07 Thread Richard Gallamore
Author: ultima (ports committer)
Date: Thu Jun  8 01:42:32 2017
New Revision: 319674
URL: https://svnweb.freebsd.org/changeset/base/319674

Log:
  Add myself (ultima) as a new port committer.
  
  Reviewed by:  matthew (mentor), lifanov (mentor)
  Approved by:  matthew (mentor), lifanov (mentor)
  Differential Revision:https://reviews.freebsd.org/D11089

Modified:
  head/share/misc/committers-ports.dot
  head/usr.bin/calendar/calendars/calendar.freebsd

Modified: head/share/misc/committers-ports.dot
==
--- head/share/misc/committers-ports.dotThu Jun  8 01:41:20 2017
(r319673)
+++ head/share/misc/committers-ports.dotThu Jun  8 01:42:32 2017
(r319674)
@@ -238,6 +238,7 @@ trasz [label="Edward Tomasz Napierala\ntrasz@FreeBSD.o
 trhodes [label="Tom Rhodes\ntrho...@freebsd.org\n2004/07/06"]
 trociny [label="Mikolaj Golub\ntroc...@freebsd.org\n2013/10/17"]
 tz [label="Torsten Zuehlsdorff\n...@freebsd.org\n2016/06/04"]
+ultima [label="Richard Gallamore\nult...@freebsd.org\n2017/06/07"]
 uqs [label="Ulrich Spoerlein\n...@freebsd.org\n2012/01/19"]
 vd [label="Vasil Dimov\n...@freebsd.org\n2006/01/19"]
 vg [label="Veniamin Gvozdikov\n...@freebsd.org\n2013/06/11"]
@@ -463,6 +464,8 @@ lawrance -> itetcu
 
 leeym -> clsung
 
+lifanov -> ultima
+
 lioux -> pat
 
 lme -> tobik
@@ -495,6 +498,7 @@ mat -> tobik
 mat -> woodsb02
 
 matthew -> lifanov
+matthew -> ultima
 
 mezz -> tmclaugh
 

Modified: head/usr.bin/calendar/calendars/calendar.freebsd
==
--- head/usr.bin/calendar/calendars/calendar.freebsdThu Jun  8 01:41:20 
2017(r319673)
+++ head/usr.bin/calendar/calendars/calendar.freebsdThu Jun  8 01:42:32 
2017(r319674)
@@ -141,6 +141,7 @@
 04/22  Joerg Wunsch  born in Dresden, Sachsen, Germany, 1962
 04/22  Jun Kuriyama  born in Matsue, Shimane, Japan, 1973
 04/22  Jakub Klama  born in Blachownia, Silesia, Poland, 
1989
+04/25  Richard Gallamore  born in Kissimmee, Florida, 
United States, 1987
 04/26  Rene Ladan  born in Geldrop, the Netherlands, 1980
 04/29  Adam Weinberger  born in Berkeley, California, 
United States, 1980
 04/29  Eric Anholt  born in Portland, Oregon, United 
States, 1983
___
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: r319673 - in head: . etc/mtree

2017-06-07 Thread Baptiste Daroussin
Author: bapt
Date: Thu Jun  8 01:41:20 2017
New Revision: 319673
URL: https://svnweb.freebsd.org/changeset/base/319673

Log:
  Remove directories for the roff documentations which is built and installed
  anymore
  
  Reported by:  trasz

Modified:
  head/ObsoleteFiles.inc
  head/etc/mtree/BSD.usr.dist

Modified: head/ObsoleteFiles.inc
==
--- head/ObsoleteFiles.inc  Thu Jun  8 01:39:17 2017(r319672)
+++ head/ObsoleteFiles.inc  Thu Jun  8 01:41:20 2017(r319673)
@@ -549,60 +549,109 @@ OLD_FILES+=usr/share/doc/papers/newvm.ascii.gz
 OLD_FILES+=usr/share/doc/papers/releng.ascii.gz
 OLD_FILES+=usr/share/doc/papers/sysperf.ascii.gz
 OLD_FILES+=usr/share/doc/papers/timecounter.ascii.gz
+OLD_DIRS+=usr/share/doc/papers
 OLD_FILES+=usr/share/doc/psd/01.cacm/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/psd/01.cacm
 OLD_FILES+=usr/share/doc/psd/02.implement/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/psd/02.implement
 OLD_FILES+=usr/share/doc/psd/03.iosys/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/psd/03.iosys
 OLD_FILES+=usr/share/doc/psd/04.uprog/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/psd/04.uprog
 OLD_FILES+=usr/share/doc/psd/05.sysman/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/psd/05.sysman
 OLD_FILES+=usr/share/doc/psd/06.Clang/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/psd/06.Clang
 OLD_FILES+=usr/share/doc/psd/12.make/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/psd/12.make
 OLD_FILES+=usr/share/doc/psd/13.rcs/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/psd/13.rcs
 OLD_FILES+=usr/share/doc/psd/13.rcs/rcs_func.ascii.gz
+OLD_DIRS+=usr/share/doc/psd/13.rcs
 OLD_FILES+=usr/share/doc/psd/15.yacc/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/psd/15.yacc
 OLD_FILES+=usr/share/doc/psd/16.lex/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/psd/16.lex
 OLD_FILES+=usr/share/doc/psd/17.m4/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/psd/17.m4
 OLD_FILES+=usr/share/doc/psd/18.gprof/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/psd/18.gprof
 OLD_FILES+=usr/share/doc/psd/20.ipctut/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/psd/20.ipctut
 OLD_FILES+=usr/share/doc/psd/21.ipc/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/psd/21.ipc
 OLD_FILES+=usr/share/doc/psd/22.rpcgen/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/psd/22.rpcgen
 OLD_FILES+=usr/share/doc/psd/23.rpc/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/psd/23.rpc
 OLD_FILES+=usr/share/doc/psd/24.xdr/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/psd/24.xdr
 OLD_FILES+=usr/share/doc/psd/25.xdrrfc/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/psd/25.xdrrfc
 OLD_FILES+=usr/share/doc/psd/26.rpcrfc/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/psd/26.rpcrfc
 OLD_FILES+=usr/share/doc/psd/27.nfsrfc/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/psd/27.nfsrfc
 OLD_FILES+=usr/share/doc/psd/Title.ascii.gz
 OLD_FILES+=usr/share/doc/psd/contents.ascii.gz
+OLD_DIRS+=usr/share/doc/psd/
 OLD_FILES+=usr/share/doc/smm/01.setup/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/smm
 OLD_FILES+=usr/share/doc/smm/02.config/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/smm/02.config
 OLD_FILES+=usr/share/doc/smm/03.fsck/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/smm/03.fsck
 OLD_FILES+=usr/share/doc/smm/04.quotas/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/smm/04.quotas
 OLD_FILES+=usr/share/doc/smm/05.fastfs/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/smm/05.fastfs
 OLD_FILES+=usr/share/doc/smm/06.nfs/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/smm/06.nfs
 OLD_FILES+=usr/share/doc/smm/07.lpd/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/smm/07.lpd
 OLD_FILES+=usr/share/doc/smm/08.sendmailop/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/smm/08.sendmailop
 OLD_FILES+=usr/share/doc/smm/11.timedop/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/smm/11.timedop
 OLD_FILES+=usr/share/doc/smm/12.timed/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/smm/12.timed
 OLD_FILES+=usr/share/doc/smm/18.net/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/smm/18.net
 OLD_FILES+=usr/share/doc/smm/Title.ascii.gz
 OLD_FILES+=usr/share/doc/smm/contents.ascii.gz
+OLD_DIRS+=usr/share/doc/smm
 OLD_FILES+=usr/share/doc/usd/04.csh/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/usd/04.csh
 OLD_FILES+=usr/share/doc/usd/05.dc/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/usd/05.dc
 OLD_FILES+=usr/share/doc/usd/06.bc/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/usd/06.bc
 OLD_FILES+=usr/share/doc/usd/07.mail/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/usd/07.mail
 OLD_FILES+=usr/share/doc/usd/10.exref/paper.ascii.gz
 OLD_FILES+=usr/share/doc/usd/10.exref/summary.ascii.gz
+OLD_DIRS+=usr/share/doc/usd/10.exref
 OLD_FILES+=usr/share/doc/usd/11.edit/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/usd/11.edit
 OLD_FILES+=usr/share/doc/usd/12.vi/paper.ascii.gz
 OLD_FILES+=usr/share/doc/usd/12.vi/summary.ascii.gz
 OLD_FILES+=usr/share/doc/usd/12.vi/viapwh.ascii.gz
+OLD_DIRS+=usr/share/doc/usd/12.vi
 OLD_FILES+=usr/share/doc/usd/13.viref/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/usd/13.viref
 OLD_FILES+=usr/share/doc/usd/18.msdiffs/paper.ascii.gz
+OLD_DIRS+=usr/share/doc/usd/18.msdiffs
 

svn commit: r319672 - head/cddl/contrib/opensolaris/cmd/zpool

2017-06-07 Thread Allan Jude
Author: allanjude
Date: Thu Jun  8 01:39:17 2017
New Revision: 319672
URL: https://svnweb.freebsd.org/changeset/base/319672

Log:
  New sentences start on new lines, fix two violations
  
  Reviewed by:  bcr
  Sponsored by: BSDCan Dev Summit

Modified:
  head/cddl/contrib/opensolaris/cmd/zpool/zpool-features.7

Modified: head/cddl/contrib/opensolaris/cmd/zpool/zpool-features.7
==
--- head/cddl/contrib/opensolaris/cmd/zpool/zpool-features.7Thu Jun  8 
01:29:24 2017(r319671)
+++ head/cddl/contrib/opensolaris/cmd/zpool/zpool-features.7Thu Jun  8 
01:39:17 2017(r319672)
@@ -48,13 +48,15 @@ to send file systems between pools.
 Since most features can be enabled independently of each other the on\-disk
 format of the pool is specified by the set of all features marked as
 .Sy active
-on the pool. If the pool was created by another software version this set may
+on the pool.
+If the pool was created by another software version this set may
 include unsupported features.
 .Ss Identifying features
 Every feature has a guid of the form
 .Sy com.example:feature_name .
 The reverse DNS name ensures that the feature's guid is unique across all ZFS
-implementations. When unsupported features are encountered on a pool they will
+implementations.
+When unsupported features are encountered on a pool they will
 be identified by their guids.
 Refer to the documentation for the ZFS implementation that created the pool
 for information about those features.
@@ -283,7 +285,8 @@ configuration.
 .El
 .Pp
 This features allows ZFS to maintain more information about how free space
-is organized within the pool. If this feature is
+is organized within the pool.
+If this feature is
 .Sy enabled ,
 ZFS will
 set this feature to
@@ -337,7 +340,8 @@ All bookmarks in the pool can be listed by running
 .El
 .Pp
 Once this feature is enabled ZFS records the transaction group number
-in which new features are enabled. This has no user-visible impact,
+in which new features are enabled.
+This has no user-visible impact,
 but other features may depend on this feature.
 .Pp
 This feature becomes
___
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: r319671 - head/cddl/contrib/opensolaris/cmd/zpool

2017-06-07 Thread Allan Jude
Author: allanjude
Date: Thu Jun  8 01:29:24 2017
New Revision: 319671
URL: https://svnweb.freebsd.org/changeset/base/319671

Log:
  SHA-512 and Skein have been supported by the boot loader for some time.
  
  Submitted by: lifanov
  Reviewed by:  bcr
  Sponsored by: BSDCan Dev Summit

Modified:
  head/cddl/contrib/opensolaris/cmd/zpool/zpool-features.7

Modified: head/cddl/contrib/opensolaris/cmd/zpool/zpool-features.7
==
--- head/cddl/contrib/opensolaris/cmd/zpool/zpool-features.7Thu Jun  8 
00:48:26 2017(r319670)
+++ head/cddl/contrib/opensolaris/cmd/zpool/zpool-features.7Thu Jun  8 
01:29:24 2017(r319671)
@@ -23,7 +23,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd May 31, 2016
+.Dd June 7, 2017
 .Dt ZPOOL-FEATURES 7
 .Os
 .Sh NAME
@@ -493,10 +493,6 @@ and will return to being
 once all filesystems that have ever had their checksum set to
 .Sy sha512
 are destroyed.
-.Pp
-Booting off of a pools utilizing SHA-512/256 is
-.Em NOT
-yet supported.
 .It Sy skein
 .Bl -column "READ\-ONLY COMPATIBLE" "org.illumos:skein"
 .It GUID Ta org.illumos:skein
@@ -539,12 +535,6 @@ and will return to being
 once all filesystems that have ever had their checksum set to
 .Sy skein
 are destroyed.
-.Pp
-Booting off of pools using
-.Sy skein
-is
-.Em NOT
-supported.
 .El
 .Sh SEE ALSO
 .Xr zpool 8
___
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: r319664 - in head: . contrib/groff etc etc/mtree gnu/usr.bin gnu/usr.bin/groff release share share/me share/mk tools/build/mk tools/build/options usr.bin usr.bin/checknr usr.bin/colcrt

2017-06-07 Thread Ravi Pokala
ext.me
+OLD_FILES+=usr/share/me/eqn.me
+OLD_FILES+=usr/share/me/float.me
+OLD_FILES+=usr/share/me/footnote.me
+OLD_FILES+=usr/share/me/index.me
+OLD_FILES+=usr/share/me/letterhead.me
+OLD_FILES+=usr/share/me/local.me
+OLD_FILES+=usr/share/me/null.me
+OLD_FILES+=usr/share/me/refer.me
+OLD_FILES+=usr/share/me/revisions
+OLD_FILES+=usr/share/me/sh.me
+OLD_FILES+=usr/share/me/tbl.me
+OLD_FILES+=usr/share/me/thesis.me
+OLD_DIRS+=usr/share/me
+OLD_FILES+=usr/share/misc/vgrindefs
+OLD_FILES+=usr/share/misc/vgrindefs.db
+OLD_FILES+=usr/share/tmac/X.tmac
+OLD_FILES+=usr/share/tmac/Xps.tmac
+OLD_FILES+=usr/share/tmac/a4.tmac
+OLD_FILES+=usr/share/tmac/an-old.tmac
+OLD_FILES+=usr/share/tmac/an.tmac
+OLD_FILES+=usr/share/tmac/andoc.tmac
+OLD_FILES+=usr/share/tmac/composite.tmac
+OLD_FILES+=usr/share/tmac/cp1047.tmac
+OLD_FILES+=usr/share/tmac/devtag.tmac
+OLD_FILES+=usr/share/tmac/doc.tmac
+OLD_FILES+=usr/share/tmac/dvi.tmac
+OLD_FILES+=usr/share/tmac/e.tmac
+OLD_FILES+=usr/share/tmac/ec.tmac
+OLD_FILES+=usr/share/tmac/eqnrc
+OLD_FILES+=usr/share/tmac/europs.tmac
+OLD_FILES+=usr/share/tmac/html-end.tmac
+OLD_FILES+=usr/share/tmac/html.tmac
+OLD_FILES+=usr/share/tmac/hyphen.ru
+OLD_FILES+=usr/share/tmac/hyphen.us
+OLD_FILES+=usr/share/tmac/hyphenex.us
+OLD_FILES+=usr/share/tmac/koi8-r.tmac
+OLD_FILES+=usr/share/tmac/latin1.tmac
+OLD_FILES+=usr/share/tmac/latin2.tmac
+OLD_FILES+=usr/share/tmac/latin9.tmac
+OLD_FILES+=usr/share/tmac/lbp.tmac
+OLD_FILES+=usr/share/tmac/lj4.tmac
+OLD_FILES+=usr/share/tmac/m.tmac
+OLD_FILES+=usr/share/tmac/man.local
+OLD_FILES+=usr/share/tmac/man.tmac
+OLD_FILES+=usr/share/tmac/mandoc.tmac
+OLD_FILES+=usr/share/tmac/mdoc.local
+OLD_FILES+=usr/share/tmac/mdoc.tmac
+OLD_FILES+=usr/share/tmac/mdoc/doc-common
+OLD_FILES+=usr/share/tmac/mdoc/doc-ditroff
+OLD_FILES+=usr/share/tmac/mdoc/doc-nroff
+OLD_FILES+=usr/share/tmac/mdoc/doc-syms
+OLD_FILES+=usr/share/tmac/mdoc/fr.ISO8859-1
+OLD_FILES+=usr/share/tmac/mdoc/ru.KOI8-R
+OLD_DIRS+=usr/share/tmac/mdoc
+OLD_FILES+=usr/share/tmac/me.tmac
+OLD_FILES+=usr/share/tmac/mm/0.MT
+OLD_FILES+=usr/share/tmac/mm/4.MT
+OLD_FILES+=usr/share/tmac/mm/5.MT
+OLD_FILES+=usr/share/tmac/mm/locale
+OLD_FILES+=usr/share/tmac/mm/mm.tmac
+OLD_FILES+=usr/share/tmac/mm/mmse.tmac
+OLD_FILES+=usr/share/tmac/mm/ms.cov
+OLD_FILES+=usr/share/tmac/mm/se_locale
+OLD_FILES+=usr/share/tmac/mm/se_ms.cov
+OLD_DIRS+=usr/share/tmac/mm
+OLD_FILES+=usr/share/tmac/ms.tmac
+OLD_FILES+=usr/share/tmac/mse.tmac
+OLD_FILES+=usr/share/tmac/papersize.tmac
+OLD_FILES+=usr/share/tmac/pic.tmac
+OLD_FILES+=usr/share/tmac/ps.tmac
+OLD_FILES+=usr/share/tmac/psatk.tmac
+OLD_FILES+=usr/share/tmac/psold.tmac
+OLD_FILES+=usr/share/tmac/pspic.tmac
+OLD_FILES+=usr/share/tmac/s.tmac
+OLD_FILES+=usr/share/tmac/safer.tmac
+OLD_FILES+=usr/share/tmac/tmac.orig_me
+OLD_FILES+=usr/share/tmac/tmac.vgrind
+OLD_FILES+=usr/share/tmac/trace.tmac
+OLD_FILES+=usr/share/tmac/troffrc
+OLD_FILES+=usr/share/tmac/troffrc-end
+OLD_FILES+=usr/share/tmac/tty-char.tmac
+OLD_FILES+=usr/share/tmac/tty.tmac
+OLD_FILES+=usr/share/tmac/unicode.tmac
+OLD_FILES+=usr/share/tmac/www.tmac
+OLD_DIRS+=usr/share/tmac
 # 20170607: remove incorrect atf_check(1) manpage link
 OLD_FILES+=usr/share/man/man1/atf_check.1.gz
 # 20170601: remove stale manpage

Modified: head/UPDATING
==
--- head/UPDATING   Wed Jun  7 21:21:14 2017(r319663)
+++ head/UPDATING   Wed Jun  7 23:00:34 2017(r319664)
@@ -76,6 +76,14 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 12.x IS SLOW:
 
For further comments/feedback, poke adrian@ .
 
+20170531:
+   The GNU roff toolchain has been removed from base. To render manpages
+   which are not supported by mandoc(1), man(1) can fallback on GNU roff
+   from ports (and recommends to install it).
+   To render roff(7) documents, consider using GNU roff from ports or the
+   heirloom doctools roff toolchain from ports via pkg install groff or
+   via pkg install heirloom-doctools.
+
 20170523:
The "ino64" 64-bit inode project has been committed, which extends
a number of types to 64 bits.  Upgrading in place requires care and

Modified: head/etc/Makefile
==
--- head/etc/Makefile   Wed Jun  7 21:21:14 2017(r319663)
+++ head/etc/Makefile   Wed Jun  7 23:00:34 2017(r319664)
@@ -360,9 +360,6 @@ MTREES= mtree/BSD.root.dist /   
\
mtree/BSD.usr.dist  /usr\
mtree/BSD.include.dist  /usr/include\
mtree/BSD.debug.dist/usr/lib
-.if ${MK_GROFF} != "no"
-MTREES+=   mtree/BSD.groff.dist/usr
-.endif
 .if ${MK_LIB32} != "no"
 MTREES+=   mtree/BSD.lib32.dist/usr

svn commit: r319670 - head/contrib/smbfs/lib/smb

2017-06-07 Thread Josh Paetzel
Author: jpaetzel
Date: Thu Jun  8 00:48:26 2017
New Revision: 319670
URL: https://svnweb.freebsd.org/changeset/base/319670

Log:
  Fix SMBFS when saved passwords are greater than 18 characters
  
  PR:   132302
  Submitted by: dhorn2...@gmail.com g...@unixarea.de
  MFC after:1 week

Modified:
  head/contrib/smbfs/lib/smb/subr.c

Modified: head/contrib/smbfs/lib/smb/subr.c
==
--- head/contrib/smbfs/lib/smb/subr.c   Thu Jun  8 00:41:25 2017
(r319669)
+++ head/contrib/smbfs/lib/smb/subr.c   Thu Jun  8 00:48:26 2017
(r319670)
@@ -232,6 +232,8 @@ smb_simplecrypt(char *dst, const char *src)
  islower(ch) ? ('a' + (ch - 'a' + 13) % 26) : ch);
ch ^= pos;
pos += 13;
+   if (pos > 256)
+   pos -= 256;
sprintf(dst, "%02x", ch);
dst += 2;
}
@@ -262,6 +264,8 @@ smb_simpledecrypt(char *dst, const char *src)
return EINVAL;
ch ^= pos;
pos += 13;
+   if (pos > 256)
+   pos -= 256;
if (isascii(ch))
ch = (isupper(ch) ? ('A' + (ch - 'A' + 13) % 26) :
  islower(ch) ? ('a' + (ch - 'a' + 13) % 26) : ch);
___
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: r319669 - head

2017-06-07 Thread Baptiste Daroussin
Author: bapt
Date: Thu Jun  8 00:41:25 2017
New Revision: 319669
URL: https://svnweb.freebsd.org/changeset/base/319669

Log:
  Fix src.conf.5 generation
  
  When makeman is generating src.conf(5) it tries to test all variation of 
options
  including WITH_DIRDEPS_BUILD. it results in an error when filemon(4) is not
  loaded.
  
  Export variables that are needed to prevent this behaviour.
  
  Helped by:sjg

Modified:
  head/Makefile.inc1

Modified: head/Makefile.inc1
==
--- head/Makefile.inc1  Thu Jun  8 00:36:58 2017(r319668)
+++ head/Makefile.inc1  Thu Jun  8 00:41:25 2017(r319669)
@@ -2576,8 +2576,8 @@ check-old: check-old-files check-old-libs check-old-di
 # showconfig - show build configuration.
 #
 showconfig: .PHONY
-   @(${MAKE} -n -f ${.CURDIR}/sys/conf/kern.opts.mk -V dummy -dg1; \
- ${MAKE} -n -f ${.CURDIR}/share/mk/src.opts.mk -V dummy -dg1) 2>&1 | 
grep ^MK_ | sort -u
+   @(${MAKE} -n -f ${.CURDIR}/sys/conf/kern.opts.mk -V dummy -dg1 
UPDATE_DEPENDFILE=no NO_OBJ=yes; \
+ ${MAKE} -n -f ${.CURDIR}/share/mk/src.opts.mk -V dummy -dg1 
UPDATE_DEPENDFILE=no NO_OBJ=yes) 2>&1 | grep ^MK_ | sort -u
 
 .if !empty(KRNLOBJDIR) && !empty(KERNCONF)
 DTBOUTPUTPATH= ${KRNLOBJDIR}/${KERNCONF}/
___
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: r319668 - head/share/man/man5

2017-06-07 Thread Baptiste Daroussin
Author: bapt
Date: Thu Jun  8 00:36:58 2017
New Revision: 319668
URL: https://svnweb.freebsd.org/changeset/base/319668

Log:
  Regenerate src.conf.5 after removal of groff

Modified:
  head/share/man/man5/src.conf.5

Modified: head/share/man/man5/src.conf.5
==
--- head/share/man/man5/src.conf.5  Wed Jun  7 23:42:37 2017
(r319667)
+++ head/share/man/man5/src.conf.5  Thu Jun  8 00:36:58 2017
(r319668)
@@ -1,6 +1,6 @@
 .\" DO NOT EDIT-- this file is generated by tools/build/options/makeman.
 .\" $FreeBSD$
-.Dd May 30, 2017
+.Dd June 8, 2017
 .Dt SRC.CONF 5
 .Os
 .Sh NAME
@@ -469,8 +469,6 @@ When set, it enforces these options:
 .It
 .Va WITHOUT_GNUCXX
 .It
-.Va WITHOUT_GROFF
-.It
 .Va WITHOUT_TESTS
 .It
 .Va WITHOUT_TESTS_SUPPORT
@@ -769,24 +767,6 @@ as part of the base system.
 .It Va WITHOUT_GPL_DTC
 Set to build the BSD licensed version of the device tree compiler rather
 than the GPLed one from elinux.org.
-.It Va WITHOUT_GROFF
-Set to not build
-.Xr groff 1
-and
-.Xr vgrind 1 .
-You should consider installing the textproc/groff port to not break
-.Xr man 1 .
-.Pp
-This is a default setting on
-riscv/riscv64 and riscv/riscv64sf.
-.It Va WITH_GROFF
-Set to build
-.Xr groff 1
-and
-.Xr vgrind 1 .
-.Pp
-This is a default setting on
-amd64/amd64, arm/arm, arm/armeb, arm/armv6, arm64/aarch64, i386/i386, 
mips/mipsel, mips/mips, mips/mips64el, mips/mips64, mips/mipsn32, 
mips/mipselhf, mips/mipshf, mips/mips64elhf, mips/mips64hf, powerpc/powerpc, 
powerpc/powerpc64, powerpc/powerpcspe and sparc64/sparc64.
 .It Va WITHOUT_GSSAPI
 Set to not build libgssapi.
 .It Va WITHOUT_HAST
@@ -1470,12 +1450,6 @@ riscv/riscv64 and riscv/riscv64sf.
 .It Va WITHOUT_TEXTPROC
 Set to not build
 programs used for text processing.
-When set, it enforces these options:
-.Pp
-.Bl -item -compact
-.It
-.Va WITHOUT_GROFF
-.El
 .It Va WITHOUT_TFTP
 Set to not build or install
 .Xr tftp 1
___
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: r319664 - in head: . contrib/groff etc etc/mtree gnu/usr.bin gnu/usr.bin/groff release share share/me share/mk tools/build/mk tools/build/options usr.bin usr.bin/checknr usr.bin/colcrt

2017-06-07 Thread Ravi Pokala
hare/tmac/andoc.tmac
+OLD_FILES+=usr/share/tmac/composite.tmac
+OLD_FILES+=usr/share/tmac/cp1047.tmac
+OLD_FILES+=usr/share/tmac/devtag.tmac
+OLD_FILES+=usr/share/tmac/doc.tmac
+OLD_FILES+=usr/share/tmac/dvi.tmac
+OLD_FILES+=usr/share/tmac/e.tmac
+OLD_FILES+=usr/share/tmac/ec.tmac
+OLD_FILES+=usr/share/tmac/eqnrc
+OLD_FILES+=usr/share/tmac/europs.tmac
+OLD_FILES+=usr/share/tmac/html-end.tmac
+OLD_FILES+=usr/share/tmac/html.tmac
+OLD_FILES+=usr/share/tmac/hyphen.ru
+OLD_FILES+=usr/share/tmac/hyphen.us
+OLD_FILES+=usr/share/tmac/hyphenex.us
+OLD_FILES+=usr/share/tmac/koi8-r.tmac
+OLD_FILES+=usr/share/tmac/latin1.tmac
+OLD_FILES+=usr/share/tmac/latin2.tmac
+OLD_FILES+=usr/share/tmac/latin9.tmac
+OLD_FILES+=usr/share/tmac/lbp.tmac
+OLD_FILES+=usr/share/tmac/lj4.tmac
+OLD_FILES+=usr/share/tmac/m.tmac
+OLD_FILES+=usr/share/tmac/man.local
+OLD_FILES+=usr/share/tmac/man.tmac
+OLD_FILES+=usr/share/tmac/mandoc.tmac
+OLD_FILES+=usr/share/tmac/mdoc.local
+OLD_FILES+=usr/share/tmac/mdoc.tmac
+OLD_FILES+=usr/share/tmac/mdoc/doc-common
+OLD_FILES+=usr/share/tmac/mdoc/doc-ditroff
+OLD_FILES+=usr/share/tmac/mdoc/doc-nroff
+OLD_FILES+=usr/share/tmac/mdoc/doc-syms
+OLD_FILES+=usr/share/tmac/mdoc/fr.ISO8859-1
+OLD_FILES+=usr/share/tmac/mdoc/ru.KOI8-R
+OLD_DIRS+=usr/share/tmac/mdoc
+OLD_FILES+=usr/share/tmac/me.tmac
+OLD_FILES+=usr/share/tmac/mm/0.MT
+OLD_FILES+=usr/share/tmac/mm/4.MT
+OLD_FILES+=usr/share/tmac/mm/5.MT
+OLD_FILES+=usr/share/tmac/mm/locale
+OLD_FILES+=usr/share/tmac/mm/mm.tmac
+OLD_FILES+=usr/share/tmac/mm/mmse.tmac
+OLD_FILES+=usr/share/tmac/mm/ms.cov
+OLD_FILES+=usr/share/tmac/mm/se_locale
+OLD_FILES+=usr/share/tmac/mm/se_ms.cov
+OLD_DIRS+=usr/share/tmac/mm
+OLD_FILES+=usr/share/tmac/ms.tmac
+OLD_FILES+=usr/share/tmac/mse.tmac
+OLD_FILES+=usr/share/tmac/papersize.tmac
+OLD_FILES+=usr/share/tmac/pic.tmac
+OLD_FILES+=usr/share/tmac/ps.tmac
+OLD_FILES+=usr/share/tmac/psatk.tmac
+OLD_FILES+=usr/share/tmac/psold.tmac
+OLD_FILES+=usr/share/tmac/pspic.tmac
+OLD_FILES+=usr/share/tmac/s.tmac
+OLD_FILES+=usr/share/tmac/safer.tmac
+OLD_FILES+=usr/share/tmac/tmac.orig_me
+OLD_FILES+=usr/share/tmac/tmac.vgrind
+OLD_FILES+=usr/share/tmac/trace.tmac
+OLD_FILES+=usr/share/tmac/troffrc
+OLD_FILES+=usr/share/tmac/troffrc-end
+OLD_FILES+=usr/share/tmac/tty-char.tmac
+OLD_FILES+=usr/share/tmac/tty.tmac
+OLD_FILES+=usr/share/tmac/unicode.tmac
+OLD_FILES+=usr/share/tmac/www.tmac
+OLD_DIRS+=usr/share/tmac
 # 20170607: remove incorrect atf_check(1) manpage link
 OLD_FILES+=usr/share/man/man1/atf_check.1.gz
 # 20170601: remove stale manpage

Modified: head/UPDATING
==
--- head/UPDATING   Wed Jun  7 21:21:14 2017(r319663)
+++ head/UPDATING   Wed Jun  7 23:00:34 2017(r319664)
@@ -76,6 +76,14 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 12.x IS SLOW:
 
For further comments/feedback, poke adrian@ .
 
+20170531:
+   The GNU roff toolchain has been removed from base. To render manpages
+   which are not supported by mandoc(1), man(1) can fallback on GNU roff
+   from ports (and recommends to install it).
+   To render roff(7) documents, consider using GNU roff from ports or the
+   heirloom doctools roff toolchain from ports via pkg install groff or
+   via pkg install heirloom-doctools.
+
 20170523:
The "ino64" 64-bit inode project has been committed, which extends
a number of types to 64 bits.  Upgrading in place requires care and

Modified: head/etc/Makefile
==
--- head/etc/Makefile   Wed Jun  7 21:21:14 2017(r319663)
+++ head/etc/Makefile   Wed Jun  7 23:00:34 2017(r319664)
@@ -360,9 +360,6 @@ MTREES= mtree/BSD.root.dist /   
\
mtree/BSD.usr.dist  /usr\
mtree/BSD.include.dist  /usr/include\
mtree/BSD.debug.dist/usr/lib
-.if ${MK_GROFF} != "no"
-MTREES+=   mtree/BSD.groff.dist/usr
-.endif
 .if ${MK_LIB32} != "no"
 MTREES+=   mtree/BSD.lib32.dist/usr
 MTREES+=   mtree/BSD.lib32.dist/usr/lib/debug/usr

Modified: head/etc/mtree/Makefile
==
--- head/etc/mtree/Makefile Wed Jun  7 21:21:14 2017(r319663)
+++ head/etc/mtree/Makefile Wed Jun  7 23:00:34 2017(r319664)
@@ -15,9 +15,6 @@ FILES=${_BSD.debug.dist} \
 .if ${MK_DEBUG_FILES} != "no"
 _BSD.debug.dist=   BSD.debug.dist
 .endif
-.if ${MK_GROFF} != "no"
-_BSD.groff.dist=   BSD.groff.dist
-.endif
 .if ${MK_LIB32} != "no"
 _BSD.lib32.dist=   BSD.lib32.dist
 .endif

Modified: head/gnu/usr.bin/Makefile
==
--- head/gnu/usr.bin/Makefile   We

svn commit: r319667 - head/tools/build/options

2017-06-07 Thread Baptiste Daroussin
Author: bapt
Date: Wed Jun  7 23:42:37 2017
New Revision: 319667
URL: https://svnweb.freebsd.org/changeset/base/319667

Log:
  Remove some workaround for an option that does not exists anymore.

Modified:
  head/tools/build/options/makeman

Modified: head/tools/build/options/makeman
==
--- head/tools/build/options/makemanWed Jun  7 23:41:33 2017
(r319666)
+++ head/tools/build/options/makemanWed Jun  7 23:42:37 2017
(r319667)
@@ -279,14 +279,6 @@ EOF
comm -13 $t/config_default $t/config_${opt} | sed -n 
"/^${opt}$/!p" |
comm -13 $t/deps - > $t/deps2
 
-   # Work around BIND_UTILS=no being the default when every WITH_
-   # option is enabled.
-   if [ "$(cat $t/deps2)" = WITHOUT_BIND_UTILS ]; then
-   sort $t/deps $t/deps2 > $t/_deps
-   mv $t/_deps $t/deps
-   :> $t/deps2
-   fi
-
havedeps=0
if [ -s $t/deps ] ; then
havedeps=1
___
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: r319666 - head/usr.bin

2017-06-07 Thread Baptiste Daroussin
Author: bapt
Date: Wed Jun  7 23:41:33 2017
New Revision: 319666
URL: https://svnweb.freebsd.org/changeset/base/319666

Log:
  Remove leftovers from groff removal
  
  Reported by:  rpokala

Modified:
  head/usr.bin/Makefile

Modified: head/usr.bin/Makefile
==
--- head/usr.bin/Makefile   Wed Jun  7 23:26:28 2017(r319665)
+++ head/usr.bin/Makefile   Wed Jun  7 23:41:33 2017(r319666)
@@ -257,8 +257,6 @@ SUBDIR.${MK_SENDMAIL}+= vacation
 SUBDIR.${MK_TALK}+=talk
 SUBDIR.${MK_TELNET}+=  telnet
 SUBDIR.${MK_TESTS}+=   tests
-SUBDIR.${MK_TEXTPROC}+=checknr
-SUBDIR.${MK_TEXTPROC}+=colcrt
 SUBDIR.${MK_TEXTPROC}+=ul
 SUBDIR.${MK_TFTP}+=tftp
 SUBDIR.${MK_TOOLCHAIN}+=   addr2line
___
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: r319665 - in head: share/mk tools/build/options

2017-06-07 Thread Baptiste Daroussin
Author: bapt
Date: Wed Jun  7 23:26:28 2017
New Revision: 319665
URL: https://svnweb.freebsd.org/changeset/base/319665

Log:
  Finish removal of groff

Deleted:
  head/tools/build/options/WITH_GROFF
Modified:
  head/share/mk/src.opts.mk

Modified: head/share/mk/src.opts.mk
==
--- head/share/mk/src.opts.mk   Wed Jun  7 23:00:34 2017(r319664)
+++ head/share/mk/src.opts.mk   Wed Jun  7 23:26:28 2017(r319665)
@@ -102,7 +102,6 @@ __DEFAULT_YES_OPTIONS = \
 GNU_GREP \
 GPIO \
 GPL_DTC \
-GROFF \
 HAST \
 HTML \
 HYPERV \
___
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: r319664 - in head: . contrib/groff etc etc/mtree gnu/usr.bin gnu/usr.bin/groff release share share/me share/mk tools/build/mk tools/build/options usr.bin usr.bin/checknr usr.bin/colcrt

2017-06-07 Thread Baptiste Daroussin
/share/tmac/mdoc.tmac
+OLD_FILES+=usr/share/tmac/mdoc/doc-common
+OLD_FILES+=usr/share/tmac/mdoc/doc-ditroff
+OLD_FILES+=usr/share/tmac/mdoc/doc-nroff
+OLD_FILES+=usr/share/tmac/mdoc/doc-syms
+OLD_FILES+=usr/share/tmac/mdoc/fr.ISO8859-1
+OLD_FILES+=usr/share/tmac/mdoc/ru.KOI8-R
+OLD_DIRS+=usr/share/tmac/mdoc
+OLD_FILES+=usr/share/tmac/me.tmac
+OLD_FILES+=usr/share/tmac/mm/0.MT
+OLD_FILES+=usr/share/tmac/mm/4.MT
+OLD_FILES+=usr/share/tmac/mm/5.MT
+OLD_FILES+=usr/share/tmac/mm/locale
+OLD_FILES+=usr/share/tmac/mm/mm.tmac
+OLD_FILES+=usr/share/tmac/mm/mmse.tmac
+OLD_FILES+=usr/share/tmac/mm/ms.cov
+OLD_FILES+=usr/share/tmac/mm/se_locale
+OLD_FILES+=usr/share/tmac/mm/se_ms.cov
+OLD_DIRS+=usr/share/tmac/mm
+OLD_FILES+=usr/share/tmac/ms.tmac
+OLD_FILES+=usr/share/tmac/mse.tmac
+OLD_FILES+=usr/share/tmac/papersize.tmac
+OLD_FILES+=usr/share/tmac/pic.tmac
+OLD_FILES+=usr/share/tmac/ps.tmac
+OLD_FILES+=usr/share/tmac/psatk.tmac
+OLD_FILES+=usr/share/tmac/psold.tmac
+OLD_FILES+=usr/share/tmac/pspic.tmac
+OLD_FILES+=usr/share/tmac/s.tmac
+OLD_FILES+=usr/share/tmac/safer.tmac
+OLD_FILES+=usr/share/tmac/tmac.orig_me
+OLD_FILES+=usr/share/tmac/tmac.vgrind
+OLD_FILES+=usr/share/tmac/trace.tmac
+OLD_FILES+=usr/share/tmac/troffrc
+OLD_FILES+=usr/share/tmac/troffrc-end
+OLD_FILES+=usr/share/tmac/tty-char.tmac
+OLD_FILES+=usr/share/tmac/tty.tmac
+OLD_FILES+=usr/share/tmac/unicode.tmac
+OLD_FILES+=usr/share/tmac/www.tmac
+OLD_DIRS+=usr/share/tmac
 # 20170607: remove incorrect atf_check(1) manpage link
 OLD_FILES+=usr/share/man/man1/atf_check.1.gz
 # 20170601: remove stale manpage

Modified: head/UPDATING
==
--- head/UPDATING   Wed Jun  7 21:21:14 2017(r319663)
+++ head/UPDATING   Wed Jun  7 23:00:34 2017(r319664)
@@ -76,6 +76,14 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 12.x IS SLOW:
 
For further comments/feedback, poke adrian@ .
 
+20170531:
+   The GNU roff toolchain has been removed from base. To render manpages
+   which are not supported by mandoc(1), man(1) can fallback on GNU roff
+   from ports (and recommends to install it).
+   To render roff(7) documents, consider using GNU roff from ports or the
+   heirloom doctools roff toolchain from ports via pkg install groff or
+   via pkg install heirloom-doctools.
+
 20170523:
The "ino64" 64-bit inode project has been committed, which extends
a number of types to 64 bits.  Upgrading in place requires care and

Modified: head/etc/Makefile
==
--- head/etc/Makefile   Wed Jun  7 21:21:14 2017(r319663)
+++ head/etc/Makefile   Wed Jun  7 23:00:34 2017(r319664)
@@ -360,9 +360,6 @@ MTREES= mtree/BSD.root.dist /   
\
mtree/BSD.usr.dist  /usr\
mtree/BSD.include.dist  /usr/include\
mtree/BSD.debug.dist/usr/lib
-.if ${MK_GROFF} != "no"
-MTREES+=   mtree/BSD.groff.dist/usr
-.endif
 .if ${MK_LIB32} != "no"
 MTREES+=   mtree/BSD.lib32.dist/usr
 MTREES+=   mtree/BSD.lib32.dist/usr/lib/debug/usr

Modified: head/etc/mtree/Makefile
==
--- head/etc/mtree/Makefile Wed Jun  7 21:21:14 2017(r319663)
+++ head/etc/mtree/Makefile Wed Jun  7 23:00:34 2017(r319664)
@@ -15,9 +15,6 @@ FILES=${_BSD.debug.dist} \
 .if ${MK_DEBUG_FILES} != "no"
 _BSD.debug.dist=   BSD.debug.dist
 .endif
-.if ${MK_GROFF} != "no"
-_BSD.groff.dist=   BSD.groff.dist
-.endif
 .if ${MK_LIB32} != "no"
 _BSD.lib32.dist=   BSD.lib32.dist
 .endif

Modified: head/gnu/usr.bin/Makefile
==
--- head/gnu/usr.bin/Makefile   Wed Jun  7 21:21:14 2017(r319663)
+++ head/gnu/usr.bin/Makefile   Wed Jun  7 23:00:34 2017(r319664)
@@ -15,7 +15,6 @@ SUBDIR.${MK_GNU_GREP}+=   grep
 SUBDIR.${MK_GDB}+= gdb
 SUBDIR_DEPEND_gdb= binutils
 SUBDIR.${MK_GPL_DTC}+= dtc
-SUBDIR.${MK_GROFF}+=   groff
 SUBDIR.${MK_TESTS}+=   tests
 
 SUBDIR_PARALLEL=

Modified: head/release/Makefile
==
--- head/release/Makefile   Wed Jun  7 21:21:14 2017(r319663)
+++ head/release/Makefile   Wed Jun  7 23:00:34 2017(r319664)
@@ -202,7 +202,7 @@ bootonly: packagesystem
mkdir -p ${.TARGET}
cd ${WORLDDIR} && ${IMAKE} installkernel installworld distribution \
DESTDIR=${.OBJDIR}/${.TARGET} MK_AMD=no MK_AT=no \
-   MK_GAMES=no MK_GROFF=no \
+   MK_GAMES=no \
MK_INSTALLLIB=no MK_LIB32=no MK_MAIL=no \
MK_NCP=no MK_TOOLCHAI

Re: svn commit: r317512 - in head: sys/conf sys/libkern sys/libkern/arm64 sys/sys tests/sys/kern

2017-06-07 Thread Ed Maste
On 27 April 2017 at 13:53, Michael Tuexen  wrote:
> Author: tuexen
> Date: Thu Apr 27 17:53:05 2017
> New Revision: 317512
> URL: https://svnweb.freebsd.org/changeset/base/317512

FYI when compiling this with the clang500-import branch I see:

/scratch/tmp/emaste/freebsd/sys/libkern/arm64/crc32c_armv8.S:41:2:
error: instruction requires: crc
 crc32cb w0, w0, w10
 ^
___
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: r319663 - head/lib/libc/sys

2017-06-07 Thread Jilles Tjoelker
Author: jilles
Date: Wed Jun  7 21:21:14 2017
New Revision: 319663
URL: https://svnweb.freebsd.org/changeset/base/319663

Log:
  libc: Remove futimens() and utimensat() compat stubs.
  
  The futimens() and utimensat() compat stubs allowed using these functions on
  kernels that did not have the system calls yet (10.2, old 11-current).
  
  Also remove the documentation of the [ENOTSUP] error that could occur with
  an old kernel.
  
  A -DNO_CLEAN build may fail because the depend files refer to the deleted
  files.

Deleted:
  head/lib/libc/sys/futimens.c
  head/lib/libc/sys/utimensat.c
Modified:
  head/lib/libc/sys/Makefile.inc
  head/lib/libc/sys/utimensat.2

Modified: head/lib/libc/sys/Makefile.inc
==
--- head/lib/libc/sys/Makefile.inc  Wed Jun  7 21:18:28 2017
(r319662)
+++ head/lib/libc/sys/Makefile.inc  Wed Jun  7 21:21:14 2017
(r319663)
@@ -37,10 +37,6 @@ SRCS+=   \
 
 SRCS+= getdents.c lstat.c mknod.c stat.c
 
-SRCS+= futimens.c utimensat.c
-NOASM+= futimens.o utimensat.o
-PSEUDO+= _futimens.o _utimensat.o
-
 SRCS+= pipe.c
 
 INTERPOSED = \

Modified: head/lib/libc/sys/utimensat.2
==
--- head/lib/libc/sys/utimensat.2   Wed Jun  7 21:18:28 2017
(r319662)
+++ head/lib/libc/sys/utimensat.2   Wed Jun  7 21:21:14 2017
(r319663)
@@ -31,7 +31,7 @@
 .\" @(#)utimes.2   8.1 (Berkeley) 6/4/93
 .\" $FreeBSD$
 .\"
-.Dd January 17, 2016
+.Dd June 7, 2017
 .Dt UTIMENSAT 2
 .Os
 .Sh NAME
@@ -267,10 +267,6 @@ argument is not an absolute path and
 is neither
 .Dv AT_FDCWD
 nor a file descriptor associated with a directory.
-.It Bq Er ENOTSUP
-The running kernel does not support this system call and
-.Dv AT_SYMLINK_NOFOLLOW
-is used with a path relative to a file descriptor.
 .El
 .Sh SEE ALSO
 .Xr chflags 2 ,
___
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: r319662 - head/libexec/atf/atf-sh

2017-06-07 Thread Ngie Cooper
Author: ngie
Date: Wed Jun  7 21:18:28 2017
New Revision: 319662
URL: https://svnweb.freebsd.org/changeset/base/319662

Log:
  Add MLINKS for atf-sh(3) to each of the functions it implements
  
  This hopefully will make atf-sh(3) easier to understand for newcomers,
  without having to go through the atf-sh(3) level of indirection.
  
  MFC after:1 week
  Sponsored by: Dell EMC Isilon

Modified:
  head/libexec/atf/atf-sh/Makefile

Modified: head/libexec/atf/atf-sh/Makefile
==
--- head/libexec/atf/atf-sh/MakefileWed Jun  7 21:14:06 2017
(r319661)
+++ head/libexec/atf/atf-sh/MakefileWed Jun  7 21:18:28 2017
(r319662)
@@ -34,7 +34,29 @@ ATF= ${SRCTOP}/contrib/atf
 PROG_CXX=  atf-sh
 SRCS=  atf-sh.cpp
 MAN=   atf-sh.1 atf-sh.3
-MLINKS+=   atf-sh.3 atf-sh-api.3  # Backwards compatibility.
+# Backwards compatibility.
+MLINKS+=   atf-sh.3 atf-sh-api.3
+
+MLINKS+=   \
+   atf-sh.3 atf_add_test_case.3 \
+   atf-sh.3 atf_check.3 \
+   atf-sh.3 atf_check_equal.3 \
+   atf-sh.3 atf_config_get.3 \
+   atf-sh.3 atf_config_has.3 \
+   atf-sh.3 atf_expect_death.3 \
+   atf-sh.3 atf_expect_exit.3 \
+   atf-sh.3 atf_expect_fail.3 \
+   atf-sh.3 atf_expect_pass.3 \
+   atf-sh.3 atf_expect_signal.3 \
+   atf-sh.3 atf_expect_timeout.3 \
+   atf-sh.3 atf_fail.3 \
+   atf-sh.3 atf_get.3 \
+   atf-sh.3 atf_get_srcdir.3 \
+   atf-sh.3 atf_pass.3 \
+   atf-sh.3 atf_require_prog.3 \
+   atf-sh.3 atf_set.3 \
+   atf-sh.3 atf_skip.3 \
+   atf-sh.3 atf_test_case.3
 
 CFLAGS+=   -DHAVE_CONFIG_H
 CFLAGS+=   -DATF_LIBEXECDIR='"${LIBEXECDIR}"'
___
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: r319661 - head

2017-06-07 Thread Ngie Cooper
Author: ngie
Date: Wed Jun  7 21:14:06 2017
New Revision: 319661
URL: https://svnweb.freebsd.org/changeset/base/319661

Log:
  Remove incorrect manpage link I added for atf_check(1) in r319659 for
  completeness.
  
  MFC after:never
  Sponsored by: Dell EMC Isilon

Modified:
  head/ObsoleteFiles.inc

Modified: head/ObsoleteFiles.inc
==
--- head/ObsoleteFiles.inc  Wed Jun  7 21:11:32 2017(r319660)
+++ head/ObsoleteFiles.inc  Wed Jun  7 21:14:06 2017(r319661)
@@ -38,6 +38,8 @@
 #   xargs -n1 | sort | uniq -d;
 # done
 
+# 20170607: remove incorrect atf_check(1) manpage link
+OLD_FILES+=usr/share/man/man1/atf_check.1.gz
 # 20170601: remove stale manpage
 OLD_FILES+=usr/share/man/man2/cap_rights_get.2.gz
 # 20170601: old libifconfig and libifc
___
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: r319660 - head/libexec/atf/atf-check

2017-06-07 Thread Ngie Cooper
Author: ngie
Date: Wed Jun  7 21:11:32 2017
New Revision: 319660
URL: https://svnweb.freebsd.org/changeset/base/319660

Log:
  Revert r319659
  
  I missed the fact that atf-sh(3) already documents atf_check(3). I'll
  be adding an manpage link for that instead in the next commit.
  
  MFC after:1 week
  MFC with: r319659
  Sponsored by: Dell EMC Isilon

Modified:
  head/libexec/atf/atf-check/Makefile

Modified: head/libexec/atf/atf-check/Makefile
==
--- head/libexec/atf/atf-check/Makefile Wed Jun  7 21:03:27 2017
(r319659)
+++ head/libexec/atf/atf-check/Makefile Wed Jun  7 21:11:32 2017
(r319660)
@@ -34,7 +34,6 @@ ATF=  ${SRCTOP}/contrib/atf
 PROG_CXX=  atf-check
 SRCS=  atf-check.cpp
 MAN=   atf-check.1
-MLINKS+=   atf-check.1 atf_check.1
 
 CFLAGS+=   -I${ATF}
 CFLAGS+=   -DATF_SHELL='"/bin/sh"'
___
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: r319659 - head/libexec/atf/atf-check

2017-06-07 Thread Ngie Cooper
Author: ngie
Date: Wed Jun  7 21:03:27 2017
New Revision: 319659
URL: https://svnweb.freebsd.org/changeset/base/319659

Log:
  Add an MLINK for atf_check(1) -> atf-check(1)
  
  This is being done to make the documentation for atf-check(1) easier to 
find/more
  intuitive for new users, because atf_check is the atf-run(1) shell version of 
the
  standalone atf-check(1) command, which is used in atf-sh(3) test programs.
  
  MFC after:1 week
  Sponsored by: Dell EMC Isilon

Modified:
  head/libexec/atf/atf-check/Makefile

Modified: head/libexec/atf/atf-check/Makefile
==
--- head/libexec/atf/atf-check/Makefile Wed Jun  7 19:42:17 2017
(r319658)
+++ head/libexec/atf/atf-check/Makefile Wed Jun  7 21:03:27 2017
(r319659)
@@ -34,6 +34,7 @@ ATF=  ${SRCTOP}/contrib/atf
 PROG_CXX=  atf-check
 SRCS=  atf-check.cpp
 MAN=   atf-check.1
+MLINKS+=   atf-check.1 atf_check.1
 
 CFLAGS+=   -I${ATF}
 CFLAGS+=   -DATF_SHELL='"/bin/sh"'
___
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: r319658 - head/tools/tools/sysdoc

2017-06-07 Thread Bryan Drewery
Author: bdrewery
Date: Wed Jun  7 19:42:17 2017
New Revision: 319658
URL: https://svnweb.freebsd.org/changeset/base/319658

Log:
  vm.defer_swapspace_pageouts was removed in r308474.
  
  Reported by:  pstef

Modified:
  head/tools/tools/sysdoc/tunables.mdoc

Modified: head/tools/tools/sysdoc/tunables.mdoc
==
--- head/tools/tools/sysdoc/tunables.mdoc   Wed Jun  7 19:36:17 2017
(r319657)
+++ head/tools/tools/sysdoc/tunables.mdoc   Wed Jun  7 19:42:17 2017
(r319658)
@@ -2185,9 +2185,6 @@ circumstances may stall processes and can therefore
 be turned off.
 
 ---
-vm.defer_swapspace_pageouts
-

 vm.disable_swapspace_pageouts
 
 ---
___
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: r319657 - head/sys/conf

2017-06-07 Thread Bryan Drewery
Author: bdrewery
Date: Wed Jun  7 19:36:17 2017
New Revision: 319657
URL: https://svnweb.freebsd.org/changeset/base/319657

Log:
  vm.defer_swapspace_pageouts was removed in r308474.

Modified:
  head/sys/conf/NOTES

Modified: head/sys/conf/NOTES
==
--- head/sys/conf/NOTES Wed Jun  7 18:08:11 2017(r319656)
+++ head/sys/conf/NOTES Wed Jun  7 19:36:17 2017(r319657)
@@ -2627,8 +2627,7 @@ options   DEADLKRES
 # it back on at run-time.
 #
 # This is sometimes usable for systems which don't have any swap space
-# (see also sysctls "vm.defer_swapspace_pageouts" and
-# "vm.disable_swapspace_pageouts")
+# (see also sysctl "vm.disable_swapspace_pageouts")
 #
 #options   NO_SWAPPING
 
___
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: r319656 - in head/sys/compat/linuxkpi/common: include/asm include/linux src

2017-06-07 Thread Justin Hibbits
Author: jhibbits
Date: Wed Jun  7 18:08:11 2017
New Revision: 319656
URL: https://svnweb.freebsd.org/changeset/base/319656

Log:
  Add more #ifdef arch checks to the linuxkpi
  
  arm, mips, and powerpc all implement pmap_mapdev_attr() and pmap_unmapdev(),
  so add those archs to the checks.  powerpc also includes the atomic_swap_*()
  functions, so add that to the supported list as well.  Not tested except by
  compiling powerpc.
  
  Reviewed by:  markj

Modified:
  head/sys/compat/linuxkpi/common/include/asm/atomic.h
  head/sys/compat/linuxkpi/common/include/asm/atomic64.h
  head/sys/compat/linuxkpi/common/include/linux/io.h
  head/sys/compat/linuxkpi/common/src/linux_compat.c

Modified: head/sys/compat/linuxkpi/common/include/asm/atomic.h
==
--- head/sys/compat/linuxkpi/common/include/asm/atomic.hWed Jun  7 
16:04:34 2017(r319655)
+++ head/sys/compat/linuxkpi/common/include/asm/atomic.hWed Jun  7 
18:08:11 2017(r319656)
@@ -131,7 +131,8 @@ static inline int
 atomic_xchg(atomic_t *v, int i)
 {
 #if defined(__i386__) || defined(__amd64__) || \
-defined(__arm__) || defined(__aarch64__)
+defined(__arm__) || defined(__aarch64__) || \
+defined(__powerpc__)
return (atomic_swap_int(>counter, i));
 #else
int ret;

Modified: head/sys/compat/linuxkpi/common/include/asm/atomic64.h
==
--- head/sys/compat/linuxkpi/common/include/asm/atomic64.h  Wed Jun  7 
16:04:34 2017(r319655)
+++ head/sys/compat/linuxkpi/common/include/asm/atomic64.h  Wed Jun  7 
18:08:11 2017(r319656)
@@ -108,7 +108,8 @@ static inline int64_t
 atomic64_xchg(atomic64_t *v, int64_t i)
 {
 #if defined(__i386__) || defined(__amd64__) || \
-defined(__arm__) || defined(__aarch64__)
+defined(__arm__) || defined(__aarch64__) || \
+defined(__powerpc64__)
return (atomic_swap_64(>counter, i));
 #else
int64_t ret;

Modified: head/sys/compat/linuxkpi/common/include/linux/io.h
==
--- head/sys/compat/linuxkpi/common/include/linux/io.h  Wed Jun  7 16:04:34 
2017(r319655)
+++ head/sys/compat/linuxkpi/common/include/linux/io.h  Wed Jun  7 18:08:11 
2017(r319656)
@@ -180,7 +180,8 @@ _outb(u_char data, u_int port)
 }
 #endif
 
-#if defined(__i386__) || defined(__amd64__)
+#if defined(__i386__) || defined(__amd64__) || \
+defined(__arm__) || defined(__mips__) || defined(__powerpc__)
 void *_ioremap_attr(vm_paddr_t phys_addr, unsigned long size, int attr);
 #else
 #define_ioremap_attr(...) NULL

Modified: head/sys/compat/linuxkpi/common/src/linux_compat.c
==
--- head/sys/compat/linuxkpi/common/src/linux_compat.c  Wed Jun  7 16:04:34 
2017(r319655)
+++ head/sys/compat/linuxkpi/common/src/linux_compat.c  Wed Jun  7 18:08:11 
2017(r319656)
@@ -1415,7 +1415,8 @@ vmmap_remove(void *addr)
return (vmmap);
 }
 
-#if defined(__i386__) || defined(__amd64__)
+#if defined(__i386__) || defined(__amd64__) || \
+defined(__arm__) || defined(__mips__) || defined(__powerpc__)
 void *
 _ioremap_attr(vm_paddr_t phys_addr, unsigned long size, int attr)
 {
@@ -1438,7 +1439,8 @@ iounmap(void *addr)
vmmap = vmmap_remove(addr);
if (vmmap == NULL)
return;
-#if defined(__i386__) || defined(__amd64__)
+#if defined(__i386__) || defined(__amd64__) || \
+defined(__arm__) || defined(__mips__) || defined(__powerpc__)
pmap_unmapdev((vm_offset_t)addr, vmmap->vm_size);
 #endif
kfree(vmmap);
___
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: r319655 - head/sys/kern

2017-06-07 Thread Alan Cox
Author: alc
Date: Wed Jun  7 16:04:34 2017
New Revision: 319655
URL: https://svnweb.freebsd.org/changeset/base/319655

Log:
  Originally, this file could be compiled as a user-space application for
  testing purposes.  However, over the years, various changes to the kernel
  have broken this feature.  This revision applies some fixes to get user-
  space compilation working again.  There are no changes in this revision
  to code that is used by the kernel.
  
  MFC after:3 days

Modified:
  head/sys/kern/subr_blist.c

Modified: head/sys/kern/subr_blist.c
==
--- head/sys/kern/subr_blist.c  Wed Jun  7 12:50:54 2017(r319654)
+++ head/sys/kern/subr_blist.c  Wed Jun  7 16:04:34 2017(r319655)
@@ -99,9 +99,8 @@ __FBSDID("$FreeBSD$");
 #define BLIST_DEBUG
 #endif
 
-#define SWAPBLK_NONE ((daddr_t)-1)
-
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -110,8 +109,6 @@ __FBSDID("$FreeBSD$");
 #define malloc(a,b,c)  calloc(a, 1)
 #define free(a,b)  free(a)
 
-typedef unsigned int u_daddr_t;
-
 #include 
 
 void panic(const char *ctl, ...);
@@ -921,7 +918,7 @@ blst_radix_print(blmeta_t *scan, daddr_t blk, daddr_t 
 
if (radix == BLIST_BMAP_RADIX) {
printf(
-   "%*.*s(%08llx,%lld): bitmap %08llx big=%lld\n", 
+   "%*.*s(%08llx,%lld): bitmap %016llx big=%lld\n", 
tab, tab, "",
(long long)blk, (long long)radix,
(long long)scan->u.bmu_bitmap,
@@ -1015,10 +1012,9 @@ main(int ac, char **av)
 
for (;;) {
char buf[1024];
-   daddr_t da = 0;
-   daddr_t count = 0;
+   long long da = 0;
+   long long count = 0;
 
-
printf("%lld/%lld/%lld> ", (long long)bl->bl_free,
(long long)size, (long long)bl->bl_radix);
fflush(stdout);
@@ -1027,7 +1023,7 @@ main(int ac, char **av)
switch(buf[0]) {
case 'r':
if (sscanf(buf + 1, "%lld", ) == 1) {
-   blist_resize(, count, 1);
+   blist_resize(, count, 1, M_WAITOK);
} else {
printf("?\n");
}
@@ -1043,16 +1039,14 @@ main(int ac, char **av)
}
break;
case 'f':
-   if (sscanf(buf + 1, "%llx %lld",
-   (long long *), (long long *)) == 2) {
+   if (sscanf(buf + 1, "%llx %lld", , ) == 2) {
blist_free(bl, da, count);
} else {
printf("?\n");
}
break;
case 'l':
-   if (sscanf(buf + 1, "%llx %lld",
-   (long long *), (long long *)) == 2) {
+   if (sscanf(buf + 1, "%llx %lld", , ) == 2) {
printf("n=%d\n",
blist_fill(bl, da, count));
} else {
___
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: r319611 - in head: sys/kern sys/sys usr.sbin/jail

2017-06-07 Thread Allan Jude
On June 7, 2017 4:20:33 AM EDT, Alexander Leidinger  
wrote:
>
>Quoting Allan Jude  (from Tue, 6 Jun 2017  
>02:15:01 + (UTC)):
>
>> Author: allanjude
>> Date: Tue Jun  6 02:15:00 2017
>> New Revision: 319611
>> URL: https://svnweb.freebsd.org/changeset/base/319611
>>
>> Log:
>>   Jails: Optionally prevent jailed root from binding to privileged
>ports
>>
>>   You may now optionally specify allow.noreserved_ports to prevent
>root
>>   inside a jail from using privileged ports (less than 1024)
>
>What about a different name than "noreserved_ports"? This is very  
>close to "nonreserverd_ports", and as such it's easy to get wrong the  
>first time. IMO "block_reserved_ports" and "noblock_reserved_ports"  
>(or another similar explicit wording) is less likely to get  
>misunderstood (please take potential lack of language learning skills  
>into account...).
>
>> Modified: head/sys/kern/kern_jail.c
>>
>==
>> --- head/sys/kern/kern_jail.cTue Jun  6 02:03:22 2017
>> (r319610)
>> +++ head/sys/kern/kern_jail.cTue Jun  6 02:15:00 2017
>> (r319611)
>> @@ -199,6 +199,7 @@ static char *pr_allow_names[] = {
>>  "allow.mount.fdescfs",
>>  "allow.mount.linprocfs",
>>  "allow.mount.linsysfs",
>> +"allow.reserved_ports",
>>  };
>>  const size_t pr_allow_names_size = sizeof(pr_allow_names);
>>
>> @@ -218,10 +219,11 @@ static char *pr_allow_nonames[] = {
>>  "allow.mount.nofdescfs",
>>  "allow.mount.nolinprocfs",
>>  "allow.mount.nolinsysfs",
>> +"allow.noreserved_ports",
>
>Bye,
>Alexander.

The option name is reserved_ports which allows root to bind to the ports. As 
with all jail options, the no prefix disables it. This feature is on by default 
for backwards compatibility.
-- 
Allan Jude
___
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: r319649 - head/sys/dev/rtwn/rtl8188e

2017-06-07 Thread Kevin Lo
Author: kevlo
Date: Wed Jun  7 09:10:24 2017
New Revision: 319649
URL: https://svnweb.freebsd.org/changeset/base/319649

Log:
  Change R88E_EFUSE_MAX_LEN to use the same value as the vendor's driver
  that contains the length of the efuse content.
  
  Reviewed by:  avos

Modified:
  head/sys/dev/rtwn/rtl8188e/r88e_rom_defs.h

Modified: head/sys/dev/rtwn/rtl8188e/r88e_rom_defs.h
==
--- head/sys/dev/rtwn/rtl8188e/r88e_rom_defs.h  Wed Jun  7 07:41:44 2017
(r319648)
+++ head/sys/dev/rtwn/rtl8188e/r88e_rom_defs.h  Wed Jun  7 09:10:24 2017
(r319649)
@@ -23,7 +23,7 @@
 
 #define R88E_GROUP_2G  6
 
-#define R88E_EFUSE_MAX_LEN 512
+#define R88E_EFUSE_MAX_LEN 256
 #define R88E_EFUSE_MAP_LEN 512
 
 #endif /* R88E_ROM_DEFS_H */
___
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: r319611 - in head: sys/kern sys/sys usr.sbin/jail

2017-06-07 Thread Alexander Leidinger


Quoting Allan Jude  (from Tue, 6 Jun 2017  
02:15:01 + (UTC)):



Author: allanjude
Date: Tue Jun  6 02:15:00 2017
New Revision: 319611
URL: https://svnweb.freebsd.org/changeset/base/319611

Log:
  Jails: Optionally prevent jailed root from binding to privileged ports

  You may now optionally specify allow.noreserved_ports to prevent root
  inside a jail from using privileged ports (less than 1024)


What about a different name than "noreserved_ports"? This is very  
close to "nonreserverd_ports", and as such it's easy to get wrong the  
first time. IMO "block_reserved_ports" and "noblock_reserved_ports"  
(or another similar explicit wording) is less likely to get  
misunderstood (please take potential lack of language learning skills  
into account...).



Modified: head/sys/kern/kern_jail.c
==
--- head/sys/kern/kern_jail.c   Tue Jun  6 02:03:22 2017(r319610)
+++ head/sys/kern/kern_jail.c   Tue Jun  6 02:15:00 2017(r319611)
@@ -199,6 +199,7 @@ static char *pr_allow_names[] = {
"allow.mount.fdescfs",
"allow.mount.linprocfs",
"allow.mount.linsysfs",
+   "allow.reserved_ports",
 };
 const size_t pr_allow_names_size = sizeof(pr_allow_names);

@@ -218,10 +219,11 @@ static char *pr_allow_nonames[] = {
"allow.mount.nofdescfs",
"allow.mount.nolinprocfs",
"allow.mount.nolinsysfs",
+   "allow.noreserved_ports",


Bye,
Alexander.
--
http://www.Leidinger.net alexan...@leidinger.net: PGP 0x8F31830F9F2772BF
http://www.FreeBSD.orgnetch...@freebsd.org  : PGP 0x8F31830F9F2772BF


pgpOvSpn6EloG.pgp
Description: Digitale PGP-Signatur