summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/mtree/Makefile4
-rw-r--r--etc/rc.d/Makefile9
-rw-r--r--games/fortune/datfiles/freebsd-tips20
-rw-r--r--sys/conf/newvers.sh4
-rw-r--r--sys/net/if_tap.c1
-rw-r--r--sys/net/if_tun.c1
-rw-r--r--sys/powerpc/include/proc.h12
-rw-r--r--usr.sbin/ntp/config.h2
-rw-r--r--usr.sbin/ntp/libparse/Makefile2
9 files changed, 34 insertions, 21 deletions
diff --git a/etc/mtree/Makefile b/etc/mtree/Makefile
index 3cea0f8..3228c6c 100644
--- a/etc/mtree/Makefile
+++ b/etc/mtree/Makefile
@@ -2,13 +2,13 @@
.include <bsd.own.mk>
-FILES= BSD.include.dist \
+FILES= ${_BSD.debug.dist} \
+ BSD.include.dist \
BSD.root.dist \
${_BSD.sendmail.dist} \
BSD.usr.dist \
BSD.var.dist
-.endif
.if ${MK_DEBUG_FILES} != "no"
_BSD.debug.dist= BSD.debug.dist
.endif
diff --git a/etc/rc.d/Makefile b/etc/rc.d/Makefile
index 82775f9..e51e2f8 100644
--- a/etc/rc.d/Makefile
+++ b/etc/rc.d/Makefile
@@ -21,11 +21,11 @@ FILES= DAEMON \
auditd \
auditdistd \
bgfsck \
- bluetooth \
+ ${_bluetooth} \
bootparams \
bridge \
bsnmpd \
- bthidd \
+ ${_bthidd} \
ccd \
cleanvar \
cleartmp \
@@ -48,7 +48,7 @@ FILES= DAEMON \
gptboot \
gssd \
hastd \
- hcsecd \
+ ${_hcsecd} \
hostapd \
hostid \
hostid_save \
@@ -182,6 +182,9 @@ _nscd= nscd
.endif
.if ${MK_BLUETOOTH} != "no"
+_bluetooth= bluetooth
+_bthidd= bthidd
+_hcsecd= hcsecd
_ubthidhci= ubthidhci
.endif
diff --git a/games/fortune/datfiles/freebsd-tips b/games/fortune/datfiles/freebsd-tips
index c39dd0f..5f9dd49 100644
--- a/games/fortune/datfiles/freebsd-tips
+++ b/games/fortune/datfiles/freebsd-tips
@@ -8,8 +8,8 @@ a root login. You can add a user to the wheel group by editing /etc/group.
By pressing "Scroll Lock" you can use the arrow keys to scroll backward
through the console output. Press "Scroll Lock" again to turn it off.
%
-Can't remember if you've installed a certain port or not? Try "pkg_info
--Ix port_name".
+Can't remember if you've installed a certain port or not? Try "pkg info
+-x port_name".
%
Ever wonder what those numbers after command names were, as in cat(1)? It's
the section of the manual the man page is in. "man man" will tell you more.
@@ -96,12 +96,6 @@ If you want to play CDs with FreeBSD, a utility for this is already included.
Type 'cdcontrol' then 'help' to learn more. (You may need to set the CDROM
environment variable in order to make cdcontrol want to start.)
%
-If you want to quickly check for duplicate package/port installations,
-try the following pkg_info command.
-
- pkg_info | sort | sed -e 's/-[0-9].*$//' | \
- uniq -c | grep -v '^[[:space:]]*1'
-%
If you'd like to keep track of applications in the FreeBSD ports tree, take a
look at FreshPorts;
@@ -356,11 +350,10 @@ adjust, just type 'mixer'.
%
You can automatically download and install binary packages by doing
- pkg_add -r <URL>
+ pkg install <package>
-where you replace <URL> with the URL to the package. This will also
-automatically install the packages the package you download is dependent on
-(ie, the packages it needs in order to work.)
+This will also automatically install the packages that are dependencies
+for the package you install (ie, the packages it needs in order to work.)
%
You can change the video mode on all consoles by adding something like
the following to /etc/rc.conf:
@@ -448,8 +441,7 @@ You can use /etc/make.conf to control the options used to compile software
on this system. Example entries are in
/usr/share/examples/etc/make.conf.
%
-You can use "pkg_info" to see a list of packages you have installed.
- -- Konstantinos Konstantinidis <kkonstan@duth.gr>
+You can use "pkg info" to see a list of packages you have installed.
%
You can use the 'fetch' command to retrieve files over ftp or http.
diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh
index d84e034..263eb4c 100644
--- a/sys/conf/newvers.sh
+++ b/sys/conf/newvers.sh
@@ -159,6 +159,10 @@ if [ -n "$git_cmd" ] ; then
git=" ${git}"
fi
fi
+ git_b=`$git_cmd rev-parse --abbrev-ref HEAD`
+ if [ -n "$git_b" ] ; then
+ git="${git}(${git_b})"
+ fi
if $git_cmd --work-tree=${SYSDIR}/.. diff-index \
--name-only HEAD | read dummy; then
git="${git}-dirty"
diff --git a/sys/net/if_tap.c b/sys/net/if_tap.c
index ad6f781..fe53a6a 100644
--- a/sys/net/if_tap.c
+++ b/sys/net/if_tap.c
@@ -220,6 +220,7 @@ tap_destroy(struct tap_softc *tp)
CURVNET_SET(ifp->if_vnet);
destroy_dev(tp->tap_dev);
seldrain(&tp->tap_rsel);
+ knlist_clear(&tp->tap_rsel.si_note, 0);
knlist_destroy(&tp->tap_rsel.si_note);
ether_ifdetach(ifp);
if_free(ifp);
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c
index f44bc0e..f36e7ad 100644
--- a/sys/net/if_tun.c
+++ b/sys/net/if_tun.c
@@ -258,6 +258,7 @@ tun_destroy(struct tun_softc *tp)
if_free(TUN2IFP(tp));
destroy_dev(dev);
seldrain(&tp->tun_rsel);
+ knlist_clear(&tp->tun_rsel.si_note, 0);
knlist_destroy(&tp->tun_rsel.si_note);
mtx_destroy(&tp->tun_mtx);
cv_destroy(&tp->tun_cv);
diff --git a/sys/powerpc/include/proc.h b/sys/powerpc/include/proc.h
index 627fbf2..4981581 100644
--- a/sys/powerpc/include/proc.h
+++ b/sys/powerpc/include/proc.h
@@ -54,6 +54,18 @@ struct mdproc {
#endif
#ifdef _KERNEL
+
+#include <machine/pcb.h>
+
+/* Get the current kernel thread stack usage. */
+#define GET_STACK_USAGE(total, used) do { \
+ struct thread *td = curthread; \
+ (total) = td->td_kstack_pages * PAGE_SIZE - sizeof(struct pcb); \
+ (used) = (char *)td->td_kstack + \
+ td->td_kstack_pages * PAGE_SIZE - \
+ (char *)&td; \
+} while (0)
+
struct syscall_args {
u_int code;
struct sysent *callp;
diff --git a/usr.sbin/ntp/config.h b/usr.sbin/ntp/config.h
index efa42d2..41622f1 100644
--- a/usr.sbin/ntp/config.h
+++ b/usr.sbin/ntp/config.h
@@ -84,7 +84,7 @@
#define CLOCK_LOCAL 1
/* Meinberg clocks */
-/* #undef CLOCK_MEINBERG */
+#define CLOCK_MEINBERG 1
/* Magnavox MX4200 GPS receiver */
/* #undef CLOCK_MX4200 */
diff --git a/usr.sbin/ntp/libparse/Makefile b/usr.sbin/ntp/libparse/Makefile
index f86988e..9ccc4b3 100644
--- a/usr.sbin/ntp/libparse/Makefile
+++ b/usr.sbin/ntp/libparse/Makefile
@@ -9,7 +9,7 @@ SRCS= clk_computime.c clk_dcf7000.c clk_hopf6021.c clk_meinberg.c \
clk_rawdcf.c clk_rcc8000.c clk_schmid.c clk_trimtaip.c \
clk_trimtsip.c clk_varitext.c clk_wharton.c data_mbg.c \
info_trimble.c parse.c parse_conf.c trim_info.c \
- binio.c gpstolfp.c
+ binio.c gpstolfp.c ieee754io.c mfp_mul.c
CFLAGS+= -I${.CURDIR}/../../../contrib/ntp/include -I${.CURDIR}/../
OpenPOWER on IntegriCloud