]> git.ipfire.org Git - thirdparty/glibc.git/blame - io/lstat.c
Update copyright dates with scripts/update-copyrights.
[thirdparty/glibc.git] / io / lstat.c
CommitLineData
f7a9f785 1/* Copyright (C) 1996-2016 Free Software Foundation, Inc.
8a523922
UD
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
41bdb6e2
AJ
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8a523922 8
92c6ccd1
RM
9 In addition to the permissions in the GNU Lesser General Public
10 License, the Free Software Foundation gives you unlimited
11 permission to link the compiled version of this file with other
12 programs, and to distribute those programs without any restriction
13 coming from the use of this file. (The GNU Lesser General Public
14 License restrictions do apply in other respects; for example, they
15 cover modification of the file, and distribution when not linked
16 into another program.)
17
18 Note that people who make modified versions of this file are not
19 obligated to grant this special exception for their modified
20 versions; it is their choice whether to do so. The GNU Lesser
21 General Public License gives permission to release a modified
22 version without this exception; this exception also makes it
23 possible to release a modified version which carries forward this
24 exception.
25
8a523922
UD
26 The GNU C Library is distributed in the hope that it will be useful,
27 but WITHOUT ANY WARRANTY; without even the implied warranty of
28 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
41bdb6e2 29 Lesser General Public License for more details.
8a523922 30
41bdb6e2 31 You should have received a copy of the GNU Lesser General Public
59ba27a6
PE
32 License along with the GNU C Library; if not, see
33 <http://www.gnu.org/licenses/>. */
28f540f4 34
ff9bef7f 35#include <sys/stat.h>
28f540f4 36
c43b8c4b
RM
37/* This definition is only used if inlining fails for this function; see
38 the last page of <sys/stat.h>. The real work is done by the `x'
39 function which is passed a version number argument. We arrange in the
40 makefile that when not inlined this function is always statically
41 linked; that way a dynamically-linked executable always encodes the
42 version number corresponding to the data structures it uses, so the `x'
43 functions in the shared library can adapt without needing to recompile
44 all callers. */
d2f5be2a 45
cc3fa755 46#undef lstat
bdbf022d 47#undef __lstat
ff9bef7f 48int
11bf311e 49attribute_hidden
ff9bef7f
RM
50__lstat (const char *file, struct stat *buf)
51{
52 return __lxstat (_STAT_VER, file, buf);
53}
d2f5be2a 54
11bf311e 55weak_hidden_alias (__lstat, lstat)