view modules/renameat @ 16027:447e60e7b06e

openat, fchmodat, fchownat, linkat, renameat: Fix dependencies. * modules/fchmodat (Depends-on): Add openat-die. * modules/fchownat (Depends-on): Likewise. * modules/linkat (Depends-on): Likewise. * modules/renameat (Depends-on): Likewise. * modules/openat (Depends-on): Add dirent.
author Bruno Haible <bruno@clisp.org>
date Fri, 04 Nov 2011 18:11:03 +0100
parents 16f47458947e
children 4d5243b3434e
line wrap: on
line source

Description:
renameat() function: rename a file, relative to two directories

Files:
lib/at-func2.c
lib/renameat.c
m4/renameat.m4

Depends-on:
stdio
extensions
fcntl-h
dosname          [test $HAVE_RENAMEAT = 0 || test $REPLACE_RENAMEAT = 1]
filenamecat-lgpl [test $HAVE_RENAMEAT = 0 || test $REPLACE_RENAMEAT = 1]
fstat            [test $HAVE_RENAMEAT = 0 || test $REPLACE_RENAMEAT = 1]
getcwd-lgpl      [test $HAVE_RENAMEAT = 0 || test $REPLACE_RENAMEAT = 1]
openat           [test $HAVE_RENAMEAT = 0 || test $REPLACE_RENAMEAT = 1]
openat-die       [test $HAVE_RENAMEAT = 0 || test $REPLACE_RENAMEAT = 1]
rename           [test $HAVE_RENAMEAT = 0 || test $REPLACE_RENAMEAT = 1]
same-inode       [test $HAVE_RENAMEAT = 0 || test $REPLACE_RENAMEAT = 1]
save-cwd         [test $HAVE_RENAMEAT = 0 || test $REPLACE_RENAMEAT = 1]

configure.ac:
gl_FUNC_RENAMEAT
if test $HAVE_RENAMEAT = 0 || test $REPLACE_RENAMEAT = 1; then
  AC_LIBOBJ([renameat])
  AC_LIBOBJ([at-func2])
fi
gl_STDIO_MODULE_INDICATOR([renameat])

Makefile.am:

Include:
<fcntl.h>
<stdio.h>

License:
GPL

Maintainer:
Jim Meyering, Eric Blake