File:  [MW Coherent from dump] / coherent / f / usr / include / pwd.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:40 2019 UTC (7 years, 2 months ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

/* (-lgl
 * 	COHERENT Version 3.0
 * 	Copyright (c) 1982, 1993 by Mark Williams Company.
 * 	All rights reserved. May not be copied without permission.
 -lgl) */

#ifndef	__PWD_H__
#define	__PWD_H__

#include <common/feature.h>
#include <common/ccompat.h>
#include <common/_uid.h>

#if	_SYSV4 || _SYSV3

struct	passwd {
	char	      *	pw_name;	/* User name */
	char	      *	__NON_POSIX (pw_passwd);
					/* Encrypted password */
#if	_SYSV4
	__uid_t		pw_uid;
	__gid_t		pw_gid;
#else
	int		pw_uid;		/* User id */
	int		pw_gid;		/* Group id */
#endif
	char	      *	__NON_POSIX (pw_age);
	char	      *	__NON_POSIX (pw_comment);
					/* Comments */
	char	      *	__NON_POSIX (pw_gecos);
					/* Gecos box number */
	char	      *	pw_dir;		/* Working directory */
	char	      *	pw_shell;	/* Shell */
};

#else	/* if ! _SYSV4 && ! _SYSV3 */

struct	passwd {
	char	      *	pw_name;	/* User name */
	char	      *	__NON_POSIX (pw_passwd);
					/* Encrypted password */
	int		pw_uid;		/* User id */
	int		pw_gid;		/* Group id */
	int		__NON_POSIX (pw_quota);
					/* FIle space quota */
	char	      *	__NON_POSIX (pw_comment);
					/* Comments */
	char	      *	__NON_POSIX (pw_gecos);
					/* Gecos box number */
	char	      *	pw_dir;		/* Working directory */
	char	      *	pw_shell;	/* Shell */
};

#endif	/* ! _SYSV4 && ! _SYSV3 */

__EXTERN_C_BEGIN__

struct passwd *	getpwnam	__PROTO ((__CONST__ char * _name));
struct passwd *	getpwuid	__PROTO ((__uid_t _uid));

#if	! _POSIX_SOURCE

struct passwd *	getpwent	__PROTO ((void));
int		setpwent	__PROTO ((void));
int		endpwent	__PROTO ((void));

#endif

__EXTERN_C_END__

#endif	/* ! defined (__PWD_H__) */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.