Routines

 

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

 

A

addPostItem( )insert item name and limit the max size of value

B

base64_decode( )decoding src with base64 and store into dst
base64_encode( )encoding src with base64 and store into dst
bmpCreate( )create a new BMP image
bmpDestroy( )free the bmp handle
bmpPoint( )draw a pointer in position(y, x)
bmpPoint( )draw a pointer in position(y, x)
bmpPT( )make a point
bmpRectFill( )draw a rectangle and fill it
bmpRGB( )make RGB color
bmpSave( )save the memory bmp into bmp file
bwrite( )write binary data block

C

cgiPrefix( )make current cgi prefix string
cgiPrefix2( )make current cgi prefix string
cgiPrefix3( )make CGI prefix by current page name
createPostParam( )create a struct to hold post parameters

D

distoryPost( )free this post
distoryPostParam( )free post parameters
DOMCreate( )create a DOM object
DOMCreateByPath( )recursive create XML elements by path
DOMCreateElementByPath( )recursive create XML elements by path
DOMCreateRootElement( )create a root element for DOM tree
DOMDeleteElement( )unlink a element or a sub tree from DOM tree.
DOMDestroy( )destroy the DOM object
DOMDupElement( )duplicate an element, exclude the chirdren elements
DOMElementDeleteAttribute( )delete an attribute for current element
DOMElementGetAttribute( )get attribute by element attribute name
DOMElementGetAttributeByIndex( )get attribute by attribute index
DOMElementGetAttributeByPath( )get the attribute of the XML element by path
DOMElementGetAttributeNumber( )get the number of attributes
DOMElementGetComment( )get the comment of current element
DOMElementGetTagName( )get the tag name of current element
DOMElementGetText( )get the content of current element
DOMElementGetTextByPath( )get the text of the XML element by path
DOMElementIsComment( )detect current element is comment or not
DOMElementSetAttribute( )change the attribute for current element
DOMElementSetAttributeByPath( )chage the attribute of the XML element by path
DOMElementSetCDataText( )change the content text of current element
DOMElementSetCDataTextByPath( )change the text of the XML element by path
DOMElementSetComment( )set the comment string for current element
DOMElementSetText( )change the content text of current element
DOMElementSetTextByPath( )set the text of the XML element by path
DOMEvalBuffer( )evaluate the XML content of a buffer
DOMFreeElement( )free element and its children elements in a DOM tree.
DOMGetCurrentLineNumber( )get the last line number when parsing error
DOMGetDocumentEncoding( )get the XML document encoding
DOMGetDocumentStandalone( )get the XML document is standalone or not
DOMGetDocumentVersion( )get the XML document version
DOMGetElementByAttribute( )find the next element by attribute
DOMGetElementByPath( )get an XML element by path
DOMGetElementByTagName( )find the element by tag name
DOMGetElementsByPath( )get elements in the same layer of DOM tree by path
DOMGetLastError( )get the last parsing error
DOMGetNextElementByAttribute( )find the next element by attribute
DOMGetNextElementByTagName( )find the next element by tag name
DOMGetRootElement( )get the root element of DOM tree
DOMNewElement( )create a new element
DOMParseBuffer( )parase the XML data in pbuf and add into DOM tree
DOMParseFile( )parase XML file and generate a DOM tree.
DOMPrintTree( )format a DOM tree and write into a stream
DOMSetDocumentEncoding( )get the XML document encoding
DOMSetDocumentStandalone( )set the XML document is standalone or not
DOMSetDocumentVersion( )get the XML document version
DOMWriteDocument( )format a DOM document and write into a stream
DOMWriteTree( )format a DOM tree and write into a stream
DOMWriteTreeToBuffer( )format a DOM tree and write into a buffer
DOMWriteTreeToBuffer( )format a DOM tree and write into a buffer
dopost( )read post data and parse it

E

