Deleted Added
full compact
procfs_rlimit.c (87321) procfs_rlimit.c (123247)
1/*
2 * Copyright (c) 1999 Adrian Chadd
3 * Copyright (c) 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Jan-Simon Pendry.
8 *

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

31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * @(#)procfs_status.c 8.4 (Berkeley) 6/15/94
38 *
1/*
2 * Copyright (c) 1999 Adrian Chadd
3 * Copyright (c) 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Jan-Simon Pendry.
8 *

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

31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * @(#)procfs_status.c 8.4 (Berkeley) 6/15/94
38 *
39 * $FreeBSD: head/sys/fs/procfs/procfs_rlimit.c 87321 2001-12-04 01:35:06Z des $
39 * $FreeBSD: head/sys/fs/procfs/procfs_rlimit.c 123247 2003-12-07 17:40:00Z des $
40 */
41
42/*
43 * To get resource.h to include our rlimit_ident[] array of rlimit identifiers
44 */
45
46#define _RLIMIT_IDENT
47

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

64 for (i = 0; i < RLIM_NLIMITS; i++) {
65
66 /*
67 * Add the rlimit ident
68 */
69
70 sbuf_printf(sb, "%s ", rlimit_ident[i]);
71
40 */
41
42/*
43 * To get resource.h to include our rlimit_ident[] array of rlimit identifiers
44 */
45
46#define _RLIMIT_IDENT
47

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

64 for (i = 0; i < RLIM_NLIMITS; i++) {
65
66 /*
67 * Add the rlimit ident
68 */
69
70 sbuf_printf(sb, "%s ", rlimit_ident[i]);
71
72 /*
72 /*
73 * Replace RLIM_INFINITY with -1 in the string
74 */
75
76 /*
77 * current limit
78 */
79
80 if (p->p_rlimit[i].rlim_cur == RLIM_INFINITY) {

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

93 } else {
94 sbuf_printf(sb, "%llu\n",
95 (unsigned long long)p->p_rlimit[i].rlim_max);
96 }
97 }
98
99 return (0);
100}
73 * Replace RLIM_INFINITY with -1 in the string
74 */
75
76 /*
77 * current limit
78 */
79
80 if (p->p_rlimit[i].rlim_cur == RLIM_INFINITY) {

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

93 } else {
94 sbuf_printf(sb, "%llu\n",
95 (unsigned long long)p->p_rlimit[i].rlim_max);
96 }
97 }
98
99 return (0);
100}
101