don't bother resolving onbld python module deps
[unleashed.git] / include / pwd.h
blobc8e6337d23507c2dcbb1788bc985a5f3e5c0cda5
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
20 * CDDL HEADER END
22 /* Copyright (c) 1988 AT&T */
23 /* All Rights Reserved */
27 * Copyright 2014 Garrett D'Amore <garrett@damore.org>
29 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
30 * Use is subject to license terms.
33 #ifndef _PWD_H
34 #define _PWD_H
36 #include <sys/feature_tests.h>
38 #include <sys/types.h>
40 #if !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__)
41 #include <stdio.h>
42 #endif
44 #ifdef __cplusplus
45 extern "C" {
46 #endif
48 struct passwd {
49 char *pw_name;
50 char *pw_passwd;
51 uid_t pw_uid;
52 gid_t pw_gid;
53 char *pw_age;
54 char *pw_comment;
55 char *pw_gecos;
56 char *pw_dir;
57 char *pw_shell;
60 #if !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__)
61 struct comment {
62 char *c_dept;
63 char *c_name;
64 char *c_acct;
65 char *c_bin;
67 #endif /* !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__) */
69 extern struct passwd *getpwuid(uid_t); /* MT-unsafe */
70 extern struct passwd *getpwnam(const char *); /* MT-unsafe */
72 #if !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__)
73 extern int putpwent(const struct passwd *, FILE *);
74 #endif /* !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__) */
76 #if !defined(__XOPEN_OR_POSIX) || defined(_XPG4_2) || \
77 defined(__EXTENSIONS__)
78 extern void endpwent(void);
79 extern struct passwd *getpwent(void); /* MT-unsafe */
80 extern void setpwent(void);
81 #endif /* !defined(__XOPEN_OR_POSIX) || defined(_XPG4_2) ... */
83 extern int getpwuid_r(uid_t, struct passwd *, char *, size_t,
84 struct passwd **);
85 extern int getpwnam_r(const char *, struct passwd *, char *,
86 size_t, struct passwd **);
88 #ifdef __cplusplus
90 #endif
92 #endif /* _PWD_H */