Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'bits': 0.07; 'python': 0.08; '32-bit': 0.09; 'content-type:multipart/signed': 0.09; 'filename:fname piece:signature': 0.09; 'size_t': 0.09; 'struct': 0.09; 'content-type:application/pgp-signature': 0.16; 'filename:fname piece:asc': 0.16; 'filename:fname:signature.asc': 0.16; 'libc': 0.16; 'cc:addr:python-list': 0.16; 'wrote:': 0.18; 'exists': 0.18; 'cc:no real name:2**0': 0.20; 'header:In-Reply- To:1': 0.22; 'systems.': 0.23; 'cc:2**0': 0.24; 'saying': 0.26; "i'm": 0.26; 'function': 0.27; 'cc:addr:python.org': 0.29; 'url:wiki': 0.29; '(unless': 0.30; 'header:User-Agent:1': 0.33; 'that,': 0.33; 'calling': 0.34; 'problem.': 0.36; 'received:192': 0.37; 'think': 0.37; 'received:128': 0.37; 'some': 0.38; 'received:192.168.0': 0.38; 'url:en': 0.39; 'url:org': 0.39; 'should': 0.39; 'might': 0.40; 'received:192.168': 0.40; 'types': 0.61; 'taylor': 0.67 Date: Wed, 11 Jan 2012 20:49:14 -0600 From: Evan Driscoll User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: Alec Taylor Subject: Re: Ctypes compatibility References: <4F0CFFFF.80202@wisc.edu> In-Reply-To: X-Enigmail-Version: 1.3.4 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigFBC43C08FA5429B3E40ECD8C" Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 43 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1326336617 news.xs4all.nl 6886 [2001:888:2000:d::a6]:53362 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:18862 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigFBC43C08FA5429B3E40ECD8C Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 1/10/2012 22:42, Alec Taylor wrote: > Use size_t > > http://en.wikipedia.org/wiki/C_data_types#Size_and_pointer_difference_t= ypes Um, perhaps you misunderstand. I don't control the C API, I'm calling a function that just exists in libc (unless I do what I said and write a wrapper). If you're saying I should use c_size_t on the Python side, I think that's outright wrong since I think some of the fields in the dirent struct are 64 bits even on 32-bit systems. (I might be wrong about that though.) And even neglecting that, the types of the fields is only part of the problem. Evan --------------enigFBC43C08FA5429B3E40ECD8C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPDkoqAAoJEAOzoR8eZTzgrbMH/06Z84c0dorwMS2dvzXZ1be+ K+DwT9yCL0w3knzFVp7MXlefDFObbNHkiDvwzr81dQ/LphKfn4NbGPBwFNBO9dIf YMiNk1nh4KUXdqTaQTnT8WsGxVqv/DiLDTqn1RDjuzzcw8OZn7bjjOF0YG94yQP5 rJ7dUSr4t5T0oNnc/89aaNyPOoRT3L/NGi1whfzfhxkOG9QDvvfPdF8yBzuKyZch BQzE2K8tBd4MBen3Kw/kbfxmoigILWPQru+v8kOvYhMyaH24Bda6s5dwimQXgwpz ASAO8s8PxwmGNuNMWwK8CQnUCJNt1HB5ax5j/bOvKII618V+dvnbGuzcmvqxwHI= =2T80 -----END PGP SIGNATURE----- --------------enigFBC43C08FA5429B3E40ECD8C--