|
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) ![]() |
#include <time.h>

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) |
| 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 filterthru | ( | char ** | argv, |
| char ** | env, | ||
| int * | read_fd, | ||
| int * | write_fd, | ||
| int * | error_fd, | ||
| pid_t * | pidp | ||
| ) |
Definition at line 94 of file misc.c.
References CHILD_ERROR_TO_PARENT, CHILD_ERROR_TO_PARENT, CHILD_FROM_PARENT, CHILD_FROM_PARENT, CHILD_TO_PARENT, CHILD_TO_PARENT, environ, log_err, log_err, log_err, log_err, log_err, log_msg, log_msg, log_msg, log_test, PARENT_ERROR_FROM_CHILD, PARENT_ERROR_FROM_CHILD, PARENT_ERROR_FROM_CHILD, PARENT_FROM_CHILD, PARENT_FROM_CHILD, PARENT_FROM_CHILD, PARENT_TO_CHILD, PARENT_TO_CHILD, and PARENT_TO_CHILD.
| int load_file | ( | char * | path, |
| char ** | buf, | ||
| size_t * | size | ||
| ) |
Definition at line 34 of file misc.c.
References Ds::buf, ds_errmsg, ds_errmsg, ds_free(), ds_load_file(), and log_msg.
Referenced by dacsauth_main(), dacsauth_main(), dacsemail_main(), dacsemail_main(), dacsexpr_main(), dacskey_main(), dacskey_main(), main(), show_license(), and transform().
| char* make_approx_relative_date | ( | time_t | rel_secs) |
Definition at line 537 of file misc.c.
References ds_xprintf(), ds_xprintf(), ds_xprintf(), ds_xprintf(), ds_xprintf(), ds_xprintf(), ds_xprintf(), n, NDAYS, NHOURS, NMINUTES, NMONTHS, NWEEKS, and NYEARS.
Referenced by dacsregister_main(), dacsregister_main(), main(), and main().
| 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 | ||
| ) |
Definition at line 370 of file misc.c.
References malloc().
Referenced by auth_grid_html(), auth_grid_text(), dacs_init(), dacscookie_main(), dacsregister_main(), log_format(), main(), main(), and main().
| 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_short_local_date_string | ( | struct tm * | tm) |
Definition at line 468 of file misc.c.
References malloc().
Referenced by crypt_keys_create(), dacskey_main(), make_json_dacs_current_credentials(), make_json_dacs_current_credentials(), make_xml_dacs_current_credentials(), make_xml_dacs_current_credentials(), and transform().
| 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().
| int utc_date_string_to_secs | ( | time_t * | secs, |
| char * | date | ||
| ) |
Definition at line 758 of file misc.c.
References free(), log_msg, log_msg, log_msg, malloc(), and strdup.
Referenced by dacs_apply_deltas(), dacs_apply_deltas(), dacscookie_main(), make_credentials_from_ident(), and parse_ident_string().