|
Kannel: Open Source WAP and SMS gateway
svn-r5336
|
#include <netdb.h>#include <time.h>Go to the source code of this file.
Macros | |
| #define | localtime(t) do_not_use_localtime_directly |
| #define | gmtime(t) do_not_use_gmtime_directly |
| #define | mktime(t) do_not_use_mktime_directly |
| #define | strftime(a, b, c, d) do_not_use_strftime_directly |
| #define | rand() do_not_use_rand_directly |
| #define | gethostbyname(a, b, c) do_not_use_gethostbyname_directly |
| #define | inet_ntoa(in) use_gw_netaddr_to_octstr_instead_of_inet_ntoa |
Functions | |
| void | gwlib_protected_init (void) |
| void | gwlib_protected_shutdown (void) |
| struct tm | gw_localtime (time_t t) |
| struct tm | gw_gmtime (time_t t) |
| time_t | gw_mktime (struct tm *tm) |
| int | gw_rand (void) |
| int | gw_gethostbyname (struct hostent *ret, const char *name, char **buff) |
| size_t | gw_strftime (char *s, size_t max, const char *format, const struct tm *tm) |
| #define gethostbyname | ( | a, | |
| b, | |||
| c | |||
| ) | do_not_use_gethostbyname_directly |
Definition at line 103 of file protected.h.
Referenced by gw_gethostbyname().
| #define gmtime | ( | t | ) | do_not_use_gmtime_directly |
Definition at line 91 of file protected.h.
Referenced by gw_gmtime().
| #define inet_ntoa | ( | in | ) | use_gw_netaddr_to_octstr_instead_of_inet_ntoa |
Definition at line 106 of file protected.h.
| #define localtime | ( | t | ) | do_not_use_localtime_directly |
Definition at line 88 of file protected.h.
Referenced by gw_localtime().
| #define mktime | ( | t | ) | do_not_use_mktime_directly |
Definition at line 94 of file protected.h.
Referenced by gw_mktime().
| #define rand | ( | ) | do_not_use_rand_directly |
Definition at line 100 of file protected.h.
Referenced by get_random_bytes(), get_random_fd(), and gw_rand().
| #define strftime | ( | a, | |
| b, | |||
| c, | |||
| d | |||
| ) | do_not_use_strftime_directly |
Definition at line 97 of file protected.h.
Referenced by gw_strftime().
| int gw_gethostbyname | ( | struct hostent * | ret, |
| const char * | name, | ||
| char ** | buff | ||
| ) |
Definition at line 248 of file protected.c.
References GETHOSTBYNAME, gethostbyname, lock(), MEMALIGN, name, and unlock().
Referenced by make_server_socket(), setup_official_name(), tcpip_connect_nb_to_server_with_port(), tcpip_connect_to_server_with_port(), udp_bind(), and udp_create_address().
| struct tm gw_gmtime | ( | time_t | t | ) |
Definition at line 137 of file protected.c.
References gmtime, GWTIME, lock(), and unlock().
Referenced by date_create_iso(), date_format_http(), delivery_time_constraints(), format(), get_pattern(), make_timestamp(), msg_to_pdu(), obey_request(), set_time(), status_cb(), timestamp_to_minutes(), and urltrans_fill_escape_codes().
| struct tm gw_localtime | ( | time_t | t | ) |
Definition at line 121 of file protected.c.
References GWTIME, localtime, lock(), and unlock().
Referenced by format(), msg_to_emimsg(), msg_to_pdu(), status_cb(), and timestamp_to_minutes().
| time_t gw_mktime | ( | struct tm * | tm | ) |
Definition at line 153 of file protected.c.
References GWTIME, lock(), mktime, and unlock().
Referenced by clickatell_receive_sms(), parse_http_date(), and timestamp_to_minutes().
| int gw_rand | ( | void | ) |
Definition at line 174 of file protected.c.
References lock(), RAND, rand, and unlock().
Referenced by choose_message(), gw_generate_id(), randomize(), route_incoming_to_boxc(), route_msg(), set_zero(), smsc2_rout(), soap_rand_attribute(), url_pattern(), and wap_msg_recv().
| size_t gw_strftime | ( | char * | s, |
| size_t | max, | ||
| const char * | format, | ||
| const struct tm * | tm | ||
| ) |
Definition at line 164 of file protected.c.
References GWTIME, lock(), strftime, and unlock().
Referenced by msg_to_pdu().
| void gwlib_protected_init | ( | void | ) |
Definition at line 103 of file protected.c.
References locks, mutex_init_static, and NUM_LOCKS.
Referenced by gwlib_init().
| void gwlib_protected_shutdown | ( | void | ) |
Definition at line 112 of file protected.c.
References locks, mutex_destroy(), and NUM_LOCKS.
Referenced by gwlib_shutdown().