pwd.h File Reference

API published in:
API deprecated in:


#include <sys/cdefs.h>
#include <sys/_types.h>

Go to the source code of this file.


Data Structures

struct   passwd

Defines

#define  _PATH_PWD   "/etc"
#define  _PATH_PASSWD   "/etc/passwd"
#define  _PASSWD   "passwd"
#define  _PATH_MASTERPASSWD   "/etc/master.passwd"
#define  _MASTERPASSWD   "master.passwd"
#define  _PATH_MP_DB   "/etc/pwd.db"
#define  _MP_DB   "pwd.db"
#define  _PATH_SMP_DB   "/etc/spwd.db"
#define  _SMP_DB   "spwd.db"
#define  _PATH_PWD_MKDB   "/usr/sbin/pwd_mkdb"
#define  _PW_VERSION_MASK   '\xF0'
#define  _PW_VERSIONED(x, v)   ((unsigned char)(((x) & 0xCF) | ((v)<<4)))
#define  _PW_KEYBYNAME   '\x31'
#define  _PW_KEYBYNUM   '\x32'
#define  _PW_KEYBYUID   '\x33'
#define  _PW_KEYYPENABLED   '\x34'
#define  _PW_KEYYPBYNUM   '\x35'
#define  _PWD_VERSION_KEY   "\xFF" "VERSION"
#define  _PWD_CURRENT_VERSION   '\x04'
#define  _PASSWORD_EFMT1   '_'
#define  _PASSWORD_LEN   128
#define  _PWF(x)   (1 << x)
#define  _PWF_NAME   _PWF(0)
#define  _PWF_PASSWD   _PWF(1)
#define  _PWF_UID   _PWF(2)
#define  _PWF_GID   _PWF(3)
#define  _PWF_CHANGE   _PWF(4)
#define  _PWF_CLASS   _PWF(5)
#define  _PWF_GECOS   _PWF(6)
#define  _PWF_DIR   _PWF(7)
#define  _PWF_SHELL   _PWF(8)
#define  _PWF_EXPIRE   _PWF(9)
#define  _PWF_SOURCE   0x3000
#define  _PWF_FILES   0x1000
#define  _PWF_NIS   0x2000
#define  _PWF_HESIOD   0x3000

Typedefs

typedef __gid_t  gid_t
typedef __time_t  time_t
typedef __uid_t  uid_t
typedef __size_t  size_t

Functions

__BEGIN_DECLS IMPORT_C struct
passwd
getpwnam (const char *)
IMPORT_C struct passwd getpwuid (uid_t)

Define Documentation

#define _MASTERPASSWD   "master.passwd"
 
#define _MP_DB   "pwd.db"
 
#define _PASSWD   "passwd"
 
#define _PASSWORD_EFMT1   '_'
 
#define _PASSWORD_LEN   128
 
#define _PATH_MASTERPASSWD   "/etc/master.passwd"
 
#define _PATH_MP_DB   "/etc/pwd.db"
 
#define _PATH_PASSWD   "/etc/passwd"
 
#define _PATH_PWD   "/etc"
 
#define _PATH_PWD_MKDB   "/usr/sbin/pwd_mkdb"
 
#define _PATH_SMP_DB   "/etc/spwd.db"
 
#define _PW_KEYBYNAME   '\x31'
 
#define _PW_KEYBYNUM   '\x32'
 
#define _PW_KEYBYUID   '\x33'
 
#define _PW_KEYYPBYNUM   '\x35'
 
#define _PW_KEYYPENABLED   '\x34'
 
#define _PW_VERSION_MASK   '\xF0'
 
#define _PW_VERSIONED x,
 )     ((unsigned char)(((x) & 0xCF) | ((v)<<4)))
 
#define _PWD_CURRENT_VERSION   '\x04'
 
#define _PWD_VERSION_KEY   "\xFF" "VERSION"
 
#define _PWF  )     (1 << x)
 
#define _PWF_CHANGE   _PWF(4)
 
#define _PWF_CLASS   _PWF(5)
 
#define _PWF_DIR   _PWF(7)
 
#define _PWF_EXPIRE   _PWF(9)
 
#define _PWF_FILES   0x1000
 
#define _PWF_GECOS   _PWF(6)
 
#define _PWF_GID   _PWF(3)
 
#define _PWF_HESIOD   0x3000
 
#define _PWF_NAME   _PWF(0)
 
#define _PWF_NIS   0x2000
 
#define _PWF_PASSWD   _PWF(1)
 
#define _PWF_SHELL   _PWF(8)
 
#define _PWF_SOURCE   0x3000
 
#define _PWF_UID   _PWF(2)
 
#define _SMP_DB   "spwd.db"
 

Typedef Documentation

typedef __gid_t gid_t
 
typedef __size_t size_t
 
typedef __time_t time_t
 
typedef __uid_t uid_t
 

Function Documentation

__BEGIN_DECLS IMPORT_C struct passwd* getpwnam const char *   ) 
 
IMPORT_C struct passwd* getpwuid uid_t   ) 
 

Copyright © Nokia Corporation 2001-2008
Back to top