view modules/chown @ 17724:8526f2f0b117

maint.mk: give projects more flexibilty in set_prog_name arguments * top/maint.mk (sc_program_name): Allow arguments other than argv[0] to be passed to set_program_name(). This is needed by the multicall coreutils program for example.
author Pádraig Brady <P@draigBrady.com>
date Sat, 12 Jul 2014 15:21:12 +0100
parents 16f47458947e
children
line wrap: on
line source

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

Files:
lib/chown.c
lib/fchown-stub.c
m4/chown.m4

Depends-on:
unistd
fstat           [test $HAVE_CHOWN = 0 || test $REPLACE_CHOWN = 1]
open            [test $HAVE_CHOWN = 0 || test $REPLACE_CHOWN = 1]
stat            [test $HAVE_CHOWN = 0 || test $REPLACE_CHOWN = 1]
stdbool         [test $HAVE_CHOWN = 0 || test $REPLACE_CHOWN = 1]
sys_stat        [test $HAVE_CHOWN = 0 || test $REPLACE_CHOWN = 1]

configure.ac:
gl_FUNC_CHOWN
if test $HAVE_CHOWN = 0 || test $REPLACE_CHOWN = 1; then
  AC_LIBOBJ([chown])
fi
if test $REPLACE_CHOWN = 1 && test $ac_cv_func_fchown = no; then
  AC_LIBOBJ([fchown-stub])
fi
gl_UNISTD_MODULE_INDICATOR([chown])

Makefile.am:

Include:
<unistd.h>

License:
LGPLv2+

Maintainer:
Jim Meyering