DataMuseum.dk

Presents historical artifacts from the history of:

RC9000

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about RC9000

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: @ T p

⟦5a677d215⟧ TextFile

    Length: 732 (0x2dc)
    Types: TextFile
    Notes: @(#)pwserv.h 13.1 (RC International) 91/02/01  */
    Names: »pwserv.h«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦c6f24efe5⟧ »0007« 
        └─⟦this⟧ »comp3.0/bsd/usr/include/pwserv.h« 

TextFile

/*	@(#)pwserv.h	13.1 (RC International) 91/02/01 	*/

/*
 * getpwent() <=> pwserv message formats
 */

/*
 * Message formats
 */
enum	pwreq	{ PWSERV_NEXT, PWSERV_UID, PWSERV_NAME, PWSERV_RESTART };
struct	pwserv_req
{
	int		pid;		/* requestor pid (key for resp) */
	enum pwreq	req;
	union
	{
	    int		entry;		/* entry in pwd file, init. 0 */
	    int		uid;
	    char	name[16];
	} u;
};

struct	pwserv_resp
{
	int		eof;
	char		name[16];
	char		passwd[16];
	int		uid;
	int		gid;
	char		gecos[80];
	char		dir[80];
	char		shell[64];
};

#define	PWREQNODE	"/%s/dev/passwd.req"	/* %s => puname */
#define	PWRESNODE	"/%s/dev/passwd.res"	/* %s => puname */
#define	PWFILE		"/etc/passwd"
#define	PWREQ_KEY	0x7fffffff		/* not a legal pid */