Recent

Author Topic: What do I do, to add SysCall support to my unit?  (Read 10475 times)

ozznixon

  • Jr. Member
  • **
  • Posts: 85
    • http://www.modernpascal.com/
What do I do, to add SysCall support to my unit?
« 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.
---
Want to kick the tires to a Free Pascal like script engine? http://www.ModernPascal.com/

Phil

  • Hero Member
  • *****
  • Posts: 2750
Re: What do I do, to add SysCall support to my unit?
« Reply #1 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

Almindor

  • Sr. Member
  • ****
  • Posts: 411
    • http://www.astarot.tk
RE: Re: What do I do, to add SysCall support to my unit?
« Reply #2 on: January 13, 2008, 12:41:52 pm »
Code: [Select]

uses
  SysCall;

begin
  Writeln('Result: ', do_SysCall(syscall_number, arg0, arg1, ...));
end.

ozznixon

  • Jr. Member
  • **
  • Posts: 85
    • http://www.modernpascal.com/
RE: Re: What do I do, to add SysCall support to my unit?
« Reply #3 on: January 14, 2008, 03:32:00 pm »
Thank you guys! Was unaware of that unit! Now everything compiles - mucho thanks - off to testing!
---
Want to kick the tires to a Free Pascal like script engine? http://www.ModernPascal.com/

jaybinks_

  • Newbie
  • Posts: 2
What do I do, to add SysCall support to my unit?
« Reply #4 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...

Kays

  • Full Member
  • ***
  • Posts: 182
  • Whasup!?
    • KaiBurghardt.de
Re: What do I do, to add SysCall support to my unit?
« Reply #5 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
Yours Sincerely
Kai Burghardt

Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1250
Re: What do I do, to add SysCall support to my unit?
« Reply #6 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...
Lazarus Trunk/FPC Trunk on Windows [7, 10]
  Have you tried searching this forum or the wiki?:   http://wiki.lazarus.freepascal.org/Alternative_Main_Page
  BOOKS! (Free and otherwise): http://wiki.lazarus.freepascal.org/Pascal_and_Lazarus_Books_and_Magazines

Kays

  • Full Member
  • ***
  • Posts: 182
  • Whasup!?
    • KaiBurghardt.de
Re: What do I do, to add SysCall support to my unit?
« Reply #7 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?
Yours Sincerely
Kai Burghardt