Deleted Added
full compact
svr4_misc.c (169667) svr4_misc.c (170170)
1/*-
2 * Copyright (c) 1998 Mark Newton
3 * Copyright (c) 1994 Christos Zoulas
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 19 unchanged lines hidden (view full) ---

28/*
29 * SVR4 compatibility module.
30 *
31 * SVR4 system calls that are implemented differently in BSD are
32 * handled here.
33 */
34
35#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1998 Mark Newton
3 * Copyright (c) 1994 Christos Zoulas
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 19 unchanged lines hidden (view full) ---

28/*
29 * SVR4 compatibility module.
30 *
31 * SVR4 system calls that are implemented differently in BSD are
32 * handled here.
33 */
34
35#include <sys/cdefs.h>
36__FBSDID("$FreeBSD: head/sys/compat/svr4/svr4_misc.c 169667 2007-05-18 07:10:50Z jeff $");
36__FBSDID("$FreeBSD: head/sys/compat/svr4/svr4_misc.c 170170 2007-05-31 22:52:15Z attilio $");
37
38#include "opt_mac.h"
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/dirent.h>
43#include <sys/fcntl.h>
44#include <sys/filedesc.h>

--- 728 unchanged lines hidden (view full) ---

773 case SVR4_CONFIG_TIMER_MAX:
774 *retval = 3; /* XXX: real, virtual, profiling */
775 break;
776#if defined(NOTYET)
777 case SVR4_CONFIG_PHYS_PAGES:
778#if defined(UVM)
779 *retval = uvmexp.free; /* XXX: free instead of total */
780#else
37
38#include "opt_mac.h"
39
40#include <sys/param.h>
41#include <sys/systm.h>
42#include <sys/dirent.h>
43#include <sys/fcntl.h>
44#include <sys/filedesc.h>

--- 728 unchanged lines hidden (view full) ---

773 case SVR4_CONFIG_TIMER_MAX:
774 *retval = 3; /* XXX: real, virtual, profiling */
775 break;
776#if defined(NOTYET)
777 case SVR4_CONFIG_PHYS_PAGES:
778#if defined(UVM)
779 *retval = uvmexp.free; /* XXX: free instead of total */
780#else
781 *retval = VMCNT_GET(free_count); /* XXX: free instead of total */
781 *retval = cnt.v_free_count; /* XXX: free instead of total */
782#endif
783 break;
784 case SVR4_CONFIG_AVPHYS_PAGES:
785#if defined(UVM)
786 *retval = uvmexp.active; /* XXX: active instead of avg */
787#else
782#endif
783 break;
784 case SVR4_CONFIG_AVPHYS_PAGES:
785#if defined(UVM)
786 *retval = uvmexp.active; /* XXX: active instead of avg */
787#else
788 *retval = VMCNT_GET(active_count); /* XXX: active instead of avg */
788 *retval = cnt.v_active_count; /* XXX: active instead of avg */
789#endif
790 break;
791#endif /* NOTYET */
792
793 default:
794 return EINVAL;
795 }
796 return 0;

--- 831 unchanged lines hidden ---
789#endif
790 break;
791#endif /* NOTYET */
792
793 default:
794 return EINVAL;
795 }
796 return 0;

--- 831 unchanged lines hidden ---