ebBase64Decode( )decoding src with base64 and store into dst
ebBase64Encode( )encoding src with base64 and store into dst
ebBufCreate( )allocate a new tlv buffer then init it
ebBufDistroy( )free eybuild buffer
ebBufFlush( )flush eybuild buffer
ebBufIsAutoFlush( )check allow auto flush or not
ebBufIsFlushed( )check buffer ever flushed or not
ebBufReset( )reset the state to initialization state
ebBufResize( )change tlv buffer size to new size
ebBufStringAdd( )add a const string to the eybuild buffer
ebBufTlvAdd( )add data to tlv buffer
ebCalloc( )allocate space for an array
ebCheckBufSize( )check tlv buffer size
ebDefLangGet( )get current session language index
ebDefLangSet( )set the default language for current session
ebecho( )write a string into CSP page buffer
ebErrorString( )map error number into a string
ebferror( )test the error indicator for a eybuild buffer descriptor
ebForward( )internal redirect in CGI virtual directory
ebFree( )free a block of memory
ebfwrite( )write binary data block into stream
ebGetBufRemain( )get the remain size for data write to avaiable
ebgetenv( )get the value of envirement variable
ebGetMainPage( )get defult page for this cgi
ebGetMainType( )get defult page type for this cgi
ebGetSessVariable( )get session variable by key
ebGlobalStdGet( )get the file descriptor for global stdin/stdout/stderr
ebHashAdd( )add an key-value pair into hash table
ebHashCount( )get the number of elements in hash table
ebHashCreate( )create a hash table
ebHashDelete( )delete an key-value pair from hash table
ebHashDestroy( )destroy a hash table
ebHashGet( )get the value by key from hash table
ebHCAddCookie( )add a HTTP cookie item into current user agent
ebHCAddHeader( )add a HTTP header line for current user agent
ebHCAddPost( )add a HTTP post item into current user agent
ebHCAddPostField( )add a HTTP post filed item into current user agent
ebHCAddPostFile( )add a HTTP post file item into current user agent
ebHCClearCookies( )remove all HTTP cookie items from current user agent
ebHCClearHeaders( )remove all HTTP header line from header list
ebHCClearPosts( )remove all HTTP post items from current user agent
ebHCCreate( )create a HTTP client user-agent object
ebHCDelCookie( )delete a HTTP cookie item from current user agent
ebHCDelHeader( )delete a HTTP header line from header list
ebHCDelPost( )delete a HTTP post item from current user agent
ebHCDestroy( )destroy HTTP client user-agent object
ebHCGetCookie( )get response cookie by cookie name
ebHCGetError( )get the error description of specific error code
ebHCGetRawResponse( )get the raw response only when receive response error.
ebHCGetResAcceptRanges( )get the content accept ranges.
ebHCGetResAttachedFilename( )get the attached filename of response
ebHCGetResCharset( )get charset of response
ebHCGetResCode( )get the HTTP response code
ebHCGetResContentEncode( )get the content encoding of response
ebHCGetResContentLength( )get the content length of response
ebHCGetResContentRange( )get the content range of response
ebHCGetResContentType( )get the content type of response
ebHCGetResCookieByIndex( )get response cookie by index
ebHCGetResCookieNumber( )get the number of response cookies
ebHCGetResEtag( )get the ETag of response.
ebHCGetResHeader( )get response header by header name
ebHCGetResHeaderByIndex( )get response header by index
ebHCGetResHeaderNumber( )get the number of response headers.
ebHCGetResLastModify( )get last modified time of response
ebHCReadResponse( )read response conetent from user agent
ebHCRecvHeader( )receive response header
ebHCRequest( )request remote server and get the response header
ebHCRequestRemote( )connect remote host and send the request
ebHCResCleanup( )clean up the response content
ebHCResetHeader( )reset the HTTP header list into default
ebHCSetAuthorization( )set the HTTP authorization account
ebHCSetAutoParseCookie( )set automatically parse cookie or not
ebHCSetAutoRedirect( )set the max times of automatic redirection
ebHCSetAutoRemovePost( )set auto remove HTTP post items or not
ebHCSetConnectTimeout( )set the max connetion wait before timeout
ebHCSetHeader( )add a HTTP header line for current user agent
ebHCSetPostString( )setup a post string for current user agent.
ebHCSetProxy( )setup a HTTP proxy for current user agent
ebHCSetRecvTimeout( )set the max receive wait before timeout
ebHCSetResInflate( )setup a temp file for inflate the compressed response
ebHeader( )output HTTP header
ebHtmlDecode( )convert html format text into plain text
ebHtmlEncode( )convert plain text into html format text
ebHtmlnPrint( )convert plain text into html format text limit data length
ebHtmlPrint( )convert plain text into html format text
ebHttpStatusString( )get http protocol status string by status code
ebIsInConnection( )test this HTTP session is in connection or not.
ebLangClean( )clean this lib for multi-task OS
ebLangGetByKey( )get current language value string by key
ebLangInit( )init this lib for multi-task OS
ebLogMsg( )dispaly log message to stderr
ebLogMsg2( )dispaly log message to stderr
ebMakeMsg( )store the format string to task templete buffer.
ebMalloc( )allocate a block of memory from the system memory partition
ebMemDestroy( )destroy memory management library
ebMemInit( )initialize memory management library
ebMemStat( )get the statistic info about current management library.
ebMemStatShow( )output the memory statistic into stderr
ebMutexDestroy( )destroy an unnamed mutex
ebMutexLock( )get ownership of the specified mutex object
ebMutexUnlock( )giveup ownership of the specified mutex object
ebParseDate( )parse date and return a GMT time
ebPipeClose( )close one side of pipe
ebPipeCreate( )create a pipe with a specified the size
ebPipeRead( )read data from pipe
ebPipeWrite( )write data into pipe
ebprinterr( )output message to standard error
ebprintf( )write a formatted string to the eybuild buffer
ebRand( )generate a pseudo-random integer
ebRandGenerate( )generate a pseudo-random integer and next seed
ebRealloc( )reallocate a block of memory
ebRedirect( )redirect to an URL
ebResetConnectCheck( )set call back for connection check
ebResetGetenv( )reset getenv() for eybuild library
ebResetRand( )setup ebRand() with user defined routine
ebSemDestroy( )destroy an unnamed semaphore
ebSemInit( )creates an unnamed semaphore with specifical count
ebSemInit( )creates an unnamed mutex
ebSemPost( )unlock (give) a semaphore
ebSemWait( )lock (take) a semaphore, blocking if not available
ebSemWaitTimeout( )lock (take) a semaphore with a timeout value
ebSendError( )send error message to error page
ebSessDestroy( )remove current session completely
ebSessEnd( )stop this session
ebSessGC( )garbage collection by probability
ebSessGetID( )get current session ID
ebSessIDRenew( )renew current session ID
ebSessInit( )initilize the session
ebSessIsRegister( )check specified session variable exist or not
ebSessRegister( )register new session variable or update exist variable
ebSessSetHandle( )change the default session handle
ebSessStart( )prepare session environment
ebSessUnregister( )remove specified session variable
ebSetBufAutoFlush( )set allow auto flush or not
ebSetBufDeflat( )set allow gzip compress output or not
ebSetCookie( )send cookie with HTTP header
ebSetDebug( )set debug environment
ebSetMainPage( )set defult page for this cgi
ebSetVar( )add a query variable into this session
ebSleep( )sespend current task/thread for a specified interval
ebSockCleanup( )free WinSock DLL for WIN32 application
ebSockInit( )init WinSock DLL for WIN32 application
ebSRand( )reset the value of the seed used to generate random numbers
ebStrdup( )make a copy of source string
ebThreadCreate( )create a new thread
ebThreadEnvCleanup( )release all current thread environment variables
ebThreadExit( )terminate a thread.
ebThreadGetenv( )get an private environment variable from current thread
ebThreadIoCleanup( )release the thread standard I/O
ebthreadIoInit( )add the thread environment variable list
ebthreadIoInit( )initialize the thread standard I/O
ebThreadPoolActiveThreads( )gets the number of Active threads in thread pool
ebThreadPoolCreate( )create a static thread pool
ebThreadPoolDestroy( )destroy thread pool
ebThreadPoolGetRequests( )gets the request in queue of thread pool
ebThreadPoolJobAdd( )add a job into thread pool
ebThreadPutenv( )set an private environment variable for current thread
ebThreadSetenv( )set an private environment variable into current thread
ebThreadShowEnv( )list private environment variables of current thread
ebThreadStdGet( )get current thread standard I/O
ebThreadStdSet( )redirect thread standard I/O to given file
ebThreadUnSetenv( )unset an private environment variable
ebThreadVarAdd( )add a thread key to current thread
ebthreadVarBind( )bind a new space onto the thread variable key.
ebThreadVarDel( )remove a thread key from thread.
ebThreadVarGet( )get the value of current thread variable by thread key
ebThreadVarLibCleanup( )cleanup the thread variable library
ebThreadVarLibInit( )initialize the thread variable library
ebThreadVarSet( )set the thread variable value of current thread.
ebThreadVarUnbind( )unbind a thread variable by key.
ebThreadWait( )waits for thread termination
ebUrlDecode( )decode the URL and store in a global buffer
ebUrlEncode( )encode the unsafe characters into '%XX' in URL
ebvprintf( )write a formatted string to the eybuild buffer
ebWriteBlock( )write binary data block
ebXmlnPrint( )convert plain text into html format text limit data length
ebXmlPrint( )convert plain text into html format text
eyBuildExec( )send ROM page or excute csp page

