mailing list of musl libc
 help / color / mirror / code / Atom feed
* <shadow.h> function: fgetspent_r
@ 2019-01-16 19:21 A. Wilcox
  2019-01-16 20:50 ` Rich Felker
  0 siblings, 1 reply; 11+ messages in thread
From: A. Wilcox @ 2019-01-16 19:21 UTC (permalink / raw)
  To: musl


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

Hi muslers,

fgetspent_r[1] is a re-entrant version of fgetspent which stores all
strings in a caller-provided buffer to ensure that the memory is owned
by the caller instead of by the system.

It is present in Solaris 9[2] and higher, and glibc[3] Linux.  It is
used by AccountsService[4].

Is it possible to add this API to musl?  I could try to write it, if so.

Best,
--arw


[1]: https://docs.oracle.com/cd/E88353_01/html/E37843/getspent-r-3c.html

[2]: https://docs.oracle.com/cd/E19683-01/816-5214/6mbcfdl0v/index.html

[3]: https://linux.die.net/man/3/getspnam_r

[4]: https://cgit.freedesktop.org/accountsservice/commit/?id=14ca4245


-- 
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] 11+ messages in thread

end of thread, other threads:[~2019-01-21  0:50 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-16 19:21 <shadow.h> function: fgetspent_r A. Wilcox
2019-01-16 20:50 ` Rich Felker
2019-01-16 21:38   ` A. Wilcox
2019-01-16 23:44     ` Rich Felker
2019-01-17  5:31       ` Markus Wichmann
2019-01-17 15:38         ` Rich Felker
2019-01-18 20:37           ` Markus Wichmann
2019-01-20 15:41             ` Markus Wichmann
2019-01-20 21:12               ` A. Wilcox
2019-01-21  0:50                 ` Rich Felker
2019-01-20 22:02               ` 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).