This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH roland/stub-lxstat64] Make stub lxstat64 call xstat64, like stub lxstat calls xstat.
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Thu, 1 Aug 2013 14:24:08 -0700 (PDT)
- Subject: [PATCH roland/stub-lxstat64] Make stub lxstat64 call xstat64, like stub lxstat calls xstat.
I'm refraining from committing this directly just for pro forma freeze
policy. It does not actually affect any configuration being built today.
I'll commit it as soon as the release branch is cut.
Thanks,
Roland
2013-08-01 Roland McGrath <roland@hack.frob.com>
* io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
--- a/io/lxstat64.c
+++ b/io/lxstat64.c
@@ -1,4 +1,5 @@
-/* Copyright (C) 1991-2013 Free Software Foundation, Inc.
+/* lxstat64 -- get file metadata, not following symlinks. Stub version.
+ Copyright (C) 1991-2013 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -24,14 +25,6 @@
int
__lxstat64 (int vers, const char *file, struct stat64 *buf)
{
- if (vers != _STAT_VER || file == NULL || buf == NULL)
- {
- __set_errno (EINVAL);
- return -1;
- }
-
- __set_errno (ENOSYS);
- return -1;
+ return __xstat64 (vers, file, buf);
}
hidden_def (__lxstat64)
-stub_warning (__lxstat64)