/* * Copyright 2004-2009, Axel Dörfler, axeld@pinc-software.de. * Distributed under the terms of the MIT License. */ #include #include #include #include #include int rename(const char *from, const char *to) { RETURN_AND_SET_ERRNO(_kern_rename(-1, from, -1, to)); } int renameat(int fromFD, const char* from, int toFD, const char* to) { RETURN_AND_SET_ERRNO(_kern_rename(fromFD, from, toFD, to)); }