|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: @ T p
Length: 1183 (0x49f)
Types: TextFile
Notes: @(#)pwserv.h 13.3 (RC International) 91/12/20 */
Names: »pwserv.h«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/include/pwserv.h«
/* @(#)pwserv.h 13.3 (RC International) 91/12/20 */
/*
* getpwent() and getspent() <=> pwserv message formats
*/
/*
* Message formats
*/
enum pwreq { PWSERV_NEXT, PWSERV_UID, PWSERV_NAME,
PWSERV_RESTART, PWSERV_DUMMY,
SPSERV_NEXT, SPSERV_NAME, PWSERV_S_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];
};
struct spserv_resp
{
int eof;
char name[16];
char passwd[16];
long sp_lstchg;
long sp_min;
long sp_max;
long sp_warn;
long sp_inact;
long sp_expire;
unsigned long sp_flag;
};
#define PWREQNODE "/%s/dev/passwd.req" /* %s => puname */
#define PWRESNODE "/%s/dev/passwd.res" /* %s => puname */
#define PWFILE "/etc/passwd"
#define SPREQNODE "/%s/dev/shadow.req" /* %s => puname */
#define SPRESNODE "/%s/dev/shadow.res" /* %s => puname */
#define SPFILE "/etc/shaddow"
#define PWREQ_KEY 0x7fffffff /* not a legal pid */
#define SPREQ_KEY PWREQ_KEY