miscbltin.c (b97fa2ef508bb1cc99621edb8b6d03845b55b8bd) | miscbltin.c (afb033d5c4f01a464f57fe8e68d741246d9df492) |
---|---|
1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Kenneth Almquist. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 19 unchanged lines hidden (view full) --- 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * | 1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Kenneth Almquist. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 19 unchanged lines hidden (view full) --- 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * |
36 * $Id$ | 36 * $Id: miscbltin.c,v 1.11 1997/02/22 13:58:35 peter Exp $ |
37 */ 38 39#ifndef lint 40static char const sccsid[] = "@(#)miscbltin.c 8.4 (Berkeley) 5/4/95"; 41#endif /* not lint */ 42 43/* 44 * Miscelaneous builtins. --- 242 unchanged lines hidden (view full) --- 287 { (char *) 0, (char *)0, 0, 0, '\0' } 288}; 289 290int 291ulimitcmd(argc, argv) 292 int argc; 293 char **argv; 294{ | 37 */ 38 39#ifndef lint 40static char const sccsid[] = "@(#)miscbltin.c 8.4 (Berkeley) 5/4/95"; 41#endif /* not lint */ 42 43/* 44 * Miscelaneous builtins. --- 242 unchanged lines hidden (view full) --- 287 { (char *) 0, (char *)0, 0, 0, '\0' } 288}; 289 290int 291ulimitcmd(argc, argv) 292 int argc; 293 char **argv; 294{ |
295 register int c; | 295 int c; |
296 quad_t val = 0; 297 enum { SOFT = 0x1, HARD = 0x2 } 298 how = SOFT | HARD; 299 const struct limits *l; 300 int set, all = 0; 301 int optc, what; 302 struct rlimit limit; 303 --- 96 unchanged lines hidden --- | 296 quad_t val = 0; 297 enum { SOFT = 0x1, HARD = 0x2 } 298 how = SOFT | HARD; 299 const struct limits *l; 300 int set, all = 0; 301 int optc, what; 302 struct rlimit limit; 303 --- 96 unchanged lines hidden --- |