F

file_atime( )get the last access time of the file
file_ctime( )get the create time of the file
file_executable( )test the file executable or not
file_exists( )test file exist or not
file_isblock( )test the file is a block device or not
file_ischar( )test the file is a character device or not
file_isdir( )test the file is a directory or not
file_isfifo( )test the file is a fifo or not
file_islink( )test the file is a symbolic link or not
file_isreg( )test the file is a regular file or not
file_mtime( )get the last modified time of the file
file_readable( )test the file readable or not
file_size( )get file size if file exist
file_writeable( )test the file writeable or not
forward( )internal redirect in CGI virtual directory

G

getAuthType( )get auth type (AUTH_TYPE)
getContentLength( )get content length (CONTENT_LENGTH)
getContentType( )get content type (CONTENT_TYPE)
getCookie( )get the value of cookie
getCookieByIndex( )get the cookie by index
getCookieByNameIndex( )get the value of same-name-cookie by index
getCookieNext( )get the next parameter by "name"
getCookieNumber( )get the number of cookie in cookie list (for GET/POST)
getEbiofp( )get current I/O buffer file description
getGatewayInterface( )get gateway interface (GATEWAY_INTERFACE)
getHttpAccept( )get HTTP accept MIME type (HTTP_ACCEPT)
getHttpAcceptEncode( )get browser accept encode (HTTP_ACCEPT_ENCODING)
getHttpAcceptLanguage( )get browser accept language (HTTP_ACCEPT_LANGUAGE)
getHttpConnection( )get connect state (HTTP_CONNECTION)
getHttpCookie( )get HTTP cookie list (HTTP_COOKIE)
getHttpETag( )get HTTP entity tag (HTTP_IF_NONE_MATCH)
getHttpHeader( )get the value of specified HTTP header name
getHttpLastModified( )get the date last modified (HTTP_IF_MODIFIED_SINCE)
getHttpUserAgent( )get remote user agent (HTTP_USER_AGENT)
getParameter( )get the value of parameter user submit
getParameterByNameIndex( )get the value of same name parameter by index
getParameterNext( )get the next parameter by "name"
getPathInfo( )get path info (PATH_INFO)
getPathTranslated( )get path translated name (PATH_TRANSLATED)
getPost( )get the value of parameter user submit by POST method
getPostFileCount( )get the number of post items
getPostFileCount( )get the number of files uploaded
getPostItemValue( )get post item value by item name
getPostItemValue( )get post item value of same-name-item by index
getPostSrcFileName( )get source file name by index from post
getPostTempFileName( )get temporary file by index from post
getQeuryByIndex( )get the query by index
getQeuryNumber( )get the number of query in query list (for GET/POST)
getQueryString( )get questry string (QUERY_STRING)
getRemoteAddr( )get remote host IP Address or URL (REMOTE_ADDR)
getRemoteHost( )get remote host IP Address or URL (REMOTE_HOST)
getRemoteIdent( )get remote ident (REMOTE_IDENT)
getRemotePort( )get remote host port (REMOTE_PORT)
getRemoteUser( )get remote user (REMOTE_USER)
getRequestMethod( )get request method (REQUEST_METHOD)
getScriptName( )get script name (SCRIPT_NAME)
getServerAddr( )get server IP address (SERVER_ADDR)
getServerName( )get server name (SERVER_NAME)
getServerPort( )get server port (SERVER_PORT)
getServerProtocol( )get server protocol (SERVER_PROTOCOL)
getServerSoftware( )get server software (SERVER_SOFTWARE)
get_dirlen( )get the length of directory from given path
get_extname( )get file extended name from given path
get_filename( )get filename from given path

