summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_misc.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-11-22 07:43:53 +0000
committerbde <bde@FreeBSD.org>1995-11-22 07:43:53 +0000
commit825daf3e3289f2ab37f6f075a4eb4270b8f846c2 (patch)
tree283999b082c94c12b3962535722ff43fa3b41aa0 /sys/compat/linux/linux_misc.c
parent7eaa0694de90a85e4ba79d7bbd0b091b68f40446 (diff)
downloadFreeBSD-src-825daf3e3289f2ab37f6f075a4eb4270b8f846c2.zip
FreeBSD-src-825daf3e3289f2ab37f6f075a4eb4270b8f846c2.tar.gz
Completed function declarations and added prototypes.
Removed some unnecessary #includes. Fixed warnings about nested externs.
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
-rw-r--r--sys/compat/linux/linux_misc.c20
1 files changed, 8 insertions, 12 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index 89ab5d8..5e04b26 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -25,12 +25,13 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: linux_misc.c,v 1.2 1995/10/04 07:08:04 julian Exp $
+ * $Id: linux_misc.c,v 1.3 1995/11/06 12:52:24 davidg Exp $
*/
-#include <i386/linux/linux.h>
#include <sys/param.h>
#include <sys/systm.h>
+#include <sys/sysproto.h>
+#include <sys/kernel.h>
#include <sys/exec.h>
#include <sys/mman.h>
#include <sys/proc.h>
@@ -44,19 +45,19 @@
#include <sys/resource.h>
#include <sys/resourcevar.h>
#include <sys/stat.h>
-#include <sys/time.h>
+#include <sys/sysctl.h>
#include <sys/times.h>
#include <sys/utsname.h>
#include <sys/vnode.h>
#include <sys/wait.h>
+#include <vm/vm_kern.h>
+
#include <machine/cpu.h>
#include <machine/psl.h>
-#include <machine/reg.h>
-
-#include <vm/vm.h>
-#include <vm/vm_kern.h>
+#include <i386/linux/linux.h>
+#include <i386/linux/sysproto.h>
struct linux_alarm_args {
unsigned int secs;
@@ -65,7 +66,6 @@ struct linux_alarm_args {
int
linux_alarm(struct proc *p, struct linux_alarm_args *args, int *retval)
{
- extern struct timeval time;
struct itimerval it, old_it;
int s;
@@ -111,7 +111,6 @@ linux_brk(struct proc *p, struct linux_brk_args *args, int *retval)
struct vmspace *vm = p->p_vmspace;
vm_offset_t new, old;
int error;
- extern int swap_pager_full;
if ((vm_offset_t)args->dsend < (vm_offset_t)vm->vm_daddr)
return EINVAL;
@@ -513,7 +512,6 @@ struct linux_tms_args {
int
linux_times(struct proc *p, struct linux_tms_args *args, int *retval)
{
- extern int hz;
struct timeval tv;
struct linux_tms tms;
@@ -549,8 +547,6 @@ int
linux_newuname(struct proc *p, struct linux_newuname_args *args, int *retval)
{
struct linux_newuname_t linux_newuname;
- extern char ostype[], osrelease[], machine[];
- extern char hostname[], domainname[];
#ifdef DEBUG
printf("Linux-emul(%d): newuname(*)\n", p->p_pid);
OpenPOWER on IntegriCloud