mailing list of musl libc
 help / color / mirror / code / Atom feed
* <fstab.h> / getfsent(3) and friends
@ 2018-03-25  0:45 A. Wilcox
  2018-03-25  0:57 ` Rich Felker
  0 siblings, 1 reply; 4+ messages in thread
From: A. Wilcox @ 2018-03-25  0:45 UTC (permalink / raw)
  To: musl


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

Would a small module implementing <fstab.h> be accepted upstream into
musl?  I looked on the mailing list and wiki and didn't see anyone
asking this question before.


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)


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.


Best,
--arw



[1]: https://www.gnu.org/software/libc/manual/html_node/fstab.html

[2]: https://www.freebsd.org/cgi/man.cgi?query=getfsent&sektion=3

[3]: http://netbsd.gw.com/cgi-bin/man-cgi?getfsent++NetBSD-current

[4]: https://man.openbsd.org/getfsent

[5]:
https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man3/getfsent.3.html

[6]:
https://www.ibm.com/support/knowledgecenter/en/ssw_aix_71/com.ibm.aix.basetrf1/getfsent.htm

[7]: http://nixdoc.net/man-pages/HP-UX/man4/fstab.4.html

[8]:
http://www.qnx.com/developers/docs/6.5.0/topic/com.qnx.doc.neutrino_lib_ref/g/getfsent.html

[9]: Tru64:
http://www.polarhome.com/service/man/?qf=getfsent&tf=2&of=Tru64&sf=3

[10]: Ultrix:
http://www.polarhome.com/service/man/?qf=getfsent&af=0&sf=3&of=Ultrix&tf=2

[11]: Hurd:
http://www.polarhome.com/service/man/?qf=getfsent&af=0&sf=3&of=Hurd&tf=2

[12]: Minix:
http://www.polarhome.com/service/man/?qf=getfsent&af=0&sf=3&of=Minix&tf=2
-- 
A. Wilcox (awilfox)
Project Lead, Adélie Linux
http://adelielinux.org


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: <fstab.h> / getfsent(3) and friends
  2018-03-25  0:45 <fstab.h> / getfsent(3) and friends A. Wilcox
@ 2018-03-25  0:57 ` Rich Felker
  2018-03-25  7:24   ` Khem Raj
  2018-09-10  2:30   ` A. Wilcox
  0 siblings, 2 replies; 4+ messages in thread
From: Rich Felker @ 2018-03-25  0:57 UTC (permalink / raw)
  To: musl

On Sat, Mar 24, 2018 at 07:45:52PM -0500, A. Wilcox wrote:
> Would a small module implementing <fstab.h> be accepted upstream into
> musl?  I looked on the mailing list and wiki and didn't see anyone
> asking this question before.
> 
> 
> 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)
> 
> 
> 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?

Rich


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: <fstab.h> / getfsent(3) and friends
  2018-03-25  0:57 ` Rich Felker
@ 2018-03-25  7:24   ` Khem Raj
  2018-09-10  2:30   ` A. Wilcox
  1 sibling, 0 replies; 4+ messages in thread
From: Khem Raj @ 2018-03-25  7:24 UTC (permalink / raw)
  To: musl

On Sat, Mar 24, 2018 at 5:57 PM, Rich Felker <dalias@libc.org> wrote:
> On Sat, Mar 24, 2018 at 07:45:52PM -0500, A. Wilcox wrote:
>> Would a small module implementing <fstab.h> be accepted upstream into
>> musl?  I looked on the mailing list and wiki and didn't see anyone
>> asking this question before.
>>
>>
>> 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)
>>
>>
>> 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?
>

they dont look like being thread safe or async safe atleast in glibc
docs. perhaps you can use gnulib
implementation in apps where its needed.

> Rich


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: <fstab.h> / getfsent(3) and friends
  2018-03-25  0:57 ` Rich Felker
  2018-03-25  7:24   ` Khem Raj
@ 2018-09-10  2:30   ` A. Wilcox
  1 sibling, 0 replies; 4+ messages in thread
From: A. Wilcox @ 2018-09-10  2:30 UTC (permalink / raw)
  To: musl


[-- 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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-09-10  2:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-25  0:45 <fstab.h> / getfsent(3) and friends A. Wilcox
2018-03-25  0:57 ` Rich Felker
2018-03-25  7:24   ` Khem Raj
2018-09-10  2:30   ` A. Wilcox

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).