kern_time.c (30994) | kern_time.c (31016) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)kern_time.c 8.1 (Berkeley) 6/10/93 | 1/* 2 * Copyright (c) 1982, 1986, 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)kern_time.c 8.1 (Berkeley) 6/10/93 |
34 * $Id: kern_time.c,v 1.38 1997/10/26 20:26:28 phk Exp $ | 34 * $Id: kern_time.c,v 1.39 1997/11/06 19:29:16 phk Exp $ |
35 */ 36 37#include <sys/param.h> 38#include <sys/sysproto.h> 39#include <sys/resourcevar.h> 40#include <sys/signalvar.h> 41#include <sys/kernel.h> 42#include <sys/systm.h> --- 285 unchanged lines hidden (view full) --- 328/* ARGSUSED */ 329int 330signanosleep(p, uap) 331 struct proc *p; 332 struct signanosleep_args *uap; 333{ 334 struct timespec rmt, rqt; 335 int error, error2; | 35 */ 36 37#include <sys/param.h> 38#include <sys/sysproto.h> 39#include <sys/resourcevar.h> 40#include <sys/signalvar.h> 41#include <sys/kernel.h> 42#include <sys/systm.h> --- 285 unchanged lines hidden (view full) --- 328/* ARGSUSED */ 329int 330signanosleep(p, uap) 331 struct proc *p; 332 struct signanosleep_args *uap; 333{ 334 struct timespec rmt, rqt; 335 int error, error2; |
336 struct sigacts *ps = p->p_sigacts; | |
337 sigset_t mask; 338 339 error = copyin(SCARG(uap, rqtp), &rqt, sizeof(rqt)); 340 if (error) 341 return (error); 342 if (SCARG(uap, rmtp)) 343 if (!useracc((caddr_t)SCARG(uap, rmtp), sizeof(rmt), B_WRITE)) 344 return (EFAULT); --- 394 unchanged lines hidden --- | 336 sigset_t mask; 337 338 error = copyin(SCARG(uap, rqtp), &rqt, sizeof(rqt)); 339 if (error) 340 return (error); 341 if (SCARG(uap, rmtp)) 342 if (!useracc((caddr_t)SCARG(uap, rmtp), sizeof(rmt), B_WRITE)) 343 return (EFAULT); --- 394 unchanged lines hidden --- |