view modules/lchown @ 40242:e84036edb2ff

bitset, timevar: Depend on c99 Reported by Bruno Haible. * modules/bitset, modules/timevar (Depends-on): Add c99.
author Akim Demaille <akim.demaille@gmail.com>
date Sun, 17 Mar 2019 08:34:22 +0100
parents 9acfed062e5f
children
line wrap: on
line source

Description:
lchown() function: change ownership of a file, without following symlinks.

Files:
lib/lchown.c
m4/lchown.m4

Depends-on:
unistd
chown           [test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1]
errno           [test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1]
lstat           [test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1]
stdbool         [test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1]
sys_stat        [test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1]

configure.ac:
gl_FUNC_LCHOWN
if test $HAVE_LCHOWN = 0 || test $REPLACE_LCHOWN = 1; then
  AC_LIBOBJ([lchown])
fi
gl_UNISTD_MODULE_INDICATOR([lchown])

Makefile.am:

Include:
<unistd.h>

License:
LGPLv2+

Maintainer:
Jim Meyering, Eric Blake