From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Virus-Scanned: amavisd-new at velesys.com Date: Fri, 14 Dec 2007 14:16:44 +0200 From: "Kirill A. Shutemov" To: gosha@elins.ru, ALT Linux arch porting Message-ID: <20071214121644.GA30581@localhost.localdomain> References: <20071003154408.GD16499@localhost.localdomain> <200710251308.38993.gosha@elins.ru> <20071025091718.GB6491@localhost.localdomain> <200712141447.11489.gosha@elins.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="envbJBWh7q8WU6mo" Content-Disposition: inline In-Reply-To: <200712141447.11489.gosha@elins.ru> X-Operating-System: ALT Linux Sisyphus (20070101) (Kernel 2.6.24-kas-alt1) User-Agent: Mutt/1.5.16 (2007-06-09) Subject: Re: [devel-ports] =?utf-8?q?/usr/include/asm/unistd=2Eh_linux=5F2=2E6?= =?utf-8?b?LjE4INC/0YDQvtCx0LvQtdC80LAg0YHQuNGB0YLQtdC80L3Ri9GFINCy?= =?utf-8?b?0YvQt9C+0LLQvtCy?= X-BeenThere: devel-ports@lists.altlinux.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: ALT Linux arch porting List-Id: ALT Linux arch porting List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Dec 2007 12:14:46 -0000 Archived-At: List-Archive: --envbJBWh7q8WU6mo Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On [Fri, 14.12.2007 18:47], gosha wrote: > =D0=94=D0=BE=D0=B1=D1=80=D1=8B= =D0=B9 =D0=B4=D0=B5=D0=BD=D1=8C, >=20 > =D0=9D=D0=B5=D0=B2=D0=B5=D0=B7=D1=83=D1=85=D0=B0. >=20 > =D0=A1=D0=B8=D1=82=D1=83=D0=B0=D1=86=D0=B8=D1=8F =D1=82=D0=B0=D0=BA= =D0=BE=D0=B2=D0=B0, =D1=87=D1=82=D0=BE =D0=B2=D1=81=D0=B5 =D0=BF=D0=B0=D0= =BA=D0=B5=D1=82=D1=8B, =D0=B8=D1=81=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D1=83=D1= =8E=D1=89=D0=B8=D0=B5 #define =D1=81=D0=B8=D1=81=D1=82=D0=B5=D0=BC=D0=BD=D1= =8B=D1=85 =D0=B2=D1=8B=D0=B7=D0=BE=D0=B2=D0=BE=D0=B2=20 > =D1=84=D0=B0=D0=B9=D0=BB=D0=B0 /usr/include/asm/unistd.h =D0=BD=D0=B5 =D1= =81=D0=BE=D0=B1=D0=B8=D1=80=D0=B0=D1=8E=D1=82=D1=81=D1=8F. >=20 >=20 > =D0=9F=D1=80=D0=B8=D1=87=D0=B8=D0=BD=D0=B0 =D1=81=D0=BB=D0=B5=D0=B4=D1=83= =D1=8E=D1=89=D0=B0=D1=8F:=20 > /* /usr/include/asm/unistd.h: */ > #ifdef __KERNEL__ =D0=A3=D0=B1=D0=B5=D1=80=D0=B8=D1=82=D0=B5 =D1=8D=D1=82=D0=BE=D1=82 ifdef >=20 > #ifndef __ASSEMBLY__ > /* XXX - _foo needs to be __foo, while __NR_bar could be _NR_bar. */ > #define _syscall1(type,name,atype,a) \ > type name(atype a) \ > { \ > register unsigned long __a0 asm("$4") =3D (unsigned long) a; \ > register unsigned long __a3 asm("$7"); \ > unsigned long __v0; \ > \ > __asm__ volatile ( \ > ".set\tnoreorder\n\t" \ > "li\t$2, %3\t\t\t# " #name "\n\t" \ > "syscall\n\t" \ > "move\t%0, $2\n\t" \ > ".set\treorder" \ > : "=3D&r" (__v0), "=3Dr" (__a3) \ > : "r" (__a0), "i" (__NR_##name) \ > : "$2", "$8", "$9", "$10", "$11", "$12", "$13", "$14", "$15", "$24", \ > "memory"); \ > \ > if (__a3 =3D=3D 0) \ > return (type) __v0; \ > errno =3D __v0; \ > return (type) -1; \ > } > .........................................................................= =2E........................................................ > #endif > #endif >=20 >=20 > =D0=BD=D0=B0=D0=BF=D1=80 =D0=BA=D0=BE=D0=BC=D0=BF=D0=B8=D0=BB=D0=B8=D1=80= =D1=83=D0=B5=D1=82=D1=81=D1=8F coreutils: > exit.c : > #include > int errno; > _syscall1(void,exit,int,status); > void _start(void) > {exit(STATUS);} >=20 >=20 > =D0=9A=D0=B0=D0=BA =D1=8F =D0=BF=D0=BE=D0=BD=D1=8F=D0=BB, =D0=BF=D1=80=D0= =B8 =D1=81=D0=B1=D0=BE=D1=80=D0=BA=D0=B5 =D0=BD=D0=B5 =D0=B2=D1=8B=D1=81=D1= =82=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD =D1=84=D0=BB=D0=B0=D0=B3 -D __KERNEL__ . = =D0=B8, =D0=BF=D0=BE=D1=8D=D1=82=D0=BE=D0=BC=D1=83, =D0=BD=D0=B5=20 > =D0=BE=D0=B1=D1=80=D0=B0=D0=B1=D0=B0=D1=82=D1=8B=D0=B2=D0=B0=D0=B5=D1=82= =D1=81=D1=8F =D0=BF=D1=80=D0=B5=D0=BF=D1=80=D0=BE=D1=86=D0=B5=D1=81=D1=81= =D0=BE=D1=80=D0=BE=D0=BC _syscall1(void,exit,int,status) >=20 > =D1=81=D0=BE=D0=BE=D1=82=D0=B2 =D0=BF=D0=BE=D0=BB=D1=83=D1=87=D0=B0=D0=B5= =D0=BC =D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B8 =D1=82=D0=B8=D0=BF=D0=B0. > llseek.c:34: error: expected declaration specifiers or '...' before '_lls= eek' > llseek.c:34: error: expected declaration specifiers or '...' before 'fd' > llseek.c:34: error: expected declaration specifiers or '...'=20 > before 'offset_high' > llseek.c:35: error: expected declaration specifiers or '...'=20 > before 'offset_low' > llseek.c:35: error: expected declaration specifiers or '...' before 'resu= lt' > llseek.c:36: error: expected declaration specifiers or '...' before 'orig= in' >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > =D0=93=D0=B4=D0=B5 =D0=BC=D0=BE=D0=B3=D0=BB=D0=B8 =D0=B1=D1=8B =D0=B1=D1= =8B=D1=82=D1=8C =D0=BD=D0=B5=D0=BF=D1=80=D0=B0=D0=B2=D0=B8=D0=BB=D1=8C=D0= =BD=D1=8B=D0=B5 =D0=BD=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B9=D0=BA=D0=B8 =D1= =81=D0=B1=D0=BE=D1=80=D0=BA=D0=B8? >=20 > =D0=9A=D0=B0=D0=BA =D0=BF=D0=BE=D0=B1=D0=B5=D0=B4=D0=B8=D1=82=D1=8C ? >=20 > =D0=A1=D0=BF=D0=B0=D1=81=D0=B8=D0=B1=D0=BE. > --=20 > =D0=A1 =D0=A3=D0=B2=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=BC, > gosha. > _______________________________________________ > devel-ports mailing list > devel-ports@lists.altlinux.org > https://lists.altlinux.org/mailman/listinfo/devel-ports --=20 Regards, Kirill A. Shutemov + Belarus, Minsk + Velesys LLC, http://www.velesys.com/ + ALT Linux Team, http://www.altlinux.com/ --envbJBWh7q8WU6mo Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFHYnQsbWYnhzC5v6oRAsT8AKCR4VPMaV8k7E3z6mVk4PmgL68JwACfc65r wt0Z0rn/kBqBI5B5xwI+LS8= =Vtqm -----END PGP SIGNATURE----- --envbJBWh7q8WU6mo--