mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
* sysdeps/unix/sysv/linux/linkat.c (linkat): Allow flags to be set
when syscall is used. * io/fcntl.h (AT_SYMLINK_FOLLOW): Define.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2006-02-27 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/linkat.c (linkat): Allow flags to be set
|
||||||
|
when syscall is used.
|
||||||
|
* io/fcntl.h (AT_SYMLINK_FOLLOW): Define.
|
||||||
|
|
||||||
2006-02-26 Roland McGrath <roland@redhat.com>
|
2006-02-26 Roland McGrath <roland@redhat.com>
|
||||||
|
|
||||||
* sysdeps/unix/common/Makefile: File removed.
|
* sysdeps/unix/common/Makefile: File removed.
|
||||||
|
@ -37,13 +37,6 @@ linkat (fromfd, from, tofd, to, flags)
|
|||||||
{
|
{
|
||||||
int result;
|
int result;
|
||||||
|
|
||||||
// XXX Will be removed once the kernel support is in place.
|
|
||||||
if (flags != 0)
|
|
||||||
{
|
|
||||||
__set_errno (EINVAL);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef __NR_linkat
|
#ifdef __NR_linkat
|
||||||
# ifndef __ASSUME_ATFCTS
|
# ifndef __ASSUME_ATFCTS
|
||||||
if (__have_atfcts >= 0)
|
if (__have_atfcts >= 0)
|
||||||
@ -60,6 +53,13 @@ linkat (fromfd, from, tofd, to, flags)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __ASSUME_ATFCTS
|
#ifndef __ASSUME_ATFCTS
|
||||||
|
/* Without kernel support we cannot handle AT_SYMLINK_FOLLOW. */
|
||||||
|
if (flags != 0)
|
||||||
|
{
|
||||||
|
__set_errno (EINVAL);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
static const char procfd[] = "/proc/self/fd/%d/%s";
|
static const char procfd[] = "/proc/self/fd/%d/%s";
|
||||||
char *buffrom = NULL;
|
char *buffrom = NULL;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user