50 Commits

Author SHA1 Message Date
Lazula
b64e348224 Free map_list when r_io_bank_get() fails in r_io_map_get_by_fd() 2022-01-14 00:28:09 +01:00
Lazula
ad749a0b1a Fix static/R_API function definition formatting
* Remove spaces before parens
* Remove spaces after asterisks
2021-12-21 20:58:12 +01:00
pancake
3da46ed758 Fix #19463 - io write error reporting regression ##io 2021-12-05 12:41:29 +01:00
condret
74a3fbd46b Add r_io_map_add_bottom ##io 2021-11-07 21:11:05 +01:00
condret
7a0412b743 Fix mapslit in r_io_map_add ##io 2021-11-03 17:55:39 +01:00
condret
44e3ff56ce Remove r_io_map_new from public API ##io 2021-11-03 17:55:39 +01:00
condret
86d94018a1 Free maps on r_io_maps_fini ##io 2021-10-29 00:57:06 +02:00
condret
5c5e42682e Rename maps_by_id to maps in RIO 2021-10-26 00:44:45 +02:00
condret
2d991d979b Remove use_banks switch from RIO 2021-10-26 00:44:45 +02:00
condret
fe87ab37a0 Remove redundant RPVector maps from RIO 2021-10-26 00:16:09 +02:00
condret
0d27338fba Remove map_skyline from RIO 2021-10-25 22:49:32 +02:00
condret
04998a7135 Fix r_io_map_resize for io banks 2021-10-25 02:48:21 +02:00
condret
136d858bdc Speedup r_io_map_get (O(2n) => O(2)) ##io 2021-10-24 18:56:15 +02:00
condret
e11dce152e Fix crash in r_io_map_reset if io banks are active 2021-10-23 18:33:10 +02:00
pancake
da7de83b41
Remove unused binheap api (#19275) 2021-10-21 15:13:02 +02:00
condret
dbc39ee5d6 Enable io bank support in r_io_map_resize ##io 2021-10-17 17:21:24 +02:00
condret
889912681c Kill r_io_map_location ##io 2021-10-17 16:21:50 +02:00
condret
aa10b78aa9 Enable io bank support in r_io_map_depriorize ##io 2021-10-16 22:47:24 +02:00
condret
183ecea354 Enable io-bank support in r_io_map_get_paddr ##io 2021-10-15 02:53:18 +02:00
condret
16c569070c Enable io-banks for r_io_map_del_for_fd ##io 2021-10-15 01:36:00 +02:00
condret
81410c1e1d Enable io-banks support in r_io_map_remap ##io 2021-10-10 19:17:14 +02:00
condret
87a38708e0 Enable io-bank support in r_io_map_new ##io 2021-10-10 00:04:10 +02:00
condret
814ebb9f68 Kill r_io_map_add_batch ##io 2021-10-09 22:52:06 +02:00
condret
1c3c768f0a Remove unnecessary return val from r_io_map_del ##io 2021-10-09 21:14:38 +02:00
condret
7b514b66bf Enable io-bank support in r_io_map_del ##io 2021-10-09 20:44:15 +02:00
condret
82ebbac993 Rename r_io_map_next_available to r_io_map_locate and add use_banks support ##io 2021-10-09 03:20:49 +02:00
condret
f65be8067f Kill r_io_map_next_address ##io 2021-10-08 23:26:18 +02:00
condret
4c9f466b7c Fix r_io_map_del_name ##io 2021-10-08 00:05:30 +02:00
condret
4b05dfda99 Add r_io_bank_get_map_at and enable banks in r_io_get_map_at ##io 2021-10-07 22:24:50 +02:00
condret
ed311e825f Some cleanup and code deduplication ##io 2021-09-23 16:54:33 +02:00
pancake
199976b926
Initial io.banks management commands ##io 2021-09-22 16:44:54 +02:00
condret
1e2dc7b6cd Some code cleanup (siol eternal) ##io 2021-09-20 22:10:08 +02:00
condret
6a972665de Use incremental timestamp on map creation instead of real ones (siol eternal) ##io 2021-09-20 22:10:08 +02:00
condret
8b337b68f8 Adjust codingstyle in libr/io/io_map.c (siol eternal) ##io
Co-authored-by: pancake <pancake@youterm.com>
2021-09-20 22:10:08 +02:00
condret
d3a19f0b0a Update r_io_map_get_by_ref (siol_eternal) ##io 2021-09-20 22:10:08 +02:00
condret
72f7b019c2 Start implementing RIOBank and RIOSubmap ##io 2021-09-20 22:10:08 +02:00
pancake
bd888a2edf Fix more vs warnings 2021-08-17 00:35:52 +00:00
pancake
0acb19b68a
Fix some warnings spotted by visual studio (#18985)
Co-authored-by: pancake <pancake@nopcode.org>
2021-08-16 20:45:17 +02:00
pancake
f10d767282 Fix assert in 'r2 -qc 'omp rwx' - 2021-05-20 02:25:23 +02:00
condret
1fae2164cb Rename r_io_map_get_for_fd to r_io_map_get_by_fd ##io 2021-03-12 20:52:45 +01:00
condret
4f67157ff5 Rename r_io_map_resolve to r_io_map_get ##io 2021-03-12 17:56:46 +01:00
condret
eb48818342 Rename r_io_map_get to r_io_map_get_at ##io 2021-03-12 17:56:46 +01:00
pancake
4d0aa7e9b7 Fix infinite loop in r_io_map_next_available ##io 2021-02-26 22:13:36 +01:00
pancake
aaa930ab26
Improve and formalize r_name_check() along all the base ##core (#18020) 2020-12-16 14:49:50 +01:00
Lazula
243bc871c3 Multiple refactors in io and util ##io ##util ##refactor
* Add r_io_map macros throughout code base
* Update string NULL-checking with renamed functions r_str_get() and r_str_getf()
* Change string NULL-checks throughout code base to use functions
* Add r_str_get_fail() to specify a custom string to return if NULL-check fails
* Mark JSON to be updated with PJ with "TODO PJ"
* Incidental style updates such as missing spaces
2020-12-13 05:09:13 +01:00
pancake
7df28e1fb2
Implement the comma command to manage user-defined tables ##util (#17702)
* Import export in CSV and R2 formats
* Export in JSON, ascii-art, columns, r2, ..
* For example: aaa;aflt>$a;,.$a,/size/sum
2020-12-09 03:39:49 +01:00
GustavoLCR
203878e60e
Optimize io.cache ##io (#17952)
* Add RSkyline ##util
* Add `r_vector_len()`
* Optimize io.cache ##io
* Use RSkyline instead of RList
* Add cache skyline for faster reads
* Use PJ API in `wcj`
* Add test and fix
2020-11-23 12:36:32 +08:00
GustavoLCR
cef191cde3
Fix #14024 - Make r_io_map_get() faster (#17324) ##io
* Fix O(n) in r_io_map_get() ##io
* Kill `map_skyline_shadow` and `do_skyline`
2020-07-31 10:04:57 +02:00
Riccardo Schirone
72f97959e8
Fix Tests after Reports by asan (#16776)
* Fix memory leak in IO
* Fix memory leak in cmd_api
* Remove unused variables in test_table
* Fix memory leak in test_flags
* Fix memory leak in test_list
* Fix memory leaks in test_anal_var
2020-05-08 21:45:01 +02:00
pancake
54617455de
Initial refactoring of the rap:// protocol (-75 LOC) ##socket (#16534)
* It's implemented in IO, Socket and Core
* Remove duplicated apis and defines, everything in in RSocket now
* RIO now owns an RCoreBind instead of 3 fcn pointers + 1 void*
* Use proper filenames in libr/socket following public api names
* Use RSocket.block apis in the rap client + server apis
2020-04-12 16:40:55 +02:00