Subject: Re: CVS commit: src/sys
To: None <yamt@NetBSD.org>
From: Kouichirou Hiratsuka <hira@po6.nsk.ne.jp>
List: current-users
Date: 03/02/2007 01:34:08
Hello,

At Tue, 27 Feb 2007 15:07:29 +0000 (UTC),
YAMAMOTO Takashi wrote:
> 
> 
> Module Name:	src
> Committed By:	yamt
> Date:		Tue Feb 27 15:07:29 UTC 2007
> 
> Modified Files:
> 	src/sys/kern: kern_condvar.c kern_lock.c kern_sleepq.c kern_synch.c
> 	    kern_turnstile.c subr_workqueue.c
> 	src/sys/sys: lock.h lwp.h proc.h sched.h sleepq.h syncobj.h types.h
> 	    workqueue.h
> 
> Log Message:
> typedef pri_t and use it instead of int and u_char.
> 
> 
> To generate a diff of this commit:
> cvs rdiff -r1.4 -r1.5 src/sys/kern/kern_condvar.c
> cvs rdiff -r1.108 -r1.109 src/sys/kern/kern_lock.c
> cvs rdiff -r1.6 -r1.7 src/sys/kern/kern_sleepq.c
> cvs rdiff -r1.184 -r1.185 src/sys/kern/kern_synch.c
> cvs rdiff -r1.5 -r1.6 src/sys/kern/kern_turnstile.c
> cvs rdiff -r1.11 -r1.12 src/sys/kern/subr_workqueue.c
> cvs rdiff -r1.68 -r1.69 src/sys/sys/lock.h
> cvs rdiff -r1.53 -r1.54 src/sys/sys/lwp.h
> cvs rdiff -r1.240 -r1.241 src/sys/sys/proc.h
> cvs rdiff -r1.32 -r1.33 src/sys/sys/sched.h
> cvs rdiff -r1.4 -r1.5 src/sys/sys/sleepq.h
> cvs rdiff -r1.2 -r1.3 src/sys/sys/syncobj.h
> cvs rdiff -r1.72 -r1.73 src/sys/sys/types.h
> cvs rdiff -r1.3 -r1.4 src/sys/sys/workqueue.h

Revision 1.69 of sys/lock.h does not work with gcc3.

% cat << EOF > foo.c
#include <sys/lock.h>
int main() { return 0; }
EOF
% cc foo.c
% /usr/pkg/gcc3/bin/cc foo.c
In file included from foo.c:1:
/usr/include/sys/lock.h:155: error: syntax error before "pri_t"
/usr/include/sys/lock.h:170: error: syntax error before '}' token
/usr/include/sys/lock.h:189: error: syntax error before '}' token
% ident /usr/include/sys/lock.h
/usr/include/sys/lock.h:
     $NetBSD: lock.h,v 1.69 2007/02/27 15:07:28 yamt Exp $

best regards.
-- 
 Kouichirou Hiratsuka
   hira@po6.nsk.ne.jp