diff options
Diffstat (limited to 'sys/vm/vm_unix.c')
-rw-r--r-- | sys/vm/vm_unix.c | 35 |
1 files changed, 3 insertions, 32 deletions
diff --git a/sys/vm/vm_unix.c b/sys/vm/vm_unix.c index f658f633164fa..169bf376357b1 100644 --- a/sys/vm/vm_unix.c +++ b/sys/vm/vm_unix.c @@ -37,7 +37,7 @@ * * from: Utah $Hdr: vm_unix.c 1.1 89/11/07$ * from: @(#)vm_unix.c 7.2 (Berkeley) 4/20/91 - * $Id: vm_unix.c,v 1.3 1993/10/16 16:20:58 rgrimes Exp $ + * $Id: vm_unix.c,v 1.5 1993/12/12 12:27:26 davidg Exp $ */ /* @@ -55,6 +55,7 @@ struct obreak_args { }; /* ARGSUSED */ +int obreak(p, uap, retval) struct proc *p; struct obreak_args *uap; @@ -90,42 +91,12 @@ obreak(p, uap, retval) return(0); } -/* - * Enlarge the "stack segment" to include the specified - * stack pointer for the process. - */ -grow(p, sp) - struct proc *p; - unsigned sp; -{ - register struct vmspace *vm = p->p_vmspace; - register int si; - - /* - * For user defined stacks (from sendsig). - */ - if (sp < (unsigned)vm->vm_maxsaddr) - return (0); - /* - * For common case of already allocated (from trap). - */ - if (sp >= (unsigned)vm->vm_maxsaddr + MAXSSIZ - ctob(vm->vm_ssize)) - return (1); - /* - * Really need to check vs limit and increment stack size if ok. - */ - si = clrnd(btoc(vm->vm_maxsaddr + MAXSSIZ - sp) - vm->vm_ssize); - if (vm->vm_ssize + si > btoc(p->p_rlimit[RLIMIT_STACK].rlim_cur)) - return (0); - vm->vm_ssize += si; - return (1); -} - struct ovadvise_args { int anom; }; /* ARGSUSED */ +int ovadvise(p, uap, retval) struct proc *p; struct ovadvise_args *uap; |