Re: [fpc-pascal] headaches trying to create x86_64 to i386 cross-compile deb package

2011-01-21 Thread Jonas Maebe
On 20 Jan 2011, at 19:52, Seth Grover wrote: However, I'm now trying to build a package for the x86_64 to i386 cross compiler. The "usage" printout of create_fpc_deb.sh says to specify OS_TARGET, CPU_TARGET, and BINUTILSPREFIX as environment variables, which I am doing. The first time I tried i

[fpc-pascal] GetAffinity\SetAffinity

2011-01-21 Thread Alexey Voychehovich
Good day. There is a need to establish some process affinity using free pascal and ubuntu. Do not tell that on this occasion you can read? Thanks in advance ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/l

Re: [fpc-pascal] fgl.TFPGMap

2011-01-21 Thread Alex Shishkin
21.01.2011 3:07, Paul Ishenin пишет: 21.01.2011 0:28, Alex Shishkin wrote: Following code causes error "Operator is not overloaded: "TObject" < "TObject"" How to make it work? program generictest2; {$mode objfpc}{$H+} uses fgl; operator < (a: TObject; b: TObject): boolean; begin result :=

Re: [fpc-pascal] GetAffinity\SetAffinity

2011-01-21 Thread michael . vancanneyt
See man sched_setaffinity for the call to do this. Free Pascal does not have this call predefined, but you can make this call. Using the do_syscall you should be able to set up the call to the kernel. Something like: do_Syscall(syscall_nr_sched_setaffinity,fpgetpid,setsize,@cpu_set); Mic

Re: [fpc-pascal] GetAffinity\SetAffinity

2011-01-21 Thread Alexey Voychehovich
Just a huge thank you:) 2011/1/21 : > > > See >  man sched_setaffinity > for the call to do this. > > Free Pascal does not have this call predefined, but you can make this call. > > > Using the do_syscall you should be able to set up the call to the kernel. > > Something like: > > do_Syscall(sysc

[fpc-pascal] Getting (local) domain info from DNS

2011-01-21 Thread Mark Morgan Lloyd
Is there a straightforward way of getting the SOA information for a specific domain, typically the local one, from a DNS server? As background, I'm looking for a way to perform a reasonable check of the health of the local LAN, before trying to recover from a database error caused either by a