taskrambler
0.1.9
Web server and task management solution.
|
#include <sys/types.h>
Go to the source code of this file.
Macros | |
#define | CSTRA(val) val, sizeof(val)-1 |
Const STRing Argument. More... | |
#define | MEM_FREE(seg) (memFree((void **)&(seg))) |
Functions | |
void * | memMalloc (size_t) |
void * | memCalloc (size_t, size_t) |
void | memFree (void **) |
size_t | memGetSize (void *) |
void | memCleanup () |
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file memory.h.
#define CSTRA | ( | val | ) | val, sizeof(val)-1 |
Const STRing Argument.
Definition at line 26 of file memory.h.
Referenced by _controllerCreateUserFromArgs(), _controllerGetCredentialFromArgs(), _controllerGetUserFromArgs(), _controllerUpdateUserFromArgs(), applicationAdapterHttpUpdate(), applicationLogin(), controllerAuthenticateCreate(), controllerUserRead(), getSessionId(), httpMessageHasKeepAlive(), httpParserParse(), httpResponse304(), httpResponse404(), httpResponse500(), httpResponseAsset(), httpResponseJson(), httpWorkerAddCommonHeader(), httpWorkerGetAsset(), httpWorkerProcess(), and main().
#define MEM_FREE | ( | seg | ) | (memFree((void **)&(seg))) |
Definition at line 28 of file memory.h.
Referenced by applicationCreateUser(), applicationDtor(), applicationGetUser(), applicationLogin(), applicationSessionCleanup(), applicationUpdatePassword(), applicationUpdateUser(), authLdapDtor(), authStorageAuthenticate(), cbufDtor(), classDelete(), configCtor(), configDtor(), configValueDtor(), credentialDtor(), freeNode(), hash_pw(), hashValueDtor(), httpCookieDtor(), httpHeaderDtor(), httpMessageDtor(), httpParserDtor(), httpParserParse(), httpRequestCtor(), httpRequestDtor(), httpResponseDtor(), httpWorkerDtor(), httpWriterDtor(), httpWriterWrite(), loggerLog(), main(), routerRoute(), serverDtor(), storageDtor(), storageGet(), and userDtor().
void* memCalloc | ( | size_t | nmemb, |
size_t | size | ||
) |
this is a really memory wasting solution....just to be able to use calloc, which might be faster then malloc/memset solution.
Maybe this is a bad idea, as we need to memset the buffer anyway if it comes from our tree, which hopefully should be the majority of cases.
Definition at line 818 of file memory.c.
References memMalloc(), and size.
Referenced by applicationCtor(), applicationSessionCleanup(), classClone(), classNewParams(), hash_pw(), httpMessageCtor(), httpResponseCtor(), and serverCtor().
void memCleanup | ( | ) |
Definition at line 862 of file memory.c.
References post(), and segmentFree().
Referenced by main().
void memFree | ( | void ** | ) |
Definition at line 829 of file memory.c.
References insertElement(), and memSegment::ref_count.
size_t memGetSize | ( | void * | ) |
Definition at line 849 of file memory.c.
References memSegment::size.
Referenced by httpWriterWrite().
void* memMalloc | ( | size_t | ) |
Definition at line 783 of file memory.c.
References deleteElement(), findElement(), newElement(), memSegment::ptr, and size.
Referenced by authLdapCtor(), cbufCtor(), configCtor(), configValueCtor(), controllerCurrentuserRead(), controllerLocRead(), controllerRandvalRead(), controllerSessinfoRead(), controllerUserRead(), controllerVersionRead(), credentialCtor(), hashValueCtor(), httpCookieCtor(), httpHeaderCtor(), httpParserHeader(), httpParserParse(), httpParserRequestVars(), httpRequestCtor(), httpResponse404(), httpResponse500(), httpResponseJson(), httpWorkerCtor(), httpWriterWrite(), loggerLog(), memCalloc(), newEle(), storageCtor(), storageGet(), userCtor(), userSerialize(), and userUnserialize().