Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Apr 2014 11:37:58 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r264144 - head/sys/sys
Message-ID:  <201404051137.s35Bbwxe052269@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <sys/procdesc.h>.
  
  - Include <sys/_types.h> 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., <procdesc.h>), 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 <sys/selinfo.h>	/* struct selinfo */
 #include <sys/_lock.h>
 #include <sys/_mutex.h>
@@ -101,13 +102,23 @@ void	 procdesc_reap(struct proc *);
 
 #else /* !_KERNEL */
 
+#include <sys/_types.h>
+
+#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 */
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404051137.s35Bbwxe052269>