mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 11:20:07 +00:00
2001-04-16 Roland McGrath <roland@frob.com>
* sysdeps/posix/euidaccess.c: Don't #include <limits.h> or try to define NGROUPS_MAX; we don't use it here.
This commit is contained in:
parent
8c4b05d02f
commit
cb21f24212
@ -1,5 +1,5 @@
|
|||||||
/* Check if effective user id can access file
|
/* Check if effective user id can access file
|
||||||
Copyright (C) 1990,91,95,96,97,98,99,2000 Free Software Foundation, Inc.
|
Copyright (C) 1990,91,95,96,97,98,99,2000,01 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -43,22 +43,11 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _POSIX_VERSION
|
#ifndef _POSIX_VERSION
|
||||||
#include <limits.h>
|
|
||||||
#if !defined(NGROUPS_MAX) || NGROUPS_MAX < 1
|
|
||||||
#undef NGROUPS_MAX
|
|
||||||
#define NGROUPS_MAX sysconf (_SC_NGROUPS_MAX)
|
|
||||||
#endif /* NGROUPS_MAX */
|
|
||||||
|
|
||||||
#else /* not _POSIX_VERSION */
|
|
||||||
uid_t getuid ();
|
uid_t getuid ();
|
||||||
gid_t getgid ();
|
gid_t getgid ();
|
||||||
uid_t geteuid ();
|
uid_t geteuid ();
|
||||||
gid_t getegid ();
|
gid_t getegid ();
|
||||||
#include <sys/param.h>
|
|
||||||
#if !defined(NGROUPS_MAX) && defined(NGROUPS)
|
|
||||||
#define NGROUPS_MAX NGROUPS
|
|
||||||
#endif /* not NGROUPS_MAX and NGROUPS */
|
|
||||||
#endif /* not POSIX_VERSION */
|
#endif /* not POSIX_VERSION */
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user