home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Source Code 1992 March
/
Source_Code_CD-ROM_Walnut_Creek_March_1992.iso
/
usenet
/
altsrcs
/
1
/
1350
/
pwd.h
< prev
next >
Wrap
C/C++ Source or Header
|
1990-12-28
|
1KB
|
35 lines
/*
* pwd.h: password function header file
*
* Stephen C. Trier
* March 26, 1990
*
* This is the header file for my family of password-file functions
* for MS-DOS. I based these functions on information available in
* our library; I do not have access to any restricted source code.
* Therefore, these functions are in the public domain.
*
* This implementation of getpwent() and friends should be pretty
* much compatible with the BSD implementation. Some little-used
* features may have been omitted, but you've got the source and
* you are welcome to add whatever features you need.
*
*/
struct passwd {
char pw_name[12];
char pw_passwd[12];
int pw_uid;
int pw_gid;
char pw_gecos[80];
char pw_dir[80];
char pw_shell[80];
} ;
struct passwd *getpwent(void);
struct passwd *getpwuid(int id);
struct passwd *getpwnam(char *nam);
int setpwent(void);
int endpwent(void);
int pw_openfile(char *name); /* Specify a filename to use for password file */