summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2015-10-06 16:25:13 +0000
committerdim <dim@FreeBSD.org>2015-10-06 16:25:13 +0000
commitf1994891348cb39060934d9c4953e116262cf087 (patch)
tree2b819b069c310c07245d9ea901cc11eb895f0aba /usr.bin
parent24ac568077f391da473e7e8d8c528d76b83a82db (diff)
parentc1bb2e3246dc6cf235535737449549cc16265dda (diff)
downloadFreeBSD-src-f1994891348cb39060934d9c4953e116262cf087.zip
FreeBSD-src-f1994891348cb39060934d9c4953e116262cf087.tar.gz
Merge ^/head r288836 through r288925.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/Makefile315
-rw-r--r--usr.bin/truss/setup.c7
-rw-r--r--usr.bin/xo/Makefile6
3 files changed, 102 insertions, 226 deletions
diff --git a/usr.bin/Makefile b/usr.bin/Makefile
index 03f8864..c303d8b 100644
--- a/usr.bin/Makefile
+++ b/usr.bin/Makefile
@@ -190,230 +190,109 @@ SUBDIR= alias \
# NB: keep these sorted by MK_* knobs
-.if ${MK_AT} != "no"
-SUBDIR+= at
-.endif
-
-.if ${MK_ATM} != "no"
-SUBDIR+= atm
-.endif
-
-.if ${MK_BLUETOOTH} != "no"
-SUBDIR+= bluetooth
-.endif
-
-.if ${MK_BSD_CPIO} != "no"
-SUBDIR+= cpio
-.endif
-
-.if ${MK_CALENDAR} != "no"
-SUBDIR+= calendar
-.endif
-
-.if ${MK_CLANG} != "no"
-SUBDIR+= clang
-.endif
-
-.if ${MK_EE} != "no"
-SUBDIR+= ee
-.endif
-
-.if ${MK_FILE} != "no"
-SUBDIR+= file
-.endif
-
-.if ${MK_FINGER} != "no"
-SUBDIR+= finger
-.endif
-
-.if ${MK_FTP} != "no"
-SUBDIR+= ftp
-.endif
-
-.if ${MK_GAMES} != "no"
-SUBDIR+= caesar
-SUBDIR+= factor
-SUBDIR+= fortune
-SUBDIR+= grdc
-SUBDIR+= morse
-SUBDIR+= number
-SUBDIR+= pom
-SUBDIR+= primes
-SUBDIR+= random
-.endif
-
-.if ${MK_GPL_DTC} != "yes"
-SUBDIR+= dtc
-.endif
-
-.if ${MK_GROFF} != "no"
-SUBDIR+= vgrind
-.endif
-
-.if ${MK_HESIOD} != "no"
-SUBDIR+= hesinfo
-.endif
-
-.if ${MK_ICONV} != "no"
-SUBDIR+= iconv
-SUBDIR+= mkcsmapper
-SUBDIR+= mkesdb
-.endif
-
-.if ${MK_ISCSI} != "no"
-SUBDIR+= iscsictl
-.endif
-
-.if ${MK_KDUMP} != "no"
-SUBDIR+= kdump
-SUBDIR+= truss
-.endif
-
-.if ${MK_KERBEROS_SUPPORT} != "no"
-SUBDIR+= compile_et
-.endif
-
-.if ${MK_LDNS_UTILS} != "no"
-SUBDIR+= drill
-SUBDIR+= host
-.endif
-
-.if ${MK_LOCATE} != "no"
-SUBDIR+= locate
-.endif
-
+SUBDIR.${MK_AT}+= at
+SUBDIR.${MK_ATM}+= atm
+SUBDIR.${MK_BLUETOOTH}+= bluetooth
+SUBDIR.${MK_BSD_CPIO}+= cpio
+SUBDIR.${MK_CALENDAR}+= calendar
+SUBDIR.${MK_CLANG}+= clang
+SUBDIR.${MK_EE}+= ee
+SUBDIR.${MK_FILE}+= file
+SUBDIR.${MK_FINGER}+= finger
+SUBDIR.${MK_FTP}+= ftp
+SUBDIR.${MK_GAMES}+= caesar
+SUBDIR.${MK_GAMES}+= factor
+SUBDIR.${MK_GAMES}+= fortune
+SUBDIR.${MK_GAMES}+= grdc
+SUBDIR.${MK_GAMES}+= morse
+SUBDIR.${MK_GAMES}+= number
+SUBDIR.${MK_GAMES}+= pom
+SUBDIR.${MK_GAMES}+= primes
+SUBDIR.${MK_GAMES}+= random
+SUBDIR.${MK_GPL_DTC}+= dtc
+SUBDIR.${MK_GROFF}+= vgrind
+SUBDIR.${MK_HESIOD}+= hesinfo
+SUBDIR.${MK_ICONV}+= iconv
+SUBDIR.${MK_ICONV}+= mkcsmapper
+SUBDIR.${MK_ICONV}+= mkesdb
+SUBDIR.${MK_ISCSI}+= iscsictl
+SUBDIR.${MK_KDUMP}+= kdump
+SUBDIR.${MK_KDUMP}+= truss
+SUBDIR.${MK_KERBEROS_SUPPORT}+= compile_et
+SUBDIR.${MK_LDNS_UTILS}+= drill
+SUBDIR.${MK_LDNS_UTILS}+= host
+SUBDIR.${MK_LOCATE}+= locate
# XXX msgs?
-.if ${MK_MAIL} != "no"
-SUBDIR+= biff
-SUBDIR+= from
-SUBDIR+= mail
-SUBDIR+= msgs
-.endif
-
-.if ${MK_MAKE} != "no"
-SUBDIR+= bmake
-.endif
-
-.if ${MK_MAN_UTILS} != "no"
-SUBDIR+= catman
-.if ${MK_MANDOCDB} == "no"
-SUBDIR+= makewhatis
-.endif
-SUBDIR+= man
-.endif
-
-.if ${MK_NETCAT} != "no"
-SUBDIR+= nc
-.endif
-
-.if ${MK_NIS} != "no"
-SUBDIR+= ypcat
-SUBDIR+= ypmatch
-SUBDIR+= ypwhich
-.endif
-
-.if ${MK_OPENSSH} != "no"
-SUBDIR+= ssh-copy-id
-.endif
-
-.if ${MK_OPENSSL} != "no"
-SUBDIR+= bc
-SUBDIR+= chkey
-SUBDIR+= dc
-SUBDIR+= newkey
-.endif
-
-.if ${MK_QUOTAS} != "no"
-SUBDIR+= quota
-.endif
-
-.if ${MK_RCMDS} != "no"
-SUBDIR+= rlogin
-SUBDIR+= rsh
-SUBDIR+= ruptime
-SUBDIR+= rwho
-.endif
-
-.if ${MK_SENDMAIL} != "no"
-SUBDIR+= vacation
-.endif
-
-.if ${MK_TALK} != "no"
-SUBDIR+= talk
-.endif
-
-.if ${MK_TELNET} != "no"
-SUBDIR+= telnet
-.endif
-
-.if ${MK_TESTS} != "no"
-SUBDIR+= tests
-.endif
-
-.if ${MK_TEXTPROC} != "no"
-SUBDIR+= checknr
-SUBDIR+= colcrt
-SUBDIR+= ul
-.endif
-
-.if ${MK_TFTP} != "no"
-SUBDIR+= tftp
-.endif
-
-.if ${MK_TOOLCHAIN} != "no"
-SUBDIR+= addr2line
-SUBDIR+= ar
-SUBDIR+= c89
-SUBDIR+= c99
-SUBDIR+= ctags
-SUBDIR+= cxxfilt
-SUBDIR+= elfcopy
-SUBDIR+= file2c
+SUBDIR.${MK_MAIL}+= biff
+SUBDIR.${MK_MAIL}+= from
+SUBDIR.${MK_MAIL}+= mail
+SUBDIR.${MK_MAIL}+= msgs
+SUBDIR.${MK_MAKE}+= bmake
+SUBDIR.${MK_MAN_UTILS}+= catman
+.if ${MK_MANDOCDB} == "no" # AND
+SUBDIR.${MK_MAN_UTILS}+= makewhatis
+.endif
+SUBDIR.${MK_MAN_UTILS}+= man
+SUBDIR.${MK_NETCAT}+= nc
+SUBDIR.${MK_NIS}+= ypcat
+SUBDIR.${MK_NIS}+= ypmatch
+SUBDIR.${MK_NIS}+= ypwhich
+SUBDIR.${MK_OPENSSH}+= ssh-copy-id
+SUBDIR.${MK_OPENSSL}+= bc
+SUBDIR.${MK_OPENSSL}+= chkey
+SUBDIR.${MK_OPENSSL}+= dc
+SUBDIR.${MK_OPENSSL}+= newkey
+SUBDIR.${MK_QUOTAS}+= quota
+SUBDIR.${MK_RCMDS}+= rlogin
+SUBDIR.${MK_RCMDS}+= rsh
+SUBDIR.${MK_RCMDS}+= ruptime
+SUBDIR.${MK_RCMDS}+= rwho
+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
+SUBDIR.${MK_TOOLCHAIN}+= ar
+SUBDIR.${MK_TOOLCHAIN}+= c89
+SUBDIR.${MK_TOOLCHAIN}+= c99
+SUBDIR.${MK_TOOLCHAIN}+= ctags
+SUBDIR.${MK_TOOLCHAIN}+= cxxfilt
+SUBDIR.${MK_TOOLCHAIN}+= elfcopy
+SUBDIR.${MK_TOOLCHAIN}+= file2c
.if ${MACHINE_ARCH} != "aarch64" # ARM64TODO gprof does not build
-SUBDIR+= gprof
-.endif
-SUBDIR+= indent
-SUBDIR+= lex
-SUBDIR+= mkstr
-SUBDIR+= nm
-SUBDIR+= readelf
-SUBDIR+= rpcgen
-SUBDIR+= unifdef
-SUBDIR+= size
-SUBDIR+= strings
+SUBDIR.${MK_TOOLCHAIN}+= gprof
+.endif
+SUBDIR.${MK_TOOLCHAIN}+= indent
+SUBDIR.${MK_TOOLCHAIN}+= lex
+SUBDIR.${MK_TOOLCHAIN}+= mkstr
+SUBDIR.${MK_TOOLCHAIN}+= nm
+SUBDIR.${MK_TOOLCHAIN}+= readelf
+SUBDIR.${MK_TOOLCHAIN}+= rpcgen
+SUBDIR.${MK_TOOLCHAIN}+= unifdef
+SUBDIR.${MK_TOOLCHAIN}+= size
+SUBDIR.${MK_TOOLCHAIN}+= strings
.if ${MACHINE_ARCH} != "aarch64" # ARM64TODO xlint does not build
-SUBDIR+= xlint
-.endif
-SUBDIR+= xstr
-SUBDIR+= yacc
-.endif
-
-.if ${MK_VI} != "no"
-SUBDIR+= vi
-.endif
-
-.if ${MK_VT} != "no"
-SUBDIR+= vtfontcvt
-.endif
-
-.if ${MK_USB} != "no"
-SUBDIR+= usbhidaction
-SUBDIR+= usbhidctl
-.endif
-
-.if ${MK_UTMPX} != "no"
-SUBDIR+= last
-SUBDIR+= users
-SUBDIR+= who
-.endif
-
-.if ${MK_SVN} == "yes" || ${MK_SVNLITE} == "yes"
-SUBDIR+= svn
-.endif
+SUBDIR.${MK_TOOLCHAIN}+= xlint
+.endif
+SUBDIR.${MK_TOOLCHAIN}+= xstr
+SUBDIR.${MK_TOOLCHAIN}+= yacc
+SUBDIR.${MK_VI}+= vi
+SUBDIR.${MK_VT}+= vtfontcvt
+SUBDIR.${MK_USB}+= usbhidaction
+SUBDIR.${MK_USB}+= usbhidctl
+SUBDIR.${MK_UTMPX}+= last
+SUBDIR.${MK_UTMPX}+= users
+SUBDIR.${MK_UTMPX}+= who
+SUBDIR.${MK_SVN}+= svn
+SUBDIR.${MK_SVNLITE}+= svn
.include <bsd.arch.inc.mk>
-SUBDIR:= ${SUBDIR:O}
+SUBDIR:= ${SUBDIR:O:u}
SUBDIR_PARALLEL=
diff --git a/usr.bin/truss/setup.c b/usr.bin/truss/setup.c
index 74008e4..74678e6 100644
--- a/usr.bin/truss/setup.c
+++ b/usr.bin/truss/setup.c
@@ -564,15 +564,12 @@ eventloop(struct trussinfo *info)
}
find_thread(info, si.si_pid, pl.pl_lwpid);
- if (si.si_status == SIGTRAP) {
+ if (si.si_status == SIGTRAP &&
+ (pl.pl_flags & (PL_FLAG_SCE|PL_FLAG_SCX)) != 0) {
if (pl.pl_flags & PL_FLAG_SCE)
enter_syscall(info, &pl);
else if (pl.pl_flags & PL_FLAG_SCX)
exit_syscall(info, &pl);
- else
- errx(1,
- "pl_flags %x contains neither PL_FLAG_SCE nor PL_FLAG_SCX",
- pl.pl_flags);
pending_signal = 0;
} else if (pl.pl_flags & PL_FLAG_CHILD) {
if ((info->flags & COUNTONLY) == 0)
diff --git a/usr.bin/xo/Makefile b/usr.bin/xo/Makefile
index be22618..a287608 100644
--- a/usr.bin/xo/Makefile
+++ b/usr.bin/xo/Makefile
@@ -1,14 +1,14 @@
# $FreeBSD$
-LIBXO= ${.CURDIR:H:H}/contrib/libxo
+LIBXOSRC= ${SRCTOP}/contrib/libxo
-.PATH: ${LIBXO}/xo
+.PATH: ${LIBXOSRC}/xo
PROG= xo
MAN= xo.1
# XXX For xoversion.h
-CFLAGS+=-I${LIBXO}/libxo
+CFLAGS+=-I${LIBXOSRC}/libxo
LIBADD= xo util
OpenPOWER on IntegriCloud