From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!goblin3!goblin1!goblin2!goblin.stu.neva.ru!reality.xs3.de!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: ZFS/BtrFS bindings Date: Tue, 16 Jul 2013 17:18:05 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <46f7ac55-b920-4003-8cac-a9cbc24b29a2@googlegroups.com> <3b1b00b6-9799-4827-b51c-8e08d4dc6e91@googlegroups.com> <600aa74c-78af-4d43-9301-ab9c0022f825@googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: loke.gir.dk 1374013086 27671 69.95.181.76 (16 Jul 2013 22:18:06 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 16 Jul 2013 22:18:06 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Original-Bytes: 2398 Xref: number.nntp.dca.giganews.com comp.lang.ada:182536 Date: 2013-07-16T17:18:05-05:00 List-Id: "Jeffrey Carter" 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.