From owner-p4-projects@FreeBSD.ORG Mon Jan 5 17:32:11 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 3728B16A4D1; Mon, 5 Jan 2004 17:32:11 -0800 (PST) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E9E8C16A4CE for ; Mon, 5 Jan 2004 17:32:10 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6BD1243D3F for ; Mon, 5 Jan 2004 17:32:09 -0800 (PST) (envelope-from peter@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i061W90B017813 for ; Mon, 5 Jan 2004 17:32:09 -0800 (PST) (envelope-from peter@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i061W8C0017807 for perforce@freebsd.org; Mon, 5 Jan 2004 17:32:08 -0800 (PST) (envelope-from peter@freebsd.org) Date: Mon, 5 Jan 2004 17:32:08 -0800 (PST) Message-Id: <200401060132.i061W8C0017807@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to peter@freebsd.org using -f From: Peter Wemm To: Perforce Change Reviews Subject: PERFORCE change 44830 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jan 2004 01:32:11 -0000 http://perforce.freebsd.org/chv.cgi?CH=44830 Change 44830 by peter@peter_daintree on 2004/01/05 17:31:30 add getitimer implementation and regen Affected files ... .. //depot/projects/hammer/sys/compat/freebsd32/freebsd32_proto.h#8 edit .. //depot/projects/hammer/sys/compat/freebsd32/freebsd32_syscall.h#8 edit .. //depot/projects/hammer/sys/compat/freebsd32/freebsd32_syscalls.c#8 edit .. //depot/projects/hammer/sys/compat/freebsd32/freebsd32_sysent.c#8 edit .. //depot/projects/hammer/sys/compat/freebsd32/syscalls.master#11 edit Differences ... ==== //depot/projects/hammer/sys/compat/freebsd32/freebsd32_proto.h#8 (text+ko) ==== @@ -57,6 +57,10 @@ char itv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * itv; char itv_r_[PADR_(struct itimerval32 *)]; char oitv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * oitv; char oitv_r_[PADR_(struct itimerval32 *)]; }; +struct freebsd32_getitimer_args { + char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)]; + char itv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * itv; char itv_r_[PADR_(struct itimerval32 *)]; +}; struct freebsd32_select_args { char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)]; char in_l_[PADL_(fd_set *)]; fd_set * in; char in_r_[PADR_(fd_set *)]; @@ -219,6 +223,7 @@ int freebsd32_sigaltstack(struct thread *, struct freebsd32_sigaltstack_args *); int freebsd32_execve(struct thread *, struct freebsd32_execve_args *); int freebsd32_setitimer(struct thread *, struct freebsd32_setitimer_args *); +int freebsd32_getitimer(struct thread *, struct freebsd32_getitimer_args *); int freebsd32_select(struct thread *, struct freebsd32_select_args *); int freebsd32_gettimeofday(struct thread *, struct freebsd32_gettimeofday_args *); int freebsd32_getrusage(struct thread *, struct freebsd32_getrusage_args *); ==== //depot/projects/hammer/sys/compat/freebsd32/freebsd32_syscall.h#8 (text+ko) ==== @@ -87,7 +87,7 @@ #define FREEBSD32_SYS_freebsd32_setitimer 83 /* 84 is obsolete owait */ /* 85 is obsolete oswapon */ - /* 86 is obsolete ogetitimer */ +#define FREEBSD32_SYS_freebsd32_getitimer 86 /* 87 is obsolete ogethostname */ /* 88 is obsolete osethostname */ #define FREEBSD32_SYS_getdtablesize 89 ==== //depot/projects/hammer/sys/compat/freebsd32/freebsd32_syscalls.c#8 (text+ko) ==== @@ -93,7 +93,7 @@ "freebsd32_setitimer", /* 83 = freebsd32_setitimer */ "obs_owait", /* 84 = obsolete owait */ "obs_oswapon", /* 85 = obsolete oswapon */ - "obs_ogetitimer", /* 86 = obsolete ogetitimer */ + "freebsd32_getitimer", /* 86 = freebsd32_getitimer */ "obs_ogethostname", /* 87 = obsolete ogethostname */ "obs_osethostname", /* 88 = obsolete osethostname */ "getdtablesize", /* 89 = getdtablesize */ ==== //depot/projects/hammer/sys/compat/freebsd32/freebsd32_sysent.c#8 (text+ko) ==== @@ -111,7 +111,7 @@ { AS(freebsd32_setitimer_args), (sy_call_t *)freebsd32_setitimer }, /* 83 = freebsd32_setitimer */ { 0, (sy_call_t *)nosys }, /* 84 = obsolete owait */ { 0, (sy_call_t *)nosys }, /* 85 = obsolete oswapon */ - { 0, (sy_call_t *)nosys }, /* 86 = obsolete ogetitimer */ + { AS(freebsd32_getitimer_args), (sy_call_t *)freebsd32_getitimer }, /* 86 = freebsd32_getitimer */ { 0, (sy_call_t *)nosys }, /* 87 = obsolete ogethostname */ { 0, (sy_call_t *)nosys }, /* 88 = obsolete osethostname */ { SYF_MPSAFE | 0, (sy_call_t *)getdtablesize }, /* 89 = getdtablesize */ ==== //depot/projects/hammer/sys/compat/freebsd32/syscalls.master#11 (text+ko) ==== @@ -142,8 +142,8 @@ 84 OBSOL owait ; XXX implement 85 OBSOL oswapon -; XXX implement -86 OBSOL ogetitimer +86 STD { int freebsd32_getitimer(u_int which, \ + struct itimerval32 *itv); } 87 OBSOL ogethostname 88 OBSOL osethostname 89 MNOPROTO { int getdtablesize(void); }