chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] long pointer equivalent


From: felix
Subject: Re: [Chicken-users] long pointer equivalent
Date: Mon, 26 Aug 2002 08:56:23 +0200

> One question. In many OSes these days, even on 32 bit platforms, there
> are a lot of 64 bit types. For example, the NetBSD lseek call is:
> 
> off_t lseek(int fildes, off_t offset, int whence);
> 
> where an off_t is (at least) a signed 64 bit integer type. Many
> important system calls use 64 bit types because things like files on
> disks, or disks themselves, or numbers of packets that a counter might
> have to deal with, etc., exceed the width of a 32 bit integer.
> 
> NetBSD is hardly the only system around like this -- most Unixes are
> like this nowadays.
> 
> I know you don't want to deal with more than one size of fixnum, but
> dealing with 64 bit types is rather important for people doing systems
> programming type tasks.

So would it be ok to have a foreign type specifier `int64' and
`unsigned-int64' that is handled on the Scheme side as a float? Like:

(define lseek
  (foreign-lambda unsigned-int64 "lseek" unsigned-int64 int) )

?


cheers,
felix






reply via email to

[Prev in Thread] Current Thread [Next in Thread]