dacs  1.4.28
About: DACS (Distributed Access Control System) is a light-weight single sign-on and role-based access control system for web servers and server-based software.
  Fossies Dox: dacs-1.4.28b.tgz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
misc.h File Reference
#include <time.h>
Include dependency graph for misc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int load_file (char *path, char **buf, size_t *size)
 
int filterthru (char **argv, char **env, int *read_fd, int *write_fd, int *error_fd, pid_t *pidp)
 
char * make_rfc822_date_string (struct tm *tm, int yyyy, int use_gmt)
 
char * make_utc_date_string (struct tm *tm)
 
char * make_local_date_string (struct tm *tm, int show_zone)
 
char * make_short_local_date_string (struct tm *tm)
 
int utc_date_string_to_secs (time_t *secs, char *date)
 
char * make_datetime (struct tm *tm)
 
char * make_approx_relative_date (time_t rel_secs)
 
struct tm * parse_datetime (char *str, time_t *secs, char **endp)
 
char * tm_get_zone_name (struct tm *xtm)
 
long tm_get_gmtoff (struct tm *xtm)
 
char * escape_xml_attribute (char *str, int quote_char)
 

Function Documentation

char* escape_xml_attribute ( char *  str,
int  quote_char 
)

Definition at line 843 of file misc.c.

References ds_append(), ds_appendc(), ds_appendc(), ds_copyb(), and ds_init().

Referenced by emit_roles_reply_failed(), and kwv_xml_format().

int load_file ( char *  path,
char **  buf,
size_t *  size 
)
char* make_approx_relative_date ( time_t  rel_secs)
char* make_datetime ( struct tm *  tm)

Definition at line 497 of file misc.c.

References ds_xprintf(), tm_get_gmtoff(), and tm_get_gmtoff().

char* make_local_date_string ( struct tm *  tm,
int  show_zone 
)
char* make_rfc822_date_string ( struct tm *  tm,
int  yyyy,
int  use_gmt 
)

Definition at line 300 of file misc.c.

References malloc().

Referenced by email_finalize(), and short_local_date_string_to_rfc822().

char* make_utc_date_string ( struct tm *  tm)

Definition at line 346 of file misc.c.

References malloc().

Referenced by dacs_create_group(), and set_mod_date().

struct tm* parse_datetime ( char *  str,
time_t *  secs,
char **  endp 
)

Definition at line 590 of file misc.c.

References ds_xprintf(), ds_xprintf(), and malloc().

Referenced by main().

long tm_get_gmtoff ( struct tm *  xtm)

Definition at line 435 of file misc.c.

Referenced by make_datetime(), and make_datetime().

char* tm_get_zone_name ( struct tm *  xtm)

Definition at line 401 of file misc.c.

References strdup.

int utc_date_string_to_secs ( time_t *  secs,
char *  date 
)