comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: ZFS/BtrFS bindings
Date: Tue, 16 Jul 2013 17:18:05 -0500
Date: 2013-07-16T17:18:05-05:00	[thread overview]
Message-ID: <ks4gqu$r0n$1@loke.gir.dk> (raw)
In-Reply-To: ks2hka$94b$1@dont-email.me

"Jeffrey Carter" <spam.jrcarter.not@spam.not.acm.org> wrote in message 
news:ks2hka$94b$1@dont-email.me...
> On 07/15/2013 07:55 PM, Dufr wrote:
>>
>> So, my next question is: how much would a hired programmer need to write
>> one-platform-only (say, Windows or Linux) Ada bindings for *some* ZFS
>> functions? I am saying "some" because what I actually need is only the
>> support for extended attributes (xattr). Any guess?
>
> That would depend on how screwed up the C that you're binding to is. I 
> wouldn't think it would be very much of an effort, but C is often far more 
> complicated than it needs to be.

I'm presuming that you want to get xattr of files that are open in Ada. That 
means that you have to have some cooperation from your vendor, in that Ada 
does not make implementation artifacts like file handles available. Some 
implementations might have a way to get those, some might not.

The problem is much easier if you just want to get xattr based on file 
names, because then one could write a binding to do just that, and avoid any 
interaction with the Ada implementation.

                            Randy.




  reply	other threads:[~2013-07-16 22:18 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 [this message]
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
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