comp.lang.ada
 help / color / mirror / Atom feed
* Ada and linux: pragma import how to
@ 2010-10-01 20:34 Francesco PIRANEO GIULIANO
  2010-10-01 23:04 ` Jerry
  0 siblings, 1 reply; 2+ messages in thread
From: Francesco PIRANEO GIULIANO @ 2010-10-01 20:34 UTC (permalink / raw)


Gentleman,

for an application that want to drive the linux framebuffer I'm trying
to import the open and ioctl C functions to be used with Ada.

I'm quite new in that language so I need some detailed information on
how to pass and retrieve arguments / results from imported functions /
procedures and well understand differences between import function and
import _valued_ function.

Can you provide me some documentation source about these two topics?
Does anyone can provide me books reference about using Ada with Linux?
I've found the "Big book of linux ada programming" and obviously the
Ada reference manual but I need something with a more practical
approach to understand...

Thank you very much!
Francesco



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Ada and linux: pragma import how to
  2010-10-01 20:34 Ada and linux: pragma import how to Francesco PIRANEO GIULIANO
@ 2010-10-01 23:04 ` Jerry
  0 siblings, 0 replies; 2+ messages in thread
From: Jerry @ 2010-10-01 23:04 UTC (permalink / raw)


On Oct 1, 1:34 pm, Francesco PIRANEO GIULIANO
<liste.fpira...@gmail.com> wrote:
> Gentleman,
>
> for an application that want to drive the linux framebuffer I'm trying
> to import the open and ioctl C functions to be used with Ada.
>
> I'm quite new in that language so I need some detailed information on
> how to pass and retrieve arguments / results from imported functions /
> procedures and well understand differences between import function and
> import _valued_ function.
>
> Can you provide me some documentation source about these two topics?
> Does anyone can provide me books reference about using Ada with Linux?
> I've found the "Big book of linux ada programming" and obviously the
> Ada reference manual but I need something with a more practical
> approach to understand...
>
> Thank you very much!
> Francesco

If you are using GNAT, see the GNAT User's Guide

http://gcc.gnu.org/onlinedocs/gnat_ugn_unw/index.html#Top

specifically

http://gcc.gnu.org/onlinedocs/gnat_ugn_unw/Mixed-Language-Programming.html#Mixed-Language-Programming

or even

http://gcc.gnu.org/onlinedocs/gnat_ugn_unw/Generating-Ada-Bindings-for-C-and-C_002b_002b-headers.html#Generating-Ada-Bindings-for-C-and-C_002b_002b-headers

Jerry



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-10-01 23:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-01 20:34 Ada and linux: pragma import how to Francesco PIRANEO GIULIANO
2010-10-01 23:04 ` Jerry

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox