Back to index

lightning-sunbird  0.9+nobinonly
Defines
libc_r.h File Reference
#include <crypt.h>

Go to the source code of this file.

Defines

#define R_STRTOK_INIT_R()   char *r_strtok_r=NULL
#define R_STRTOK_R(return, source, delim)
#define R_STRTOK_NORET_R(source, delim)   strtok_r(source,delim,&r_strtok_r)
#define R_MAX_STRERROR_LEN_R   8192 /* Straight from limits.h */
#define R_STRERROR_INIT_R()   char r_strerror_r[R_MAX_STRERROR_LEN_R]
#define R_STRERROR_R(val)   strerror_r(val,r_strerror_r,R_MAX_STRERROR_LEN_R)
#define R_ASCTIME_INIT_R()   char r_asctime_r[26]
#define R_ASCTIME_R(val)   asctime_r(val,r_asctime_r)
#define R_CTIME_INIT_R()   char r_ctime_r[26]
#define R_CTIME_R(val)   ctime_r(val,r_ctime_r)
#define R_GMTIME_INIT_R()   struct tm r_gmtime_r
#define R_GMTIME_R(time)   gmtime_r(time,&r_gmtime_r)
#define R_LOCALTIME_INIT_R()   struct tm r_localtime_r
#define R_LOCALTIME_R(val)   localtime_r(val,&r_localtime_r)
#define R_CRYPT_INIT_R()
#define R_CRYPT_R(pass, salt)   crypt_r(pass,salt,&r_cryptd_r)
#define R_MAX_PW_LEN_R   1024
#define R_GETPWNAM_INIT_R(pw_ptr)
#define R_GETPWNAM_R(name)   getpwnam_r(name,&r_getpwnam_pw_r,r_getpwnam_line_r,R_MAX_PW_LEN_R)
#define R_GETHOSTBYADDR_INIT_R()
#define R_GETHOSTBYADDR_R(addr, len, type, xptr_ent)
#define R_GETHOSTBYNAME_INIT_R()
#define R_GETHOSTBYNAME_R(name, xptr_ent)

Define Documentation

#define R_ASCTIME_INIT_R ( )    char r_asctime_r[26]
#define R_ASCTIME_R (   val)    asctime_r(val,r_asctime_r)
Value:
CRYPTD r_cryptd_r; \
    bzero(&r_cryptd_r,sizeof(CRYPTD))
#define R_CRYPT_R (   pass,
  salt 
)    crypt_r(pass,salt,&r_cryptd_r)
#define R_CTIME_INIT_R ( )    char r_ctime_r[26]
#define R_CTIME_R (   val)    ctime_r(val,r_ctime_r)
Value:
struct hostent r_gethostbyaddr_r; \
    struct hostent_data r_gethostbyaddr_data_r
#define R_GETHOSTBYADDR_R (   addr,
  len,
  type,
  xptr_ent 
)
Value:
bzero(&r_gethostbyaddr_r,sizeof(struct hostent)); \
    bzero(&r_gethostbyaddr_data_r,sizeof(struct hostent_data)); \
    xptr_ent = &r_gethostbyaddr_r; \
    if (gethostbyaddr_r(addr,len,type, \
       &r_gethostbyaddr_r,&r_gethostbyaddr_data_r) == -1) { \
           xptr_ent = NULL; \
    }
Value:
struct hostent r_gethostbyname_r; \
    struct hostent_data r_gethostbyname_data_r
#define R_GETHOSTBYNAME_R (   name,
  xptr_ent 
)
Value:
bzero(&r_gethostbyname_r,sizeof(struct hostent)); \
    bzero(&r_gethostbyname_data_r,sizeof(struct hostent_data)); \
    xptr_ent = &r_gethostbyname_r; \
    if (gethostbyname_r(name, \
       &r_gethostbyname_r,&r_gethostbyname_data_r) == -1) { \
          xptr_ent = NULL; \
    }
#define R_GETPWNAM_INIT_R (   pw_ptr)
Value:
struct passwd r_getpwnam_pw_r; \
    char r_getpwnam_line_r[R_MAX_PW_LEN_R]; \
    pw_ptr = &r_getpwnam_pw_r
#define R_GETPWNAM_R (   name)    getpwnam_r(name,&r_getpwnam_pw_r,r_getpwnam_line_r,R_MAX_PW_LEN_R)
#define R_GMTIME_INIT_R ( )    struct tm r_gmtime_r
#define R_GMTIME_R (   time)    gmtime_r(time,&r_gmtime_r)
#define R_LOCALTIME_INIT_R ( )    struct tm r_localtime_r
#define R_LOCALTIME_R (   val)    localtime_r(val,&r_localtime_r)
#define R_MAX_PW_LEN_R   1024
#define R_MAX_STRERROR_LEN_R   8192 /* Straight from limits.h */
#define R_STRERROR_INIT_R ( )    char r_strerror_r[R_MAX_STRERROR_LEN_R]
#define R_STRERROR_R (   val)    strerror_r(val,r_strerror_r,R_MAX_STRERROR_LEN_R)
#define R_STRTOK_INIT_R ( )    char *r_strtok_r=NULL

Definition at line 57 of file libc_r.h.

#define R_STRTOK_NORET_R (   source,
  delim 
)    strtok_r(source,delim,&r_strtok_r)
#define R_STRTOK_R (   return,
  source,
  delim 
)

Definition at line 60 of file libc_r.h.