r321852 ngie Aug. 1, 2017, 6:51 a.m.
pager_output should return 0 if no more output needs to be paged; non-zero

MFC after:	1 week
MFC with:	r321849
Reported by:	avg
r321851 ngie Aug. 1, 2017, 5:39 a.m.
MFC after:	1 week
r321850 ngie Aug. 1, 2017, 5:34 a.m.
- Standardize on SRCTOP instead of .CURDIR-relative paths
- Use LIBADD instead of a mix of specifying -lgeom via DPADD/LDADD/LDFLAGS.
  Specifying -lgeom via LDFLAGS is an especially unnecessary and odd

MFC after:	1 week
r321849 ngie Aug. 1, 2017, 5:29 a.m.
pager_output(..) has always returned int. For some reason (probably the
clang 5.0 update), this mismatch now results in an error with CC=clang.

MFC after:	1 week
r321848 ngie Aug. 1, 2017, 5:26 a.m.
This fixes one part of the build.
r321847 markj Aug. 1, 2017, 5:26 a.m.
The removed release stores are not needed since stores are totally
ordered on i386 and amd64.

Reviewed by:	alc, kib (previous revision)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D11790
r321846 araujo Aug. 1, 2017, 5:26 a.m.
Obtained from:	OpenBSD (rev 1.4)
MFC after:	3 weeks.
r321845 ngie Aug. 1, 2017, 5:23 a.m.
MFC after:	3 days
r321844 ngie Aug. 1, 2017, 5:16 a.m.
No functional change intended.

MFC after:	3 days
r321843 markj Aug. 1, 2017, 4:52 a.m.
X-MFC with:	r321842
r321842 markj Aug. 1, 2017, 4:49 a.m.
The workaround described in the deleted comment is no longer needed.

MFC after:	1 week
r321841 ian Aug. 1, 2017, 4:16 a.m.
Supports ISL1209, ISL1218, ISL1219, ISL1220, ISL1221 (just basic RTC
functionality, not all the other fancy stuff the chips can do).
r321840 alc Aug. 1, 2017, 3:51 a.m.
'skip', which denote, respectively, the largest number of blocks that can be
managed by a subtree of that height, and one less than the number of nodes
in a subtree of that height.  This change removes the 'skip' argument from
those functions because 'skip' can be trivially computed from 'radius'.
This change also redefines 'skip' so that it denotes the number of nodes in
the subtree, and so changes loop upper bound tests from '<= skip' to '<
skip' to account for the change.

The 'skip' field is also removed from the blist struct.

The self-test program is changed so that the print command includes the
cursor value in the output.

Submitted by:	Doug Moore <dougm@rice.edu>
MFC after:	1 week
r321839 dchagin Aug. 1, 2017, 3:40 a.m.
Linux specific things to the native fdescfs file system.

Unlike FreeBSD, the Linux fdescfs is a directory containing a symbolic
links to the actual files, which the process has open.
A readlink(2) call on this file returns a full path in case of regular file
or a string in a special format (type:[inode], anon_inode:<file-type>, etc..).
As well as in a FreeBSD, opening the file in the Linux fdescfs directory is
equivalent to duplicating the corresponding file descriptor.

Here we have mutually exclusive requirements:
- in case of readlink(2) call fdescfs lookup() method should return VLNK
vnode otherwise our kern_readlink() fail with EINVAL error;
- in the other calls fdescfs lookup() method should return non VLNK vnode.

For what new vnode v_flag VV_READLINK was added, which is set if fdescfs has beed
mounted with linrdlnk option an modified kern_readlinkat() to properly handle it.

For now For Linux ABI compatibility mount fdescfs volume with linrdlnk option:

    mount -t fdescfs -o linrdlnk null /compat/linux/dev/fd

Reviewed by:	kib@
MFC after:	1 week
Relnotes:	yes
r321838 pfg Aug. 1, 2017, 3:13 a.m.
Obtained from:	DragonFlyBSD (git c69e37d6)
MFC after:	3 days