Add sysctl(), etc. prototypes

This commit is contained in:
Sebastian Huber
2013-10-15 15:36:59 +02:00
parent 9d9bfaff8d
commit 57f20025a7
5 changed files with 10 additions and 2 deletions

View File

@@ -747,9 +747,7 @@ void sysctl_lock(void);
void sysctl_unlock(void);
int sysctl_wire_old_buffer(struct sysctl_req *req, size_t len);
#ifndef __rtems__
#else /* !_KERNEL */
#endif /* __rtems__ */
#include <sys/cdefs.h>
__BEGIN_DECLS

View File

@@ -47,6 +47,7 @@
#include <sys/cdefs.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <sys/sysctl.h>
__BEGIN_DECLS
@@ -83,6 +84,12 @@ int shutdown(int, int);
int socket(int, int, int);
int sysctl(int *, u_int, void *, size_t *, void *, size_t);
int sysctlbyname(const char *, void *, size_t *, void *, size_t);
int sysctlnametomib(const char *, int *, size_t *);
__END_DECLS
#endif /* _RTEMS_BSD_MACHINE_RTEMS_BSD_SYSCALL_API_H_ */

View File

@@ -38,6 +38,7 @@
*/
#include <machine/rtems-bsd-config.h>
#include <machine/rtems-bsd-syscall-api.h>
#include <rtems/bsd/sys/types.h>
#include <sys/sysctl.h>

View File

@@ -19,6 +19,7 @@
*/
#include <machine/rtems-bsd-config.h>
#include <machine/rtems-bsd-syscall-api.h>
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");

View File

@@ -35,6 +35,7 @@
*/
#include <machine/rtems-bsd-config.h>
#include <machine/rtems-bsd-syscall-api.h>
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");