From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 From: Led To: ALT Linux Team development discussions Date: Tue, 19 Feb 2008 01:45:34 +0200 User-Agent: KMail/1.9.7 References: <20080218173649.02D5B151C8AC@granary.armor.altlinux.org> <20080218223828.GB25921@imap.altlinux.org> <200802190142.09105.ledest@gmail.com> In-Reply-To: <200802190142.09105.ledest@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200802190145.34141.ledest@gmail.com> X-Volia-Original-IP: 77.122.118.134 Subject: Re: [devel] asm/page.h X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Feb 2008 23:44:40 -0000 Archived-At: List-Archive: List-Post: Tuesday, 19 February 2008 01:42:09 Led =CE=C1=D0=C9=D3=C1=D7: > Tuesday, 19 February 2008 00:38:28 Kirill Maslinsky =CE=C1=D0=C9=D3=C1=D7: > > On Tue, Feb 19, 2008 at 12:40:33AM +0300, Dmitry V. Levin wrote: > > > On Tue, Feb 19, 2008 at 12:09:20AM +0300, Hihin Ruslan wrote: > > > > =FA=C4=D2=C1=D7=D3=D4=D7=D5=CA=D4=C5 QA Team Robot > > > > > > > > =F7 =D3=CF=CF=C2=DD=C5=CE=C9=C9 =CF=D4 18 =C6=C5=D7=D2=C1=CC=D1 20= 08 =D7=D9 =CE=C1=D0=C9=D3=C1=CC=C9: > > > > > Package: xawtv4-4.0-alt3.cvs20070625.2 > > > > > > [...] > > > > > > > > console/fbtools.c:24:22: error: asm/page.h: No such file or > > > > > directory > > > > > > > > =EE=D5 =C9 =CE=C1 =CB=C1=CB=CF=CA =D0=C1=CB=C5=D4 =D3=D4=C1=D7=C9= =D4=D8 =DA=C1=D7=C9=D3=C9=CD=CF=D3=D4=D8 ? > > > > > > =EE=C1=C4=CF =C9=DA=C2=C1=D7=CC=D1=D4=D8=D3=D1 =CF=D4 =DC=D4=CF=CA = =DA=C1=D7=C9=D3=C9=CD=CF=D3=D4=C9, =C1 =CE=C5 =C9=D3=CB=C1=D4=D8 =D0=C1=CB= =C5=D4, =CE=C1 =CB=CF=D4=CF=D2=D9=CA =C5=A3 > > > =CD=CF=D6=CE=CF =C2=D9=CC=CF =C2=D9 =D0=CF=D3=D4=C1=D7=C9=D4=D8. > > > > =F0=D2=CF=DB=D5 =D0=CF=CD=CF=DE=D8 =C9=DA=C2=C1=D7=C9=D4=D8=D3=D1 =CF= =D4 =C1=CE=C1=CC=CF=C7=C9=DE=CE=CF=CA =DA=C1=D7=C9=D3=C9=CD=CF=D3=D4=C9 =D7= =D0=C1=CB=C5=D4=C5 > > eciadsl-usermode. > > > > =F7=D9=C4=C5=D2=D6=CB=C1 =C9=DA =CC=CF=C7=C1 =D3=C2=CF=D2=CB=C9: > > . . . > > In file included from pusb.c:13: > > pusb-linux.c:32:22: error: asm/page.h: No such file or directory > > In file included from pusb.c:13: > > pusb-linux.c: In function 'pusb_endpoint_rw': > > pusb-linux.c:441: error: 'PAGE_SIZE' undeclared (first use in this > > function) > > pusb-linux.c:441: error: (Each undeclared identifier is reported only > > once > > pusb-linux.c:441: error: for each function it appears in.) > > make[1]: *** [pusb.o] Error 1 > > . . . > > > > =F3=CF=CF=D4=D7=C5=D4=D3=D4=D7=D5=C0=DD=C5=C5 =CD=C5=D3=D4=CF =D7 pusb-= linux.c: > > > > 429 inline int pusb_endpoint_rw(int fd, int ep, unsigned char* buf, int > > size, int timeout) > > 430 { > > 431 static struct usbdevfs_bulktransfer bulk; > > 432 static int ret; > > 433 int received =3D 0; > > 434 > > 435 do > > 436 { > > 437 bulk.ep =3D ep; > > 438 > > 439 bulk.len =3D size; > > 440 > > 441 if (size > PAGE_SIZE) > > 442 bulk.len =3D PAGE_SIZE; > > 443 > > 444 bulk.timeout =3D timeout; > > 445 bulk.data =3D buf; > > 446 > > 447 do > > 448 { > > 449 ret =3D ioctl(fd, USBDEVFS_BULK, &bulk); > > 450 } > > 451 while (ret < 0 && errno =3D=3D EINTR); > > 452 > > 453 if (ret < 0) > > 454 return(ret); > > 455 > > 456 buf +=3D ret; > > 457 size -=3D ret; > > 458 received +=3D ret; > > 459 } > > 460 while (ret=3D=3D(int)bulk.len && size>0); > > 461 > > 462 return(received); > > 463 } > > =FC=D4=CF =CE=C5 =CF=CE=CF? > > The user can find the value of PAGE_SIZE by calling getpagesize() defined > in unistd.h . =E8=CF=D4=D1, =CE=C1=D7=C5=D2=CE=CF=C5, =D7=D3=A3 =D6=C5: =2Dasm/page.h +sys/user.h =2D-=20 Led