diff options
author | ngie <ngie@FreeBSD.org> | 2015-10-10 01:29:50 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-10-10 01:29:50 +0000 |
commit | 8cba005f9017c6488f98dc8807baf3e179fd1577 (patch) | |
tree | 071532f10dbdbb6b52de155638f7fa14bc62b54d /lib | |
parent | 2d18671fe9e57ce3bf842fb654693fdbcfa49eb5 (diff) | |
parent | 8d135240735275b0d2f31b6fdc119fb32ac79117 (diff) | |
download | FreeBSD-src-8cba005f9017c6488f98dc8807baf3e179fd1577.zip FreeBSD-src-8cba005f9017c6488f98dc8807baf3e179fd1577.tar.gz |
MFhead @ r289100
Diffstat (limited to 'lib')
-rw-r--r-- | lib/clang/libclangbasic/Makefile | 3 | ||||
-rw-r--r-- | lib/libc/rpc/getpublickey.c | 2 | ||||
-rw-r--r-- | lib/libc/rpc/key_call.c | 6 | ||||
-rw-r--r-- | lib/libc/sys/ptrace.2 | 25 | ||||
-rw-r--r-- | lib/libc/sys/utrace.2 | 5 | ||||
-rw-r--r-- | lib/libstand/open.c | 2 | ||||
-rw-r--r-- | lib/libxo/Makefile | 4 |
7 files changed, 37 insertions, 10 deletions
diff --git a/lib/clang/libclangbasic/Makefile b/lib/clang/libclangbasic/Makefile index 68c2a77..028fcdb 100644 --- a/lib/clang/libclangbasic/Makefile +++ b/lib/clang/libclangbasic/Makefile @@ -47,3 +47,6 @@ TGHDRS= AttrHasAttributeImpl \ arm_neon .include "../clang.lib.mk" + +# XX: work around GCC bug 67888 +CFLAGS.gcc += -fpermissive diff --git a/lib/libc/rpc/getpublickey.c b/lib/libc/rpc/getpublickey.c index 74ed983..4c80685 100644 --- a/lib/libc/rpc/getpublickey.c +++ b/lib/libc/rpc/getpublickey.c @@ -56,7 +56,7 @@ __FBSDID("$FreeBSD$"); /* * Hack to let ypserv/rpc.nisd use AUTH_DES. */ -int (*__getpublickey_LOCAL)() = 0; +int (*__getpublickey_LOCAL)(const char *, char *) = 0; /* * Get somebody's public key diff --git a/lib/libc/rpc/key_call.c b/lib/libc/rpc/key_call.c index 664ddfd..b9bc77a 100644 --- a/lib/libc/rpc/key_call.c +++ b/lib/libc/rpc/key_call.c @@ -81,9 +81,9 @@ __FBSDID("$FreeBSD$"); * implementations of these functions, and to call those in key_call(). */ -cryptkeyres *(*__key_encryptsession_pk_LOCAL)() = 0; -cryptkeyres *(*__key_decryptsession_pk_LOCAL)() = 0; -des_block *(*__key_gendes_LOCAL)() = 0; +cryptkeyres *(*__key_encryptsession_pk_LOCAL)(uid_t, void *arg) = 0; +cryptkeyres *(*__key_decryptsession_pk_LOCAL)(uid_t, void *arg) = 0; +des_block *(*__key_gendes_LOCAL)(uid_t, void *) = 0; static int key_call( u_long, xdrproc_t, void *, xdrproc_t, void *); diff --git a/lib/libc/sys/ptrace.2 b/lib/libc/sys/ptrace.2 index 71b432f..5c93438 100644 --- a/lib/libc/sys/ptrace.2 +++ b/lib/libc/sys/ptrace.2 @@ -2,7 +2,7 @@ .\" $NetBSD: ptrace.2,v 1.2 1995/02/27 12:35:37 cgd Exp $ .\" .\" This file is in the public domain. -.Dd July 3, 2015 +.Dd October 6, 2015 .Dt PTRACE 2 .Os .Sh NAME @@ -307,6 +307,8 @@ struct ptrace_lwpinfo { siginfo_t pl_siginfo; char pl_tdname[MAXCOMLEN + 1]; int pl_child_pid; + u_int pl_syscall_code; + u_int pl_syscall_narg; }; .Ed .Pp @@ -395,6 +397,27 @@ stop when .Dv PL_FLAG_FORKED is set in .Va pl_flags . +.It pl_syscall_code +The ABI-specific identifier of the current system call. +Note that for indirect system calls this field reports the indirected +system call. +Only valid when +.Dv PL_FLAG_SCE +or +.Dv PL_FLAG_SCX +is set in +.Va pl_flags. +.It pl_syscall_narg +The number of arguments passed to the current system call not counting +the system call identifier. +Note that for indirect system calls this field reports the arguments +passed to the indirected system call. +Only valid when +.Dv PL_FLAG_SCE +or +.Dv PL_FLAG_SCX +is set in +.Va pl_flags. .El .It PT_GETNUMLWPS This request returns the number of kernel threads associated with the diff --git a/lib/libc/sys/utrace.2 b/lib/libc/sys/utrace.2 index 9d24f20..345c1fd 100644 --- a/lib/libc/sys/utrace.2 +++ b/lib/libc/sys/utrace.2 @@ -28,7 +28,7 @@ .\" .\" $FreeBSD$ .\" -.Dd November 1, 2014 +.Dd October 5, 2015 .Dt UTRACE 2 .Os .Sh NAME @@ -70,7 +70,8 @@ support .Sh SEE ALSO .Xr kdump 1 , .Xr ktrace 1 , -.Xr ktrace 2 +.Xr ktrace 2 , +.Xr truss 1 .Sh HISTORY The .Fn utrace diff --git a/lib/libstand/open.c b/lib/libstand/open.c index 0d90433..214e51b 100644 --- a/lib/libstand/open.c +++ b/lib/libstand/open.c @@ -114,7 +114,7 @@ open(const char *fname, int mode) error = (fs->fo_open)(fname, f); if (error == 0) goto ok; - goto fail; + goto err; } error = devopen(f, fname, &file); diff --git a/lib/libxo/Makefile b/lib/libxo/Makefile index fd0ba91..d854a4c 100644 --- a/lib/libxo/Makefile +++ b/lib/libxo/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +SHLIBDIR?= /lib + .include <src.opts.mk> LIBXOSRC= ${SRCTOP}/contrib/libxo @@ -9,8 +11,6 @@ LIBXOSRC= ${SRCTOP}/contrib/libxo LIB= xo SHLIB_MAJOR=0 -SHLIBDIR?= /lib - SRCS= libxo.c xo_encoder.c xo_syslog.c CFLAGS+=-I${LIBXOSRC}/libxo |