repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
isblank() implementation.
[minix.git]
/
lib
/
libc
/
posix
/
_rename.c
blob
a0d85b9636cf329c1a0075a1f91e0e0f3173d6f1
1
#include <lib.h>
2
#define rename _rename
3
#include <string.h>
4
#include <stdio.h>
5
6
PUBLIC
int
rename
(
name
,
name2
)
7
_CONST
char
*
name
, *
name2
;
8
{
9
message m
;
10
11
m
.
m1_i1
=
strlen
(
name
) +
1
;
12
m
.
m1_i2
=
strlen
(
name2
) +
1
;
13
m
.
m1_p1
= (
char
*)
name
;
14
m
.
m1_p2
= (
char
*)
name2
;
15
return
(
_syscall
(
FS
,
RENAME
, &
m
));
16
}