From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/13221 Path: news.gmane.org!.POSTED!not-for-mail From: "A. Wilcox" Newsgroups: gmane.linux.lib.musl.general Subject: Re: / getfsent(3) and friends Date: Sun, 9 Sep 2018 21:30:44 -0500 Organization: =?UTF-8?Q?Ad=c3=a9lie_Linux?= Message-ID: References: <2c484703-6fc9-489e-1270-b75cca3225f4@adelielinux.org> <20180325005724.GE1436@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="pXFTwb8ofW5pTtxatmHTXyZ1fjpp77eJh" X-Trace: blaine.gmane.org 1536546498 3600 195.159.176.226 (10 Sep 2018 02:28:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2018 02:28:18 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux ppc64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 To: musl@lists.openwall.com Original-X-From: musl-return-13237-gllmg-musl=m.gmane.org@lists.openwall.com Mon Sep 10 04:28:14 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1fzBvx-0000q7-C3 for gllmg-musl@m.gmane.org; Mon, 10 Sep 2018 04:28:13 +0200 Original-Received: (qmail 12046 invoked by uid 550); 10 Sep 2018 02:30:20 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 12020 invoked from network); 10 Sep 2018 02:30:19 -0000 Openpgp: preference=signencrypt In-Reply-To: <20180325005724.GE1436@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:13221 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --pXFTwb8ofW5pTtxatmHTXyZ1fjpp77eJh Content-Type: multipart/mixed; boundary="pUlYBgvDTzo3lSphMxtzuyF4o2pH1Paja"; protected-headers="v1" From: "A. Wilcox" To: musl@lists.openwall.com Message-ID: Subject: Re: [musl] / getfsent(3) and friends References: <2c484703-6fc9-489e-1270-b75cca3225f4@adelielinux.org> <20180325005724.GE1436@brightrain.aerifal.cx> In-Reply-To: <20180325005724.GE1436@brightrain.aerifal.cx> --pUlYBgvDTzo3lSphMxtzuyF4o2pH1Paja Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable 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 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. >=20 > 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 . It has the same considerations as . 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 --=20 A. Wilcox (awilfox) Project Lead, Ad=C3=A9lie Linux https://www.adelielinux.org --pUlYBgvDTzo3lSphMxtzuyF4o2pH1Paja-- --pXFTwb8ofW5pTtxatmHTXyZ1fjpp77eJh Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEjNyWOYPU1SaTSMHHyynLUZIrnRQFAluV11QACgkQyynLUZIr nRTkyhAAgFjwJtRBEc0vCEAdAeZ/JjYwvwgtv6UEzaEmCgtHH9N1B8/7Cr0h4Vof 4k+e86pIpT3iJmSB/AqgxdtiEAD0YV+Oi0/fq55ZfQskZ0whA2ggtrHkPkYOUphq KoWclFDJBEeeMGO3bJLzow0FNSrEeVaULp/8CVvWVYLbbRqvxRFZZJcTabHe4GET jF4vVha9v/ey7USncyo9+zQ3G1J0CVJT6VGxfFgU+qyuwkpJ4/3BthaIIKaRjfpK As09gxJfQ4V/+WFEg4bwcdU8wZs7U2LZNKnptlVh2nYIkDaj3LiXOdXUBHO/dtsJ U43u0d8PYF2pw3dyJzj3wIodCV6ewq7JIgVdrUKvcSk0v0USMVU+kpTxgRSvoP9H j6lu9/l7u82+CaKTWbQx7HJHRWyxLuR7fvEP2cqzoE4LPyUSj02k9prijlkP6FU/ rYGi6yB95C4U99bHoiKGQsCpQw+3Cg+ywWuJhICrcZ8Jvgu8n1CZjTjehDOoh79O z4URyEmbZifNFGskE8NhuJK/k38+KpPMMm4qWYS0dBmX43dbBtr96fhNGQR7yH4B XWTf6kBrlU74HmG7T8FJp6rlxIxI3V1zaXV2fkgdxMjLjI4UzK3tu3uRH1rQmoWb HyiVjGrCGumnSUx752mDU4q9jgZxC+KsLfXrNczkRMMwV/n1dXg= =T2fp -----END PGP SIGNATURE----- --pXFTwb8ofW5pTtxatmHTXyZ1fjpp77eJh--