From: Roland McGrath Date: Fri, 6 Jan 2006 11:22:10 +0000 (+0000) Subject: * io/euidaccess.c: Add eaccess as an alias. X-Git-Tag: upstream/2.30~15964 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cb483e04aa9d67368c6e11cddf6d58fc0c80713e;p=external%2Fglibc.git * io/euidaccess.c: Add eaccess as an alias. * sysdeps/mach/hurd/euidaccess.c: Likewise. * sysdeps/posix/euidaccess.c: Likewise. * posix/unistd.h [__USE_GNU]: Declare eaccess. * io/Versions (libc: GLIBC_2.4): Add eaccess. --- diff --git a/ChangeLog b/ChangeLog index b016443..7e8c140 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-01-06 Roland McGrath + + * io/euidaccess.c: Add eaccess as an alias. + * sysdeps/mach/hurd/euidaccess.c: Likewise. + * sysdeps/posix/euidaccess.c: Likewise. + * posix/unistd.h [__USE_GNU]: Declare eaccess. + * io/Versions (libc: GLIBC_2.4): Add eaccess. + 2005-12-04 Joseph S. Myers * soft-fp/Makefile (gcc-single-routines): Add unordsf2, diff --git a/io/Versions b/io/Versions index 8cb1abd..823f8f2 100644 --- a/io/Versions +++ b/io/Versions @@ -98,6 +98,8 @@ libc { nftw; nftw64; } GLIBC_2.4 { + eaccess; + fchmodat; fchownat; __fxstatat; __fxstatat64; diff --git a/io/euidaccess.c b/io/euidaccess.c index 028fe90..943f1f7 100644 --- a/io/euidaccess.c +++ b/io/euidaccess.c @@ -1,5 +1,5 @@ /* Test for access to FILE using effective UID and GID. Stub version. - Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc. + Copyright (C) 1991,1995,1996,1997,2006 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 @@ -36,5 +36,7 @@ __euidaccess (file, type) return -1; } weak_alias (__euidaccess, euidaccess) +weak_alias (__euidaccess, eaccess) stub_warning (euidaccess) +stub_warning (eaccess) #include diff --git a/posix/unistd.h b/posix/unistd.h index 480de5e..1bf843c 100644 --- a/posix/unistd.h +++ b/posix/unistd.h @@ -260,6 +260,10 @@ extern int access (__const char *__name, int __type) __THROW __nonnull ((1)); (as normal file operations use). */ extern int euidaccess (__const char *__name, int __type) __THROW __nonnull ((1)); + +/* An alias for `euidaccess', used by some other systems. */ +extern int eaccess (__const char *__name, int __type) + __THROW __nonnull ((1)); #endif diff --git a/sysdeps/mach/hurd/euidaccess.c b/sysdeps/mach/hurd/euidaccess.c index 4e72e2a..57f2a01 100644 --- a/sysdeps/mach/hurd/euidaccess.c +++ b/sysdeps/mach/hurd/euidaccess.c @@ -1,5 +1,5 @@ /* Test for access to FILE using effective UID and GID. Hurd version. - Copyright (C) 1991, 1995, 1997 Free Software Foundation, Inc. + Copyright (C) 1991, 1995, 1997, 2006 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 @@ -57,3 +57,4 @@ __euidaccess (file, type) return 0; } weak_alias (__euidaccess, euidaccess) +weak_alias (__euidaccess, eaccess) diff --git a/sysdeps/posix/euidaccess.c b/sysdeps/posix/euidaccess.c index 5464bfb..76a09d4 100644 --- a/sysdeps/posix/euidaccess.c +++ b/sysdeps/posix/euidaccess.c @@ -183,8 +183,10 @@ euidaccess (path, mode) return -1; } #undef euidaccess +#undef eaccess #ifdef weak_alias weak_alias (__euidaccess, euidaccess) +weak_alias (__euidaccess, eaccess) #endif #ifdef TEST