filename | test/include/grp.h |
changeset | 185:6755a04c447f |
author | nkeynes |
date | Fri Feb 08 00:06:56 2008 +0000 (16 years ago) |
permissions | -rw-r--r-- |
last change | Fix LDS/STS to FPUL/FPSCR to check the FPU disabled bit. Fixes the linux 2.4.0-test8 kernel boot (this wasn't exactly very well documented in the original manual) |
file | annotate | diff | log | raw |
nkeynes@185 | 1 | /* $NetBSD: grp.h,v 1.7 1995/04/29 05:30:40 cgd Exp $ */ |
nkeynes@185 | 2 | |
nkeynes@185 | 3 | /*- |
nkeynes@185 | 4 | * Copyright (c) 1989, 1993 |
nkeynes@185 | 5 | * The Regents of the University of California. All rights reserved. |
nkeynes@185 | 6 | * (c) UNIX System Laboratories, Inc. |
nkeynes@185 | 7 | * All or some portions of this file are derived from material licensed |
nkeynes@185 | 8 | * to the University of California by American Telephone and Telegraph |
nkeynes@185 | 9 | * Co. or Unix System Laboratories, Inc. and are reproduced herein with |
nkeynes@185 | 10 | * the permission of UNIX System Laboratories, Inc. |
nkeynes@185 | 11 | * |
nkeynes@185 | 12 | * Redistribution and use in source and binary forms, with or without |
nkeynes@185 | 13 | * modification, are permitted provided that the following conditions |
nkeynes@185 | 14 | * are met: |
nkeynes@185 | 15 | * 1. Redistributions of source code must retain the above copyright |
nkeynes@185 | 16 | * notice, this list of conditions and the following disclaimer. |
nkeynes@185 | 17 | * 2. Redistributions in binary form must reproduce the above copyright |
nkeynes@185 | 18 | * notice, this list of conditions and the following disclaimer in the |
nkeynes@185 | 19 | * documentation and/or other materials provided with the distribution. |
nkeynes@185 | 20 | * 3. All advertising materials mentioning features or use of this software |
nkeynes@185 | 21 | * must display the following acknowledgement: |
nkeynes@185 | 22 | * This product includes software developed by the University of |
nkeynes@185 | 23 | * California, Berkeley and its contributors. |
nkeynes@185 | 24 | * 4. Neither the name of the University nor the names of its contributors |
nkeynes@185 | 25 | * may be used to endorse or promote products derived from this software |
nkeynes@185 | 26 | * without specific prior written permission. |
nkeynes@185 | 27 | * |
nkeynes@185 | 28 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND |
nkeynes@185 | 29 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
nkeynes@185 | 30 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
nkeynes@185 | 31 | * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE |
nkeynes@185 | 32 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
nkeynes@185 | 33 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
nkeynes@185 | 34 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
nkeynes@185 | 35 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
nkeynes@185 | 36 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
nkeynes@185 | 37 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
nkeynes@185 | 38 | * SUCH DAMAGE. |
nkeynes@185 | 39 | * |
nkeynes@185 | 40 | * @(#)grp.h 8.2 (Berkeley) 1/21/94 |
nkeynes@185 | 41 | */ |
nkeynes@185 | 42 | |
nkeynes@185 | 43 | #ifndef _GRP_H_ |
nkeynes@185 | 44 | #define _GRP_H_ |
nkeynes@185 | 45 | |
nkeynes@185 | 46 | #include <sys/types.h> |
nkeynes@185 | 47 | |
nkeynes@185 | 48 | #if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE) |
nkeynes@185 | 49 | #define _PATH_GROUP "/etc/group" |
nkeynes@185 | 50 | #endif |
nkeynes@185 | 51 | |
nkeynes@185 | 52 | struct group { |
nkeynes@185 | 53 | char *gr_name; /* group name */ |
nkeynes@185 | 54 | char *gr_passwd; /* group password */ |
nkeynes@185 | 55 | gid_t gr_gid; /* group id */ |
nkeynes@185 | 56 | char **gr_mem; /* group members */ |
nkeynes@185 | 57 | }; |
nkeynes@185 | 58 | |
nkeynes@185 | 59 | |
nkeynes@185 | 60 | #ifdef __cplusplus |
nkeynes@185 | 61 | extern "C" { |
nkeynes@185 | 62 | #endif |
nkeynes@185 | 63 | |
nkeynes@185 | 64 | struct group *getgrgid (gid_t); |
nkeynes@185 | 65 | struct group *getgrnam (const char *); |
nkeynes@185 | 66 | int getgrnam_r (const char *, struct group *, |
nkeynes@185 | 67 | char *, size_t, struct group **); |
nkeynes@185 | 68 | int getgrgid_r (gid_t, struct group *, |
nkeynes@185 | 69 | char *, size_t, struct group **); |
nkeynes@185 | 70 | #ifndef _POSIX_SOURCE |
nkeynes@185 | 71 | struct group *getgrent (void); |
nkeynes@185 | 72 | void setgrent (void); |
nkeynes@185 | 73 | void endgrent (void); |
nkeynes@185 | 74 | void setgrfile (const char *); |
nkeynes@185 | 75 | #ifndef _XOPEN_SOURCE |
nkeynes@185 | 76 | char *group_from_gid (gid_t, int); |
nkeynes@185 | 77 | int setgroupent (int); |
nkeynes@185 | 78 | #endif /* !_XOPEN_SOURCE */ |
nkeynes@185 | 79 | #endif /* !_POSIX_SOURCE */ |
nkeynes@185 | 80 | |
nkeynes@185 | 81 | #ifdef __cplusplus |
nkeynes@185 | 82 | } |
nkeynes@185 | 83 | #endif |
nkeynes@185 | 84 | |
nkeynes@185 | 85 | #endif /* !_GRP_H_ */ |
.