summaryrefslogtreecommitdiff
path: root/src/lib/du_buff.c
Commit message (Collapse)AuthorAgeFilesLines
* lib, ipcpd: removed du_buff and pcidimitri staessens2016-06-291-380/+0
| | | | Fixes #3
* lib: include stdlib.h, not malloc.hdimitri staessens2016-04-021-1/+2
|
* lib: fixes to du_buffDimitri Staessens2016-03-171-7/+9
| | | | | fixes memleaks in du_buff and du_buff_test fixes bug in copy operation
* lib: du_buff log an error when PCI > block sizeDimitri Staessens2016-03-151-1/+1
| | | | du_buff.c: LOG_WARN changed to LOG_ERR
* lib: indentation fixes in du_buffDimitri Staessens2016-03-151-6/+5
|
* lib: Updated du_buff not limit allowable PCI sizeDimitri Staessens2016-03-151-15/+16
| | | | PCI can now occupy at most one block
* Fixed clang compilation errorsDimitri Staessens2016-03-141-1/+1
| | | | | fixed a signed-unsigned mismatch in du_buff.c fixed an uninitialised variable in irm
* tests: added test for the du_buff structureDimitri Staessens2016-03-081-1/+1
| | | | | | | | | | tests/du_buff.c: tests the du_buff_t structure by creating different size du_buff_t's and filling it with different size sdu's at different locations in the du_buff_t tests/CMakefile.txt: added du_buff test lib/du_buff.c: fixed unsafe #define adding brackets
* lib: changed du_buff default size to 64KBDimitri Staessens2016-03-071-10/+9
| | | | | du_buff.c: default du_buff size is now 64KB. some formatting fixes (missing spaces around operators).
* lib: fixed memory leaks in du_buffDimitri Staessens2016-03-041-0/+5
| | | | du_buff.c: memory leak fixes
* Merged in dstaesse/ouroboros/be-update-workflow (pull request #11)Sander Vrijders2016-02-271-3/+3
|\ | | | | | | workflow: Update guidelines on use of pointers
| * doc: updated workflow and corrected all mallocsDimitri Staessens2016-02-261-3/+3
| | | | | | | | lib/du_buff contained casted malloc's.
* | lib: Fixed some indentation issues in du_buff.cDimitri Staessens2016-02-251-3/+3
| |
* | lib: du_buff alloc API changed to return pointersDimitri Staessens2016-02-251-22/+22
|/ | | | | du_buff.[c/h]: alloc_head and alloc_tail now return a pointer to the start of the PCI for direct read/write access.
* lib: fixed typo in du_buffDimitri Staessens2016-02-251-1/+1
| | | | DU_BUFF_BLOCKIZE -> DU_BUFF_BLOCKSIZE
* lib: Fixed errors when destroying du_buffDimitri Staessens2016-02-251-17/+17
| | | | | du_buff.c: this fixes a lot of bugs probably. destruction of du_buff worked under all tested circumstances
* lib: Changes to du_buff structureDimitri Staessens2016-02-241-30/+51
| | | | | | | | | | | | | du_buff.c : Will now allocate memory only upon init, not upon create. User can add compiler flag DU_BUFF_BLOCKSIZE to set the size of a du_buff memory block. If the size for the du_buff is larger than DU_BUFF_BLOCKSIZE, the du_buff will be structured as follows: HEAD -> DATA_BLOCK -> ... -> DATA_BLOCK -> TAIL HEAD and TAIL are contiguous and may be larger than DU_BUFF_BLOCKSIZE if required.
* lib: further cleanup of du_buffDimitri Staessens2016-02-241-33/+2
| | | | | du_buff.c : removed unnecessary variable for return values removed unnecessary functions
* lib: Fixed syntax formatting in du_buffDimitri Staessens2016-02-241-1/+1
| | | | forgot spaces before/after +
* lib: Fixed shoddy castDimitri Staessens2016-02-241-4/+2
| | | | du_buff.c size_t now prints correctly as %llu
* lib: bugfixes to du_buff.cDimitri Staessens2016-02-231-20/+41
| | | | | The initial commit was untested and caused some segmentation faults. This version should be bugfree (no promises).
* lib: fixed build errors in du_buffDimitri Staessens2016-02-231-5/+2
| | | | du_buff.c is now compliant with more stringent compiler flags
* du_buff: Restructured for information hidingDimitri Staessens2016-02-231-1/+9
| | | | Moved struct buffer and struct du_buff definitions to the source file.
* lib: cleanup of du_buffDimitri Staessens2016-02-231-21/+47
| | | | | | du_buff.h : moved struct buffer to source du_buff.c : fixed formatting LOG_DBGF used
* Initial du_buff codeDimitri Staessens2016-02-231-0/+333
Compiles but untested. Expect bugs.