GNU libmicrohttpd
0.9.5
|
#include <stddef.h>
Go to the source code of this file.
Data Structures | |
struct | PLIBC_SEARCH_QELEM |
struct | PLIBC_SEARCH_entry |
struct | _PLIBC_SEARCH_ENTRY |
struct | PLIBC_SEARCH_hsearch_data |
Macros | |
#define | SIGALRM 14 |
#define | HAVE_PLIBC_FD 0 |
#define | DIR_SEPARATOR '/' |
#define | DIR_SEPARATOR_STR "/" |
#define | PATH_SEPARATOR ':' |
#define | PATH_SEPARATOR_STR ":" |
#define | NEWLINE "\n" |
#define | CREAT(p, m) creat(p, m) |
#define | PLIBC_CTIME(c) ctime(c) |
#define | CTIME_R(c, b) ctime_r(c, b) |
#define | FOPEN(f, m) fopen(f, m) |
#define | FCLOSE(f) fclose(f) |
#define | FTRUNCATE(f, l) ftruncate(f, l) |
#define | OPENDIR(d) opendir(d) |
#define | CLOSEDIR(d) closedir(d) |
#define | READDIR(d) readdir(d) |
#define | OPEN open |
#define | CHDIR(d) chdir(d) |
#define | CLOSE(f) close(f) |
#define | LSEEK(f, o, w) lseek(f, o, w) |
#define | RMDIR(f) rmdir(f) |
#define | ACCESS(p, m) access(p, m) |
#define | CHMOD(f, p) chmod(f, p) |
#define | FSTAT(h, b) fstat(h, b) |
#define | PLIBC_KILL(p, s) kill(p, s) |
#define | PIPE(h) pipe(h) |
#define | REMOVE(p) remove(p) |
#define | RENAME(o, n) rename(o, n) |
#define | STAT(p, b) stat(p, b) |
#define | STAT64(p, b) stat64(p, b) |
#define | SYSCONF(n) sysconf(n) |
#define | UNLINK(f) unlink(f) |
#define | WRITE(f, b, n) write(f, b, n) |
#define | READ(f, b, n) read(f, b, n) |
#define | GN_FREAD(b, s, c, f) fread(b, s, c, f) |
#define | GN_FWRITE(b, s, c, f) fwrite(b, s, c, f) |
#define | SYMLINK(a, b) symlink(a, b) |
#define | MMAP(s, l, p, f, d, o) mmap(s, l, p, f, d, o) |
#define | MKFIFO(p, m) mkfifo(p, m) |
#define | MSYNC(s, l, f) msync(s, l, f) |
#define | MUNMAP(s, l) munmap(s, l) |
#define | STRERROR(i) strerror(i) |
#define | RANDOM() random() |
#define | SRANDOM(s) srandom(s) |
#define | READLINK(p, b, s) readlink(p, b, s) |
#define | LSTAT(p, b) lstat(p, b) |
#define | LSTAT64(p, b) lstat64(p, b) |
#define | PRINTF printf |
#define | FPRINTF fprintf |
#define | VPRINTF(f, a) vprintf(f, a) |
#define | VFPRINTF(s, f, a) vfprintf(s, f, a) |
#define | VSPRINTF(d, f, a) vsprintf(d, f, a) |
#define | VSNPRINTF(str, size, fmt, a) vsnprintf(str, size, fmt, a) |
#define | _REAL_SNPRINTF snprintf |
#define | SPRINTF sprintf |
#define | VSSCANF(s, f, a) vsscanf(s, f, a) |
#define | SSCANF sscanf |
#define | VFSCANF(s, f, a) vfscanf(s, f, a) |
#define | VSCANF(f, a) vscanf(f, a) |
#define | SCANF scanf |
#define | FSCANF fscanf |
#define | WAITPID(p, s, o) waitpid(p, s, o) |
#define | ACCEPT(s, a, l) accept(s, a, l) |
#define | BIND(s, n, l) bind(s, n, l) |
#define | CONNECT(s, n, l) connect(s, n, l) |
#define | GETPEERNAME(s, n, l) getpeername(s, n, l) |
#define | GETSOCKNAME(s, n, l) getsockname(s, n, l) |
#define | GETSOCKOPT(s, l, o, v, p) getsockopt(s, l, o, v, p) |
#define | LISTEN(s, b) listen(s, b) |
#define | RECV(s, b, l, f) recv(s, b, l, f) |
#define | RECVFROM(s, b, l, f, r, o) recvfrom(s, b, l, f, r, o) |
#define | SELECT(n, r, w, e, t) select(n, r, w, e, t) |
#define | SEND(s, b, l, f) send(s, b, l, f) |
#define | SENDTO(s, b, l, f, o, n) sendto(s, b, l, f, o, n) |
#define | SETSOCKOPT(s, l, o, v, n) setsockopt(s, l, o, v, n) |
#define | SHUTDOWN(s, h) shutdown(s, h) |
#define | SOCKET(a, t, p) socket(a, t, p) |
#define | GETHOSTBYADDR(a, l, t) gethostbyname(a, l, t) |
#define | GETHOSTBYNAME(n) gethostbyname(n) |
#define | GETTIMEOFDAY(t, n) gettimeofday(t, n) |
#define | INSQUE(e, p) insque(e, p) |
#define | REMQUE(e) remque(e) |
#define | HSEARCH(i, a) hsearch(i, a) |
#define | HCREATE(n) hcreate(n) |
#define | HDESTROY() hdestroy() |
#define | HSEARCH_R(i, a, r, h) hsearch_r(i, a, r, h) |
#define | HCREATE_R(n, h) hcreate_r(n, h) |
#define | HDESTROY_R(h) hdestroy_r(h) |
#define | TSEARCH(k, r, c) tsearch(k, r, c) |
#define | TFIND(k, r, c) tfind(k, r, c) |
#define | TDELETE(k, r, c) tdelete(k, r, c) |
#define | TWALK(r, a) twalk(r, a) |
#define | TDESTROY(r, f) tdestroy(r, f) |
#define | LFIND(k, b, n, s, c) lfind(k, b, n, s, c) |
#define | LSEARCH(k, b, n, s, c) lsearch(k, b, n, s, c) |
Typedefs | |
typedef int(* | PLIBC_SEARCH__compar_fn_t )(__const void *, __const void *) |
typedef PLIBC_SEARCH__compar_fn_t | _win_comparison_fn_t |
typedef struct PLIBC_SEARCH_entry | PLIBC_SEARCH_ENTRY |
typedef struct _PLIBC_SEARCH_ENTRY | _PLIBC_SEARCH_ENTRY |
typedef void(* | PLIBC_SEARCH__action_fn_t )(__const void *__nodep, PLIBC_SEARCH_VISIT __value, int __level) |
typedef void(* | PLIBC_SEARCH__free_fn_t )(void *__nodep) |
Enumerations | |
enum | PLIBC_SEARCH_ACTION { PLIBC_SEARCH_FIND, PLIBC_SEARCH_ENTER } |
enum | PLIBC_SEARCH_VISIT { PLIBC_SEARCH_preorder, PLIBC_SEARCH_postorder, PLIBC_SEARCH_endorder, PLIBC_SEARCH_leaf } |
Functions | |
void | _win_insque (void *__elem, void *__prev) |
void | _win_remque (void *__elem) |
PLIBC_SEARCH_ENTRY * | _win_hsearch (PLIBC_SEARCH_ENTRY __item, PLIBC_SEARCH_ACTION __action) |
int | _win_hcreate (size_t __nel) |
void | _win_hdestroy (void) |
int | _win_hsearch_r (PLIBC_SEARCH_ENTRY __item, PLIBC_SEARCH_ACTION __action, PLIBC_SEARCH_ENTRY **__retval, struct PLIBC_SEARCH_hsearch_data *__htab) |
int | _win_hcreate_r (size_t __nel, struct PLIBC_SEARCH_hsearch_data *__htab) |
void | _win_hdestroy_r (struct PLIBC_SEARCH_hsearch_data *__htab) |
void * | _win_tsearch (__const void *__key, void **__rootp, PLIBC_SEARCH__compar_fn_t __compar) |
void * | _win_tfind (__const void *__key, void *__const *__rootp, PLIBC_SEARCH__compar_fn_t __compar) |
void * | _win_tdelete (__const void *__restrict __key, void **__restrict __rootp, PLIBC_SEARCH__compar_fn_t __compar) |
void | _win_twalk (__const void *__root, PLIBC_SEARCH__action_fn_t __action) |
void | _win_tdestroy (void *__root, PLIBC_SEARCH__free_fn_t __freefct) |
void * | _win_lfind (__const void *__key, __const void *__base, size_t *__nmemb, size_t __size, PLIBC_SEARCH__compar_fn_t __compar) |
void * | _win_lsearch (__const void *__key, void *__base, size_t *__nmemb, size_t __size, PLIBC_SEARCH__compar_fn_t __compar) |
#define ACCEPT | ( | s, | |
a, | |||
l | |||
) | accept(s, a, l) |
Definition at line 593 of file plibc.h.
Referenced by MHD_accept_connection().
#define BIND | ( | s, | |
n, | |||
l | |||
) | bind(s, n, l) |
Definition at line 594 of file plibc.h.
Referenced by MHD_start_daemon_va().
#define CLOSE | ( | f | ) | close(f) |
Definition at line 549 of file plibc.h.
Referenced by MHD_accept_connection(), MHD_add_connection(), MHD_cleanup_connections(), MHD_start_daemon_va(), and MHD_stop_daemon().
#define FPRINTF fprintf |
Definition at line 579 of file plibc.h.
Referenced by do_write(), and MHD_connection_handle_write().
#define GETSOCKOPT | ( | s, | |
l, | |||
o, | |||
v, | |||
p | |||
) | getsockopt(s, l, o, v, p) |
#define LISTEN | ( | s, | |
b | |||
) | listen(s, b) |
Definition at line 599 of file plibc.h.
Referenced by MHD_start_daemon_va().
#define MMAP | ( | s, | |
l, | |||
p, | |||
f, | |||
d, | |||
o | |||
) | mmap(s, l, p, f, d, o) |
Definition at line 568 of file plibc.h.
Referenced by MHD_pool_create().
#define MUNMAP | ( | s, | |
l | |||
) | munmap(s, l) |
Definition at line 571 of file plibc.h.
Referenced by MHD_pool_destroy().
#define PIPE | ( | h | ) | pipe(h) |
Definition at line 556 of file plibc.h.
Referenced by MHD_start_daemon_va().
#define RANDOM | ( | ) | random() |
Definition at line 573 of file plibc.h.
Referenced by test_simple_large().
#define RECV | ( | s, | |
b, | |||
l, | |||
f | |||
) | recv(s, b, l, f) |
Definition at line 600 of file plibc.h.
Referenced by recv_param_adapter().
#define RECVFROM | ( | s, | |
b, | |||
l, | |||
f, | |||
r, | |||
o | |||
) | recvfrom(s, b, l, f, r, o) |
#define SELECT | ( | n, | |
r, | |||
w, | |||
e, | |||
t | |||
) | select(n, r, w, e, t) |
Definition at line 602 of file plibc.h.
Referenced by MHD_handle_connection(), and MHD_select().
#define SEND | ( | s, | |
b, | |||
l, | |||
f | |||
) | send(s, b, l, f) |
Definition at line 603 of file plibc.h.
Referenced by send_param_adapter().
#define SENDTO | ( | s, | |
b, | |||
l, | |||
f, | |||
o, | |||
n | |||
) | sendto(s, b, l, f, o, n) |
#define SETSOCKOPT | ( | s, | |
l, | |||
o, | |||
v, | |||
n | |||
) | setsockopt(s, l, o, v, n) |
Definition at line 605 of file plibc.h.
Referenced by MHD_start_daemon_va().
#define SHUTDOWN | ( | s, | |
h | |||
) | shutdown(s, h) |
Definition at line 606 of file plibc.h.
Referenced by close_all_connections(), do_read(), MHD_accept_connection(), MHD_add_connection(), MHD_connection_close(), MHD_queue_response(), and MHD_stop_daemon().
#define SOCKET | ( | a, | |
t, | |||
p | |||
) | socket(a, t, p) |
Definition at line 607 of file plibc.h.
Referenced by create_socket().
#define SPRINTF sprintf |
Definition at line 585 of file plibc.h.
Referenced by add_extra_headers(), build_header_response(), and get_date_string().
#define STRERROR | ( | i | ) | strerror(i) |
Definition at line 572 of file plibc.h.
Referenced by do_read(), do_write(), MHD_accept_connection(), MHD_add_connection(), MHD_connection_handle_write(), MHD_handle_connection(), MHD_select(), and MHD_start_daemon_va().
#define TDELETE | ( | k, | |
r, | |||
c | |||
) | tdelete(k, r, c) |
Definition at line 621 of file plibc.h.
Referenced by MHD_ip_limit_del().
#define TFIND | ( | k, | |
r, | |||
c | |||
) | tfind(k, r, c) |
Definition at line 620 of file plibc.h.
Referenced by MHD_ip_limit_del().
#define TSEARCH | ( | k, | |
r, | |||
c | |||
) | tsearch(k, r, c) |
Definition at line 619 of file plibc.h.
Referenced by MHD_ip_limit_add().
#define VSNPRINTF | ( | str, | |
size, | |||
fmt, | |||
a | |||
) | vsnprintf(str, size, fmt, a) |
#define WRITE | ( | f, | |
b, | |||
n | |||
) | write(f, b, n) |
Definition at line 563 of file plibc.h.
Referenced by MHD_stop_daemon().
typedef struct _PLIBC_SEARCH_ENTRY _PLIBC_SEARCH_ENTRY |
typedef void(* PLIBC_SEARCH__action_fn_t)(__const void *__nodep, PLIBC_SEARCH_VISIT __value, int __level) |
typedef int(* PLIBC_SEARCH__compar_fn_t)(__const void *, __const void *) |
typedef struct PLIBC_SEARCH_entry PLIBC_SEARCH_ENTRY |
enum PLIBC_SEARCH_ACTION |
enum PLIBC_SEARCH_VISIT |
int _win_hcreate | ( | size_t | __nel | ) |
int _win_hcreate_r | ( | size_t | __nel, |
struct PLIBC_SEARCH_hsearch_data * | __htab | ||
) |
void _win_hdestroy | ( | void | ) |
void _win_hdestroy_r | ( | struct PLIBC_SEARCH_hsearch_data * | __htab | ) |
PLIBC_SEARCH_ENTRY* _win_hsearch | ( | PLIBC_SEARCH_ENTRY | __item, |
PLIBC_SEARCH_ACTION | __action | ||
) |
int _win_hsearch_r | ( | PLIBC_SEARCH_ENTRY | __item, |
PLIBC_SEARCH_ACTION | __action, | ||
PLIBC_SEARCH_ENTRY ** | __retval, | ||
struct PLIBC_SEARCH_hsearch_data * | __htab | ||
) |
void _win_insque | ( | void * | __elem, |
void * | __prev | ||
) |
void* _win_lfind | ( | __const void * | __key, |
__const void * | __base, | ||
size_t * | __nmemb, | ||
size_t | __size, | ||
PLIBC_SEARCH__compar_fn_t | __compar | ||
) |
void* _win_lsearch | ( | __const void * | __key, |
void * | __base, | ||
size_t * | __nmemb, | ||
size_t | __size, | ||
PLIBC_SEARCH__compar_fn_t | __compar | ||
) |
void _win_remque | ( | void * | __elem | ) |
void* _win_tdelete | ( | __const void *__restrict | __key, |
void **__restrict | __rootp, | ||
PLIBC_SEARCH__compar_fn_t | __compar | ||
) |
void _win_tdestroy | ( | void * | __root, |
PLIBC_SEARCH__free_fn_t | __freefct | ||
) |
void* _win_tfind | ( | __const void * | __key, |
void *__const * | __rootp, | ||
PLIBC_SEARCH__compar_fn_t | __compar | ||
) |
void* _win_tsearch | ( | __const void * | __key, |
void ** | __rootp, | ||
PLIBC_SEARCH__compar_fn_t | __compar | ||
) |
void _win_twalk | ( | __const void * | __root, |
PLIBC_SEARCH__action_fn_t | __action | ||
) |