aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/linkat.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix/sysv/linux/linkat.c')
-rw-r--r--sysdeps/unix/sysv/linux/linkat.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/linkat.c b/sysdeps/unix/sysv/linux/linkat.c
index 5485b3f..e1faf9d 100644
--- a/sysdeps/unix/sysv/linux/linkat.c
+++ b/sysdeps/unix/sysv/linux/linkat.c
@@ -28,20 +28,28 @@
/* Make a link to FROM named TO but relative paths in TO and FROM are
interpreted relative to FROMFD and TOFD respectively. */
int
-linkat (fromfd, from, tofd, to)
+linkat (fromfd, from, tofd, to, flags)
int fromfd;
const char *from;
int tofd;
const char *to;
+ int flags;
{
int result;
+ // XXX Will be removed once the kernel support is in place.
+ if (flags != 0)
+ {
+ __set_errno (EINVAL);
+ return -1;
+ }
+
#ifdef __NR_linkat
# ifndef __ASSUME_ATFCTS
if (__have_atfcts >= 0)
# endif
{
- result = INLINE_SYSCALL (linkat, 4, fromfd, from, tofd, to);
+ result = INLINE_SYSCALL (linkat, 5, fromfd, from, tofd, to, flags);
# ifndef __ASSUME_ATFCTS
if (result == -1 && errno == ENOSYS)
__have_atfcts = -1;