view modules/renameat @ 15979:69cc1dcd696b

unlockpt: Detect invalid argument. * lib/unlockpt.c: Include <fcntl.h>. (unlockpt): Check whether fd is valid, using fcntl(). * modules/unlockpt (Depends-on): Add fcntl-h.
author Bruno Haible <bruno@clisp.org>
date Fri, 21 Oct 2011 02:22:04 +0200
parents 16f47458947e
children 447e60e7b06e
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]
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