mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Add fifth parameter to linkat.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user