mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
* sysdeps/unix/sysv/linux/faccessat.c: Move RESULT defn inside block.
This commit is contained in:
@ -1,5 +1,7 @@
|
|||||||
2006-01-21 Roland McGrath <roland@redhat.com>
|
2006-01-21 Roland McGrath <roland@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/faccessat.c: Move RESULT defn inside block.
|
||||||
|
|
||||||
* misc/tst-pselect.c: Include <unistd.h>.
|
* misc/tst-pselect.c: Include <unistd.h>.
|
||||||
|
|
||||||
* time/time.h [__need_timespec et al]: Include <bits/types.h> here too.
|
* time/time.h [__need_timespec et al]: Include <bits/types.h> here too.
|
||||||
|
@ -42,8 +42,6 @@ faccessat (fd, file, mode, flag)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int result;
|
|
||||||
|
|
||||||
#ifdef __NR_faccessat
|
#ifdef __NR_faccessat
|
||||||
if ((flag == 0 || ((flag & ~AT_EACCESS) == 0 && ! __libc_enable_secure))
|
if ((flag == 0 || ((flag & ~AT_EACCESS) == 0 && ! __libc_enable_secure))
|
||||||
# ifndef __ASSUME_ATFCTS
|
# ifndef __ASSUME_ATFCTS
|
||||||
@ -51,7 +49,7 @@ faccessat (fd, file, mode, flag)
|
|||||||
# endif
|
# endif
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
result = INLINE_SYSCALL (faccessat, 3, fd, file, mode);
|
int result = INLINE_SYSCALL (faccessat, 3, fd, file, mode);
|
||||||
# ifndef __ASSUME_ATFCTS
|
# ifndef __ASSUME_ATFCTS
|
||||||
if (result == -1 && errno == ENOSYS)
|
if (result == -1 && errno == ENOSYS)
|
||||||
__have_atfcts = -1;
|
__have_atfcts = -1;
|
||||||
|
Reference in New Issue
Block a user