annotate lib/group-member.h @ 6587:453776fca04b

Work around porting bugs reported by Dieter in <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>. * lib/getopt.c (_NOPROTO): Remove; no longer needed. Include <stdlib.h> and <unistd.h> in all environments; it's safe now. Include "getopt.h" first, to check interface. (getenv): Declare only if defined HAVE_DECL_GETENV && !HAVE_DECL_GETENV. * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype. (__strndup): Revert to K&R-style function dfns, the glibc style. * lib/strnlen.c: Don't claim it's taken from glibc; it's not. (strnlen, __strnlen): Remove #defines and #undefs; not needed. Include strnlen.h first, to get prototype properly. (strnlen): Renamed from __strnlen. Remove weak alias. * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
author Paul Eggert <eggert@cs.ucla.edu>
date Tue, 24 Jan 2006 07:40:58 +0000
parents a48fb0e98c8c
children bbbbbf4cd1c5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4397
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1186
diff changeset
1 /* Determine whether group id is in calling user's group list.
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1186
diff changeset
2
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1186
diff changeset
3 Copyright (C) 1994, 1997, 2003 Free Software Foundation, Inc.
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1186
diff changeset
4
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1186
diff changeset
5 This program is free software; you can redistribute it and/or modify
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1186
diff changeset
6 it under the terms of the GNU General Public License as published by
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1186
diff changeset
7 the Free Software Foundation; either version 2, or (at your option)
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1186
diff changeset
8 any later version.
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1186
diff changeset
9
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1186
diff changeset
10 This program is distributed in the hope that it will be useful,
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1186
diff changeset
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1186
diff changeset
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1186
diff changeset
13 GNU General Public License for more details.
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1186
diff changeset
14
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1186
diff changeset
15 You should have received a copy of the GNU General Public License
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1186
diff changeset
16 along with this program; if not, write to the Free Software Foundation,
5848
a48fb0e98c8c *** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents: 4657
diff changeset
17 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
4397
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1186
diff changeset
18
767
Jim Meyering <jim@meyering.net>
parents: 766
diff changeset
19 #ifndef GROUP_MEMBER_H_
Jim Meyering <jim@meyering.net>
parents: 766
diff changeset
20 # define GROUP_MEMBER_H_ 1
241
Jim Meyering <jim@meyering.net>
parents:
diff changeset
21
4657
551632549a7b Include <sys/types.h>, so that it's self-contained.
Paul Eggert <eggert@cs.ucla.edu>
parents: 4397
diff changeset
22 # include <sys/types.h>
551632549a7b Include <sys/types.h>, so that it's self-contained.
Paul Eggert <eggert@cs.ucla.edu>
parents: 4397
diff changeset
23
4397
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1186
diff changeset
24 int group_member (gid_t);
241
Jim Meyering <jim@meyering.net>
parents:
diff changeset
25
767
Jim Meyering <jim@meyering.net>
parents: 766
diff changeset
26 #endif /* GROUP_MEMBER_H_ */