H

header( )send HTTP header in CSP script
HMAC_MD5Hex( )calculate the HMAC-MD5 digest and output with hex format
HMAC_MD5String( )calculate the HMAC-MD5 digest

I

installPostHook( )install hooks and cookie to this post
isblankstr( )check a string is NULL or only include spaces/tabs
isSetCookie( )check a cookie exist or not
isSetQuery( )check a query exist or not

L

lstAdd( )add a node to the end of a list
lstConcat( )concatenate two lists
lstCount( )report the number of nodes in a list
lstDelete( )delete a specified node from a list
lstExtract( )extract a sublist from a list
lstFind( )find a node in a list
lstFirst( )find first node in list
lstForEach( )done user hook for each list node
lstFree( )free up a list
lstInit( )initialize a list descriptor
lstInsert( )insert a node in a list after a specified node
lstLast( )find the last node in a list
lstNext( )find the next node in a list
lstNStep( )find a list node steps away from a specified node
lstNth( )find the Nth node in a list
lstPrevious( )find the previous node in a list
ltostr( )covert a long number into a string

M

makeSessID( )create session ID
MD5Final( )calculate the MD5 digest for src, output with hex format
MD5Hex( )calculate the MD5 digest for src, output with hex format
MD5Init( )initializes an MD5 message digest context
MD5String( )calculate the MD5 digest for src
MD5Update( )updates the MD5 context by using the supplied buffer
memshow( )list the data of specified memory area
memshow( )list the data of specified memory area to a file
movePostFile( )move post file by index to specified directory

