glibc提供了rename系统调用用于修改文件路径。
rename函数定义在sysdeps/unix/sysv/linux/rename.c文件中。
int
rename (const char *old, const char *new)
{
return INLINE_SYSCALL_CALL (rename, old, new);
}
rename 函数调用了rename系统调用。
glibc提供了rename系统调用用于修改文件路径。
rename函数定义在sysdeps/unix/sysv/linux/rename.c文件中。
int
rename (const char *old, const char *new)
{
return INLINE_SYSCALL_CALL (rename, old, new);
}
rename 函数调用了rename系统调用。