]>
Commit | Line | Data |
---|---|---|
ad845c0b | 1 | /* lxstat64 using Linux lstat64 system call. |
688903eb | 2 | Copyright (C) 1997-2018 Free Software Foundation, Inc. |
4cca6b86 UD |
3 | This file is part of the GNU C Library. |
4 | ||
5 | The GNU C Library is free software; you can redistribute it and/or | |
41bdb6e2 AJ |
6 | modify it under the terms of the GNU Lesser General Public |
7 | License as published by the Free Software Foundation; either | |
8 | version 2.1 of the License, or (at your option) any later version. | |
4cca6b86 UD |
9 | |
10 | The GNU C Library is distributed in the hope that it will be useful, | |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
41bdb6e2 | 13 | Lesser General Public License for more details. |
4cca6b86 | 14 | |
41bdb6e2 | 15 | You should have received a copy of the GNU Lesser General Public |
59ba27a6 PE |
16 | License along with the GNU C Library; if not, see |
17 | <http://www.gnu.org/licenses/>. */ | |
4cca6b86 | 18 | |
9756dfe1 UD |
19 | #include <errno.h> |
20 | #include <stddef.h> | |
21 | #include <sys/stat.h> | |
22 | #include <kernel_stat.h> | |
4cca6b86 | 23 | |
0dee6738 UD |
24 | #include <sysdep.h> |
25 | #include <sys/syscall.h> | |
4bbb61e4 | 26 | |
9756dfe1 UD |
27 | /* Get information about the file NAME in BUF. */ |
28 | int | |
56ddf355 | 29 | ___lxstat64 (int vers, const char *name, struct stat64 *buf) |
9756dfe1 | 30 | { |
e5dee2c8 L |
31 | int result; |
32 | result = INLINE_SYSCALL (lstat64, 2, name, buf); | |
ad845c0b | 33 | return result; |
9756dfe1 | 34 | } |
56ddf355 | 35 | |
ce460d04 | 36 | #include <shlib-compat.h> |
56ddf355 | 37 | |
ce460d04 | 38 | #if SHLIB_COMPAT(libc, GLIBC_2_1, GLIBC_2_2) |
56ddf355 | 39 | versioned_symbol (libc, ___lxstat64, __lxstat64, GLIBC_2_2); |
56ddf355 UD |
40 | strong_alias (___lxstat64, __old__lxstat64) |
41 | compat_symbol (libc, __old__lxstat64, __lxstat64, GLIBC_2_1); | |
ce460d04 | 42 | hidden_ver (___lxstat64, __lxstat64) |
fb23eb25 UD |
43 | #else |
44 | strong_alias (___lxstat64, __lxstat64); | |
ce460d04 | 45 | hidden_def (__lxstat64) |
56ddf355 | 46 | #endif |