blob: 84d0df351072c6489a3b4092151a7fa2d279f532 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#include <errno.h>
#include <stdio.h>
#include "_stdio.h"
#include "_syscall.h"
/** rename a file **/
int rename(const char *old, const char *new)
{
SIGNAL_SAFE(0);
SYSCALL(rename, int, -1, old, new, 0, 0, 0, 0);
}
/***
renames a file from its original name ARGUMENT(old) to
ARGUMENT(new).
***/
/*
IMPLEMENTATION(Behavior if ARGUMENT(new) exists prior to THIS() being called)
STDC(1)
*/
|