Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2006-01

FreeBSD/kqueue

8 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ales Katona

These files add kqueue to the FreeBSD rtl. the new "FreeBSD.pas" file will need to be put in rtl/freebsd dir. I think the kqueue.inc files should be in common BSD dir as 3 out of 4 major bsds (darwin being one) now support it. demo-kqueue1.pas is a simple process watching example.

Ales

P.S: the 2 syscall numbers should be added to freeBSD syscalls

Reply by email

Michael Van Canneyt
to Ales Katona
Ales Katona wrote 8 lines
These files add kqueue to the FreeBSD rtl. the new "FreeBSD.pas" file will need to be put in rtl/freebsd dir. I think the kqueue.inc files should be in common BSD dir as 3 out of 4 major bsds (darwin being one) now support it. demo-kqueue1.pas is a simple process watching example. Ales P.S: the 2 syscall numbers should be added to freeBSD syscalls

Marco, should this not be added to packages ?

Michael.

Reply by email

peter green
to Ales Katona: These files add kqueue to the FreeBSD rtl. the new "FreeBSD.pas" file will need to be put…

if 3 out of the 4 major bsds support it shouldn't it be in a generic bsd unit?

Show quoted text 17 lines
-----Original Message----- From: Behalf Of Ales Katona Sent: 31 January 2006 16:05 To: FPC developers' list Subject: [fpc-devel] FreeBSD/kqueue These files add kqueue to the FreeBSD rtl. the new "FreeBSD.pas" file will need to be put in rtl/freebsd dir. I think the kqueue.inc files should be in common BSD dir as 3 out of 4 major bsds (darwin being one) now support it. demo-kqueue1.pas is a simple process watching example. Ales P.S: the 2 syscall numbers should be added to freeBSD syscalls

Reply by email

Ales Katona
to peter green
peter green wrote
if 3 out of the 4 major bsds support it shouldn't it be in a generic bsd unit?

It should be split into include which belong to BSD and specific OS units which belong to specific OS dirs which use those includes.

Ales

Reply by email

peter green
to Ales Katona

i disagree, thats forcing unnessacery extra ifdefs into user code for no good reason.

imho if something is availible on muliple operating systems it should be availible in the same unit if at all possible.

Show quoted text 21 lines
-----Original Message----- From: Behalf Of Ales Katona Sent: 31 January 2006 16:45 To: FPC developers' list Subject: Re: [fpc-devel] FreeBSD/kqueue peter green wrote: >if 3 out of the 4 major bsds support it shouldn't it be in a generic bsd >unit? > > It should be split into include which belong to BSD and specific OS units which belong to specific OS dirs which use those includes. Ales _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email

Marco van de Voort
to Michael Van Canneyt: Marco, should this not be added to packages ? Michael.
Show quoted text 6 lines
On Tue, 31 Jan 2006, Ales Katona wrote: > These files add kqueue to the FreeBSD rtl. the new "FreeBSD.pas" file will > need to be put in rtl/freebsd dir. I think the kqueue.inc files should be in > common BSD dir as 3 out of 4 major bsds (darwin being one) now support it. > demo-kqueue1.pas is a simple process watching example.

(4 out of 4 now it seems. There are some version requirements though, but they are relatively mild)

> P.S: the 2 syscall numbers should be added to freeBSD syscalls Marco, should this not be added to packages ?

It is all syscall stuff etc. (though I'll try to add FPC_USE_LIBC support before committing). It belongs in an "outer" rtl package, but there is no such thing.

Maybe we should finalize our plans for the tree structure and buildtools first, before starting to move stuff out of the RTL. (this being equivalent to the linux unit that IS in the rtl).

Reply by email