Deleted Added
full compact
svr4_resource.c (92761) svr4_resource.c (102630)
1/* Derived from:
2 * $NetBSD: svr4_resource.c,v 1.3 1998/12/13 18:00:52 christos Exp $
3 */
4
5/*-
6 * Original copyright:
7 *
8 * Copyright (c) 1998 The NetBSD Foundation, Inc.

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

34 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
35 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
36 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
37 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
38 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
39 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
40 * POSSIBILITY OF SUCH DAMAGE.
41 *
1/* Derived from:
2 * $NetBSD: svr4_resource.c,v 1.3 1998/12/13 18:00:52 christos Exp $
3 */
4
5/*-
6 * Original copyright:
7 *
8 * Copyright (c) 1998 The NetBSD Foundation, Inc.

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

34 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
35 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
36 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
37 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
38 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
39 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
40 * POSSIBILITY OF SUCH DAMAGE.
41 *
42 * $FreeBSD: head/sys/compat/svr4/svr4_resource.c 92761 2002-03-20 05:48:58Z alfred $
42 * $FreeBSD: head/sys/compat/svr4/svr4_resource.c 102630 2002-08-30 18:09:46Z dillon $
43 */
44
45/*
46 * Portions of this software have been derived from software contributed
47 * to the FreeBSD Project by Mark Newton.
48 *
49 * Copyright (c) 1999 Mark Newton
50 * All rights reserved.

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

103 return RLIMIT_DATA;
104 case SVR4_RLIMIT_STACK:
105 return RLIMIT_STACK;
106 case SVR4_RLIMIT_CORE:
107 return RLIMIT_CORE;
108 case SVR4_RLIMIT_NOFILE:
109 return RLIMIT_NOFILE;
110 case SVR4_RLIMIT_VMEM:
43 */
44
45/*
46 * Portions of this software have been derived from software contributed
47 * to the FreeBSD Project by Mark Newton.
48 *
49 * Copyright (c) 1999 Mark Newton
50 * All rights reserved.

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

103 return RLIMIT_DATA;
104 case SVR4_RLIMIT_STACK:
105 return RLIMIT_STACK;
106 case SVR4_RLIMIT_CORE:
107 return RLIMIT_CORE;
108 case SVR4_RLIMIT_NOFILE:
109 return RLIMIT_NOFILE;
110 case SVR4_RLIMIT_VMEM:
111 return RLIMIT_RSS;
111 return RLIMIT_VMEM;
112 default:
113 return -1;
114 }
115}
116
117/*
118 * Check if the resource limit fits within the BSD range and it is not
119 * one of the magic SVR4 limit values

--- 205 unchanged lines hidden ---
112 default:
113 return -1;
114 }
115}
116
117/*
118 * Check if the resource limit fits within the BSD range and it is not
119 * one of the magic SVR4 limit values

--- 205 unchanged lines hidden ---