P

preg_match( )perform a regular expression match
preg_match_all( )perform regular expression match searches all in target
preg_replace( )perform a regular expression search and replace
preg_split( )split string by a regular expression
preg_split_free( )free split list
print( )write a formatted string and buffered by CSP page

R

redirect( )send redirect instruction with HTTP header
regcomp( )compile regular expression
regcomp2( )compile regular expression advanced version
regerror( )get errmsg string by error code
regexec( )match a null-terminated string against the precompiled pattern
regfree( )free regular expressions resources
romPrefix( )make current rom prefix string
romPrefix2( )make current rom prefix string
romPrefix3( )make ROM prefix by current directory

S

set( )add a query variable into this session
setcookie( )send cookie with HTTP header
socket_accept( )accept a new connection
socket_bind( )bind socket into a given address/port pair
socket_close( )close an opened socket descriptor
socket_connect( )connect a remote host with a given address/port pair
socket_connect_timeout( )connect a remote host with a timeout
socket_create( )creates a socket and returns a descriptor
socket_create_connect( )create a socket and connect a remote host
socket_create_listen( )create a socket and listen on it
socket_errno( )get last error number of socket
socket_error( )map the last error of socket into a string buffer
socket_gethostbyname( )get the IP address and the address family
socket_gethostbynamel( )get the list of IP addresses and the address family
socket_getpeername( )get the name of a connected peer
socket_getsockname( )get local side socket name
socket_getsockopt( )get socket options
socket_linger_close( )close a socket fast but not perform a "graceful"
socket_listen( )enable connections to a socket
socket_readn( )read at most n bytes from a socket in one times
socket_recv( )receive data from a socket
socket_recv_timeout( )receive data from socket with a timeout
socket_recvfrom( )receive a message from a socket
socket_recvfrom_timeout( )receive a message with a timeout
socket_select( )pend on a set of socket descriptors and determines the status
socket_send( )send data to a socket
socket_sendto( )sends data to a socket, whether it is connected or not
socket_set_block( )sets blocking mode on a socket descriptor
socket_set_nonblock( )sets nonblocking mode on a socket descriptor
socket_setsockopt( )set socket options
socket_sockaddr( )initialize the sockaddr strut with IP and port
socket_socketpair( )create a pair socket connection
socket_writen( )write n bytes to a socket in one times
sqlite_affected_rows( )get last INSERT, UPDATE, or DELETE affected_rows
sqlite_begin_trans( )start transaction
sqlite_close( )close a data base
sqlite_column_count( )get the number of fields/columns
sqlite_column_len( )get the bytes of the field/column
sqlite_column_name( )get field/column name by index
sqlite_column_type( )get field/column type by index
sqlite_commit_trans( )commit transaction
sqlite_dump_row( )dump the fetched row
sqlite_end_trans( )end transaction
sqlite_errno( )get last error code
sqlite_error( )get last error description string
sqlite_exec( )execute a result-less query
sqlite_fetch_lengths( )get the length of all fields/columns
sqlite_fetch_row( )fetch a row for query result
sqlite_free_dump( )free the row dumped by sqlite_dump_row()
sqlite_free_result( )free the query result
sqlite_init( )init the SQLITE struct
sqlite_insert_id( )get the id of the most recent insert
sqlite_open( )open a data base
sqlite_query( )execute a sql sentence
sqlite_query_fetch_once( )execute query and fetch a row for query result
sqlite_real_query( )query by specified length.
sqlite_rollback_trans( )rollback transaction
strdup( )make a copy of source string
strichr( )find the first occurrence of a character in a string
stricmp( )compare strings, ignoring case
strirep( )replace the substring with case-insensitive
strissp( )check string just include white space or not
stristr( )find the first occurrence of substr in a string
strlcat( )appends string to dst and limit the length
strlcpy( )copy string and limit the length
strltrim( )jumpover white-space in the left side of a string
strnchr( )limit lenth find the first occurrence of a character in a string
strncspn( )search character in a given set limit the search length
strndup( )make a copy of source string limit length
strnichr( )find the first occurrence of a character in a string
strnicmp( )compare strings, limit length, ignoring case
strnissp( )limit lenth check string just include white space or not
strnistr( )find the first occurrence of substr in a string
strnstr( )find the first occurrence of substr in a string
strrcspn( )search character in a given set retrorsely
strrep( )replace the substring with in source string
strrev( )reverse a string
strrpbrk( )search character in a given set retrorsely
strrspn( )search character not in a given set retrorsely
strrtok( )break down a string into tokens reverse
strrtrim( )remove white-space in the right side of a string
strsplit( )split 'src' string into at most 'max' sub string
strtolower( )convert string into lowercase
strtoupper( )convert string into uppercase
strtr( )translating all occurrences in "from" to the corresponding in "to"
strtrim( )remove white-space in the both side of a string

T

thisCgiPrefix( )make prefix by current page name
treeAddChild( )insert as last child node of
treeAddSibling( )insert as the next node of
treeChild( )get first child node of current node
treeChildNth( )get tree child by index(from 0)
treeChildNum( )get the number of child nodes, but not include sub layer
treeDelete( )delete specify node and its sub tree nodes from root tree
treeForEach( )done user hook for each node in current subtree
treeForEachChild( )done user hook for each child node, but not sub tree
treeFree( )free current tree and sub tree
treeInsChild( )insert as last child node of
treeParent( )get parent node of current node
treeRoot( )get root node of current tree
treeSibling( )get the sibling node of current node
treeSiblingNum( )get the number of sibling nodes, not include sub layer
trimpath( )remove useless or noneffective \'.\', \'..\' in given path

U

ultostr( )covert an unsigned long number into a string