Sign in
mojo
/
mojo-tools
/
c07399d071c59658a5c2bed81dee6e9ed9142442
/
.
/
fusl
/
src
/
unistd
/
link.c
blob: 79e3ee90d1cef68fba3ecae7a51b1fe031c1b2f7 [
file
] [
log
] [
blame
]
#include
<unistd.h>
#include
<fcntl.h>
#include
"syscall.h"
int
link
(
const
char
*
existing
,
const
char
*
new
)
{
#ifdef
SYS_link
return
syscall
(
SYS_link
,
existing
,
new
);
#else
return
syscall
(
SYS_linkat
,
AT_FDCWD
,
existing
,
AT_FDCWD
,
new
,
0
);
#endif
}