Search
lxdream.org :: lxdream/test/include/grp.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename test/include/grp.h
changeset 185:6755a04c447f
author nkeynes
date Sat Jan 06 04:06:36 2007 +0000 (17 years ago)
permissions -rw-r--r--
last change Implement event queue.
Fix pvr2 timing (yes, again).
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/test/include/grp.h Sat Jan 06 04:06:36 2007 +0000
1.3 @@ -0,0 +1,85 @@
1.4 +/* $NetBSD: grp.h,v 1.7 1995/04/29 05:30:40 cgd Exp $ */
1.5 +
1.6 +/*-
1.7 + * Copyright (c) 1989, 1993
1.8 + * The Regents of the University of California. All rights reserved.
1.9 + * (c) UNIX System Laboratories, Inc.
1.10 + * All or some portions of this file are derived from material licensed
1.11 + * to the University of California by American Telephone and Telegraph
1.12 + * Co. or Unix System Laboratories, Inc. and are reproduced herein with
1.13 + * the permission of UNIX System Laboratories, Inc.
1.14 + *
1.15 + * Redistribution and use in source and binary forms, with or without
1.16 + * modification, are permitted provided that the following conditions
1.17 + * are met:
1.18 + * 1. Redistributions of source code must retain the above copyright
1.19 + * notice, this list of conditions and the following disclaimer.
1.20 + * 2. Redistributions in binary form must reproduce the above copyright
1.21 + * notice, this list of conditions and the following disclaimer in the
1.22 + * documentation and/or other materials provided with the distribution.
1.23 + * 3. All advertising materials mentioning features or use of this software
1.24 + * must display the following acknowledgement:
1.25 + * This product includes software developed by the University of
1.26 + * California, Berkeley and its contributors.
1.27 + * 4. Neither the name of the University nor the names of its contributors
1.28 + * may be used to endorse or promote products derived from this software
1.29 + * without specific prior written permission.
1.30 + *
1.31 + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
1.32 + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1.33 + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1.34 + * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
1.35 + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1.36 + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
1.37 + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
1.38 + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
1.39 + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
1.40 + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
1.41 + * SUCH DAMAGE.
1.42 + *
1.43 + * @(#)grp.h 8.2 (Berkeley) 1/21/94
1.44 + */
1.45 +
1.46 +#ifndef _GRP_H_
1.47 +#define _GRP_H_
1.48 +
1.49 +#include <sys/types.h>
1.50 +
1.51 +#if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)
1.52 +#define _PATH_GROUP "/etc/group"
1.53 +#endif
1.54 +
1.55 +struct group {
1.56 + char *gr_name; /* group name */
1.57 + char *gr_passwd; /* group password */
1.58 + gid_t gr_gid; /* group id */
1.59 + char **gr_mem; /* group members */
1.60 +};
1.61 +
1.62 +
1.63 +#ifdef __cplusplus
1.64 +extern "C" {
1.65 +#endif
1.66 +
1.67 +struct group *getgrgid (gid_t);
1.68 +struct group *getgrnam (const char *);
1.69 +int getgrnam_r (const char *, struct group *,
1.70 + char *, size_t, struct group **);
1.71 +int getgrgid_r (gid_t, struct group *,
1.72 + char *, size_t, struct group **);
1.73 +#ifndef _POSIX_SOURCE
1.74 +struct group *getgrent (void);
1.75 +void setgrent (void);
1.76 +void endgrent (void);
1.77 +void setgrfile (const char *);
1.78 +#ifndef _XOPEN_SOURCE
1.79 +char *group_from_gid (gid_t, int);
1.80 +int setgroupent (int);
1.81 +#endif /* !_XOPEN_SOURCE */
1.82 +#endif /* !_POSIX_SOURCE */
1.83 +
1.84 +#ifdef __cplusplus
1.85 +}
1.86 +#endif
1.87 +
1.88 +#endif /* !_GRP_H_ */
.