Fixed missing forward declaration of struct rusage in the _KERNEL case.

Removed namespace-polluting forward declaration of struct rusage in the
!_KERNEL && !_BSD_VISIBLE case.

Fixed some nearby style bugs.
This commit is contained in:
Bruce Evans 2004-04-09 13:14:32 +00:00
parent 7937c23d49
commit ae8aa73408

View file

@ -93,22 +93,21 @@
#endif /* __BSD_VISIBLE */
#ifdef _KERNEL
struct rusage;
int kern_wait(struct thread *td, pid_t pid, int *status, int options,
struct rusage *rusage);
#else
struct rusage *rup);
#else /* !_KERNEL */
#include <sys/types.h>
__BEGIN_DECLS
struct rusage; /* forward declaration */
pid_t wait(int *);
pid_t waitpid(pid_t, int *, int);
#if __BSD_VISIBLE
struct rusage;
pid_t wait3(int *, int, struct rusage *);
pid_t wait4(pid_t, int *, int, struct rusage *);
#endif
__END_DECLS
#endif
#endif /* _KERNEL */
#endif /* !_SYS_WAIT_H_ */