From owner-svn-src-all@FreeBSD.ORG Sat Apr 5 11:37:59 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 150A3A5B; Sat, 5 Apr 2014 11:37:59 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 026F2A0; Sat, 5 Apr 2014 11:37:59 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s35Bbw4t052270; Sat, 5 Apr 2014 11:37:58 GMT (envelope-from ed@svn.freebsd.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s35Bbwxe052269; Sat, 5 Apr 2014 11:37:58 GMT (envelope-from ed@svn.freebsd.org) Message-Id: <201404051137.s35Bbwxe052269@svn.freebsd.org> From: Ed Schouten Date: Sat, 5 Apr 2014 11:37:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r264144 - head/sys/sys X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Apr 2014 11:37:59 -0000 Author: ed Date: Sat Apr 5 11:37:58 2014 New Revision: 264144 URL: http://svnweb.freebsd.org/changeset/base/264144 Log: Add missing userspace bits to . - Include and define pid_t. - Add __BEGIN_DECLS/__END_DECLS. In my opinion we should have considered putting the userspace bits in a different header (e.g., ), but I think we've already passed that point. Modified: head/sys/sys/procdesc.h Modified: head/sys/sys/procdesc.h ============================================================================== --- head/sys/sys/procdesc.h Sat Apr 5 08:17:48 2014 (r264143) +++ head/sys/sys/procdesc.h Sat Apr 5 11:37:58 2014 (r264144) @@ -33,6 +33,7 @@ #define _SYS_PROCDESC_H_ #ifdef _KERNEL + #include /* struct selinfo */ #include #include @@ -101,13 +102,23 @@ void procdesc_reap(struct proc *); #else /* !_KERNEL */ +#include + +#ifndef _PID_T_DECLARED +typedef __pid_t pid_t; +#define _PID_T_DECLARED +#endif + +struct rusage; + /* * Process descriptor system calls. */ -struct rusage; +__BEGIN_DECLS pid_t pdfork(int *, int); int pdkill(int, int); int pdgetpid(int, pid_t *); +__END_DECLS #endif /* _KERNEL */