summaryrefslogtreecommitdiff
path: root/src/stdio/rename.c
blob: ad1be6390afdb3ecf4e3cd965f40815e6b838fa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <errno.h>
#include <stdio.h>
#include "_syscall.h"

/** rename a file **/

int rename(const char *old, const char *new)
{
	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)
*/