[fpc-pascal] list working again?

2009-10-02 Thread David Emerson
my last couple messages bounced, and I haven't received many messages lately... until tonight. Was the listserver down, and is it back up now? Thanks, David ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailma

[fpc-pascal] TUN/TAP

2009-10-02 Thread Jorge Aldo G. de F. Junior
Can anyone help me decypher the following code : int tun_alloc(char *dev) { struct ifreq ifr; int fd, err; if( (fd = open("/dev/net/tun", O_RDWR)) < 0 ) return tun_alloc_old(dev); memset(&ifr, 0, sizeof(ifr)); /* Flags: IFF_TUN - TUN device (no Etherne

Re: Re[2]: [fpc-pascal] Is this an error ?

2009-10-02 Thread Matthias K.
> In the other hand the question is if that pascal code should work or > raise an error in 64 bits because I think that this code: > > a := NativeInteger div NativeUnsignedInteger; > > should have the same behaviour in 32 and 64 bits, so I do not know if > I must fill a bug report or not :-? Fill

Re[2]: [fpc-pascal] Is this an error ?

2009-10-02 Thread JoshyFun
Hello FPC-Pascal, Friday, October 2, 2009, 1:38:30 AM, you wrote: MK> I compiled this with fpc -al .. under linux 64. MK> The difference is, "r := div " results in an "divq" MK> instruction wich is for unsigned integer division only. "r := MK> div " results in "idivq" which is for signed intege

Re: [fpc-pascal] Is this an error ?

2009-10-02 Thread Matthias K.
Hi, I compiled this with fpc -al .. under linux 64. The difference is, "r := div " results in an "divq" instruction wich is for unsigned integer division only. "r := div " results in "idivq" which is for signed integer division. On execution this results in an error (i've got divbyzero on amd64)

[fpc-pascal] libtar Question

2009-10-02 Thread jeanmarc . chourot
Hello all, The question is " how to use the create function for adding a new file to an existing archive without deleting all it contents ?" Here is a piece of code which always replace the first file by the second one. (and I dont want to open only once the tarfile). Any help is welcome **