From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 11 15:13:10 2010 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 472CF106566B; Sun, 11 Jul 2010 15:13:10 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward7.mail.yandex.net (forward7.mail.yandex.net [77.88.61.37]) by mx1.freebsd.org (Postfix) with ESMTP id E34858FC1E; Sun, 11 Jul 2010 15:13:09 +0000 (UTC) Received: from smtp6.mail.yandex.net (smtp6.mail.yandex.net [77.88.61.56]) by forward7.mail.yandex.net (Yandex) with ESMTP id 0CB341B08471; Sun, 11 Jul 2010 18:57:57 +0400 (MSD) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1278860277; bh=psuEhGOng0eCdJXAa2D9DJN0i4vfU9O/Ungnb1kaGnc=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type; b=UKkZ10Eu0Pa013wh+A3QN3ypUlg+PhVmpHZMPj2vQb+ubnqu6GLIrIe6vuwFzt+fe p0Cn3ysJfak9XF5k34IjDHWRk+U4HEvQDQRaaeNJmeyZalPcgnB8G4C11aftpmXLPj K3pm4UzCPzwxCiY7p1ljU6/7N/1NoIxhqs9zpi7w= Received: from [10.43.163.197] (static-76-197.kirovnet.ru [92.39.76.197]) by smtp6.mail.yandex.net (Yandex) with ESMTPSA id C4E1D32804D; Sun, 11 Jul 2010 18:57:56 +0400 (MSD) Message-ID: <4C39DBE4.5080302@yandex.ru> Date: Sun, 11 Jul 2010 18:57:40 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.9) Gecko/20100611 Thunderbird/3.0.4 MIME-Version: 1.0 To: Gabor Kovesdan References: <4C39D92F.4050605@FreeBSD.org> In-Reply-To: <4C39D92F.4050605@FreeBSD.org> X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig5281CA977818FA5568A2E588" X-Yandex-TimeMark: 1278860276 X-Yandex-Spam: 1 X-Yandex-Front: smtp6.mail.yandex.net Cc: FreeBSD Hackers Subject: Re: strange problem with int64_t variables X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jul 2010 15:13:10 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig5281CA977818FA5568A2E588 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable On 11.07.2010 18:46, Gabor Kovesdan wrote: > I have two int64_t variables in kernel code, first is stored internally= > and the second one is passed from a syscall argument. When I print them= > with printf %lld modifier, the internal one behaves correctly but the > other one I pass from a syscall has a corrupted value. If I pass 1, it > prints out 3735348794091372545. I'm not doing anything special with it > just reading it out from the struct that was generated with make sysent= =2E > Any ideas? Can you show some code? --=20 WBR, Andrey V. Elsukov --------------enig5281CA977818FA5568A2E588 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iQEcBAEBAgAGBQJMOdvkAAoJEAHF6gQQyKF63HQIAKA3tw7QjekSTrWnNxp7Rfyy rZP4unfpidMb3kCK7J1fWWlGO4NtSH7YFLs2Scq1Q6aE5aRynDo1Fbe1D80KFTDP tWsEGgJ3wYjeKXUhymQQ//LUywPqhzMbgOKHnjOWffgLGSabP9C8XvXyemlncIKA J+LXLrEQIPIQ7+g2HTwMqn7QElC0cEhAdHuw2ppkIwIX0ECoXTp5eRQ1QvGImJvE oVXHiQLfMesvkKerfYGPp0Q+c1e1kzHAxgl/XIiRwDUycWO6fPtKAppUXqG9MDSN lZgoIKyroeewVXu8q1F/q8TZTseKZBgzWFUpQZP2hmI8dEgskjnXmLh0q1GxJ78= =58X9 -----END PGP SIGNATURE----- --------------enig5281CA977818FA5568A2E588--