summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/renameat.c
blob: a898f7b86d5e036739626e2b3568dbb0af2700ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * renameat() for uClibc
 *
 * Copyright (C) 2009 Analog Devices Inc.
 *
 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 */

#include <sys/syscall.h>
#include <stdio.h>

#ifdef __NR_renameat
_syscall4(int, renameat, int, oldfd, const char *, old, int, newfd, const char *, new)
#else
/* should add emulation with rename() and /proc/self/fd/ ... */
#endif