core: Add thread-safe group info functions with dynamic buffers
authorTed Percival <ted@midg3t.net>
Fri, 21 Aug 2009 22:02:57 +0000 (16:02 -0600)
committerLennart Poettering <lennart@poettering.net>
Fri, 21 Aug 2009 22:53:39 +0000 (00:53 +0200)
commit15eb03a5b39f8c54328caa7516a7870bf977db40
tree7e10ffc65f73d73a88d5bd45b62291c9b4f1a6f7
parent9d1cc133f397b6aa37c986dbc42d3aa4262a0847
core: Add thread-safe group info functions with dynamic buffers

Provides getgrgid, getgrnam, getpwuid & getpwnam replacements that are
thread safe (a la getgrgid_r() and friends) that internally
handle allocating big-enough buffers to avoid ERANGE errors
on large users or groups.
src/Makefile.am
src/pulse/util.c
src/pulsecore/core-util.c
src/pulsecore/usergroup.c [new file with mode: 0644]
src/pulsecore/usergroup.h [new file with mode: 0644]
src/tests/usergroup-test.c [new file with mode: 0644]