Date: Mon, 5 Jan 2004 17:32:08 -0800 (PST) From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 44830 for review Message-ID: <200401060132.i061W8C0017807@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401060132.i061W8C0017807>