/* euidaccess -- check if effective user id can access file
- Copyright (C) 1990, 1991, 1995 Free Software Foundation, Inc.
+ Copyright (C) 1990, 1991, 1995, 1998 Free Software Foundation, Inc.
This file is part of the GNU C Library.
You should have received a copy of the GNU Library General Public
License along with the GNU C Library; see the file COPYING.LIB. If
-not, write to the Free Software Foundation, Inc., 675 Mass Ave,
-Cambridge, MA 02139, USA. */
+not, write to the Free Software Foundation, Inc., 59 Temple Place -
+Suite 330, Boston, MA 02111-1307, USA. */
/* Written by David MacKenzie and Torbjorn Granlund.
Adapted for GNU C library by Roland McGrath. */
-#ifdef HAVE_CONFIG_H
+#if HAVE_CONFIG_H
# include <config.h>
#endif
/* Nonzero if UID, GID, EUID, and EGID have valid values. */
static int have_ids = 0;
-# ifdef HAVE_GETGROUPS
+# if HAVE_GETGROUPS
int group_member ();
# else
# define group_member(gid) 0
filesystem, text busy, etc. */
int
-euidaccess (path, mode)
- const char *path;
- int mode;
+euidaccess (const char *path, int mode)
{
struct stat stats;
int granted;