comp.lang.ada
 help / color / mirror / Atom feed
From: Per Sandberg <per.sandberg@sandat.dyndns.org>
Subject: Re: ZFS/BtrFS bindings
Date: Mon, 22 Jul 2013 21:20:14 +0200
Date: 2013-07-22T21:20:14+02:00	[thread overview]
Message-ID: <20130722212014.34c67bdc@lufsen.sandat.dyndns.org> (raw)
In-Reply-To: ks4aft$uo3$1@online.de

On Tue, 16 Jul 2013 22:29:48 +0200
Dirk Heinrichs <dirk.heinrichs@altum.de> wrote:

> Dufr wrote:
> 
> > For instance: extended attributes (xattr). Can I access and use
> > them from Ada? No, unless I have the bindings specific to that file
> > system.
> 
> This also is NOT a question of FS bindings, but of libattr/libacl
> bindings. The interface is usually common to all filesystems
> supporting it. That's the reason why the virtual filesystem (VFS)
> layer exists in Linux, it's an abstraction layer between user space
> and the different filesystems.
> 
> HTH...
> 
> 	Dirk
Well the simplest way to do it is with a fairly recent GCC and:
* create a file "name.h" containing the following two lines:
#include <attr/libattr.h>
#include <acl/libacl.h>

* then call 
   g++ -c name.h -fdump-ada-spec

* This will automagicly create the ada-specs corresponding to the
  headerfiles.
/Per





  reply	other threads:[~2013-07-22 19:20 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-14  2:48 ZFS/BtrFS bindings Dufr
2013-07-14  9:47 ` Dirk Heinrichs
2013-07-14  9:59   ` Dufr
2013-07-16  0:31     ` Randy Brukardt
2013-07-16  2:55       ` Dufr
2013-07-16  4:25         ` Jeffrey Carter
2013-07-16 22:18           ` Randy Brukardt
2013-07-18 12:47             ` Dufr
2013-07-19  4:56               ` Randy Brukardt
2013-07-16 20:29     ` Dirk Heinrichs
2013-07-22 19:20       ` Per Sandberg [this message]
2013-07-22 19:51       ` Per Sandberg
2013-08-04  6:46         ` Dirk Heinrichs
replies disabled

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