Re: [fpc-pascal] SO_RCVTIMEO

2005-09-14 Thread Paul Davidson
Thanks, Marco, Anton. Select it is! On Sep 14, 2005, at 9:08, Marco van de Voort wrote: Trying to get SetSocketOptions for SO_RCVTIMEO and SO_SNDTIMEO to work with Darwin (FreeBSD). type p : pointer; t : TimeVal; t.tv_sec := mSec div 1000; t.tv_usec := ( mSec mod 1000 ) * 1000; p := @t

Re: [fpc-pascal] SO_RCVTIMEO

2005-09-14 Thread Marco van de Voort
> Trying to get SetSocketOptions for SO_RCVTIMEO and SO_SNDTIMEO to work > with Darwin (FreeBSD). > > type >p : pointer; >t : TimeVal; > > t.tv_sec := mSec div 1000; > t.tv_usec := ( mSec mod 1000 ) * 1000; > p := @t; > if SetSocketOptions( fSocket, SOL_SOCKET, SO_SNDTIMEO, p, SizeOf( t

Re: [fpc-pascal] SO_RCVTIMEO

2005-09-14 Thread Anton Tichawa
Paul Davidson wrote: Trying to get SetSocketOptions for SO_RCVTIMEO and SO_SNDTIMEO to work with Darwin (FreeBSD). type p : pointer; t : TimeVal; t.tv_sec := mSec div 1000; t.tv_usec := ( mSec mod 1000 ) * 1000; p := @t; if SetSocketOptions( fSocket, SOL_SOCKET, SO_SNDTIMEO, p, SizeOf( t

Re: [fpc-pascal] fpc 2.0 and DOM/xml under OS/2 gives me "Processterminated by SIGSEGV"

2005-09-14 Thread Tomas Hajny
Søren Ager napsal(a): > On 09-09-05 23.35, Tomas Hajny wrote: > >> Sorry, I had your e-mails (together with many other :-( ) in backlog >> from the time of my holiday... > > No problem - hope you had a great holiday. Yes, it was a good one, although somewhat rainy. ;-) >> For the first question

[fpc-pascal] SO_RCVTIMEO

2005-09-14 Thread Paul Davidson
Trying to get SetSocketOptions for SO_RCVTIMEO and SO_SNDTIMEO to work with Darwin (FreeBSD). type p : pointer; t : TimeVal; t.tv_sec := mSec div 1000; t.tv_usec := ( mSec mod 1000 ) * 1000; p := @t; if SetSocketOptions( fSocket, SOL_SOCKET, SO_SNDTIMEO, p, SizeOf( t ) ) <> 0 etc returns

[fpc-pascal] RE: About reset(aFile, FileNameString)

2005-09-14 Thread Jeff Pohlmeyer
> All of the Pascals that I have used allowed the > following shorthand, an extension: > reset(aFile, FileNameString); {or rewrite, etc.} > I tried overloading reset() ... but it didn't work. procedure reset(var f:text; const fn:string); begin   assign(f, fn);   system.reset(f); end; procedure r

Re: [fpc-pascal] Darwin compilation

2005-09-14 Thread Florian Klaempfl
Paul Davidson wrote: > This fix works, but now: That's Jonas' job :) > > h2pas.pas:5708:Fixup of 34988 too large for field width of 16 bits > h2pas.pas:5683:Fixup of 35076 too large for field width of 16 bits > h2pas.pas:5664:Fixup of 35140 too large for field width of 16 bits > h2pas.pas:5622:

Re: [fpc-pascal] history

2005-09-14 Thread Florian Klaempfl
Bob Barry wrote: > In the course of trying to compile fpc docs, I compared file msg2inc.pp > of svn to that of the fpc-2.0.0 source tarball. No change whatsoever > had been made to the code, but all the revision history has been > removed since fpc-2.0.0. This means that users will henceforth be