Classes | Defines | Functions | Variables
os400sys.c File Reference
#include "curlbuild.h"
#include "config-os400.h"
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <pthread.h>
#include <netdb.h>
#include <qadrt.h>
#include <errno.h>
#include <ldap.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "os400sys.h"
Include dependency graph for os400sys.c:

Go to the source code of this file.

Classes

struct  buffer_t

Defines

#define MIN_BYTE_GAIN   1024 /* Minimum gain when shortening a buffer. */

Functions

static char * buffer_threaded (localkey_t key, long size)
static char * buffer_undef (localkey_t key, long size)
static char * buffer_unthreaded (localkey_t key, long size)
static int convert_sockaddr (struct sockaddr_storage *dstaddr, const struct sockaddr *srcaddr, int srclen)
int Curl_getaddrinfo_a (const char *nodename, const char *servname, const struct addrinfo *hints, struct addrinfo **res)
int Curl_getnameinfo_a (const struct sockaddr *sa, curl_socklen_t salen, char *nodename, curl_socklen_t nodenamelen, char *servname, curl_socklen_t servnamelen, int flags)
char * Curl_ldap_err2string_a (int error)
char * Curl_ldap_first_attribute_a (void *ld, LDAPMessage *entry, BerElement **berptr)
char * Curl_ldap_get_dn_a (void *ld, LDAPMessage *entry)
struct berval ** Curl_ldap_get_values_len_a (void *ld, LDAPMessage *entry, const char *attr)
void * Curl_ldap_init_a (char *host, int port)
char * Curl_ldap_next_attribute_a (void *ld, LDAPMessage *entry, BerElement *berptr)
int Curl_ldap_search_s_a (void *ld, char *base, int scope, char *filter, char **attrs, int attrsonly, LDAPMessage **res)
int Curl_ldap_simple_bind_s_a (void *ld, char *dn, char *passwd)
int Curl_os400_bind (int sd, struct sockaddr *localaddr, int addrlen)
int Curl_os400_connect (int sd, struct sockaddr *destaddr, int addrlen)
int Curl_os400_recvfrom (int sd, char *buffer, int buflen, int flags, struct sockaddr *fromaddr, int *addrlen)
int Curl_os400_sendto (int sd, char *buffer, int buflen, int flags, struct sockaddr *dstaddr, int addrlen)
static char * get_buffer (buffer_t *buf, long size)
static char * set_thread_string (localkey_t key, const char *s)
static void terminate (void)
static void thdbufdestroy (void *private)

Variables

char *(* Curl_thread_buffer )(localkey_t key, long size) = buffer_undef
static buffer_tlocbufs
static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER
static pthread_key_t thdkey

Define Documentation

#define MIN_BYTE_GAIN   1024 /* Minimum gain when shortening a buffer. */

QADRT OS/400 ASCII runtime defines only the most used procedures, but but a lot of them are not supported. This module implements ASCII wrappers for those that are used by libcurl, but not defined by QADRT.

Definition at line 74 of file os400sys.c.


Function Documentation

static char * buffer_threaded ( localkey_t  key,
long  size 
) [static]

Definition at line 179 of file os400sys.c.

static char * buffer_undef ( localkey_t  key,
long  size 
) [static]

Definition at line 210 of file os400sys.c.

static char * buffer_unthreaded ( localkey_t  key,
long  size 
) [static]

Definition at line 171 of file os400sys.c.

static int convert_sockaddr ( struct sockaddr_storage *  dstaddr,
const struct sockaddr *  srcaddr,
int  srclen 
) [static]

Definition at line 1202 of file os400sys.c.

int Curl_getaddrinfo_a ( const char *  nodename,
const char *  servname,
const struct addrinfo *  hints,
struct addrinfo **  res 
)

Definition at line 310 of file os400sys.c.

int Curl_getnameinfo_a ( const struct sockaddr *  sa,
curl_socklen_t  salen,
char *  nodename,
curl_socklen_t  nodenamelen,
char *  servname,
curl_socklen_t  servnamelen,
int  flags 
)

Definition at line 262 of file os400sys.c.

char* Curl_ldap_err2string_a ( int  error)

Definition at line 1097 of file os400sys.c.

char* Curl_ldap_first_attribute_a ( void *  ld,
LDAPMessage *  entry,
BerElement **  berptr 
)

Definition at line 1136 of file os400sys.c.

char* Curl_ldap_get_dn_a ( void *  ld,
LDAPMessage *  entry 
)

Definition at line 1105 of file os400sys.c.

struct berval* * Curl_ldap_get_values_len_a ( void *  ld,
LDAPMessage *  entry,
const char *  attr 
) [read]

Definition at line 1065 of file os400sys.c.

void* Curl_ldap_init_a ( char *  host,
int  port 
)

Definition at line 923 of file os400sys.c.

char* Curl_ldap_next_attribute_a ( void *  ld,
LDAPMessage *  entry,
BerElement *  berptr 
)

Definition at line 1168 of file os400sys.c.

int Curl_ldap_search_s_a ( void *  ld,
char *  base,
int  scope,
char *  filter,
char **  attrs,
int  attrsonly,
LDAPMessage **  res 
)

Definition at line 987 of file os400sys.c.

int Curl_ldap_simple_bind_s_a ( void *  ld,
char *  dn,
char *  passwd 
)

Definition at line 947 of file os400sys.c.

int Curl_os400_bind ( int  sd,
struct sockaddr *  localaddr,
int  addrlen 
)

Definition at line 1255 of file os400sys.c.

int Curl_os400_connect ( int  sd,
struct sockaddr *  destaddr,
int  addrlen 
)

Definition at line 1239 of file os400sys.c.

int Curl_os400_recvfrom ( int  sd,
char *  buffer,
int  buflen,
int  flags,
struct sockaddr *  fromaddr,
int *  addrlen 
)

Definition at line 1288 of file os400sys.c.

int Curl_os400_sendto ( int  sd,
char *  buffer,
int  buflen,
int  flags,
struct sockaddr *  dstaddr,
int  addrlen 
)

Definition at line 1271 of file os400sys.c.

static char* get_buffer ( buffer_t buf,
long  size 
) [static]

Definition at line 131 of file os400sys.c.

static char* set_thread_string ( localkey_t  key,
const char *  s 
) [static]

Definition at line 240 of file os400sys.c.

static void terminate ( void  ) [static]

Definition at line 112 of file os400sys.c.

static void thdbufdestroy ( void *  private) [static]

Definition at line 94 of file os400sys.c.


Variable Documentation

Definition at line 90 of file os400sys.c.

buffer_t* locbufs [static]

Definition at line 88 of file os400sys.c.

pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER [static]

Definition at line 86 of file os400sys.c.

pthread_key_t thdkey [static]

Definition at line 87 of file os400sys.c.



rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:09