Lazarus

Miscellaneous => Suggestions => LCL => Topic started by: ozznixon on January 11, 2008, 08:38:34 pm

Title: What do I do, to add SysCall support to my unit?
Post by: ozznixon on January 11, 2008, 08:38:34 pm
I am porting inotify.h and examples over to FPC.

I need to be able to either include syscallh.inc into my unit, or maybe there is another way I am support to implement kernel calls?

- I know I could simply mod my compile options - but this unit will be contributed to FPC once I have it coded and tester.

inotify is a recent Kernel patch that mimics Window's Shell Notification - mimics as in provides basically the same type of functionality.

Thanks,
O.
Title: Re: What do I do, to add SysCall support to my unit?
Post by: Phil on January 11, 2008, 11:00:16 pm
Quote from: "ozznixon"
I am porting inotify.h and examples over to FPC.

I need to be able to either include syscallh.inc into my unit, or maybe there is another way I am support to implement kernel calls?

- I know I could simply mod my compile options - but this unit will be contributed to FPC once I have it coded and tester.

inotify is a recent Kernel patch that mimics Window's Shell Notification - mimics as in provides basically the same type of functionality.

Thanks,
O.


Have you tried using the FPC SysCall unit in your code?

Thanks.

-Phil
Title: RE: Re: What do I do, to add SysCall support to my unit?
Post by: Almindor on January 13, 2008, 12:41:52 pm
Code: [Select]

uses
  SysCall;

begin
  Writeln('Result: ', do_SysCall(syscall_number, arg0, arg1, ...));
end.
Title: RE: Re: What do I do, to add SysCall support to my unit?
Post by: ozznixon on January 14, 2008, 03:32:00 pm
Thank you guys! Was unaware of that unit! Now everything compiles - mucho thanks - off to testing!
Title: What do I do, to add SysCall support to my unit?
Post by: jaybinks_ on June 04, 2008, 01:39:14 pm
Id love to know where you got up to ... implementing INotify..
please can you post the code you have so far..
I need this...
Title: Re: What do I do, to add SysCall support to my unit?
Post by: Kays on September 21, 2014, 10:48:08 pm
Id love to know where you got up to ... implementing INotify..

Just to be found by search engines:

Inotify routines in the RTL's Linux unit: http://www.freepascal.org/docs-html/rtl/linux/inotify_init.html

An example I just wrote: https://user.cs.uni-goettingen.de/~kburghar/study/it/pascal/inotify
Title: Re: What do I do, to add SysCall support to my unit?
Post by: Mike.Cornflake on September 21, 2014, 10:58:39 pm
Id love to know where you got up to ... implementing INotify..

Just to be found by search engines:

Inotify routines in the RTL's Linux unit: http://www.freepascal.org/docs-html/rtl/linux/inotify_init.html

From that page: Documentation generated on: Mar 14 2014

He asked the question back in 2008...
Title: Re: What do I do, to add SysCall support to my unit?
Post by: Kays on September 22, 2014, 12:49:34 am
He asked the question back in 2008...

And I pointed out I my post's intention is to be found by search engines. What's your problem?
TinyPortal © 2005-2018