kern_resource.c (30994) | kern_resource.c (31016) |
---|---|
1/*- 2 * Copyright (c) 1982, 1986, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)kern_resource.c 8.5 (Berkeley) 1/21/94 | 1/*- 2 * Copyright (c) 1982, 1986, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)kern_resource.c 8.5 (Berkeley) 1/21/94 |
39 * $Id: kern_resource.c,v 1.26 1997/08/26 00:20:11 bde Exp $ | 39 * $Id: kern_resource.c,v 1.27 1997/11/06 19:29:13 phk Exp $ |
40 */ 41 42#include "opt_rlimit.h" 43 44#include <sys/param.h> 45#include <sys/systm.h> 46#include <sys/sysproto.h> 47#include <sys/kernel.h> --- 22 unchanged lines hidden (view full) --- 70 int who; 71}; 72#endif 73int 74getpriority(curp, uap) 75 struct proc *curp; 76 register struct getpriority_args *uap; 77{ | 40 */ 41 42#include "opt_rlimit.h" 43 44#include <sys/param.h> 45#include <sys/systm.h> 46#include <sys/sysproto.h> 47#include <sys/kernel.h> --- 22 unchanged lines hidden (view full) --- 70 int who; 71}; 72#endif 73int 74getpriority(curp, uap) 75 struct proc *curp; 76 register struct getpriority_args *uap; 77{ |
78 register struct proc *p; | 78 register struct proc *p = 0; |
79 register int low = PRIO_MAX + 1; 80 81 switch (uap->which) { 82 83 case PRIO_PROCESS: 84 if (uap->who == 0) 85 p = curp; 86 else --- 507 unchanged lines hidden --- | 79 register int low = PRIO_MAX + 1; 80 81 switch (uap->which) { 82 83 case PRIO_PROCESS: 84 if (uap->who == 0) 85 p = curp; 86 else --- 507 unchanged lines hidden --- |