Hi, Thank you for your help. Now I am using a wait queue instead of the semaphore, and it works well. Thank you very much. >I don't have asm/uaccess.h on any of my systems. > >On RHL 8.0 I get: >[summer@orange summer]$ gcc -c -Wall test.c -o test >In file included from test.c:10: >/usr/include/linux/string.h:8:2: warning: #warning Using kernel header >in userland! >test.c:19:25: asm/uaccess.h: No such file or directory >test.c: In function `ftok': >test.c:26: storage size of `st' isn't known >test.c:26: warning: unused variable `st' >test.c: At top level: >test.c:35: warning: return type defaults to `int' >test.c: In function `init_module': >test.c:40: warning: implicit declaration of function `sys_semget' >test.c:44: warning: implicit declaration of function `sys_semctl' >[summer@orange summer]$ > >On 7.3: >[summer@numbat summer]$ gcc -c -Wall test.c -o test >test.c:19:25: asm/uaccess.h: No such file or directory >[summer@numbat summer]$ > >I think those inplicit declarations are part of the problem. > > > > > > > > > >_______________________________________________ >Redhat-devel-list mailing list >Redhat-devel-list@redhat.com >https://listman.redhat.com/mailman/listinfo/redhat-devel-list = = = = = = = = = = = = = = = = = = = = Ö Àñ£¡ Jiangbo pirate@vip.sina.com 2002-11-30 _______________________________________________ Redhat-devel-list mailing list Redhat-devel-list@redhat.com https://listman.redhat.com/mailman/listinfo/redhat-devel-list