filename | test/include/grp.h |
changeset | 185:6755a04c447f |
author | nkeynes |
date | Tue Jan 06 01:58:08 2009 +0000 (15 years ago) |
branch | lxdream-mem |
permissions | -rw-r--r-- |
last change | Fully integrate SQ with the new address space code - added additional 'prefetch' memory accessor. TLB is utterly untested, but non-TLB at least still works. |
file | annotate | diff | log | raw |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +00001.2 +++ b/test/include/grp.h Tue Jan 06 01:58:08 2009 +00001.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, 19931.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 licensed1.11 + * to the University of California by American Telephone and Telegraph1.12 + * Co. or Unix System Laboratories, Inc. and are reproduced herein with1.13 + * the permission of UNIX System Laboratories, Inc.1.14 + *1.15 + * Redistribution and use in source and binary forms, with or without1.16 + * modification, are permitted provided that the following conditions1.17 + * are met:1.18 + * 1. Redistributions of source code must retain the above copyright1.19 + * notice, this list of conditions and the following disclaimer.1.20 + * 2. Redistributions in binary form must reproduce the above copyright1.21 + * notice, this list of conditions and the following disclaimer in the1.22 + * documentation and/or other materials provided with the distribution.1.23 + * 3. All advertising materials mentioning features or use of this software1.24 + * must display the following acknowledgement:1.25 + * This product includes software developed by the University of1.26 + * California, Berkeley and its contributors.1.27 + * 4. Neither the name of the University nor the names of its contributors1.28 + * may be used to endorse or promote products derived from this software1.29 + * without specific prior written permission.1.30 + *1.31 + * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND1.32 + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE1.33 + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE1.34 + * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE1.35 + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL1.36 + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS1.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, STRICT1.39 + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY1.40 + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF1.41 + * SUCH DAMAGE.1.42 + *1.43 + * @(#)grp.h 8.2 (Berkeley) 1/21/941.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 +#endif1.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 __cplusplus1.64 +extern "C" {1.65 +#endif1.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_SOURCE1.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_SOURCE1.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 __cplusplus1.85 +}1.86 +#endif1.87 +1.88 +#endif /* !_GRP_H_ */
.