diff options
author | ed <ed@FreeBSD.org> | 2014-04-05 11:37:58 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2014-04-05 11:37:58 +0000 |
commit | 4c2420b4ca10514f16824f69f5d8462562eb7b65 (patch) | |
tree | 8167f4fb97c5c6b2797289773ad6bb5a02bfff00 /sys/sys/procdesc.h | |
parent | 41f3d1de315bb454750d75c8f6a05e0bc353bf35 (diff) | |
download | FreeBSD-src-4c2420b4ca10514f16824f69f5d8462562eb7b65.zip FreeBSD-src-4c2420b4ca10514f16824f69f5d8462562eb7b65.tar.gz |
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.
Diffstat (limited to 'sys/sys/procdesc.h')
-rw-r--r-- | sys/sys/procdesc.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/sys/procdesc.h b/sys/sys/procdesc.h index 4586bdd..d7b3f2a 100644 --- a/sys/sys/procdesc.h +++ b/sys/sys/procdesc.h @@ -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 */ |