summaryrefslogtreecommitdiff
path: root/modules/priv-set
Commit message (Collapse)AuthorAgeFilesLines
* acl, mbchar, priv-set: use extern-inlinePaul Eggert2012-09-221-0/+1
| | | | | | | | | | | | | | | | * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE): * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE): * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE): New macros. * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h: Replace all uses of 'static inline' with it. Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END. * m4/acl.m4 (gl_FUNC_ACL): * m4/mbchar.m4 (gl_MBCHAR): * m4/priv-set.m4 (gl_PRIV_SET): Remove AC_C_INLINE, since 'inline' is no longer used directly. * modules/acl, modules/mbchar, modules/priv-set (Depends-on): Add extern-inline.
* priv-set: new module and accompanying tests; adapt write-any-fileDavid Bartley2009-05-031-0/+26
* lib/priv-set.c: New file. * lib/priv-set.h: New file. * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe. * lib/write-any-file.c: Simplify by using priv-set module. * m4/priv-set.m4: New file. * modules/priv-set: New file. * modules/unlinkdir: Add dependency on priv-set module. * modules/write-any-file: Likewise. These changes address a problem that originally arose with GNU tar: http://thread.gmane.org/gmane.comp.gnu.tar.bugs/3242 Tests for module 'priv-set'. * modules/priv-set-tests: New file.