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!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news-out.readnews.com!s09-01.readnews.com!not-for-mail X-Trace: DXC=@4nGRT6W_ImBFYIfY; 6oee[3OhcoN[H0`X44`8^\]>7j8DHB_I2k0T`_WOU; SDD77dY5?d`FQ=BKj24DKT5NOBkg`>OZH6:_RMmaDd; cYEOE4h X-Complaints-To: abuse@ngroups.net Date: Mon, 22 Jul 2013 21:20:14 +0200 From: Per Sandberg Newsgroups: comp.lang.ada Subject: Re: ZFS/BtrFS bindings Message-ID: <20130722212014.34c67bdc@lufsen.sandat.dyndns.org> References: <46f7ac55-b920-4003-8cac-a9cbc24b29a2@googlegroups.com> <3b1b00b6-9799-4827-b51c-8e08d4dc6e91@googlegroups.com> X-Newsreader: Claws Mail 3.9.0 (GTK+ 2.24.8; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit NNTP-Posting-Host: dbf490b1.ngroups.net X-Original-Bytes: 1812 Xref: number.nntp.dca.giganews.com comp.lang.ada:182638 Date: 2013-07-22T21:20:14+02:00 List-Id: On Tue, 16 Jul 2013 22:29:48 +0200 Dirk Heinrichs 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 #include * then call g++ -c name.h -fdump-ada-spec * This will automagicly create the ada-specs corresponding to the headerfiles. /Per