ibcs2_misc.c (31561) | ibcs2_misc.c (35058) |
---|---|
1/* 2 * Copyright (c) 1995 Steven Wallace 3 * Copyright (c) 1994, 1995 Scott Bartram 4 * Copyright (c) 1992, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This software was developed by the Computer Systems Engineering group 8 * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and --- 31 unchanged lines hidden (view full) --- 40 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 41 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 42 * SUCH DAMAGE. 43 * 44 * from: Header: sun_misc.c,v 1.16 93/04/07 02:46:27 torek Exp 45 * 46 * @(#)sun_misc.c 8.1 (Berkeley) 6/18/93 47 * | 1/* 2 * Copyright (c) 1995 Steven Wallace 3 * Copyright (c) 1994, 1995 Scott Bartram 4 * Copyright (c) 1992, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This software was developed by the Computer Systems Engineering group 8 * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and --- 31 unchanged lines hidden (view full) --- 40 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 41 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 42 * SUCH DAMAGE. 43 * 44 * from: Header: sun_misc.c,v 1.16 93/04/07 02:46:27 torek Exp 45 * 46 * @(#)sun_misc.c 8.1 (Berkeley) 6/18/93 47 * |
48 * $Id: ibcs2_misc.c,v 1.24 1997/11/06 19:28:33 phk Exp $ | 48 * $Id: ibcs2_misc.c,v 1.25 1997/12/05 19:55:36 bde Exp $ |
49 */ 50 51/* 52 * IBCS2 compatibility module. 53 * 54 * IBCS2 system calls that are implemented differently in BSD are 55 * handled here. 56 */ --- 756 unchanged lines hidden (view full) --- 813{ 814 int error; 815 struct itimerval *itp, *oitp; 816 struct setitimer_args sa; 817 caddr_t sg = stackgap_init(); 818 819 itp = stackgap_alloc(&sg, sizeof(*itp)); 820 oitp = stackgap_alloc(&sg, sizeof(*oitp)); | 49 */ 50 51/* 52 * IBCS2 compatibility module. 53 * 54 * IBCS2 system calls that are implemented differently in BSD are 55 * handled here. 56 */ --- 756 unchanged lines hidden (view full) --- 813{ 814 int error; 815 struct itimerval *itp, *oitp; 816 struct setitimer_args sa; 817 caddr_t sg = stackgap_init(); 818 819 itp = stackgap_alloc(&sg, sizeof(*itp)); 820 oitp = stackgap_alloc(&sg, sizeof(*oitp)); |
821 timerclear(&itp->it_interval); | 821 timevalclear(&itp->it_interval); |
822 itp->it_value.tv_sec = SCARG(uap, sec); 823 itp->it_value.tv_usec = 0; 824 825 SCARG(&sa, which) = ITIMER_REAL; 826 SCARG(&sa, itv) = itp; 827 SCARG(&sa, oitv) = oitp; 828 error = setitimer(p, &sa); 829 if (error) --- 350 unchanged lines hidden --- | 822 itp->it_value.tv_sec = SCARG(uap, sec); 823 itp->it_value.tv_usec = 0; 824 825 SCARG(&sa, which) = ITIMER_REAL; 826 SCARG(&sa, itv) = itp; 827 SCARG(&sa, oitv) = oitp; 828 error = setitimer(p, &sa); 829 if (error) --- 350 unchanged lines hidden --- |