mailing list of musl libc
 help / color / mirror / code / Atom feed
From: "A. Wilcox" <awilfox@adelielinux.org>
To: musl@lists.openwall.com
Subject: Re: <fstab.h> / getfsent(3) and friends
Date: Sun, 9 Sep 2018 21:30:44 -0500	[thread overview]
Message-ID: <dfff276e-7fdb-2a47-b536-83ff6a610e5d@adelielinux.org> (raw)
In-Reply-To: <20180325005724.GE1436@brightrain.aerifal.cx>


[-- Attachment #1.1: Type: text/plain, Size: 1708 bytes --]

On 03/24/18 19:57, Rich Felker wrote:
> On Sat, Mar 24, 2018 at 07:45:52PM -0500, A. Wilcox wrote:
>> This header and API are used by at least:
>>
>> - filelight (disk space usage tracker)
>>
>> - K3b (KDE disc ripper)
>>
>> - KDELibs 3.x, used by TDE (Trinity Desktop Environment, light Qt DE)
>>
>> - MythTV and XBMC (media center/players)
>>
>> - Pegasus (scientific computation management system by USC)


Add XFCE 4 to this list: their disk monitor panel plugin requires
<fstab.h> and does not test for it in configure since it is so widely
implemented (as below).


>> Since this is already implemented by glibc[1], FreeBSD[2], NetBSD[3],
>> OpenBSD[4], Mac OS X[5], AIX[6], HP-UX[7], QNX[8], and
>> others[9][10][11][12], all but TDE's fork of KDELibs 3 don't check for
>> it in configure.  I would be more than happy to implement and maintain this.
> 
> Seems plausible that it would be reasonable but I haven't looked at
> the specifics. How large would the implementation be? Are there ugly
> issues with thread-safety/global state that make the apis hard to use
> reasonably? Anything weird it has to hook into?


It's basically the /etc/fstab equivalent of <mntent.h>.  It has the same
considerations as <mntent.h>.  It's MT-unsafe and AS-unsafe because it
does the set/get/end ent stuff, just with /etc/fstab instead of
/etc/mtab (or /etc/passwd in the case of pwent, etc).

https://www.gnu.org/software/libc/manual/html_node/fstab.html is the
glibc manual for it.

I will likely write a basic implementation up next week, and send it to
the list.

Best,
--arw


-- 
A. Wilcox (awilfox)
Project Lead, Adélie Linux
https://www.adelielinux.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      parent reply	other threads:[~2018-09-10  2:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-25  0:45 A. Wilcox
2018-03-25  0:57 ` Rich Felker
2018-03-25  7:24   ` Khem Raj
2018-09-10  2:30   ` A. Wilcox [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=dfff276e-7fdb-2a47-b536-83ff6a610e5d@adelielinux.org \
    --to=awilfox@adelielinux.org \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).